/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - ECOPYME PREMIUM REDESIGN
   ========================================================================== */
:root {
    /* Color Palette - Premium Light Theme */
    --color-bg-darkest: #f4f7f6;      /* Off-white sage base background */
    --color-bg-dark: #e8f0ed;         /* Light green-gray background for alternate blocks */
    --color-bg-card: #ffffff;         /* Pure white card backgrounds */
    --color-bg-card-light: #f0f5f2;   /* Very soft mint/gray background for text wells */
    --color-text-white: #0f2b22;      /* Primary dark text (swapped role) */
    --color-text-gray: #2c3e38;       /* Slate body text */
    --color-text-dim: #5c7069;        /* Dimmed slate secondary text */
    
    --color-primary: #2e7d32;         /* Solid green for high contrast readability */
    --color-primary-glow: rgba(46, 125, 50, 0.15);
    --color-accent-gold: #a67c00;     /* Rich gold with good readability on light bg */
    --color-accent-gold-glow: rgba(166, 124, 0, 0.12);
    --color-danger: #c0392b;
    
    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --container-max-width: 1140px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-darkest);
    color: var(--color-text-gray);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-white);
    line-height: 1.25;
    font-weight: 600;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: var(--color-primary);
    color: var(--color-bg-darkest);
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 20px;
}

/* ==========================================================================
   UTILITY STYLES
   ========================================================================== */
.highlight {
    color: var(--color-primary);
}

.highlight-text {
    color: var(--color-primary);
    font-weight: bold;
}

/* ==========================================================================
   COMPONENTS: BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-darkest);
}

.btn-primary:hover {
    background-color: #6ed06e;
    box-shadow: 0 0 15px var(--color-primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid var(--color-text-white);
    color: var(--color-text-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-text {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-text:hover {
    color: #6ed06e;
}

.btn-text i {
    transition: transform var(--transition-fast);
}

.btn-text:hover i {
    transform: translateX(4px);
}

.btn-block {
    width: 100%;
}

.btn-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link:hover {
    color: #6ed06e;
}

.btn-link i {
    transition: transform var(--transition-fast);
}

.btn-link:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(46, 125, 50, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition-normal);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    height: 100%;
}

.nav-list {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}

.nav-link {
    color: var(--color-text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

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

/* Header CTA Button specific color matching mockup */
.btn-header-cta {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Dropdown Menu styling */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    margin-left: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.15);
    border-radius: var(--border-radius-md);
    padding: 12px;
    min-width: 180px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-gray);
}

.dropdown-menu a:hover {
    background-color: rgba(85, 179, 85, 0.1);
    color: var(--color-text-white);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    cursor: pointer;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-white);
    transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION - Full Width Background Approach
   ========================================================================== */
/* ==========================================================================
   HERO SECTION - Absolute Background & Overlay Play Button
   ========================================================================== */
.hero {
    position: relative;
    padding: 40px 0 90px;
    overflow: hidden;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-bg-darkest);
}

/* Background image container on the right */
.hero-bg-container {
    position: absolute;
    top: 0;
    right: 24px;
    width: 50%;
    height: 100%;
    z-index: 1;
    user-select: none;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    display: block;
}

/* Play button overlay placed exactly over the baked-in play button of mockup crop */
.hero-play-overlay-btn {
    position: absolute;
    left: 23%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 90px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    z-index: 3;
    border-radius: var(--border-radius-md);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.hero-play-overlay-btn:hover {
    background-color: rgba(85, 179, 85, 0.04);
    box-shadow: 0 0 15px rgba(85, 179, 85, 0.1), inset 0 0 10px rgba(85, 179, 85, 0.05);
}

.hero-play-overlay-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    background-color: rgba(85, 179, 85, 0.08);
}

/* Strong dark overlay on left side for text legibility, fading to right */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        #030d0a 0%,
        #030d0a 35%,
        rgba(3, 13, 10, 0.8) 50%,
        rgba(3, 13, 10, 0.25) 75%,
        rgba(3, 13, 10, 0) 100%
    );
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 0;
    align-items: center;
    min-height: inherit;
}

/* Hero content constrained strictly to left column */
.hero-content {
    padding-right: 32px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(85, 179, 85, 0.08);
    border: 1px solid rgba(85, 179, 85, 0.2);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    line-height: 1.15;
    word-break: break-word;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-text-gray);
    margin-bottom: 36px;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-visual {
    display: block;
    height: 100%;
}

/* ==========================================================================
   METRICS BAR
   ========================================================================== */
.metrics-bar {
    background-color: var(--color-bg-dark);
    border-top: 1px solid rgba(85, 179, 85, 0.1);
    border-bottom: 1px solid rgba(85, 179, 85, 0.1);
    padding: 24px 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-icon-wrapper {
    font-size: 1.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    text-align: left;
    margin-bottom: 36px;
}

.flex-header .section-subtitle {
    margin: 0;
}

/* ==========================================================================
   SOLUTIONS SECTION
   ========================================================================== */
.solutions-section {
    padding: 80px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 380px;
    transition: var(--transition-normal);
}

.solution-card:hover {
    border-color: rgba(85, 179, 85, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(85, 179, 85, 0.05);
}

.solution-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.solution-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: rgba(85, 179, 85, 0.08);
    border: 1.5px solid rgba(85, 179, 85, 0.2);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.solution-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-top: 2px;
}

.solution-card-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.solution-features {
    margin-bottom: 30px;
}

.solution-features li {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.feature-check {
    color: var(--color-primary);
    font-size: 0.75rem;
}

/* Diagonal Visual Overlay inside the Card */
.solution-card-visual {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 145px;
    height: 235px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 1;
    overflow: hidden;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
    border-left: 2px solid rgba(85, 179, 85, 0.15);
    transition: var(--transition-normal);
}

.solution-card:hover .solution-card-visual {
    opacity: 1;
    transform: scale(1.05);
}

.solution-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-card-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

/* ==========================================================================
   SOLUTION HOVER TABLES
   ========================================================================== */
.solution-card {
    position: relative;
}

.solution-hover-table {
    position: absolute;
    inset: -6px;
    z-index: 30;
    background: rgba(15, 43, 34, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(85, 179, 85, 0.38);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    box-shadow: 0 20px 50px rgba(3, 13, 10, 0.85);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.solution-card:hover .solution-hover-table {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.solution-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(85, 179, 85, 0.25);
}

.solution-table-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.solution-table-title i {
    color: #55b355;
    font-size: 1rem;
}

.solution-table-subtitle {
    display: block;
    color: #a4beaf;
    font-size: 0.72rem;
    margin-top: 2px;
}

.badge-count {
    background: rgba(85, 179, 85, 0.15);
    border: 1px solid rgba(85, 179, 85, 0.3);
    color: #55b355;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.solution-table-body {
    flex-grow: 1;
    max-height: 310px;
    overflow-y: auto;
    padding-right: 4px;
}

.solution-table-body::-webkit-scrollbar {
    width: 4px;
}

.solution-table-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.solution-table-body::-webkit-scrollbar-thumb {
    background: rgba(85, 179, 85, 0.4);
    border-radius: 4px;
}

.solution-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.73rem;
    text-align: left;
}

.solution-data-table th {
    background-color: #0f2b22;
    background-image: linear-gradient(rgba(85, 179, 85, 0.28), rgba(85, 179, 85, 0.28));
    color: #6ed06e;
    padding: 8px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1.5px solid rgba(85, 179, 85, 0.35);
    box-shadow: 0 4px 12px rgba(3, 13, 10, 0.6);
}

.solution-data-table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(85, 179, 85, 0.1);
    color: #eaf4ef;
    vertical-align: top;
    line-height: 1.35;
}

.solution-data-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.solution-data-table tr:hover td {
    background: rgba(85, 179, 85, 0.08);
}

.solution-data-table td strong {
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================================================
   MID TWO-COLUMN SECTION (COBERTURA & SLIDER)
   ========================================================================== */
.mid-section {
    padding: 40px 0;
}

.mid-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mid-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mid-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.mid-card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

/* Cobertura Map container */
.map-container {
    position: relative;
    width: 100%;
    height: auto;
    margin: 20px 0 30px;
    display: flex;
    justify-content: center;
}

.map-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

/* Pulse points for mapped cities */
.pulse-point {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #55b355;
    cursor: pointer;
    box-shadow: 0 0 6px #55b355;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.pulse-point::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #55b355;
    opacity: 0;
    animation: mapPulse 1.8s infinite ease-out;
}

.pulse-point::before {
    content: attr(data-city);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(3, 13, 10, 0.92);
    border: 1px solid rgba(85, 179, 85, 0.3);
    color: var(--color-text-white);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    font-size: 0.62rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    pointer-events: none;
}

.pulse-point:hover::before {
    opacity: 1;
    visibility: visible;
}

@keyframes mapPulse {
    0% { transform: scale(0.2); opacity: 0.8; }
    80% { transform: scale(1.2); opacity: 0; }
    100% { opacity: 0; }
}

/* Coverage map hover table */
.coverage-hover-table {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(98%, 540px);
    z-index: 20;
    background: rgba(15, 43, 34, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(85, 179, 85, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 20px 48px rgba(3, 13, 10, 0.75);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.95);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.map-container:hover .coverage-hover-table {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.coverage-table-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(85, 179, 85, 0.25);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.coverage-table-header i {
    color: #55b355;
    font-size: 0.95rem;
}

.coverage-cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px 6px;
    overflow: visible;
}

.city-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #eaf4ef;
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.city-tag i {
    color: #55b355;
    font-size: 0.58rem;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .coverage-cities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 420px) {
    .coverage-cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Before/After Tank Slider container */
.comparison-slider-container {
    position: relative;
    width: 100%;
    height: 160px;
    margin: 20px 0 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    width: 50%; /* JS will adjust this */
    border-right: 2px solid var(--color-text-white);
}

.label-badge {
    position: absolute;
    bottom: 12px;
    background-color: rgba(3, 13, 10, 0.85);
    color: var(--color-text-white);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-sm);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.label-before {
    left: 12px;
}

.label-after {
    right: 12px;
}

/* Draggable handle bar matching mockup circular element */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%; /* JS will adjust this */
    width: 2px;
    height: 100%;
    background-color: var(--color-text-white);
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--color-bg-card);
    border: 2px solid var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--color-text-white);
    font-size: 0.65rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none; /* Mouse drag handles directly on .slider-handle */
}

/* ==========================================================================
   TOOLS SECTION: CALCULATORS & ECOBOT
   ========================================================================= */
.tools-section {
    padding: 60px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.tools-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.08);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    position: relative;
}

.tools-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tools-card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    margin-bottom: 28px;
}

/* CALCULATORS CARD - lighter appearance like mockup */
.calc-card {
    background-color: #0f2b22 !important;
    border-color: rgba(85, 179, 85, 0.12) !important;
}

.calc-card .tools-card-title {
    color: var(--color-text-white);
}

.calc-card .tools-card-subtitle {
    color: var(--color-text-gray);
}

/* Calculators horizontal 3-col grid layout matching mockup */
.calculators-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.calc-item {
    background-color: rgba(3, 13, 10, 0.35);
    border: 1px solid rgba(85, 179, 85, 0.10);
    border-radius: var(--border-radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition-normal);
}

.calc-item:hover {
    border-color: rgba(85, 179, 85, 0.3);
    transform: translateY(-3px);
    background-color: rgba(85, 179, 85, 0.05);
    box-shadow: 0 6px 18px rgba(85,179,85,0.08);
}

.calc-item-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.calc-icon {
    font-size: 1.4rem;
    color: var(--color-primary);
}

.calc-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-white);
}

.calc-desc {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* ECOBOT CHATBOT */
.ecobot-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 0;
    border-color: rgba(85, 179, 85, 0.15);
}

.ecobot-header {
    padding: 20px 24px;
    background-color: rgba(3, 13, 10, 0.5);
    border-bottom: 1px solid rgba(85, 179, 85, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ecobot-badge {
    background-color: rgba(85, 179, 85, 0.08);
    border: 1.5px solid rgba(85, 179, 85, 0.25);
    padding: 4px 12px;
    border-radius: 9999px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ecobot-status-text {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.ecobot-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 190px;
}

.ecobot-chat-area {
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
}

/* Chat bubble styling */
.chat-message {
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    max-width: 85%;
    line-height: 1.45;
}

.bot-message {
    background-color: var(--color-bg-card-light);
    color: var(--color-text-white);
    align-self: flex-start;
    border: 1px solid rgba(85, 179, 85, 0.1);
    border-bottom-left-radius: 2px;
}

.user-message {
    background-color: var(--color-primary);
    color: var(--color-bg-darkest);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Suggestion Chips */
.ecobot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-btn {
    background-color: rgba(3, 13, 10, 0.4);
    border: 1px solid rgba(85, 179, 85, 0.15);
    color: var(--color-text-gray);
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip-btn:hover {
    background-color: rgba(85, 179, 85, 0.08);
    border-color: var(--color-primary);
    color: var(--color-text-white);
}

.ecobot-footer {
    padding: 18px 24px;
    background-color: rgba(3, 13, 10, 0.5);
    border-top: 1px solid rgba(85, 179, 85, 0.1);
    position: relative;
    display: flex;
    align-items: center;
}

.ecobot-input-container {
    width: 70%;
    position: relative;
    display: flex;
    align-items: center;
}

.ecobot-input-container input {
    width: 100%;
    background-color: rgba(3, 13, 10, 0.8);
    border: 1px solid rgba(85, 179, 85, 0.15);
    padding: 10px 42px 10px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--color-text-white);
}

.ecobot-input-container input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(85, 179, 85, 0.1);
}

.ecobot-send-btn {
    position: absolute;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg-darkest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
}

.ecobot-send-btn:hover {
    background-color: #6ed06e;
}

/* Absolute robot mascot overlay */
.ecobot-graphic-wrapper {
    position: absolute;
    bottom: 0;
    right: 12px;
    width: 130px;
    height: 108px;
    pointer-events: none;
    z-index: 2;
}

.ecobot-robot-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   CASOS DE ÉXITO SECTION
   ========================================================================== */
.cases-section {
    padding: 60px 0;
}

.success-case-card {
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.08);
    border-radius: var(--border-radius-lg);
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
    min-height: 235px;
}

.case-img-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

.case-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-details-grid {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.case-heading {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.case-body-text {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.result-column {
    border-left: 1px solid rgba(85, 179, 85, 0.15);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
}

.result-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.result-label {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
}

.sparkline-wrapper {
    width: 120px;
    height: 40px;
}

.sparkline {
    width: 100%;
    height: 100%;
}

.glowing-path {
    filter: drop-shadow(0 0 4px var(--color-primary));
}

.glowing-circle {
    filter: drop-shadow(0 0 6px var(--color-primary));
}

/* ==========================================================================
   BLOG / INTELIGENCIA AMBIENTAL SECTION
   ========================================================================== */
.blog-section {
    padding: 60px 0 100px;
}

/* Blog card using img tag to show full cropped content */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.blog-card {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
}

.blog-card-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.04);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(85, 179, 85, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #020a08;
    border-top: 1px solid rgba(85, 179, 85, 0.1);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.brand-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.footer-logo {
    height: 48px;
    width: auto;
    align-self: flex-start;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.social-links a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-darkest);
    transform: scale(1.1);
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.footer-links a:hover {
    color: var(--color-text-white);
}

.footer-contact li {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.footer-legal a {
    color: var(--color-text-dim);
}

.footer-legal a:hover {
    color: var(--color-text-white);
}

.footer-legal .separator {
    margin: 0 8px;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   MODAL GENERAL WINDOW STYLING
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 13, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background-color: var(--color-bg-card);
    border: 1px solid rgba(85, 179, 85, 0.2);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 580px;
    padding: 36px;
    z-index: 10;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-text-dim);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--color-text-white);
}

.modal-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-right: 24px;
}

/* Video specific Modal container width */
.video-modal-container {
    max-width: 760px;
    padding: 24px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.video-placeholder-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-darkest);
}

.video-placeholder-inside img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-text-white);
}

.video-play-overlay i {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--color-primary-glow));
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.video-play-overlay i:hover {
    transform: scale(1.1);
}

/* Calculators Form elements */
.calc-intro {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-gray);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    background-color: rgba(3, 13, 10, 0.6);
    border: 1px solid rgba(85, 179, 85, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    font-size: 0.9rem;
    color: var(--color-text-white);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
}

.calc-results {
    margin-top: 28px;
    padding: 20px;
    background-color: rgba(85, 179, 85, 0.05);
    border: 1px solid rgba(85, 179, 85, 0.15);
    border-radius: var(--border-radius-md);
}

.calc-results h4 {
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.calc-results p {
    font-size: 0.85rem;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.calc-results strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.note {
    font-size: 0.7rem;
    color: var(--color-text-dim);
    margin-top: 14px;
    line-height: 1.4;
}

/* ==========================================================================
   DIAGNOSTIC MODAL & WIZARD STEPS
   ========================================================================== */
.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.wizard-steps-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-bg-card-light);
    z-index: 1;
    transform: translateY(-50%);
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-bg-card-light);
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    border: 1.5px solid rgba(85, 179, 85, 0.15);
    transition: var(--transition-fast);
}

.step-dot.active {
    background-color: var(--color-primary);
    color: var(--color-bg-darkest);
    border-color: var(--color-primary);
}

.step-dot.complete {
    background-color: var(--color-bg-card);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.wizard-step h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--color-text-dim);
    margin-bottom: 24px;
}

.choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.choice-item {
    background-color: rgba(3, 13, 10, 0.4);
    border: 1.5px solid rgba(85, 179, 85, 0.1);
    border-radius: var(--border-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.choice-item input {
    display: none;
}

.choice-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(85, 179, 85, 0.3);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.choice-item input:checked + .choice-box {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.choice-item input:checked + .choice-box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    color: var(--color-bg-darkest);
}

.choice-item:hover {
    border-color: var(--color-primary);
}

.choice-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.wizard-success-pane {
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.wizard-success-pane h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.wizard-success-pane p {
    font-size: 0.9rem;
    color: var(--color-text-gray);
    margin-bottom: 30px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 40px 0 60px;
        flex-direction: column;
    }
    
    .hero-bg-container {
        position: relative;
        width: 100%;
        max-width: 600px;
        height: 320px;
        margin: 30px auto 0;
        border-radius: var(--border-radius-lg);
        overflow: hidden;
        order: 2;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        z-index: 2;
    }
    
    .hero-bg-img {
        object-position: center center;
    }
    
    .hero-play-overlay-btn {
        left: 47%;
        top: 49%;
        width: 250px;
        height: 90px;
    }
    
    .hero-bg-overlay {
        background: linear-gradient(
            to bottom,
            #030d0a 0%,
            rgba(3, 13, 10, 0.4) 100%
        );
        z-index: 1;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        order: 1;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .solution-card {
        min-height: auto;
        height: auto;
    }
    
    .solution-card-content {
        max-width: 65%;
    }
    
    .mid-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .success-case-card {
        grid-template-columns: 1fr;
    }
    
    .case-details-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .result-column {
        border-left: none;
        padding-left: 0;
        grid-column: span 2;
        align-items: center;
        border-top: 1px solid rgba(85, 179, 85, 0.15);
        padding-top: 20px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-col {
        grid-column: span 3;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg-card);
        border-left: 1px solid rgba(85, 179, 85, 0.15);
        z-index: 1001;
        padding: 100px 30px 40px;
        transition: right var(--transition-normal);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        gap: 30px;
    }
    
    .dropdown {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background-color: rgba(3, 13, 10, 0.3);
        margin-top: 10px;
        padding-left: 15px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .btn-header-cta {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculators-list {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brand-col {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card-content {
        max-width: 100%;
    }
    
    .solution-card-visual {
        display: none;
    }
    
    .case-details-grid {
        grid-template-columns: 1fr;
    }
    
    .result-column {
        grid-column: span 1;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .brand-col {
        grid-column: span 1;
    }
    
    .choices-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   LIGHT THEME SPECIFIC OVERRIDES (HYBRID DARK HEADER/FOOTER & LIGHT BODY)
   ========================================================================== */
.header .nav-link {
    color: var(--color-text-gray) !important;
}
.header .nav-link:hover, .header .nav-link.active {
    color: var(--color-primary) !important;
}
.header .btn-header-cta {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
}
.header .btn-header-cta:hover {
    background-color: #388e3c !important;
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.3) !important;
}
.header .dropdown-menu {
    background-color: var(--color-bg-card) !important;
    border: 1px solid rgba(46, 125, 50, 0.15) !important;
    box-shadow: 0 10px 25px rgba(46, 125, 50, 0.08) !important;
}
.header .dropdown-menu a {
    color: var(--color-text-gray) !important;
}
.header .dropdown-menu a:hover {
    background-color: var(--color-bg-card-light) !important;
    color: var(--color-primary) !important;
}
.header .hamburger-bar {
    background-color: var(--color-text-white) !important;
}

.hero-bg-overlay {
    background: linear-gradient(
        to right,
        #f4f7f6 0%,
        #f4f7f6 35%,
        rgba(244, 247, 246, 0.8) 50%,
        rgba(244, 247, 246, 0.25) 75%,
        rgba(244, 247, 246, 0) 100%
    ) !important;
}

@media (max-width: 992px) {
    .hero-bg-overlay {
        background: linear-gradient(
            to bottom,
            #f4f7f6 0%,
            rgba(244, 247, 246, 0.4) 100%
        ) !important;
    }
}

.footer .footer-title {
    color: #ffffff !important;
}
.footer .footer-links a {
    color: #b2c3be !important;
}
.footer .footer-links a:hover {
    color: #ffffff !important;
}
.footer .footer-contact li {
    color: #b2c3be !important;
}
.footer .footer-bottom {
    color: #768f88 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.footer .footer-legal a {
    color: #768f88 !important;
}
.footer .footer-legal a:hover {
    color: #ffffff !important;
}

.calc-card {
    background-color: #e8f5e9 !important;
    border-color: rgba(46, 125, 50, 0.15) !important;
}
.calc-card .tools-card-title {
    color: #0f2b22 !important;
}
.calc-card .tools-card-subtitle {
    color: #5c7069 !important;
}
.calc-item {
    background-color: #ffffff !important;
    border-color: rgba(46, 125, 50, 0.10) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.calc-item:hover {
    border-color: rgba(46, 125, 50, 0.3) !important;
    background-color: rgba(46, 125, 50, 0.02) !important;
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.08) !important;
}
.calc-name {
    color: #0f2b22 !important;
}
.ecobot-header {
    background-color: #f0f5f2 !important;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1) !important;
}
.ecobot-footer {
    background-color: #f0f5f2 !important;
    border-top: 1px solid rgba(46, 125, 50, 0.1) !important;
}
.ecobot-input-container input {
    background-color: #ffffff !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
    color: #0f2b22 !important;
}
.ecobot-input-container input::placeholder {
    color: #768f88 !important;
}
.chip-btn {
    background-color: #ffffff !important;
    border-color: rgba(46, 125, 50, 0.15) !important;
    color: #2c3e38 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
}
.chip-btn:hover {
    background-color: rgba(46, 125, 50, 0.05) !important;
    border-color: #2e7d32 !important;
    color: #0f2b22 !important;
}
.user-message {
    color: #ffffff !important;
}
.bot-message {
    background-color: #f0f5f2 !important;
    border-color: rgba(46, 125, 50, 0.08) !important;
    color: #0f2b22 !important;
}
.label-badge {
    color: #ffffff !important;
}
.pulse-point::before {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(46, 125, 50, 0.3) !important;
    color: #0f2b22 !important;
}
.wizard-steps-indicator::before {
    background-color: #e8f0ed !important;
}
.step-dot {
    background-color: #ffffff !important;
    color: #5c7069 !important;
    border-color: rgba(46, 125, 50, 0.15) !important;
}
.step-dot.active {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
}
.step-dot.complete {
    background-color: #ffffff !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}
.choice-item {
    background-color: #ffffff !important;
    border-color: rgba(46, 125, 50, 0.12) !important;
}
.choice-item:hover {
    border-color: var(--color-primary) !important;
    background-color: rgba(46, 125, 50, 0.02) !important;
}
.choice-item input:checked + .choice-box::after {
    color: #ffffff !important;
}
.form-group input, .form-group select {
    background-color: #ffffff !important;
    border-color: rgba(46, 125, 50, 0.2) !important;
    color: #0f2b22 !important;
}
.calc-results {
    background-color: rgba(46, 125, 50, 0.04) !important;
    border-color: rgba(46, 125, 50, 0.12) !important;
}
.calc-results p {
    color: #2c3e38 !important;
}
.success-case-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

/* ABOUT US (QUIÉNES SOMOS) MODAL STYLES */
.mision-tag {
    background-color: rgba(85, 179, 85, 0.25) !important;
    border: 1px solid rgba(85, 179, 85, 0.4) !important;
    color: #ffffff !important;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.about-modal-container {
    max-width: 900px !important;
    width: 92% !important;
    border-radius: var(--border-radius-lg) !important;
    color: #ffffff !important;
}

.about-modal-container p,
.about-modal-container li,
.about-modal-container blockquote {
    color: #ffffff !important;
}

.about-modal-container h2#aboutModalTitle {
    color: #ffffff !important;
}

.about-modal-container h3 {
    color: #55b355 !important;
}

.about-content-scroll::-webkit-scrollbar {
    width: 6px;
}

.about-content-scroll::-webkit-scrollbar-track {
    background: rgba(3, 13, 10, 0.5);
    border-radius: 4px;
}

.about-content-scroll::-webkit-scrollbar-thumb {
    background: rgba(85, 179, 85, 0.3);
    border-radius: 4px;
}

.about-content-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}
