/* Variables con prefijo a- */
:root {
    --a-cian-profundo: #0a5c6e;
    --a-purpura: #6829d0;
    --a-madera-claro: #d4a056;
    --a-madera-oscuro: #8b5e2e;
    --a-verde-campo: #4a7c3f;
    --a-verde-claro: #6b9e5e;
    --a-verde-oscuro: #2d5a1e;
    --a-agua-rio: #3a9bd5;
    --a-agua-profundo: #2c7ab3;
    --a-cielo-rio: #b8dff0;
}

/* Contenedor principal */
.a-summary-barco-rio {
    grid-column: span 3;
    position: relative;
    overflow: hidden;
}

.a-barco-rio-container {
    position: relative;
    background: transparent !important;
    padding: 0 !important;
    min-height: 300px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Fondo del río */
.a-fondo-rio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Cielo */
.a-cielo-rio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, var(--a-cielo-rio) 0%, #e8f4fd 100%);
    overflow: hidden;
}

/* Sol sobre el río */
.a-sol-rio {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #ffd700, #ff9d00);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    animation: a-brillarRio 3s ease-in-out infinite;
}

@keyframes a-brillarRio {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* Nubes */
.a-nubes-rio {
    position: absolute;
    top: 20px;
    left: -30px;
    width: 100%;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    filter: blur(6px);
    animation: a-moverNubesRio 25s linear infinite;
}

.a-nubes-rio::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 60px;
    width: 60px;
    height: 35px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    filter: blur(8px);
}

@keyframes a-moverNubesRio {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}

/* Vegetación a los lados */
.a-vegetacion {
    position: absolute;
    top: 0;
    width: 25%;
    height: 100%;
    z-index: 1;
}

.a-vegetacion.a-izquierda {
    left: 0;
    background: linear-gradient(135deg, var(--a-verde-campo) 0%, var(--a-verde-oscuro) 100%);
}

.a-vegetacion.a-derecha {
    right: 0;
    background: linear-gradient(225deg, var(--a-verde-campo) 0%, var(--a-verde-oscuro) 100%);
}

/* Árboles */
.a-arbol {
    position: absolute;
    width: 15px;
    height: 40px;
    background: #5c3a1e;
    border-radius: 3px;
}

.a-arbol::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -10px;
    width: 35px;
    height: 25px;
    background: #3d6b2e;
    border-radius: 50% 50% 50% 50%;
}

.a-vegetacion.a-izquierda .a-arbol:nth-child(1) {
    top: 15%;
    left: 20%;
}

.a-vegetacion.a-izquierda .a-arbol:nth-child(2) {
    top: 55%;
    left: 50%;
    transform: scale(0.8);
}

.a-vegetacion.a-derecha .a-arbol:nth-child(1) {
    top: 25%;
    right: 20%;
}

.a-vegetacion.a-derecha .a-arbol:nth-child(2) {
    top: 65%;
    right: 40%;
    transform: scale(0.7);
}

/* Arbustos */
.a-arbusto {
    position: absolute;
    width: 20px;
    height: 15px;
    background: #5a8f3a;
    border-radius: 50%;
}

.a-vegetacion.a-izquierda .a-arbusto {
    bottom: 20%;
    left: 30%;
}

.a-vegetacion.a-derecha .a-arbusto {
    bottom: 30%;
    right: 25%;
}

/* Pasto */
.a-pasto {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #5a8f3a,
        #5a8f3a 5px,
        var(--a-verde-campo) 5px,
        var(--a-verde-campo) 10px
    );
}

/* Río vertical en el centro */
.a-rio-vertical {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.a-agua {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--a-agua-rio) 0%, var(--a-agua-profundo) 50%, #1e5f8a 100%);
}

/* Ondas del río */
.a-ondas-rio {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 15px,
        rgba(255, 255, 255, 0.2) 15px,
        rgba(255, 255, 255, 0.2) 30px
    );
    animation: a-moverOndasRio 4s linear infinite reverse;
}

@keyframes a-moverOndasRio {
    from { background-position: 0 0; }
    to { background-position: 40px 0; }
}

/* Contenido sobre el fondo */
.a-barco-rio-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    min-height: 346px;
    background: rgba(0, 0, 0, 0.15);
}

.a-icono-barco-rio {
    font-size: 2rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.a-titulo-rio {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0.5rem 0;
    font-family: 'Playfair Display', serif;
}

.a-subtitulo-rio {
    color: #f4e4bc;
    font-size: 1.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

/* Barco minimalista sobre el río */
.a-barco-rio-minimalista {
    position: relative;
    width: 80px;
    height: 60px;
    margin: 0.3rem auto;
}

.a-casco-rio {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, #9b6e3e, #6b4519);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.a-mastil-rio {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 40px;
    background: #4a2a0e;
}

.a-vela-rio {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 25px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
}

.a-bandera-rio {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 8px;
    height: 5px;
    background: #ff5555;
    border-radius: 2px;
}

/* Reflejo del barco en el agua */
.a-reflejo-barco {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(3px);
    animation: a-reflejar 2s ease-in-out infinite;
}

@keyframes a-reflejar {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.6; transform: scaleY(1.1); }
}

/* Botón madera tipo rampa */
.a-btn-madera-rio {
    position: relative;
    background: linear-gradient(135deg, var(--a-madera-claro) 0%, #a0692e 50%, var(--a-madera-oscuro) 100%);
    border: none;
    border-radius: 11px;
    padding: 0.5rem 1.3rem;
    color: #f4e4bc;
    font-weight: bold;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    box-shadow: 0 4px 0 #4a2a0e;
}

.a-rampa-texto-rio {
    position: relative;
    z-index: 1;
}

.a-rampa-sombra-rio {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.a-btn-madera-rio:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #4a2a0e;
}

.a-btn-madera-rio:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a2a0e;
}

/* Mantener el efecto hover original de card-module */
.a-barco-rio-container:hover {
    transform: translateY(-3px);
    border-color: var(--a-purpura);
    box-shadow: 0 12px 20px rgba(104, 41, 208, 0.2);
}

/* Mantener estilos base del card-module */
.a-card-module {
    background: rgba(255, 252, 245, 0.466);
    border-radius: 10px;
    padding: 1rem;
    border: 0.5px solid var(--a-cian-profundo);
    transition: 0.25s;
    height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .a-summary-barco-rio {
        grid-column: span 6;
    }
    
    .a-barco-rio-minimalista {
        transform: scale(0.8);
    }
    
    .a-vegetacion {
        width: 20%;
    }
    
    .a-rio-vertical {
        left: 20%;
        width: 60%;
    }
}