/* ==========================================
   VARIABLES GLOBALES
   ========================================== */
:root {
    --primary-green: #01694F;
    --secondary-green: #01634B;
    --dark-green: #015B45;
    --light-green: #028A6A;
    --accent-green: #E8F5F2;
    --text-dark: #2C3E50;
    --text-light: #FAFAFA;
    --bg-light: #F8FCFA;
    --bg-dark: #0A2E24;
    --shadow-sm: 0 4px 6px rgba(1, 105, 79, 0.1);
    --shadow-md: 0 10px 25px rgba(1, 105, 79, 0.15);
    --shadow-lg: 0 20px 40px rgba(1, 105, 79, 0.2);
}

/* ==========================================
   RESET Y BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #FFFFFF 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ==========================================
   NAVBAR RESPONSIVO CON BOOTSTRAP
   ========================================== */
.navbar-custom {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-custom .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.navbar-custom .navbar-brand img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-custom .navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-custom .navbar-brand span {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

/* Botón hamburguesa personalizado */
.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-custom .navbar-toggler-icon {
    background-image: none;
    width: 28px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.navbar-custom .navbar-toggler-icon span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 100%;
}

.navbar-custom .navbar-toggler-icon span:nth-child(2) {
    width: 70%;
    transition: all 0.3s ease;
}

.navbar-custom .navbar-toggler:hover .navbar-toggler-icon span:nth-child(2) {
    width: 100%;
}

/* Estilos del menú en desktop */
.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.navbar-custom .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-custom .navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-custom .navbar-nav .nav-link:hover {
    color: white;
}

/* Botones de acción en desktop */
.navbar-custom .btn-login {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-custom .btn-login:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.navbar-custom .btn-register {
    background: white;
    color: var(--primary-green);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-custom .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: var(--accent-green);
}

/* ==========================================
   MENÚ OFF-CANVAS (desliza desde derecha)
   ========================================== */
/* ==========================================
   MENÚ OFF-CANVAS RESPONSIVO
   ========================================== */

@media (max-width: 991.98px) {

    .navbar-custom .navbar-collapse {
        position: fixed;

        top: 0;
        right: -100%;

        width: 300px;
        max-width: 85vw;
        height: 100vh;

        background: white;

        padding: 2rem 1.5rem;

        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);

        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

        overflow-y: auto;

        /*
         * IMPORTANTE
         */
        display: block !important;

        z-index: 1050;

        border-radius: 0;
        margin-top: 0;
        border: none;

        /*
         * Permitir clics dentro del menú
         */
        pointer-events: auto;
    }


    /* MENÚ ABIERTO */
    .navbar-custom .navbar-collapse.show {
        right: 0;

        pointer-events: auto;
    }


    /* ==========================================
       BOTÓN CERRAR
       ========================================== */

    .close-menu-btn {
        display: flex;
        justify-content: flex-end;

        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;

        border-bottom: 2px solid var(--accent-green);

        position: relative;
        z-index: 1060;
    }


    .close-menu-btn button {
        background: none;
        border: none;

        font-size: 1.8rem;

        color: var(--primary-green);

        cursor: pointer;

        padding: 0 0.5rem;

        transition: transform 0.3s ease;

        /*
         * IMPORTANTE
         */
        pointer-events: auto;
    }


    .close-menu-btn button:hover {
        transform: rotate(90deg);
    }


    /* ==========================================
       LISTA DEL MENÚ
       ========================================== */

    .navbar-custom .navbar-nav {

        flex-direction: column;

        width: 100%;

        gap: 0.3rem;

        position: relative;

        z-index: 1060;
    }


    /* ==========================================
       ENLACES
       ========================================== */

    .navbar-custom .navbar-nav .nav-link {

        color: var(--text-dark);

        padding: 0.8rem 1rem;

        border-radius: 8px;

        font-size: 1rem;

        width: 100%;

        border-left: 3px solid transparent;

        transition: all 0.3s ease;

        /*
         * MUY IMPORTANTE:
         * Los enlaces reciben los clics.
         */
        position: relative;

        z-index: 1061;

        pointer-events: auto;

        cursor: pointer;
    }


    .navbar-custom .navbar-nav .nav-link::after {
        display: none;
    }


    .navbar-custom .navbar-nav .nav-link:hover {
        background: var(--accent-green);

        border-left-color: var(--primary-green);

        padding-left: 1.2rem;

        color: var(--primary-green);
    }


    /* ==========================================
       BOTONES LOGIN / REGISTRO
       ========================================== */

    .navbar-custom .btn-login,
    .navbar-custom .btn-register {

        width: 100%;

        justify-content: center;

        margin-top: 0.5rem;

        padding: 0.7rem;

        position: relative;

        z-index: 1061;

        pointer-events: auto;

        cursor: pointer;
    }


    .navbar-custom .btn-login {

        background: var(--primary-green);

        color: white;

        border: none;
    }


    .navbar-custom .btn-login:hover {

        background: var(--dark-green);

        color: white;
    }


    .navbar-custom .btn-register {

        background: var(--accent-green);

        color: var(--primary-green);
    }


    .navbar-custom .btn-register:hover {

        background: var(--accent-green);

        color: var(--primary-green);

        box-shadow: none;
    }


    /* ==========================================
       LOGO EN TABLETA
       ========================================== */

    .navbar-custom .navbar-brand span {
        font-size: 1.5rem;
    }


    .navbar-custom .navbar-brand img {
        height: 38px;
    }
}
/* ==========================================
   OVERLAY DEL MENÚ
   ========================================== */

.menu-overlay {

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.5);

    z-index: 1040;

    opacity: 0;

    /*
     * Cuando está cerrado NO puede bloquear
     * ningún enlace ni botón.
     */
    pointer-events: none;

    transition: opacity 0.4s ease;
}


.menu-overlay.active {

    opacity: 1;

    /*
     * Cuando está abierto sí permite hacer clic
     * para cerrar el menú.
     */
    pointer-events: auto;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 576px) {
    .navbar-custom .navbar-brand span {
        font-size: 1rem;
    }

    .navbar-custom .navbar-brand img {
        height: 32px;
    }

    .navbar-custom .navbar-toggler-icon {
        width: 24px;
        height: 20px;
    }

    .navbar-custom .navbar-collapse {
        width: 280px;
        max-width: 85vw;
        padding: 1.5rem 1.2rem;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 50%, var(--dark-green) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

/* Medio círculo / Luna */
.hero-moon {
    position: absolute;
    top: -100px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    animation: moonGlow 4s infinite ease-in-out;
}

.hero-moon::before {
    content: '';
    position: absolute;
    top: 60px;
    right: 70px;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.hero-moon::after {
    content: '';
    position: absolute;
    bottom: 80px;
    left: 60px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@keyframes moonGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Hero Container */
.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

/* Columna izquierda - Texto */
.hero-content {
    flex: 1;
    text-align: left;
    max-width: 550px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h1 span {
    display: block;
    background: linear-gradient(135deg, #ffffff, #e0f2e9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 3.2rem;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-green);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn i {
    transition: transform 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover i {
    transform: translateX(5px);
}

/* Burbuja deforme / orgánica */
.hero-decoration {
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bubble-card {
    position: relative;
    width: 280px;
    height: 280px;
    animation: floatBubble 4s infinite ease-in-out;
}

.bubble-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    animation: morphBubble 6s infinite ease-in-out;
}

@keyframes morphBubble {
    0% {
        border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
    }
    25% {
        border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%;
    }
    50% {
        border-radius: 55% 45% 60% 40% / 40% 60% 40% 60%;
    }
    75% {
        border-radius: 40% 60% 45% 55% / 50% 50% 50% 50%;
    }
    100% {
        border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
    }
}

.bubble-card:hover .bubble-inner {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.bubble-icon {
    position: relative;
    z-index: 2;
}

.bubble-icon i {
    font-size: 5.5rem;
    color: white;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Pequeñas burbujas alrededor */
.small-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: floatAround 5s infinite ease-in-out;
}

.sb-1 {
    width: 40px;
    height: 40px;
    top: -15px;
    right: 10px;
    border-radius: 70% 30% 60% 40% / 40% 60% 40% 60%;
    animation-delay: 0s;
}

.sb-2 {
    width: 25px;
    height: 25px;
    bottom: 10px;
    left: -10px;
    border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
    animation-delay: 1s;
}

.sb-3 {
    width: 30px;
    height: 30px;
    bottom: -10px;
    right: 30px;
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    animation-delay: 2s;
}

.sb-4 {
    width: 20px;
    height: 20px;
    top: 30px;
    left: -20px;
    border-radius: 65% 35% 70% 30% / 35% 65% 35% 65%;
    animation-delay: 1.5s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-8px) translateX(5px);
    }
    50% {
        transform: translateY(5px) translateX(-5px);
    }
    75% {
        transform: translateY(-3px) translateX(8px);
    }
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

/* Hero Responsive */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 span {
        display: inline;
    }
    
    .hero-decoration {
        flex: auto;
    }
    
    .bubble-card {
        width: 240px;
        height: 240px;
    }
    
    .bubble-icon i {
        font-size: 4.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 span {
        font-size: 2rem;
        display: inline;
    }
    
    .hero-moon {
        width: 200px;
        height: 200px;
        top: -60px;
        right: -50px;
    }
    
    .bubble-card {
        width: 200px;
        height: 200px;
    }
    
    .bubble-icon i {
        font-size: 3.5rem;
    }
    
    .small-bubble {
        transform: scale(0.7);
    }
}

/* ==========================================
   WORKSHOPS SECTION
   ========================================== */
.workshops {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8faf8 0%, #e8f3ec 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
}

.workshops::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#2d6a4f 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
}

.section-title {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a3a2a;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: 100%;
}

.underline {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #2d6a4f, #74c69d, #b7e4c7);
    margin: 0 auto 1.5rem auto;
    border-radius: 3px;
    animation: shimmer 3s infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 0% 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 0% 0; }
}

.section-subtitle {
    text-align: center;
    color: #5a6e5a;
    max-width: 550px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
    line-height: 1.5;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.8rem;
    max-width: 1300px;
    margin: 0 auto;
}

.workshop-card {
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid #e2ece2;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.workshop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.workshop-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d6a4f, #74c69d, #b7e4c7);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.workshop-card:hover::after {
    transform: scaleX(1);
}

.workshop-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 25px 40px -15px rgba(45, 106, 79, 0.25);
    background: #ffffff;
}

.workshop-icon {
    flex-shrink: 0;
    position: relative;
}

.workshop-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #74c69d, #2d6a4f);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.workshop-card:hover .workshop-icon::before {
    opacity: 0.4;
}

.circle-letter {
    width: 56px;
    height: 56px;
    background: linear-gradient(145deg, #2d6a4f, #1b5e3f);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    box-shadow: 0 10px 20px -8px rgba(45, 106, 79, 0.35);
    position: relative;
    z-index: 1;
}

.circle-letter::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 14px;
}

.workshop-card:hover .circle-letter {
    border-radius: 26px;
    transform: scale(1.05) rotate(3deg);
    background: linear-gradient(145deg, #1b5e3f, #0d3b2a);
    box-shadow: 0 15px 25px -10px rgba(45, 106, 79, 0.45);
}

.initial {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.workshop-content {
    flex: 1;
    margin-left: 1.2rem;
}

.workshop-title {
    font-size: 1.3rem;
    font-weight: 650;
    color: #1a3a2a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    transition: all 0.25s ease;
    position: relative;
    display: inline-block;
}

.workshop-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #2d6a4f;
    transition: width 0.3s ease;
}

.workshop-card:hover .workshop-title::after {
    width: 100%;
}

.workshop-card:hover .workshop-title {
    color: #2d6a4f;
}

.workshop-description {
    color: #6b7c6b;
    line-height: 1.55;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.workshop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eaf0ea;
    position: relative;
}

.info-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: #52b788;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.workshop-card:hover .info-text {
    color: #2d6a4f;
    gap: 6px;
}

.arrow {
    font-size: 1.1rem;
    color: #b8d4b8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f0f7f0;
    border-radius: 50%;
}

.arrow::after {
    content: '→';
}

.workshop-card:hover .arrow {
    transform: translateX(4px);
    color: #2d6a4f;
    background: #e8f3ec;
}

@media (max-width: 768px) {
    .workshops {
        padding: 3rem 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .workshops-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .workshop-card {
        padding: 1.2rem;
    }
    
    .circle-letter {
        width: 48px;
        height: 48px;
    }
    
    .initial {
        font-size: 1.5rem;
    }
    
    .workshop-title {
        font-size: 1.15rem;
    }
    
    .arrow {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   BENEFITS SECTION
   ========================================== */
.benefits {
    padding: 5rem 2rem;
    background: white;
}

.benefits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-light);
    border-radius: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(1, 105, 79, 0.1);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
}

.benefit-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}

.benefit-title {
    font-size: 1.3rem;
    color: var(--dark-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-green);
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--accent-green);
    transform: translateX(5px);
}

.footer-section i {
    margin-right: 8px;
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 2rem 1.2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
/* ==========================================
   SEGURIDAD DE CLICS EN MENÚ MÓVIL
   ========================================== */

@media (max-width: 991.98px) {

    /*
     * El navbar siempre está por encima
     * del contenido de la página.
     */
    .navbar-custom {
        z-index: 1100;
    }


    /*
     * El menú está por encima del overlay.
     */
    .navbar-custom .navbar-collapse {
        z-index: 1110;
    }


    /*
     * Los elementos internos del menú
     * pueden recibir clics.
     */
    .navbar-custom .navbar-collapse,
    .navbar-custom .navbar-collapse *,
    .navbar-custom .navbar-collapse a,
    .navbar-custom .navbar-collapse button {
        pointer-events: auto;
    }


    /*
     * El overlay queda debajo del menú.
     */
    .menu-overlay {
        z-index: 1090;
    }


    /*
     * El botón hamburguesa queda por encima.
     */
    .navbar-custom .navbar-toggler {
        position: relative;
        z-index: 1120;
        pointer-events: auto;
    }
}