:root {
    --color-primario: #1a4c25;
    --color-secundario: #ffcb86;
    --color-texto: #f4f4f4;
    --fuente-principal: 'Outfit', sans-serif;
}

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* *{ outline: 1px solid red; } */
body {
    font-family: var(--fuente-principal);
    background-color: #000;
    color: var(--color-texto);
    margin: 0;
    overflow-x: hidden;
}

.contenedor {
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 2rem;
}

.encabezado {
    background: rgba(253, 253, 253, 0.121);
    padding: 2rem 0;
    position: fixed;
    width: 95%;
    max-width: 1650px;
    z-index: 1000;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 35px;
    backdrop-filter: blur(5px);
    transition: all .6s;
    transform-origin: center;
}

.encabezado:hover {
    background: rgba(233, 233, 233, 0.091);
    box-shadow: 1px 50px 55px rgba(0, 0, 0, 0.193);
    backdrop-filter: blur(15px);
    scale: 1.02;
    transform-origin: center;
}

.encabezado .contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 90%;        /* El espaciado interno se mantiene aquí */
    margin: 0 auto;
    position: relative;    /* Para anclar el título móvil */
}

.logo-imagen img {
    height: 50px;
    display: block;
}

.navegacion a {
    color: var(--color-texto);
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}


/* Animated underline para la navegación del header */
.navegacion a {
    position: relative;
    display: inline-block;
    padding-bottom: 0.25rem;
    transition: color 250ms ease;
}

.navegacion a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px; 
    height: 3px;   
    background: #34d642;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s cubic-bezier(.2,.9,.3,1), opacity 220ms ease;
    opacity: 0;
    border-radius: 3px;
}

.navegacion a:hover::after,
.navegacion a:focus::after,
.navegacion a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Accesibilidad: foco visible */
.navegacion a:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(49,190,98,0.08);
    border-radius: 4px;
}

.navegacion a:hover {
    color: #34d642;
}


/* --- Estructura de Secciones a Pantalla Completa --- */
section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow: hidden;
}

/* --- INICIO --- */
#inicio {
    background-color: #0d2e1a;
    position: relative;
}

#servicios {
    background-color: #0d2e1a;
    position: relative;
}

#conocenos {
    background-color: #0d2e1a;
    position: relative;
}

.hero-content-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15%;
    z-index: 2;
}

.parallax-bg {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#cielo {
    z-index: 1;
    opacity: 70%;
    filter: blur(3px);
}

#casa {
    width: 100%;
    z-index: 2;
    animation: float 5s ease-in-out infinite;
    transform-origin: center;
    opacity: 100%;
    position: absolute;
    filter: blur(1.5px);
}

#personajes {
    z-index: 3;
    animation: floatPersonas 5s ease-in-out infinite;
    transform-origin: center;
    pointer-events: none;
    filter: drop-shadow(0px 10px 80px #000000ba);
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    z-index: 3;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 85px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: right;
    letter-spacing: -5px;
}

.hero-text2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    z-index: 3;
}

.hero-text2 h4 {
    font-size: 25px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: left;
    letter-spacing: .5px;
    margin-left: -23%;
    text-transform: none;
}

.hero-text2 h4 span {
    color: #ffcb86;
    font-weight: 700;
    text-shadow: 0 2px 20px rgb(255, 156, 57);
}

.hero-text h1 span {
    font-size: clamp(2rem, 12vw, 9rem);
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes floatPersonas {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(0px) scale(1.04);
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

#casa {
    z-index: 1;
    animation: float 8s ease-in-out infinite;
    transform-origin: center;
    opacity: 100%;
}

.seccion-contenido {
    background: linear-gradient(135deg, #1a2a4c, #0d1a2e);
    padding: 2rem;
}

.contenedor-seccion {
    max-width: 900px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.seccion-contenido h2 {
    font-size: 3rem;
    color: var(--color-secundario);
    margin-bottom: 1rem;
}

.seccion-contenido p {
    font-size: 1.2rem;
    line-height: 1.7;
}

.navegacion a.active {
    color: var(--color-secundario);
    transform: scale(1.1);
}

.navegacion a {
    color: var(--color-texto);
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    transition: color 0.4s ease, transform 0.4s ease;
}

/* PANTALLA SERVICIOS */

#ciudad {
    z-index: 1;
    filter: blur(3px);
    scale: 110%;
    opacity: 70%;
}

#panel {
    z-index: 1;
    animation: floatPanel 8s ease-in-out infinite;
    transform-origin: center;
    opacity: 100%;
    filter: blur(3px);
}

#ejecutivo {
    z-index: 3;
    animation: floatEjec 5s ease-in-out infinite;
    transform-origin: center;
    pointer-events: none;
    top: 2.9%;
    filter: drop-shadow(0px 10px 40px #000000cc);
}

@keyframes floatPanel {
    0% {
        transform: translateY(0) scale(1.03);
    }

    50% {
        transform: translateY(-10px) scale(1.06);
    }

    100% {
        transform: translateY(0) scale(1.03);
    }
}

@keyframes floatEjec {
    0% {
        transform: translateY(10px) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.01);
    }

    100% {
        transform: translateY(10px) scale(1);
    }
}


.hero-content-container2 {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 9.5%;
    z-index: 2;
    top: 5%;
}

.hero-textP2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    z-index: 3;
}

.hero-textP2 h1 {
    font-size: 90px;
    font-weight: 600;
    line-height: 75px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: right;
    letter-spacing: -5px;
}

.hero-textP2 h1 span {
    color: #000000;
    font-weight: 800;
    font-size: 110px;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.364);
}

.hero-text3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    z-index: 3;

}

.hero-text3 h4 {
    font-size: 25px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: left;
    letter-spacing: .5px;
    margin-left: 8%;
    text-transform: none;
    width: 70%;
}

.hero-text3 h4 span {
    color: #ffcb86;
    font-weight: 700;
    text-shadow: 0 2px 20px rgb(255, 169, 83);
}

.boton-conocer2 {
    background: linear-gradient(to right, #ffffff58, #5757571a);
    color: rgb(255, 255, 255);
    padding: 2rem 2.5rem;
    margin-top: .5rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 1px 1px 55px rgba(0, 0, 0, 0.337);
    font-size: 1rem;
    z-index: auto;
    position: relative;
    height: 100px;
    backdrop-filter: blur(2.5px);
    width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: .5px solid white;
}

.boton-conocer2:hover {
    background: linear-gradient(to right, #ffffff58, #5757571a);
    color: #ffffff;
    transform: scale(1.05);
    cursor: pointer;
    width: 350px;
    height: 125px;
    box-shadow: 1px 1px 55px rgba(0, 0, 0, 0.483);
    border: .5px solid transparent;
    backdrop-filter: blur(15px);
    border-radius: 35px;
    font-size: 1.3rem;
}

/* ===== ESTILOS DEL FOOTER ===== */

.pie-pagina {
    background-color: #1a1a1a; 
    color: #f0f0f0;         
    padding-top: 60px;
}

.grid-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; 
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px;
}


.pie-pagina h4 {
    font-size: 1.25rem; 
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    position: relative;
}

.pie-pagina h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background-color: #31be62; 
}

.info-footer .logo-imagen-footer img {
    max-width: 200px; 
    margin-bottom: 15px;
}

.info-footer p {
    color: #b3b3b3; 
    line-height: 1.6;
}

/* Estilos para los enlaces de navegación y redes sociales */
.navegacion-footer a,
.redes-sociales a {
    color: #f0f0f0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.navegacion-footer a:hover,
.redes-sociales a:hover {
    color: #31be62; 
    padding-left: 8px; 
}

/* Estilos para la información de contacto */
.contacto-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Barra inferior para los derechos reservados */
.derechos-reservados {
    background-color: #0d0d0d; 
    text-align: center;
    padding: 20px 10px;
    border-top: 1px solid #d8a25e; 
}

.derechos-reservados p {
    margin: 0;
    font-size: 0.9rem; 
    color: #8c8c8c;
}

/* PANTALLA CONTACTO */


.hero-content-container3 {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 0 1%;
    z-index: 2;
    justify-content: flex-end; 
    top: 0%;
}

.hero-textP3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    z-index: 3;
}

.hero-textP3 h1 {
    font-size: 90px;
    font-weight: 600;
    line-height: 75px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: right;
    letter-spacing: -5px;
}

.hero-textP3 h1 span {
    color: #d8a25e;
    font-weight: 800;
    font-size: 110px;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.364);
}

.hero-text4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    z-index: 3;

}

.hero-text4 h4 {
    font-size: 25px;
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 1rem;
    text-shadow: 0 2px 50px rgba(0, 0, 0, 0.27);
    text-align: left;
    letter-spacing: .5px;
    margin-left: 0%;
    text-transform: none;
    width: 70%;
}

.hero-text4 h4 span {
    color: #ffcb86;
    font-weight: 700;
    text-shadow: 0 2px 20px rgb(255, 169, 83);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #2e8340;
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.boton-carrusel {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 20px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.boton-carrusel:hover {
    opacity: 1; 
    scale: 1.2;
}


.boton-carrusel::before {
    content: '';
    display: inline-block;
    width: 15px;  
    height: 15px; 
    border-style: solid;
    border-color: white;
    border-width: 0 3px 3px 0; 
}

.anterior {
    left: 2rem;
}

.anterior::before {
    transform: rotate(135deg); 
}

.siguiente {
    right: 2rem;
}

.siguiente::before {
    transform: rotate(-45deg); 
}

.carrusel-puntos {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    z-index: 10;
}

.punto {
    width: 8px;
    height: 8px;
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative; 
    
}

.punto::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); 
    width: 22px; 
    height: 22px; 
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.punto.activo::before, .punto:hover::before {
    transform: translate(-50%, -50%) scale(0.7); 
}

.punto.activo {
    background-color: white;
}

.oculto {
    display: none !important; 
}

/* ===== MEDIA QUERIES PARA RESPONSIVE DESIGN ===== */

/* Tablets grandes y laptops pequeñas */
@media screen and (max-width: 1200px) {
    .contenedor {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 6vw, 5rem);
        line-height: 65px;
        letter-spacing: -3px;
        transform: translateY(-8%);
    }

    .hero-text2 h4 {
        font-size: 20px;
        line-height: 20px;
        margin-left: -15%;
    }

    .hero-textP2 h1 {
        font-size: 70px;
        line-height: 60px;
    }

    .hero-textP2 h1 span {
        font-size: 60px;
        margin-bottom: 50px;
        
    }

    .hero-text3 h4 {
        font-size: 20px;
        width: 80%;
    }

    .hero-content-container {
        padding: 0 10%;
    }

    .parallax-layer {
         z-index: 4;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .encabezado {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;           /* Ocupa todo el ancho para que no se vea nada al lado */
        transform: none;       /* Quita el translateX(-50%) que causa problemas */
        border-radius: 25px;
        padding: 1.5rem 0;
        background: rgba(255, 255, 255, 0.075);
        backdrop-filter: blur(10px);
        margin-top: 1rem;      /* En lugar de top: 1rem */
        box-shadow: 0 0 40px #0000002d;
    }

    /* Asegura que el contenedor interno mantenga el espaciado correcto */
    .encabezado .contenedor {
        max-width: 90%;        /* El espaciado interno se mantiene aquí */
        margin: 0 auto;
        position: relative;    /* Para anclar el título móvil */
    }

    .logo-imagen img {
        height: 30px;
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .navegacion {
        position: fixed;
        inset: 0;              /* Mejor que top/left/width/height por separado */
        background: linear-gradient(135deg, rgba(26, 76, 37, 0.98), rgba(13, 38, 19, 0.98));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .navegacion.active {
        transform: translateX(0);
    }

    .navegacion a {
        margin: 1rem 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #fff;           /* Asegura que sean blancos en el overlay */
    }

    .navegacion.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation para los links */
    .navegacion a:nth-child(1) { transition-delay: 0.1s; }
    .navegacion a:nth-child(2) { transition-delay: 0.2s; }
    .navegacion a:nth-child(3) { transition-delay: 0.3s; }
    .navegacion a:nth-child(4) { transition-delay: 0.4s; }
    .navegacion a:nth-child(5) { transition-delay: 0.5s; }

    /* Layout vertical en tablets */
    .hero-content-container,
    .hero-content-container2,
    .hero-content-container3 {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;    /* Ajusta por el header más grande */
    }

    .hero-text,
    .hero-text2,
    .hero-text3,
    .hero-textP2,
    .hero-textP3 {
        width: 100%;
        align-items: center;
    }

    .hero-text2 h4,
    .hero-text3 h4,
    .hero-text4 h4 {
        margin-left: 0;
        width: 100%;
        max-width: 400px;
        text-align: center;
    }

    #personajes,
    #ejecutivo {
        transform: scale(1) translateY(20px);
    }
}

@media screen and (max-width: 768px) {
    .encabezado {
        padding: 1.5rem 0;
        
    }

    .encabezado .contenedor {
        max-width: 100%;       
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
        line-height: 1.2;
        letter-spacing: -2px;
    }

    .boton-conocer2 {
        width: 200px;
        height: 60px;
        padding: 1rem;
        font-size: 0.9rem;
        margin-top: 150px;
        margin-bottom: 150px;
    }

    .parallax-layer {
        transform: scale(1.2);
    }
}


@media screen and (max-width: 768px) {
    .hero-text,
    .hero-text2 {
        opacity: 0;
        transition: opacity 1s ease-in-out;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;

    }

    .hero-text h1, .hero-text2 h4{
        transform: translateY(-98%);
    }

    .hero-text.active,
    .hero-text2.active {
        opacity: 1;
        z-index: 2;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .boton-carrusel {
        scale: 0.8;
        margin-top: 87%;
    }

    .whatsapp-float {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }
}

/* Orientación landscape en móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .navegacion {
        padding: 2rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .navegacion a {
        margin: 0.5rem 0;
    }

    .hero-content-container,
    .hero-content-container2,
    .hero-content-container3 {
        padding-top: 70px;
        min-height: 450px;
    }
}

/* Soporte para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .parallax-layer img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Estilos para el menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
    margin-right: 15px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--color-texto);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    left: 0;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* Animación del menú hamburguesa */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Navegación móvil mejorada */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .navegacion {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 76, 37, 0.98), rgba(13, 38, 19, 0.98));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
    }

    .navegacion.active {
        transform: translateX(0);
    }

    .navegacion a {
        margin: 1rem 0;
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #fff;           /* Asegura que sean blancos en el overlay */
    }

    .navegacion.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation para los links */
    .navegacion a:nth-child(1) { transition-delay: 0.1s; }
    .navegacion a:nth-child(2) { transition-delay: 0.2s; }
    .navegacion a:nth-child(3) { transition-delay: 0.3s; }
    .navegacion a:nth-child(4) { transition-delay: 0.4s; }
    .navegacion a:nth-child(5) { transition-delay: 0.5s; }
}

/* Breakpoints mejorados */
@media screen and (max-width: 1400px) {
    .hero-content-container,
    .hero-content-container2,
    .hero-content-container3 {
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: clamp(2.8rem, 6vw, 5rem);
        margin-top: 95%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .navegacion.active a {
        transition: none !important;
    }

    .menu-toggle span,
    .boton-conocer2,
    .whatsapp-float {
        transition: none !important;
    }
}

@media screen and (max-width: 768px) {
  /* --- Alternancia para la 3ª sección: hero-textP3 <-> hero-text4 --- */
  .hero-textP3 h1,
  .hero-text4 h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    opacity: 0;
    transition: opacity 900ms ease-in-out, transform 900ms ease-in-out;
    text-align: center;
    width: min(92%, 720px);
    z-index: 2;
    pointer-events: none;
  }

  /* estado visible */
  .hero-textP3 h1.active,
  .hero-text4 h4.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }

  .hero-textP3 h1{
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -2px;
  }
  
  .logo-imagen img {
        height: 30px;
    }

  /* Ajustes específicos para tamaño y separación en mobile */
  .hero-textP3 h1 { width: 300px; padding-bottom: 40px; }
  .hero-text4 h4 { width: 300px; }

  /* Mantener botones encima y evitar que se oculten */
  .hero-content-container3 .boton-conocer2,
  .hero-content-container3 .boton-conocer2 + .boton-conocer2 {
    position: relative;
    z-index: 4;
    margin-bottom: 160px;
  }

  /* Ajustar padding si hace falta */
  .hero-content-container3 { padding: 0 6%; }
}

@media screen and (max-width: 768px) {
  .hero-textP2 h1,
  .hero-text3 h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    opacity: 0;
    transition: opacity 900ms ease-in-out, transform 900ms ease-in-out;
    text-align: center;
    width: min(92%, 720px);
    z-index: 2;
    pointer-events: none;
  }

  .hero-textP2 h1.active,
  .hero-text3 h4.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }


  
}

@media screen and (max-width: 768px) {
  .hero-textP3 h1,
  .hero-text4 h4 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    opacity: 0;
    transition: opacity 900ms ease-in-out, transform 900ms ease-in-out;
    text-align: center;
    width: min(92%, 720px);
    z-index: 2;
    pointer-events: none;
  }

  /* estado visible */
  .hero-textP3 h1.active,
  .hero-text4 h4.active {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
  }

  .hero-textP3 h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
        line-height: 1.2;
        letter-spacing: -2px;
  }

  .hero-textP3 h1 span {
        font-size: clamp(4rem, 7vw, 3.5rem);
        line-height: 1.2;
        letter-spacing: -2px;
  }

  .hero-text4 h4{
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .hero-textP3 h1 { width: 300px; padding-bottom: 40px; }
  .hero-text4 h4 { width: 300px; }

  .hero-content-container3 .boton-conocer2,
  .hero-content-container3 .boton-conocer2 + .boton-conocer2 {
    position: relative;
    z-index: 4;
    margin-bottom: 160px;
  }

  .hero-content-container3 { padding: 0 6%; }
}

/* Título centrado solo en móviles */
.header-title-mobile {
  display: none;
  font-weight: 800;
  letter-spacing: .06em;
  color: #ffffff;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header-title-mobile {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.05rem;
  }
}