/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --color-primario: #1a4c25;
    --color-secundario: #ffcb86;
    --color-texto-claro: #f4f4f4;
    --color-texto-oscuro: #333;
    --fuente-principal: 'Outfit', sans-serif;
}

body {
    background: #f8f9fa;
    color: var(--color-texto-oscuro);
    font-family: var(--fuente-principal);
    margin: 0;
    padding: 0;
}

h2,
h3 {
    font-weight: 700;
}

.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;
}

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

.navegacion a {
    color: #1a1a1a;
    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: -6px; 
    height: 3px;   
    background: #339e3c;
    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;
}

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

.navegacion a:hover {
    color: #339e3c;
}


/* --- SECCIÓN HERO 'VISÍTANOS' --- */
.alpha-visit-section {
    background: linear-gradient(135deg, #f6f6f6, #a5a5a5);
    overflow: visible;
    height: 750px;
    display: flex;
    align-items: center;
    padding-top: 5%;
}

.alpha-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    align-items: start;
    gap: 0 2rem;
    width: 100%;
}

.hero-text {
    flex-basis: 500px;
    text-align: left;
}

.hero-text,
.hero-image img {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-text h2 {
    font-weight: 800;
    font-size: 6rem;
    line-height: 85px;
    padding-top: 20%;
    margin-left: -100px;
}

.hero-text .subtitle {
    font-size: 1.3rem;
    line-height: 1;
    max-width: 45ch;
    margin-bottom: 2rem;
}

.subtitle {
    font-weight: 600;
    color: #828282;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 700px;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

/* --- ESTADO INICIAL (QUITO) --- */

#hero-image-quito {
    grid-area: 1 / 1 / 2 / 2;
}

/* Fila 1, Columna 1 */
#hero-text-quito {
    grid-area: 1 / 2 / 2 / 3;
}

/* Fila 1, Columna 2 */

.contenedor-interruptor-ciudad {
    grid-area: 2 / 2 / 3 / 3;
    /* Fila 2, Columna 2 */
    margin-top: 2rem;
}

#hero-image-guayaquil,
#hero-text-guayaquil {
    display: none;
    transform: translateX(30px);
    opacity: 0;
}

.guayaquil-activo #hero-text-quito,
.guayaquil-activo #hero-image-quito {
    transform: translateX(-30px);
    opacity: 0;
}

.guayaquil-activo #hero-image-guayaquil,
.guayaquil-activo #hero-text-guayaquil {
    display: block;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.guayaquil-activo #hero-text-guayaquil {
    grid-area: 1 / 1 / 2 / 2;
}

/* Fila 1, Columna 1 */
.guayaquil-activo #hero-image-guayaquil {
    grid-area: 1 / 2 / 2 / 3;
}

/* Fila 1, Columna 2 */

.guayaquil-activo .contenedor-interruptor-ciudad {
    grid-area: 2 / 1 / 3 / 2;
    /* Fila 2, Columna 1 */
}

.hero-image,
.hero-text {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.guayaquil-activo {
    animation: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

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

/* --- INTERRUPTOR DE CIUDAD --- */
.contenedor-interruptor-ciudad {
    z-index: 99;
    position: absolute;
    top: 80px;
    left: 20px;
}

.interruptor-ciudad {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 44px;
    filter: drop-shadow(0px 0px 10px #0000001c);
}

.interruptor-ciudad input {
    opacity: 0;
    width: 0;
    height: 0;
}

.deslizador {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse farthest-corner at right bottom, #f5da66 0%, #e3b75e 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #f4c53a 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    /* background: #73e19b;*/
    transition: .4s;
    border-radius: 44px;
    box-shadow: inset 0 0px 15px rgba(0, 0, 0, 0.746);
}

.deslizador:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 8px;
    bottom: 8px;
    background-color: white;
    transition: .4s ease;
    border-radius: 50%;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.254);
}

input:checked+.deslizador {
    background: radial-gradient(ellipse farthest-corner at right bottom, #7bf566 0%, #84e35e 8%, #5a9f28 30%, #498a2f 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #8eb277 8%, #578e43 25%, #375d1f 62.5%, #335d1f 100%);
}

input:checked+.deslizador:before {
    transform: translateX(46px);
}

.etiqueta-quito,
.etiqueta-guayaquil {
    position: absolute;
    width: auto;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    font-weight: 600;
    color: rgb(0, 0, 0);
    text-align: center;
    transition: opacity 0.2s ease-in-out, left 0.2s ease-in-out, right 0.2s ease-in-out;
    pointer-events: none;
}

.etiqueta-quito {
    left: -95px;
    opacity: 1;
    color: var(--color-texto-oscuro);
}

.etiqueta-guayaquil {
    right: -160px;
    opacity: 0.3;
    color: var(--color-texto-oscuro);
    z-index: 1;
}

input:checked+.deslizador .etiqueta-quito {
    opacity: 0.3;
}

input:checked+.deslizador .etiqueta-guayaquil {
    opacity: 1;

}

input:checked+.deslizador {
    background-color: #4CAF50;
}

input:checked+.deslizador .etiqueta_guayaquil {
    color: var(--color-texto-claro);
}

/* --- SECCIÓN PRINCIPAL DE CONTENIDO --- */
.seccion-principal-visitanos {
    padding: 60px 0;
}

.contenido-ciudad {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.contenido-ciudad.activo {
    display: block;
    opacity: 1;
}

.grid-visitanos {
    grid-template-columns: 1fr;
    justify-items: center;
}

/* --- FORMULARIO, MAPA Y GALERÍA --- */
.contenedor-formulario {
    display: flex;
    background: transparent;
    overflow: hidden;
    padding-right: 20px;
    max-width: 1300px;
    height: 800px;
    gap: 50px;
}

fieldset.grupo-formulario {
    border: none;
    margin: 0;
}

.formulario-columna-info {
    flex-basis: 50%;
    background: radial-gradient(ellipse farthest-corner at right bottom, #f5da66 0%, #e3b75e 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
        radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
    color: white;
    padding: 40px;
    display: flex;
    height: 480px;
    flex-direction: column;
    border-radius: 45px;
    box-shadow: inset 0px 0px 35px #0d0d0d55;
}

.formulario-columna-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.dato-contacto {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.dato-contacto i {
    font-size: 1.2rem;
    width: 20px;
}

.formulario-columna-campos {
    flex-basis: 60%;
    padding: 60px;
    box-shadow: inset 0 0px 65px rgba(0, 0, 0, 0.173);
    border-radius: 45px;
}

#formulario-guayaquil {
    padding: 20px 60px;
    gap: 20px;
}

.formulario-sociales {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    gap: 20px;
}

.formulario-sociales a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.formulario-sociales a:hover {
    transform: scale(1.2);
}

.titulo-formulario {
    text-align: center;
    margin-bottom: 2rem;
}

.grupo-formulario label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.grupo-formulario input[type="text"],
.grupo-formulario input[type="email"],
.grupo-formulario input[type="tel"],
.grupo-formulario input[type="date"],
.grupo-formulario select {
    width: 100%;
    padding: 10px 0;
    font-size: 1.1rem;
    border: none;
    background: none;
    border-bottom: 1.7px solid #d2d2d2;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
}

.iti {
    width: 100%;
}

input#telefono-quito,
input#telefono-guayaquil {
    padding-left: 95px !important;
}

/* --- ESTILOS DE VALIDACIÓN DE ERRORES --- */

.grupo-formulario.error label {
    color: #D32F2F;
}

.grupo-formulario.error input,
.grupo-formulario.error select {
    border-bottom-color: #D32F2F;
}

.grupo-formulario.error .grupo-interes label {
    border-color: #D32F2F;
    color: #D32F2F;
}

#ciudad-guayaquil {
    color: #969696;
}

.grupo-formulario input[type="date"] {
    color: #969696;
}

.grupo-formulario input:focus,
.grupo-formulario select:focus {
    border-bottom-color: var(--color-primario);
}

.fila-formulario {
    display: flex;
    gap: 20px;
}

.fila-formulario .grupo-formulario {
    flex: 1;
}

.grupo-interes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.grupo-interes input[type="radio"] {
    display: none;
}

.grupo-interes label {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #ababab;
}

.grupo-interes input[type="radio"]:checked+label {
    background-color: transparent;
    color: #1EBE57;
    border-color: #1EBE57;
    box-shadow: 6px 10px 40px #19790e67;
}

/* Estilo para el botón de WhatsApp */
.boton-wsp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 95.5%;
    padding: 15px;
    margin-top: 25px;
    border: none;
    border-radius: 25px;
    background-color: transparent;
    color: rgb(14, 14, 14);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0px 0px 45px #0d0d0d5a;
}

.boton-wsp:hover {
    background-color: #1fca5b;
    transform: translateY(-5px);
    color: white;
    box-shadow: 0px 0px 45px #0a6d1978;

}

/* Iconos en los botones */
.boton-accion i,
.boton-wsp i {
    font-size: 1rem;
}

.boton-accion {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background-color: #1f6120;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 10px 35px #0d0d0d50;
}

.boton-accion:hover {
    background-color: #1da03c;
    transform: translateY(-5px);
    box-shadow: 0px 10px 35px #0d0d0d87;

}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-contenido {
    background: white;
    padding: 40px;
    border-radius: 45px;
    box-shadow: 0 5px 50px rgba(0, 0, 0, 0.563);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-contenido {
    transform: scale(1);
}

.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
}

#modal-datos-resumen p {
    margin: 10px 0;
    line-height: 1.6;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.073);
    animation: all .3s ease;
}


#modal-datos-resumen strong {
    color: var(--color-primario);
}

.modal-acciones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    max-height: 60px;
}

.boton-secundario {
    padding: 12px 55px;
    border: 2px solid #fb3a3a;
    border-radius: 25px;
    background-color: transparent;
    color: #fb3a3a;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 50px;
}

.boton-secundario:hover {
    background-color: #d96b6b;
    border-color: #ab1717;
    padding: 12px 85px;
    color: white;
}

.contenedor-mapa h2 {
    text-align: center;
    padding-top: 5%;
    font-size: 5rem;
}

.seccion-galeria h2 {
    text-align: center;
    padding-top: 5%;
    font-size: 5rem;
}

.envoltura-mapa {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0px 10px 55px #0d0d0d54;
    margin-top: 5%;
    width: 100%;
}

.envoltura-mapa iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.texto-centrado {
    text-align: center;
}

.grid-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.item-galeria {
    border-radius: 45px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0px 50px rgba(0, 0, 0, 0.22);
    position: relative;
}

.item-galeria::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 25, 0, 0.6);
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.item-galeria:hover::before {
    opacity: 0;
}

.item-galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    display: block;
}

.item-galeria:hover {
    transform: scale(1);
    box-shadow: 0 10px 5dvi rgba(0, 0, 0, 0.395);
}

.item-galeria:hover img {
    transform: scale(1.07);
}

/* --- ANIMACIÓN, MODAL Y WHATSAPP --- */
.aparecer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.aparecer.visible {
    opacity: 1;
    transform: translateY(0);
}

.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);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}


.modal-content {
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


.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;
}

.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;
}

.contacto-footer p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.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;
}

/* --- ESTILOS DE RESPONSIVIDAD --- */

/* Para tabletas y dispositivos medianos (hasta 1200px) */
@media (max-width: 1200px) {
    .hero-text h2 {
        font-size: 4.5rem;
    }

    .hero-image img {
        max-width: 550px;
    }

    .contenedor-formulario {
        max-width: 90%;
        margin: 0 auto;
    }
}


/* Para tabletas en modo vertical y móviles grandes (hasta 992px) */
@media (max-width: 992px) {
    .encabezado {
        padding: 1.5rem 0;
        width: 90%;
        border-radius: 25px;
    }

    .navegacion {
        display: none;
    }

    .alpha-visit-section {
        height: auto;
        padding-top: 150px;
        padding-bottom: 50px;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 4rem;
        line-height: 1.1;
        padding-top: 0;
    }

    .hero-text .subtitle {
        margin: 1rem auto;
    }

    #hero-image-quito,
    .guayaquil-activo #hero-image-guayaquil {
        grid-row: 2;
        grid-column: 1;
    }

    #hero-text-quito,
    .guayaquil-activo #hero-text-guayaquil {
        grid-row: 1;
        grid-column: 1;
    }

    .contenedor-interruptor-ciudad {
        position: static;
        margin: 2rem auto 0;
        grid-row: 3;
        grid-column: 1;
        display: flex;
        justify-content: center;
    }

    .etiqueta-quito,
    .etiqueta-guayaquil {
        font-size: 1.5rem;
    }

    .etiqueta-quito {
        left: -75px;
    }

    .etiqueta-guayaquil {
        right: -120px;
    }

    .contenedor-formulario {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    .formulario-columna-campos {
        padding: 40px 20px;
    }

    #formulario-guayaquil {
        padding: 20px;
    }

    .formulario-columna-info {
        padding: 55px;
    }

}

@media (max-width: 992px) {
  .hero-text h2 {
    margin-left: 0; 
  }
}

@media (max-width: 480px) {
  .hero-text {
    text-align: center;      
  }

  .hero-text h2,
  .contenedor-mapa h2,
  .seccion-galeria h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    max-width: 90%;
    margin: 0 auto;             
    text-align: center;        
    line-height: 1.15;
    position: static;          
    left: auto;               
    transform: none;          
  }
}

/* Para la mayoría de los móviles (hasta 768px) */
@media (max-width: 768px) {
    .contenedor {
        padding: 0 1rem;
    }

    .formulario-columna-info {
        padding: 55px;
    }

    .hero-text h2,
    .contenedor-mapa h2,
    .seccion-galeria h2 {
        font-size: 3rem;
        text-align: center;
    }

    .hero-image img {
        max-width: 80%;
    }

    .fila-formulario {
        flex-direction: column;
        gap: 0;
    }

    .grid-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pie-pagina h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .modal-acciones {
        flex-direction: column;
        gap: 1rem;
        max-height: none;
    }

    .boton-secundario:hover {
        padding: 12px 55px;
    }
}


/* Para móviles pequeños (hasta 480px) */
@media (max-width: 480px) {

    .hero-text h2,
    .contenedor-mapa h2,
    .seccion-galeria h2 {
        font-size: 2.5rem;
    }

    .hero-text .subtitle {
        font-size: 1.1rem;
    }

    .logo-imagen img {
        height: 40px;
    }

    .formulario-columna-info,
    .formulario-columna-campos {
        padding: 55px;
        border-radius: 25px;
    }

    .grupo-interes {
        justify-content: center;
    }

    .grupo-interes label {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .modal-contenido {
        width: 95%;
        padding: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

#gallery-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.842);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 240ms cubic-bezier(.16, .9, .3, 1), transform 280ms cubic-bezier(.16, .9, .3, 1), visibility 240ms;
}

/* Estado abierto */
#gallery-modal.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

/* Contenido del modal (imagen) */
#gallery-modal img#modal-image {
    max-width: 92%;
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(8px) scale(0.995);
    transition: transform 260ms cubic-bezier(.16, .9, .3, 1), opacity 200ms;
    opacity: 0;
}

/* Imagen visible cuando el modal está abierto */
#gallery-modal.open img#modal-image {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Botón de cierre: posición y pequeña animación */
#gallery-modal .close-modal {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 160ms;
}

#gallery-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Flechas de navegación del modal de galería */
#gallery-modal .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #0d0d0d00;
    color: #ffffff77;
    border: none;
    font-size: 72px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    z-index: 10010;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    backdrop-filter: blur(4px);
}

#gallery-modal .gallery-nav:hover {
    background: rgba(0, 0, 0, 0);
    transform: translateY(-50%) scale(1.2);
    color: white;
}

#gallery-modal .gallery-nav.prev {
    left: 18px;
}

#gallery-modal .gallery-nav.next {
    right: 18px;
}

@media (max-width: 520px) {
    #gallery-modal .gallery-nav {
        display: none;
    }
}

#gallery-modal.open {
    display: flex;
}


.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: #a0a0a0; 
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    left: 0;
}

.menu-toggle:active span {
    background: #21861e; 
}

.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; }

.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);
}

@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, rgb(26, 76, 37), rgba(13, 38, 19, 0.918));
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
        backdrop-filter: blur(50px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        border-radius: 25px;
    }

    .navegacion.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;

    }

    .navegacion a {
        margin: 1rem 0;
        font-size: 1.2rem;
        color: #fff;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

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

    /* Stagger animation para los links */
    .navegacion.active a:nth-child(1) { transition-delay: 0.08s; }
    .navegacion.active a:nth-child(2) { transition-delay: 0.16s; }
    .navegacion.active a:nth-child(3) { transition-delay: 0.24s; }
    .navegacion.active a:nth-child(4) { transition-delay: 0.32s; }
    .navegacion.active a:nth-child(5) { transition-delay: 0.40s; }

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

}

/* Respeto prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle span,
    .navegacion,
    .navegacion a {
        transition: none !important;
    }
}

/* 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;
  }
}