/* =========================================
   VARIABLES & DESIGN SYSTEM
   ========================================= */
:root {
    /* Primary Colors */
    --clr-primary: #108A46;      /* Main Green - matching the logo */
    --clr-primary-dark: #0a6b33; 
    --clr-primary-light: #21b25f;
    --clr-secondary: #ffffff;    /* White */
    
    /* Text & Backgrounds */
    --clr-text-main: #333333;
    --clr-text-muted: #666666;
    --clr-bg-main: #ffffff;
    --clr-bg-light: #f8fcf9;     /* Very pale green/white for backgrounds */
    --clr-bg-dark: #111111;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacing & Sizes */
    --container-max: 1200px;
    --section-padding: 5rem 0;
    
    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(16, 138, 70, 0.15);
    --transition-fast: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.15rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
}

p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center { text-align: center; }
.text-green { color: var(--clr-primary); }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-light { background-color: var(--clr-bg-light); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 138, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 138, 70, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: white;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-fast);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    padding: 0.8rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 85px;
    transition: var(--transition-fast);
    object-fit: contain;
}

.navbar.scrolled .logo img {
    height: 65px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--clr-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--clr-primary);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--clr-primary);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #000; /* Fallback color */
    padding-top: 80px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.8) contrast(1.1); /* Mejora visual del color y nitidez */
}

/* Patrón de puntos para disimular la compresión y dar un look premium */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.2) 1px, transparent 1px);
    background-size: 4px 4px; /* Ajusta la densidad de los puntos */
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2; /* Sube un nivel para estar sobre el patrón de puntos */
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--clr-bg-main) 0%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(16, 138, 70, 0.2);
    border: 1px solid rgba(16, 138, 70, 0.5);
    color: #4ade80;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 4.8rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn-outline {
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline:hover {
    background: white;
    color: var(--clr-text-main);
}

/* =========================================
   CATEGORIES GRID
   ========================================= */
.section-title h2 {
    font-size: 3rem;
}

.section-title p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-slow);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    transition: var(--transition-slow);
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.category-card:hover::before {
    height: 100%;
}

.icon-wrapper {
    width: 100px;
    height: 100px;
    background: var(--clr-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3.5rem;
    color: var(--clr-primary);
    transition: var(--transition-slow);
}

.category-card:hover .icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.category-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.explore-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--clr-primary);
}

.category-card:hover h3,
.category-card:hover p,
.category-card:hover .explore-link {
    color: white;
}

/* =========================================
   FEATURES / WHY CHOOSE US
   ========================================= */
.features-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.features-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.check-list i {
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    padding: 20px;
    background: white;
    box-shadow: var(--shadow-hover);
}

.image-frame::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50%;
    height: 50%;
    border-top: 5px solid var(--clr-primary);
    border-right: 5px solid var(--clr-primary);
    border-radius: 0 20px 0 0;
    z-index: -1;
}

.image-frame img {
    border-radius: 10px;
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--clr-bg-dark);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer h3 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.footer h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--clr-primary);
}

.footer p {
    color: #a0a0a0;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.social-links a:hover {
    background: var(--clr-primary);
    transform: translateY(-3px);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #a0a0a0;
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #a0a0a0;
}

.footer-contact i {
    color: var(--clr-primary);
    font-size: 1.2rem;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   WHATSAPP BUTTON
   ========================================= */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition-fast);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #1ebc5a;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: var(--shadow-soft);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-fast);
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .nav-links li {
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 1rem;
    }
    .nav-links a::after {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
