/* Importar fuentes personalizadas */
@font-face {
    font-family: 'FagoExtraBoldItalic';
    src: url('font/FagoCoTf-ExtraBoldItalic_16789.ttf') format('truetype');
    font-weight: normal; /* Define el peso de la fuente si es necesario */
    font-style: italic;
}
@font-face {
    font-family: 'FagoMedium';
    src: url('font/FagoCoTf-Medium_16792.ttf') format('truetype');
    font-weight: normal; /* Define el peso de la fuente si es necesario */
    font-style: normal;
}
@font-face {
    font-family: 'FagoBold'; /* Si tienes una versión bold separada */
    src: url('font/FagoCoTf-Bold.ttf') format('truetype'); /* Ajusta el nombre de archivo */
    font-weight: bold;
    font-style: normal;
}


/* Estilos Generales */
body {
    margin: 0;
    font-family: 'FagoMedium', sans-serif; /* Fallback font */
    background-color: #000; /* Negro sólido */
    color: #fff; /* Texto blanco por defecto */
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

/* Ocultar elementos visualmente pero mantener para accesibilidad */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Clases de utilidad */
.highlight {
    color: #baff00; /* Verde neón */
    font-weight: bold; /* Si tu fuente tiene un peso bold específico */
}

.container {
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. Hero Section */
.hero-section {
    background-color: #000; /* Fondo negro */
    text-align: center;
    padding-bottom: 50px; /* Espacio debajo de las botellas */
    position: relative; /* Para posicionamiento absoluto de elementos internos */
    overflow: hidden; /* Para contener los elementos flotantes si los hubiera y el brillo */
}


.header-top-bar {
    display: flex;
    justify-content: space-between; /* Espacia el logo-container y el sello */
    align-items: center;
    padding: 20px;
    max-width: 1200px; /* Asegura que no se estire demasiado */
    margin: 0 auto; /* Centra la barra superior */
    position: relative; /* Para que el seal-icon sea relativo a esto si no queremos absolute al body */
    z-index: 10; /* Asegura que esté por encima de las botellas */
}

.logo-container {
    display: flex; /* Para alinear el logo y el texto "HIDRO ENERGY" */
    align-items: center;
    gap: 10px; /* Espacio entre el logo y el texto */
}

.logo-revive {
    width: 280px; /* Ajusta el tamaño del logo según el diseño */
    height: auto;
}

.hidro-energy-text {
    font-family: 'FagoExtraBoldItalic', sans-serif; /* O la fuente que uses para ese texto */
    font-size: 28px; /* Ajusta el tamaño según el diseño */
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(186, 255, 0, 0.5); /* Sutil resplandor como en el diseño */
}


.seal-icon {
    width: 225px; /* Tamaño del sello, ajusta según el diseño */
    height: auto;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Apila las botellas y el texto */
    align-items: center; /* Centra horizontalmente */
    justify-content: center;
    /* Quita el padding-top si quieres que la imagen empiece más arriba */
    /* padding-top: 20px; */
    position: relative;
    z-index: 5;
    /* Añadir overflow: hidden; aquí también podría ayudar a contener el brillo */
    overflow: hidden; 
}

.hero-bottles-img {
    width: 100vw; /* **NUEVO/MODIFICADO:** Ocupa el 100% del ancho del viewport */
    max-width: none; /* **NUEVO:** Elimina cualquier límite de ancho máximo */
    height: auto; /* Mantener la proporción de la imagen */
    margin-top: 30px;
    margin-bottom: 30px; /* Espacio entre las botellas y el texto de imagen */
    position: relative; /* Puedes probar con 'absolute' si necesitas un posicionamiento muy específico */
    left: 50%; /* Centrar la imagen si es más ancha que el viewport */
    transform: translateX(-50%); /* Ajuste para centrar horizontalmente */
    /* Si la imagen tiene un fondo transparente y quieres que el fondo negro abarque todo: */
    display: block; /* Asegura que la imagen sea un bloque */
    object-fit: cover; /* Si la imagen es más grande que su contenedor, la recorta para cubrir */
    /* Ajusta margin-top o position top si quieres que se solape con el header-top-bar */
    /* margin-top: -XXpx; */
}

.hero-description-img {
    width: 90% !important;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* Por defecto ocultamos el header escritorio */
.hero-desktop {
    display: none;
}

.hero-mobile {
    display: block;
    background-color: #000;
    text-align: center;
}

.hero-mobile .header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Asegura alineación vertical */
    padding: 0 20px;
}

.hero-mobile .logo-revive{
    width: 180px;
    height: auto;
}
.hero-mobile .seal-icon {
    width: 100px;
    height: auto;
}

.hero-mobile img {
    width: 100%;
    height: auto;
}

/* Header escritorio visible en pantallas grandes */
@media (min-width: 1024px) {
    .hero-mobile {
        display: none;
    }

    .hero-desktop {
        display: block;
        background-color: #000;
        color: #fff;
    }

    .hero-desktop-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 100px;
    }

    .logo-revive-desktop {
        height: 160px;
    }

    .hero-menu {
        background-color: #86ff2a; /* color verde */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 8px;
        padding: 8px 20px;
        gap: 100px;
    }

    .hero-menu a {
        text-decoration: none;
        color: #000;
        font-weight: 700;
        font-size: 20px;
        text-transform: uppercase;
    }

    .hero-desktop-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 30px;
        gap: 40px;
    }

    .hero-img-left {
        max-width: 60%;
        height: auto;
    }

    .hero-img-right {
        text-align: center;
        padding-right: 90px;
        margin-bottom: 260px;
    }

    .sello-revive-desktop {
        max-width: 225px;
        margin-bottom: 20px;
    }

    .texto-hero-desktop {
        max-width: 100%;
        height: auto;
    }

    .beneficios-grid {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px !important;
        flex-wrap: nowrap !important;
        max-width: 2000px !important;
    }
}

/* 2. Sección de Beneficios */
.benefits-section {
    background-color: #000; /* Fondo negro */
    padding: 60px 0;
    text-align: center;
    position: relative;
    /* El fondo del diseño tiene un gradiente de verde, puedes replicarlo con background-image */
    background: #000000;
}

.beneficios-title-image {
    background: url('img/Titulo-beneficios.png') no-repeat center;
    background-size: contain;
    height: 70px; /* Altura de la imagen del título */
    width: 100%;
    max-width: 300px; /* Ancho máximo para el título de la imagen */
    margin: 0 auto 50px auto; /* Centrar y añadir margen inferior */
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    max-width: 800px;
    margin: 0 auto;
}

.beneficio-item {
    text-align: center;
}

.beneficio-item img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto;
}


/* 3. Sección de Video */
.video-section {
    background-image: url('../img/fondo-verde-video.png');
    background-size: 100% 100%; /* Cubre 100% ancho y alto */
    background-position: center;
    background-repeat: no-repeat;
    padding: 170px 0; /* Elimina padding lateral */
    text-align: center;
    position: relative;
}

.video-player-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
}

.video-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

.play-button {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease-in-out;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-button svg {
    color: #baff00;
    width: 40px;
    height: 40px;
    margin-left: 5px;
}

.video-title-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'FagoExtraBoldItalic', sans-serif;
    font-size: 20px;
    color: #fff;
    text-transform: uppercase;
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 5px;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}

.green-divider {
    width: 100%;
    height: 3px;
    background-color: #7EFF00; /* Verde neón o el color que estés usando en el diseño */
    margin: 0 auto;
}

/* 4. Sección de Producto Individual / Carrusel (Sabor) */
.flavor-carousel-container {
    position: relative;
    width: 100%;
    margin: -110px auto 70px auto;
    text-align: center;
}

.flavor-slide {
    display: none;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.flavor-slide.active {
    display: block;
    margin: 0 auto;
}

/* Zonas invisibles para navegar */
.carousel-zone {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
}

.left-zone {
    left: 0;
}

.right-zone {
    right: 0;
}


/* 5. Footer */
.main-footer {
    background-color: #000;
    padding: 0 20px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px; /* Espacio entre los logos */
    flex-wrap: wrap; /* Permite que los logos se envuelvan en pantallas pequeñas */
    padding: 10px 100px;
}

@media screen and (max-width: 768px) {
    .footer-logos {
        gap: 100px;
        padding: 30px 10px;
    }

    .footer-logo {
        max-width: 60%;
    }
}

.footer-logo {
    height: 100px; /* Altura de los logos del footer */
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .hidro-energy-text {
        font-size: 22px;
    }

    .seal-icon {
        width: 60px;
    }

    .hero-description {
        font-size: 20px;
    }

    .beneficio-item {
        width: 90px;
    }

    .beneficio-item img {
        width: 200px;
    }

    .beneficio-item p {
        font-size: 14px;
    }

    .video-player-container {
        max-width: 100%;
        margin: 0 12px; /* Eliminar margen para que ocupe todo el ancho */
        border-radius: 0; /* Quitar redondeo para pantallas pequeñas */
    }

    .video-player-container{
       width: auto; 
    }

    .play-button {
        width: 60px;
        height: 60px;
    }
    .play-button svg {
        width: 30px;
        height: 30px;
    }
    .video-title-overlay {
        font-size: 16px;
        bottom: 10px;
    }

    .product-flavor-section {
        padding: 40px 10px; /* Menos padding en móviles */
    }

    .flavor-carousel-container {
        flex-direction: column; /* Apila las flechas si es necesario en móviles */
        gap: 20px;
    }

    .carousel-arrow {
        position: static; /* Las flechas se vuelven estáticas */
        transform: none;
    }

    .flavor-bottle-img {
        max-width: 250px;
    }

    .flavor-info h2 {
        font-size: 28px;
    }
    .flavor-info p {
        font-size: 16px;
    }
    .flavor-info .volume {
        font-size: 18px;
    }

    .footer-logos {
        gap: 100px;
    }
    .footer-logo {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-revive {
        width: 100px;
    }
    .hidro-energy-text {
        font-size: 18px;
    }
    .seal-icon {
        width: 50px;
    }
    .hero-description {
        font-size: 18px;
    }
    .beneficio-item {
        width: 80%; /* Ocupa más ancho en móvil */
        max-width: 150px;
    }
    .benefits-section{
        padding: 60px 30px 0px 10px;
    }
    .video-section{
        background-size: cover;
    }

    .flavor-carousel-container{
        margin: -110px auto 0px auto;
    }
}

.benefits-title-container {
    text-align: center;
    margin: 0 auto;
}

.benefits-title-img {
    width: 100%;
    max-width: 500px; /* Ajusta el tamaño máximo del título "BENEFICIOS" */
    height: auto;
}

/* Media Queries para Responsividad - Ajustes específicos para Beneficios */
@media (max-width: 768px) {
    .benefits-title-img {
        max-width: 280px; /* Reduce el tamaño del título en móviles */
    }

    .beneficio-item img {
        max-width: 200px; /* Permite que las imágenes sean un poco más grandes cuando están apiladas */
    }
}

@media (max-width: 480px) {
    .benefits-title-img {
        max-width: 250px;
    }
    .beneficio-item img {
        max-width: 180px;
    }
}