@font-face {
    font-family: "futuralight";
    src: url("../fonts/futura_light.woff2") format("woff2"),
        url("../fonts/futura_light.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "futurabook";
    src: url("../fonts/futura_book.woff2") format("woff2"),
        url("../fonts/futura_book.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "futurabold";
    src: url("../fonts/futura_bold.woff2") format("woff2"),
        url("../fonts/futura_bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "sabon-roman";
    src: url("../fonts/sabon-roman.woff2") format("woff2"),
        url("../fonts/sabon-roman.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "sabon-bold";
    src: url("../fonts/sabon-bold.woff2") format("woff2"),
        url("../fonts/sabon-bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

:root {
    --ancho-contenedor: 1014px;
    --ancho-max-slider: 1240px;
}

[data-scroll-container] {
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "futuralight";
    background-color: #184963;
}

strong {
    font-family: "sabon-bold";
}

/* Menú fijo */
#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 137px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
    opacity: 1;
    pointer-events: auto;
}

#logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0px 0px 17px 0px;
}

#menu-opciones {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
    justify-content: center;
    text-transform: uppercase;
    font-size: 12px;
}

#menu-opciones a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
    border-bottom: 1px solid rgb(255 255 255 / 0%);
    padding-bottom: 2px;
}

.menu-color1 {
    background-color: #184963;
}

.menu-color1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0.3) 3px,
            transparent 4px,
            transparent 8px);
}

.menu-color2 {
    background-color: #fff;
}

.menu-color2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(to right,
            rgba(102, 202, 216, 0.5),
            rgba(102, 202, 216, 0.5) 3px,
            transparent 4px,
            transparent 8px);
}

.menu-color3 {
    background-color: #66cad8;
}

.menu-color3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.5),
            rgba(255, 255, 255, 0.5) 3px,
            transparent 4px,
            transparent 8px);
}

.menu-color2 a {
    color: #1b4861 !important;
}

/* Opción activa */
#menu-opciones a:hover {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

#menu-opciones a.active {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* Estilo de secciones */
.section {
    height: 100vh;
    display: grid;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.sectionani1 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    background-color: #fff;
}

.sectionani2 {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#seccion1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120vh;
    padding: 0;
    position: relative;
}

#seccion2 {
    background-color: #fff;
    height: 120vh;
    position: relative;
    padding: 0;
}

#seccion3 {
    background-color: #66cad8;
    height: auto;
    padding: 300px 0;
    position: relative;
}

#seccion4 {
    background-color: #66cad8;
    height: auto;
    padding: 300px 0;
}

#seccion5 {
    background-color: #66cad8;
    height: auto;
    padding: 300px 0;
}

#seccion6 {
    background-color: #66cad8;
    height: auto;
    padding: 300px 0;
}

#seccion7 {
    height: 120vh;
    position: relative;
    overflow: hidden;
}

#seccion8 {
    background-color: #184963;
    height: 70vh;
}

.seccion_contenido {
    width: var(--ancho-contenedor);
}

.seccion345 h2 {
    color: #fff;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 70px;
    letter-spacing: 7px;
}

.seccion345 p {
    color: #fff;
    font-family: "sabon-roman";
    margin-bottom: 1rem;
    text-align: left;
    font-size: 24px;
    line-height: 48px;
}

.seccion345 .nombreequipo {
    font-family: "futurabold";
}

.seccion6 h2 {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3rem;
    text-align: center;
    font-size: 70px;
    letter-spacing: 7px;
}

.seccion6 p {
    color: #fff;
    font-family: "sabon-roman";
    margin-bottom: 1rem;
    text-align: left;
    font-size: 24px;
    line-height: 48px;
}

.seccion7 h2 {
    color: #75c9da;
    margin-bottom: 1rem;
    text-align: left;
    font-family: "futurabold";
    font-size: 24px;
}

.seccion7 p {
    color: #75c9da;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 24px;
}

.seccion7 img {
    width: 52px;
    margin: 12px 40px 12px 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.seccion7 a {
    color: #75c9da;
    text-decoration: none;
}

.seccion7 img:hover {
    opacity: 1;
}

.seccion0bloque1 {
    height: 100vh;
    background-color: #184963;
    background-size: auto 100%;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.seccion0bloque1 img {
    width: 180px;
    align-self: flex-start;
    margin-top: -121px;
    margin-left: 0px;
}

.giro_esfera {
    animation: crecer 1s ease-out forwards, girar 5s linear infinite;
    animation-delay: 0s, 1s;
}

@keyframes crecer {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes girar {
    from {
        transform: scale(1) rotate(-0deg);
    }

    to {
        transform: scale(1) rotate(-360deg);
    }
}

.seccion0bloque2 {
    height: 100vh;
    background: #184963;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seccion0contenido {
    width: var(--ancho-contenedor);
    margin: auto;
}

.bloque0titulo {
    font-size: 68px;
    color: #f7941e;
    letter-spacing: 4px;
    text-align: center;
}

.bloque0p1,
.bloque0p2 {
    font-size: 34px;
    font-family: "sabon-roman";
    text-align: left;
    margin-top: 40px;
    color: #fff;
}

.seccion1bloque1 {
    height: 100vh;
}

.seccion1bloque1 video {
    position: relative;
    top: 50%;
    left: 50%;
    height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    width: 100%;
    z-index: 0;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 0.1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.videointro {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.intro-cerrar {
    position: fixed;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.close-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    position: relative;
    text-decoration: none;
}

.close-link::before,
.close-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 2px;
    background-color: #7fc7d7;
    transition: background-color 0.3s ease;
}

.close-link::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-link::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-link:hover::before,
.close-link:hover::after {
    background-color: #fff;
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 2.2rem;
    color: currentColor;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-button:hover {
    opacity: 1;
}

.nav-prev {
    left: 4%;
    opacity: 0.2;
    /* más opaco */
    transition: opacity 0.3s ease;
}

.nav-prev:hover {
    opacity: 0.4;
}

.nav-next {
    right: 4%;
    animation: pulse 1.5s infinite ease-in-out;
}

.dots {
    position: absolute;
    bottom: 47px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.dots .dot.active {
    background-color: #f39200;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translateY(-50%) scale(1.7);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

.lottie-container {
    width: 100%;
    max-width: var(--ancho-max-slider);
    height: auto;
    margin: 0 auto;
    pointer-events: none;
}

.grilla-imagenes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    width: var(--ancho-contenedor);
}

.celda {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.celda img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    padding: 60px 0;
}

.acordeon .item {
    border-bottom: 1px solid rgb(255 255 255 / 30%);
    padding: 10px 0;
}

.acordeon h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "futurabold";
    font-size: 24px;
    margin: 0;
    cursor: pointer;
}

.toggle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #fff;
    color: #66cad8;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.toggle-btn:hover {
    background-color: #fff;
}

.contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.item.active .contenido {
    max-height: 200px;
}

.item .contenido p {
    margin: 10px 0 0 0;
    padding-left: 10px;
    color: #fff;
    opacity: 0;
    font-size: 24px;
    font-family: "sabon-roman";
    transition: opacity 0.3s ease;
}

.item.active .contenido p {
    opacity: 1;
}

#flotante {
    position: absolute;
}

#flotante img {
    width: 200px;
}

.flotante1 {
    top: 30%;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.flotante2 {
    top: 30%;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.flotante3 {
    top: 30%;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.slider-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
}

/* Ajustar el contenedor <picture> */
.slider-fondo .slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    padding: 0;
    display: flex;
}

/* Forzar que el <img> dentro de <picture> se escale correctamente */
.slider-fondo .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-fondo-controles {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.arrow {
    background: none;
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s ease;
}

.arrow:hover {
    color: rgba(255, 255, 255, 0.6);
}

.slider-dots {
    position: absolute;
    bottom: 12rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.slider-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots button.active {
    background: rgba(255, 255, 255, 1);
}

.desktop-menu {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1002;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #3fa7b0;
    border-radius: 2px;
    transition: all 0.4s ease;
    transform-origin: center;
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transform: translateY(-100%);
    visibility: hidden;
}

#mobile-menu.menu-open {
    pointer-events: auto;
    visibility: visible;
}

/* Opciones apiladas */
#mobile-opciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#mobile-opciones a {
    display: block;
    margin: 0.1rem 0;
    font-size: 1.5rem;
    text-decoration: none;
    color: #3FA7B0;
}

/* Contenedor del carrusel */
.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    height: 100%;
    z-index: 0;
    white-space: nowrap;
}

/* Imágenes que se adaptan a alto, y el ancho se calcula automáticamente */
.carousel-img {
    height: 100%;
    width: auto;
    /* Para mantener proporción original */
    flex-shrink: 0;
}

/* Animación */
@keyframes carouselLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

body.menu-open {
    overflow: hidden;
}

.mobile {
    display: none;
}

.desk {
    display: flex;
}

@media screen and (max-width: 1024px) {
    .desktop-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media screen and (min-width: 1025px) {
    #mobile-menu {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #seccion1 {
        height: auto;
        padding: 10vh 0;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3vh 5vw;
    }
}

@media (max-width: 900px) {
    .grilla-imagenes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grilla-imagenes {
        grid-template-columns: 1fr;
    }
}

/************************************************************************************
BIG SCREEN
*************************************************************************************/
/* 1930px or higher */
@media screen and (min-width: 1930px) {}

/************************************************************************************
TABLET V
*************************************************************************************/
/* 1366px or less */
@media screen and (max-width: 1366px) {}

/************************************************************************************
TABLET V2
*************************************************************************************/
/* 768px or less */
@media screen and (max-width: 768px) {}

/************************************************************************************
TABLET H
*************************************************************************************/
/* 1024px or less */
@media screen and (max-width: 1024px) {}

/************************************************************************************
MOBIL H
*************************************************************************************/
/* 640px or less */
@media screen and (max-width: 640px) {}

/************************************************************************************
MOBIL V
*************************************************************************************/
/* 440px or less */
@media screen and (max-width: 440px) {
    :root {
        --ancho-contenedor: 100%;
        --ancho-max-slider: 100%;
    }

    .seccion_contenido {
        padding: 40px;
    }

    .item.active .contenido {
        max-height: 300px;
    }

    .acordeon h3 {
        font-size: 14px;
    }

    #flotante {
        display: none;
    }

    .celda img {
        padding: 20px 0;
    }

    .seccion7 img {
        width: 42px;
    }

    .seccion345 h2 {
        font-size: 34px;
        letter-spacing: 2px;
    }

    .seccion6 h2 {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .seccion7 img {
        margin: 12px 22px 12px 0;
    }

    .dots {
        bottom: -4px;
    }

    .dots .dot {
        width: 7px;
        height: 7px;
    }

    #mobile-opciones {
        gap: 1rem;
        margin-top: -40px;
    }

    .mobile {
        display: flex;
    }

    .desk {
        display: none;
    }

    .slider-dots {
        bottom: 9rem;
    }

    #seccion7 {
        position: relative;
        overflow: hidden;
        height: 100vh;
        /* Alto igual a la pantalla */
    }
}

/* ========================
   RESPONSIVE STYLES
   ======================== */
/* Ajustes generales de texto y layout */
body {
    font-size: 1rem;
    line-height: 1.5;
}

.bloque0titulo {
    font-size: clamp(2rem, 6vw, 4.25rem);
}

.bloque0p1,
.bloque0p2 {
    font-size: clamp(1rem, 3vw, 2.1rem);
    line-height: 1.2;
}

.seccion345 p,
.seccion6 p,
.seccion7 p,
.item .contenido p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.4;
}

/* Secciones con altura flexible */
.section,
.sectionani1,
.seccion0bloque1,
.seccion0bloque2 {
    min-height: 100vh;
    padding: 5vh 5vw;
}

/* Grilla de imágenes con espaciado */
.grilla-imagenes {
    gap: 16px;
    padding: 0 5vw;
}

/* Ajustes para el menú en móviles */
@media (max-width: 768px) {
    #menu {
        height: auto;
        padding: 10px;
    }

    #menu-opciones {
        flex-direction: column;
        gap: 20px;
        font-size: 14px;
    }
}

/* Slider responsive */
@media (max-width: 768px) {
    .nav-button {
        font-size: 1.5rem;
    }

    .dots {
        bottom: 20px;
    }
}

/* Secciones con padding adaptable */
#seccion3,
#seccion4,
#seccion5,
#seccion6 {
    padding: clamp(100px, 0vh, 300px) 0;
}

/* Ajustes a alturas de secciones */
@media (max-width: 768px) {
    #seccion1 {
        height: auto;
        padding: 10vh 0;
    }
}

/* Padding de sección genérica */
@media (max-width: 600px) {
    section {
        padding: 3vh 7vw;
    }

    .seccion0bloque2 {
        height: 60vh;
        min-height: 60vh;
        position: relative;
    }

    .seccion0contenido {
        position: absolute;
        bottom: 0;
    }

    #seccion1 {
        height: auto;
        padding: 0;
    }
}

/* Rejilla adaptable */
@media (max-width: 900px) {
    .grilla-imagenes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grilla-imagenes {
        grid-template-columns: 1fr;
    }
}