/* ======================================================
   RESET Y VARIABLES GLOBALES
   ====================================================== */

* {
    box-sizing: border-box;
}

:root {
    --green-main: #2f6f4e;
    --green-light: #e6f0ea;
    --green-soft: #f1f7f4;
    --green-accent: #cfe3d8;
    --verde-fondo-navbar: #1f4d2b;
}


/* ======================================================
   ESTILOS BASE
   ====================================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.75;
    font-size: 17px;
    color: #2b2b2b;
    background-color: #f8f9f7;
    scroll-snap-type: y proximity;
}

h1,
h2 {
    color: #1f4d2b;
}

main {
    margin: 0;
    padding: 0;
}


/* ======================================================
   NAVBAR
   ====================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--verde-fondo-navbar);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-weight: bold;
    color: #ffffff;
    font-size: 1.25rem;
}

.navbar-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
}

.navbar-links a:hover {
    text-decoration: underline;
}


/* ======================================================
   HERO
   ====================================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 90vh;
    padding: 3rem 4rem;
    background-color: var(--green-light);
    gap: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #1f4d2b;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-block;
    background-color: #1f4d2b;
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background-color: #163a21;
}

.hero-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}


/* ======================================================
   HERO RESPONSIVE
   ====================================================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-image img {
        max-height: 350px;
    }
}


/* ======================================================
   SISTEMA DE SECCIONES TIPO DIAPOSITIVA
   ====================================================== */

.slide {
    width: 100%;
    padding: 4rem 1.5rem;
    scroll-snap-align: start;
}

.slide-content {
    max-width: 1100px;
    margin: 0 auto;
}

.slide-content h2 {
    max-width: 700px;
    margin-bottom: 1.2rem;
    font-size: 1.9rem;
    line-height: 1.25;
}

.slide-content h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--green-main);
    margin-top: 0.6rem;
}

.slide-content p {
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.75;
}

.slide-white {
    background-color: #ffffff;
}

.slide-light {
    background-color: var(--green-soft);
}

.slide:nth-child(even) .slide-content {
    margin-left: auto;
}


/* ======================================================
   GALERÍA
   ====================================================== */

.galeria h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.galeria-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.03);
}


/* ======================================================
   FAQ PLEGABLE
   ====================================================== */

.faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    border-bottom: 1px solid #dddddd;
    padding: 0.8rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #1f4d2b;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0.8rem 0 0 0;
    font-size: 1rem;
    line-height: 1.65;
    max-width: none;
}

.faq-item[open] p {
    width: 100%;
    background-color: var(--green-accent);
    border-left: 4px solid var(--verde-fondo-navbar);
    border-radius: 6px;

    padding: 1.2rem 1.4rem 1.2rem 1.8rem;
    margin-top: 0.6rem;

    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    font-weight: 400;
    opacity: 0.9;
}

   


/* ======================================================
   FOOTER
   ====================================================== */

.footer {
    background-color: var(--verde-fondo-navbar);
    color: #ffffff;
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.95rem;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.footer-location {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-contact a {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-contact a:hover {
    text-decoration: underline;
}


/* ======================================================
   BOTÓN FLOTANTE WHATSAPP
   ====================================================== */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
    display: block;
}


/* ======================================================
   LIGHTBOX GALERÍA
   ====================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
}


/* ======================================================
   CONTROLES LIGHTBOX
   ====================================================== */

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    font-size: 2.5rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    border-radius: 6px;
}

.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-btn.prev {
    left: 30px;
}

.lightbox-btn.next {
    right: 30px;
}

/* ======================================================
   ANIMACIONES SUAVES AL HACER SCROLL
   ====================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ======================================================
   NAVBAR RESPONSIVE (MÓVIL)
   ====================================================== */

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

/* Móvil */
@media (max-width: 768px) {

    .navbar-toggle {
        display: block;
    }

    /* CONTENEDOR DEL MENÚ */
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background-color: var(--verde-fondo-navbar);
        border-top: 1px solid rgba(255, 255, 255, 0.18);

        display: none;
        flex-direction: column;
        align-items: stretch;

        margin: 0;
        padding: 0;
        
        gap: 0;
        line-height: 1;
        /* 🔑 clave */
    }

    .navbar-links.active {
        display: flex;
    }

    /* CADA ITEM */
    .navbar-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;

        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-links li:last-child {
        border-bottom: none;
    }

    /* LINK REAL (ÁREA CLICKEABLE) */
    .navbar-links a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        height: 52px;
        /* 🔒 altura fija real */
        padding: 0;
        /* 🔑 elimina aire */
        margin: 0;

        line-height: 1;
        /* 🔥 evita que el texto “estire” */
        font-size: 1.05rem;
        font-weight: 500;

        color: #ffffff;
        text-decoration: none;

        transition: background-color 0.2s ease;
    }

    .navbar-links a:hover,
    .navbar-links a:active {
        background-color: rgba(255, 255, 255, 0.08);
    }
}

/* ======================================================
   SLIDES CON IMAGEN + TEXTO
   ====================================================== */

.slide-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.slide-split.reverse {
    direction: rtl;
}

.slide-split.reverse>* {
    direction: ltr;
}

.slide-image {
    height: 360px;
    overflow: hidden;
    border-radius: 12px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    cursor: pointer;
}


.slide-text p {
    max-width: 600px;
}

/* Responsive */
@media (max-width: 900px) {
    .slide-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .slide-image {
        height: 240px;
    }
}

.slide-split.reverse {
    direction: rtl;
}

.slide-split.reverse>* {
    direction: ltr;
}

.slide-image {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide.reveal-visible .slide-image {
    opacity: 1;
    transform: translateY(0);
}