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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'Roboto', Arial, sans-serif;
    margin: 0;
    background: #ffffff;
    color: #2d3748;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #1a202c;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { font-size: 1rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* ===================================
   COLOR VARIABLES & THEME
   =================================== */
:root {
    --eco-primary: #10b981;
    --eco-secondary: #059669;
    --eco-dark: #047857;
    --eco-light: #d1fae5;
    --eco-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --text-dark: #1a202c;
    --text-muted: #718096;
    --bg-light: #f7fafc;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --eco-primary: #34d399;
    --eco-secondary: #10b981;
    --text-dark: #f7fafc;
    --text-muted: #cbd5e0;
    --bg-light: #1a202c;
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .navbar {
    background: #1a202c !important;
}

[data-theme="dark"] .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-box,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .contact-form .form-control {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}

[data-theme="dark"] footer {
    background: #0f172a;
}

[data-theme="dark"] .bg-light {
    background: #1a202c !important;
}

.text-eco { color: var(--eco-primary) !important; }
.bg-eco { background: var(--eco-primary) !important; }
.bg-eco-light { background: var(--eco-light) !important; }
.bg-gradient-eco { background: var(--eco-gradient) !important; }

/* ===================================
   NAVBAR STYLES
   =================================== */
.navbar {
    background: #ffffff !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand.logo-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--eco-primary) !important;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.navbar-brand.logo-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    color: var(--eco-primary);
    margin-right: 0.5rem;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--eco-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--eco-primary) !important;
}

.dropdown-menu-modern {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0.75rem;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--eco-light);
    color: var(--eco-dark);
    transform: translateX(5px);
}

/* ===================================
   BUTTONS
   =================================== */
.btn-eco {
    background: var(--eco-gradient);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-eco:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-eco-hero {
    background: var(--eco-gradient);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-eco-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5);
    color: white;
}

.btn-outline-eco {
    border: 2px solid var(--eco-primary);
    color: var(--eco-primary);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-eco:hover {
    background: var(--eco-primary);
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('imagenes/hero.webp') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: white;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-up-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
}

.badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* Image Grid */
.image-grid img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* Stats Card */
.stat-card {
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--eco-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.service-card-featured {
    background: var(--eco-gradient);
    color: white;
}

.service-card-featured h3,
.service-card-featured p {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--eco-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card-featured .service-icon {
    background: rgba(255,255,255,0.2);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--eco-primary);
}

.service-card-featured .service-icon i {
    color: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===================================
   FEATURE BOXES
   =================================== */
.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--eco-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-box h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: start;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--eco-light);
    color: var(--eco-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--eco-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.contact-form textarea.form-control {
    resize: none;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: #1a202c;
}

footer h3, footer h5 {
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--eco-primary);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.newsletter-form .form-control {
    border: none;
    padding: 0.875rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 0.875rem 1.5rem;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--eco-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    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 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* ===================================
   SOCIAL SHARE BUTTONS
   =================================== */
.social-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    width: 40px;
    height: 40px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eco-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    background: var(--eco-primary);
    color: white;
    transform: translateY(-3px);
}

/* ===================================
   SEARCH MODAL
   =================================== */
.search-result-item {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: #f7fafc;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover {
    background: var(--eco-light);
    transform: translateX(5px);
}

/* ===================================
   DARK MODE TOGGLE
   =================================== */
#darkModeToggle {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    transform: rotate(20deg);
    color: var(--eco-primary);
}

/* ===================================
   LAZY LOADING IMAGES
   =================================== */
img[data-src] {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

img.loaded {
    filter: blur(0);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand.logo-brand {
        font-size: 1.5rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
}








