/* =========================================
   ESTILOS GENERALES Y BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background-color: #245725;
    /* Verde más oscuro profundo */
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* =========================================
   2. HERO (PORTADA)
   ========================================= */
.hero {
    padding-top: 120px;
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Fondo verde oscuro — nunca claro en ningún dispositivo */
    background: linear-gradient(135deg,
            #081A0A 0%,
            #0D2B0F 50%,
            #0F3012 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.3rem 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Imagen y Badge (Toque Premium) */
.hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-light);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.2;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.2;
}

/* Animación de flotación para el badge */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive del Hero — Mobile */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-title {
        font-size: 2.8rem;
        /* Texto blanco siempre visible en móvil */
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
        color: #C8E6C9 !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .image-wrapper::before {
        display: none;
    }

    .experience-badge {
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        padding-bottom: 3rem;
        min-height: auto;
        /* Fondo sólido oscuro en móvil — sin transparencias */
        background: #081A0A !important;
        background-image:
            radial-gradient(circle at 30% 20%, rgba(76, 175, 80, 0.12) 0%, transparent 60%),
            radial-gradient(circle at 70% 80%, rgba(46, 125, 50, 0.10) 0%, transparent 60%) !important;
    }

    .hero-title {
        font-size: 2rem !important;
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;
        background: none !important;
    }

    .hero-description {
        font-size: 1rem !important;
        color: #C8E6C9 !important;
        max-width: 100%;
    }

    .hero-subtitle {
        color: #81C784 !important;
        background: rgba(76, 175, 80, 0.15) !important;
    }

    .hero-image {
        max-width: 85%;
        margin: 0 auto;
    }

    .experience-badge {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero {
        padding-top: 75px;
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        color: #FFFFFF !important;
        -webkit-text-fill-color: #FFFFFF !important;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}