/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Zalando Sans", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #000408;
}
.footer {
    text-align: center;
    padding: 20px 0 150px 0;

}

.footer p {
    color: #fff;
    font-size: 12px;
    font-weight: 300;
}
/* Sección Title con video de fondo */
.title {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.title-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(0, 0, 0, 0.3) 100%);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    max-width: 600px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.title-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    z-index: 1;
}

.title-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.title-overlay h1 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-overlay p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    opacity: 0.9;
}

/* Responsividad para la sección title */
@media (max-width: 768px) {
    .title-overlay {
        max-width: 90%;
        padding: 30px 20px;
    }

    .title-overlay h1 {
        font-size: 2.5rem;
    }

    .title-overlay p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .title-overlay h1 {
        font-size: 2rem;
    }

    .title-overlay p {
        font-size: 1rem;
    }
}

/* ROV Indicator - Animación de scroll */
.rov-indicator {
    position: absolute;
    bottom: 18%;
    right: 0;
    left: 0;
    z-index: 10;
    text-align:center;
    opacity: 1;
    animation: rovDescend 3s ease-in-out infinite;
    pointer-events: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.rov-indicator a {
    display: inline-block;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.rov-indicator img {
    transition: all 0.3s ease;
}

/* Animación de descenso del ROV */
@keyframes rovDescend {
    0% {
        transform: translateY(-20px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px);
        opacity: 0.6;
    }
}



/* Responsividad para el ROV indicator */
@media (max-width: 768px) {
    .rov-indicator {
        bottom: 15%;
         right: 0;
        left: 0;
    }

    .rov-indicator img {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .rov-indicator {
        bottom: 15%;
        right: 0;
        left: 0;
    }

    .rov-indicator img {
        width: 120px;
    }
}


.intro {
        background: #012;
        display: flex;
        flex-direction: column;
        align-items: left;
        margin: 0 auto;
        padding-top: 40px;
        font-size:16px;
}

.intro p {
color:#fff;
padding: 10px;
text-align: left;
       max-width: 1200px;
       margin: 20px auto;
}


/* Contenedor Principal del Océano */
.ocean-container {
    min-height: 100vh;
    z-index: 1;
}

/* Secciones de Profundidad */
.depth-section {
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}



/* Elementos identificadores específicos */
.wave-pattern {
    background: rgba(64, 224, 208, 0.2);
    border: 2px solid #40E0D0;
}

.twilight-glow {
    background: rgba(0, 119, 190, 0.2);
    border: 2px solid #0077BE;
    box-shadow: 0 0 20px rgba(0, 119, 190, 0.4);
}

.deep-shadow {
    background: rgba(0, 51, 102, 0.3);
    border: 2px solid #003366;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.abyss-border {
    background: rgba(0, 17, 34, 0.4);
    border: 2px solid #001122;
    box-shadow: 0 0 30px rgba(0, 17, 34, 0.6);
}

.trench-marker {
    background: rgba(0, 0, 17, 0.5);
    border: 2px solid #000011;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

/* Contenedor de animales - Layout de columna única */
.animals-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
}

/* Contenedor de cada animal sin tarjeta */
.animal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 95vw;
    max-width: none;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.animal-card:hover {
    transform: translateY(-5px);
}

.animal-image {
    width: 80vw;
    height: auto;
    border-radius: 12px;
    
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}

.animal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animal-image:hover::before {
    opacity: 1;
}





/* Información del animal - Liquid Glass Effect */
.animal-info {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 25px;
    margin-top: 5px;
    width: 80vw;
    max-width: 700px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.animal-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    z-index: 1;
}

.animal-info::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.animal-info:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.animal-description {
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: center;
}

.animal-depth {
    font-size: 15px;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: 300;
}

.animal-credit {
    font-size: 13px;
    color: #FFFFFF;
    font-style: italic;
    opacity: 0.8;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    margin-top: 10px;
}

/* Animaciones */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.depth-meter:hover {
    animation: pulse 2s infinite;
}

/* Responsividad mejorada */
@media (max-width: 1024px) {
    .zone-identifier {
        margin: 15px;
        padding: 20px;
    }

    .zone-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {

    .animal-description {
        text-align: left;
        font-size: 15px;
    }


    .animals-container {
        gap: 15px;
        padding: 20px 0px;
        max-width: 100%;
    }

    .animal-card {
        max-width: 100%;
    }

    .animal-image {
        width: 80%;
    }

    .animal-info {
        max-width: min(80%, 700px);
        padding: 20px;
    }

    .animal-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .depth-meter {
        width: 100px;
        height: 50px;
        top: 10px;
        right: 10px;
    }

    .depth-value {
        font-size: 16px;
    }

    .depth-unit {
        font-size: 8px;
    }

    .depth-section {
        padding: 40px 0px;
    }

    .animals-container {
        padding: 15px 0px;
        gap: 12px;
        max-width: 100%;
    }

    .animal-card {
        max-width: 100%;
    }

    .animal-image {
        width: 100%;
    }

    .animal-info {
        max-width: min(100%, 700px);
        padding: 15px 10px;
    }

    .animal-name {
        font-size: 1.1rem;
    }
}

/* Mejoras para pantallas muy pequeñas */
@media (max-width: 320px) {
    .depth-meter {
        width: 90px;
        height: 45px;
    }

    .depth-value {
        font-size: 14px;
    }

    .depth-unit {
        font-size: 7px;
    }

    .zone-header h2 {
        font-size: 1.3rem;
    }

    .animal-card {
        margin: 5px;
    }
}

/* ===== ESTILOS ZOOMIST PERSONALIZADOS ===== */

/* Contenedor principal de zoom */
.zoomist-container {
    position: relative;
    width: 80vw;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
}

.zoomist-container:active {
    cursor: grabbing;
}

/* Wrapper de Zoomist */
.zoomist-wrapper {
    width: 100%;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Imagen dentro de Zoomist */
.zoomist-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Controles de zoom flotantes */
.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoomist-container:hover .zoom-controls {
    opacity: 1;
    transform: translateY(0);
}

/* Botones de zoom submarinos */
.zoom-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(64, 224, 208, 0.9) 0%,
        rgba(0, 119, 190, 0.9) 100%);
    backdrop-filter: blur(10px) saturate(180%);
    color: #FFFFFF;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(64, 224, 208, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.zoom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg,
        rgba(64, 224, 208, 1) 0%,
        rgba(0, 119, 190, 1) 100%);
    box-shadow:
        0 6px 20px rgba(64, 224, 208, 0.4),
        0 3px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.zoom-btn:hover::before {
    opacity: 1;
}

.zoom-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow:
        0 2px 8px rgba(64, 224, 208, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Efectos específicos para cada botón */
.zoom-in {
    background: linear-gradient(135deg,
        rgba(64, 224, 208, 0.9) 0%,
        rgba(0, 191, 255, 0.9) 100%);
}

.zoom-out {
    background: linear-gradient(135deg,
        rgba(0, 119, 190, 0.9) 0%,
        rgba(64, 224, 208, 0.9) 100%);
}

/* Responsividad para controles de zoom */
@media (max-width: 768px) {
    .zoom-controls {
        top: 10px;
        right: 10px;
        gap: 20px;
    }
    
    .zoom-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .zoomist-container {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .zoom-controls {
        top: 8px;
        right: 8px;
        gap: 20px;
    }
    
    .zoom-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .zoomist-container {
        width: 100%;
    }
}

/* Efectos de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de paralaje sutil - solo para secciones principales del océano */
.ocean-section.depth-section {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .ocean-section.depth-section {
        background-attachment: scroll;
    }
}

/* ===== HUD FUTURISTA ===== */
.hud-container {
    position: fixed;
    bottom: 0px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    display: block;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hud-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.hud-panel {
    display: flex;
    gap: 2px;
    /* Liquid Glass Effect - iOS Style */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(0, 255, 255, 0.08) 50%,
        rgba(0, 200, 255, 0.06) 75%,
        rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    padding: 15px;
    width: auto;
    min-width: 100%;
    height: 125px;
    box-sizing: border-box;
    /* Glass reflection effect */
    position: relative;
    overflow: hidden;
    /* Subtle shadow for depth */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass reflection overlay */
.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.02) 60%,
        transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
    z-index: 1;
}

/* Subtle animated shimmer effect */
.hud-panel::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0.3;
    }
}


.hud-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 140px;
    height: 100%;
    flex: 1;
    padding: 8px;
    position: relative;
    z-index: 2;

}



.hud-label {
    font-family: "Zalando Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #00FFFF;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
    opacity: 0.95;
    text-transform: uppercase;
}

.hud-value {
    font-family: "Zalando Sans", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #00FFFF;

    letter-spacing: 2px;
    line-height: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: digitalFlicker 4s ease-in-out infinite;
    background: linear-gradient(135deg, #00FFFF, #00CCCC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



@keyframes digitalFlicker {
    0%, 95%, 100% {
        opacity: 1;
    }
    96%, 98% {
        opacity: 0.8;
    }
}

.hud-unit {
    font-family: "Zalando Sans", sans-serif;
    font-size: 14px;
    color: #00CCCC;
    margin-top: 4px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 204, 204, 0.6);
    opacity: 0.8;
}







/* Ondas oceánicas de fondo mejoradas */
.ocean-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 300%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.1) 20%,
        rgba(0, 255, 255, 0.3) 40%,
        rgba(0, 255, 255, 0.5) 50%,
        rgba(0, 255, 255, 0.3) 60%,
        rgba(0, 255, 255, 0.1) 80%,
        transparent 100%);
    border-radius: 2px;
    animation: waveMove 12s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.wave:nth-child(1) {
    top: 15%;
    animation-delay: 0s;
    opacity: 0.8;
    height: 2px;
}

.wave:nth-child(2) {
    top: 35%;
    animation-delay: -3s;
    opacity: 0.6;
    height: 3px;
}

.wave:nth-child(3) {
    top: 55%;
    animation-delay: -6s;
    opacity: 0.7;
    height: 2px;
}

.wave:nth-child(4) {
    top: 75%;
    animation-delay: -9s;
    opacity: 0.5;
    height: 4px;
}

.wave:nth-child(5) {
    top: 90%;
    animation-delay: -1.5s;
    opacity: 0.4;
    height: 2px;
}

@keyframes waveMove {
    0% {
        transform: translateX(-100%) scaleY(1);
    }
    25% {
        transform: translateX(-75%) scaleY(1.2);
    }
    50% {
        transform: translateX(-50%) scaleY(0.8);
    }
    75% {
        transform: translateX(-25%) scaleY(1.1);
    }
    100% {
        transform: translateX(0%) scaleY(1);
    }
}

/* Responsividad del HUD */
@media (max-width: 768px) {
    .hud-panel {
        gap: 15px;
        height: 115px;
        padding: 12px 16px;
        max-width:90%;
    }

    .hud-container {
   left: 0;
        right: 0;
        max-width: 90%;
                margin: 0 auto;
    }

    .hud-section {
        min-width: auto;
    }

    .hud-value {
        font-size: 22px;
    }

    .radar-screen {
        width: 60px;
        height: 60px;
    }
}



/* ===== EFECTOS SUBMARINOS ===== */

/* Contenedor principal de efectos submarinos */
.underwater-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Partículas flotantes (plancton/burbujas) */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(0, 255, 255, 0.4);
    border-radius: 50%;
    box-shadow:
        0 0 6px rgba(0, 255, 255, 0.3),
        20px 30px 0 rgba(0, 255, 255, 0.2),
        40px 70px 0 rgba(255, 255, 255, 0.1),
        90px 40px 0 rgba(0, 255, 255, 0.3),
        120px 80px 0 rgba(255, 255, 255, 0.2),
        150px 20px 0 rgba(0, 255, 255, 0.1),
        180px 60px 0 rgba(255, 255, 255, 0.3),
        220px 10px 0 rgba(0, 255, 255, 0.2),
        260px 90px 0 rgba(255, 255, 255, 0.1),
        300px 50px 0 rgba(0, 255, 255, 0.3),
        340px 30px 0 rgba(255, 255, 255, 0.2),
        380px 70px 0 rgba(0, 255, 255, 0.1),
        420px 20px 0 rgba(255, 255, 255, 0.3),
        460px 80px 0 rgba(0, 255, 255, 0.2),
        500px 40px 0 rgba(255, 255, 255, 0.1);
    animation: floatParticles 20s linear infinite;
}

.floating-particles::after {
    animation-delay: -10s;
    transform: translateX(50vw);
}

@keyframes floatParticles {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(20px);
        opacity: 0;
    }
}

/* Rayos de luz solar */
.sunlight-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.ray {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 120%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(0, 255, 255, 0.2) 60%,
        transparent 100%);
    transform-origin: top center;
    animation: rayMovement 15s ease-in-out infinite;
}

.ray-1 {
    left: 20%;
    animation-delay: 0s;
    transform: rotate(-5deg);
}

.ray-2 {
    left: 35%;
    animation-delay: -3s;
    transform: rotate(3deg);
}

.ray-3 {
    left: 50%;
    animation-delay: -6s;
    transform: rotate(-2deg);
}

.ray-4 {
    left: 65%;
    animation-delay: -9s;
    transform: rotate(4deg);
}

.ray-5 {
    left: 80%;
    animation-delay: -12s;
    transform: rotate(-3deg);
}

@keyframes rayMovement {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(var(--rotation, 0deg)) scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(calc(var(--rotation, 0deg) + 2deg)) scaleY(1.1);
    }
}

/* Ondas de agua */
.water-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.water-wave {
    position: absolute;
    width: 100%;
    height: 100px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(0, 255, 255, 0.05) 30%,
        transparent 70%);
    border-radius: 50%;
    animation: waveRipple 8s ease-in-out infinite;
}

.water-wave.wave-1 {
    top: 20%;
    left: -20%;
    animation-delay: 0s;
}

.water-wave.wave-2 {
    top: 60%;
    left: -30%;
    animation-delay: -3s;
}

.water-wave.wave-3 {
    top: 80%;
    left: -10%;
    animation-delay: -6s;
}

@keyframes waveRipple {
    0% {
        transform: scale(0.5) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    80% {
        opacity: 0.1;
    }
    100% {
        transform: scale(2) translateX(50vw);
        opacity: 0;
    }
}

/* Corrientes marinas */
.ocean-currents {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.current {
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 255, 0.3) 25%,
        rgba(0, 255, 255, 0.6) 50%,
        rgba(0, 255, 255, 0.3) 75%,
        transparent 100%);
    animation: currentFlow 25s linear infinite;
}

.current-1 {
    top: 30%;
    animation-delay: 0s;
}

.current-2 {
    top: 70%;
    animation-delay: -12s;
}

@keyframes currentFlow {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Efectos que cambian según la profundidad */
.depth-effects {
    transition: all 0.5s ease;
}

/* Efectos para diferentes profundidades */
.depth-surface .underwater-effects {
    opacity: 0.8;
}

.depth-surface .sunlight-rays {
    opacity: 0.6;
}

.depth-shallow .underwater-effects {
    opacity: 0.6;
}

.depth-shallow .sunlight-rays {
    opacity: 0.4;
}

.depth-medium .underwater-effects {
    opacity: 0.4;
}

.depth-medium .sunlight-rays {
    opacity: 0.2;
}

.depth-deep .underwater-effects {
    opacity: 0.3;
}

.depth-deep .sunlight-rays {
    opacity: 0.1;
}

.depth-abyss .underwater-effects {
    opacity: 0.2;
}

.depth-abyss .sunlight-rays {
    opacity: 0.05;
}

/* Responsividad para efectos submarinos */
@media (max-width: 768px) {
    .floating-particles::before,
    .floating-particles::after {
        box-shadow:
            0 0 4px rgba(0, 255, 255, 0.3),
            20px 30px 0 rgba(0, 255, 255, 0.2),
            40px 70px 0 rgba(255, 255, 255, 0.1),
            90px 40px 0 rgba(0, 255, 255, 0.3),
            120px 80px 0 rgba(255, 255, 255, 0.2),
            150px 20px 0 rgba(0, 255, 255, 0.1);
    }

    .ray {
        width: 1px;
    }
}

@media (max-width: 480px) {
    .underwater-effects {
        opacity: 0.7;
    }

    .floating-particles::before,
    .floating-particles::after {
        box-shadow:
            0 0 3px rgba(0, 255, 255, 0.3),
            20px 30px 0 rgba(0, 255, 255, 0.2),
            40px 70px 0 rgba(255, 255, 255, 0.1),
            90px 40px 0 rgba(0, 255, 255, 0.3);
    }
}

/* Control de Audio Flotante */
.floating-audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.audio-toggle:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    color: rgba(0, 255, 255, 1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.audio-toggle.muted {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.audio-toggle.muted:hover {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.audio-icon {
    transition: all 0.3s ease;
}

.audio-toggle.muted .sound-waves {
    opacity: 0.3;
    stroke-dasharray: 3, 3;
}

/* Responsividad para el control flotante */
@media (max-width: 768px) {
    .floating-audio-control {
        top: 15px;
        right: 15px;
    }
    
    .audio-toggle {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .floating-audio-control {
        top: 10px;
        right: 10px;
    }
    
    .audio-toggle {
        width: 40px;
        height: 40px;
    }
    
    .audio-icon {
        width: 18px;
        height: 18px;
    }
}