/* ---- CSS Custom Properties ---- */
:root {
    /* Colores principales */
    --green-900: #1B5E20;
    --green-800: #2E7D32;
    --green-700: #388E3C;
    --green-600: #43A047;
    --green-500: #4CAF50;
    --green-400: #66BB6A;
    --green-300: #81C784;
    --green-200: #A5D6A7;
    --green-100: #C8E6C9;
    --green-50: #E8F5E9;

    /* Neutrales */
    --gray-900: #1a1a2e;
    --gray-800: #2d2d44;
    --gray-700: #404060;
    --gray-600: #555;
    --gray-500: #777;
    --gray-400: #999;
    --gray-300: #bbb;
    --gray-200: #e0e0e0;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    /* Acentos */
    --accent-tech: #00BCD4;
    --accent-warning: #FF9800;
    --accent-gradient: linear-gradient(135deg, var(--green-700), var(--green-500));

    /* Tipografía */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Espaciado */
    --section-padding: 100px 0;
    --container-max: 1280px;
    --container-padding: 0 24px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Header */
    --header-height: 90px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---- Utilidades ---- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-title span {
    color: var(--green-700);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    margin: 0 auto 20px;
}

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

/* ---- Botones ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 12px 28px;
}

.btn--primary {
    background: var(--green-700);
    color: var(--white);
    border-color: var(--green-700);
}

.btn--primary:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

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

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

.btn--white {
    background: var(--white);
    color: var(--green-800);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

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

.btn--lg {
    padding: 16px 36px;
    font-size: 0.95rem;
}

.btn--sm {
    padding: 10px 22px;
    font-size: 0.8rem;
}

.btn--full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #ffffff;
    transition: all var(--transition-base);
    border-top: 3px solid var(--gray-200);
    border-bottom: 1px solid #e8e8e8;
}

.header--scrolled {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top-width: 0;
    border-bottom-color: #ddd;
    height: 76px;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 24px;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header__logo-svg {
    height: 44px;
    width: auto;
    transition: height 0.3s ease;
}

.header__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.header__link {
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a4a4a;
    padding: 10px 18px;
    border-radius: 0;
    transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    position: relative;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #7CB342;
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: center;
}

.header__link:hover {
    color: #7CB342;
}

.header__link:hover::after {
    transform: scaleX(1);
}

.header__link.active {
    color: #7CB342;
}

.header__link.active::after {
    transform: scaleX(1);
}

.header__cta {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 10px 20px;
}

.header__cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
    background: #7CB342;
    border: 2px solid #7CB342;
    border-radius: 25px;
    padding: 11px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(124, 179, 66, 0.25);
}

.header__cta-btn:hover {
    background: #689F38;
    border-color: #689F38;
    box-shadow: 0 4px 16px rgba(124, 179, 66, 0.35);
    transform: translateY(-1px);
}

.header__cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(124, 179, 66, 0.2);
}

/* Variante outline para "Soy Colaborador" */
.header__cta-btn--outline {
    background: transparent;
    color: #7CB342;
    border-color: #7CB342;
    box-shadow: none;
}

.header__cta-btn--outline:hover {
    background: #7CB342;
    color: #ffffff;
    border-color: #7CB342;
    box-shadow: 0 4px 16px rgba(124, 179, 66, 0.35);
}

.header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
    cursor: pointer;
}

/* En desktop los botones del menú móvil se ocultan (ya están en el header) */
.header__mobile-ctas {
    display: none;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #4a4a4a;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-height) + 24px) 0 40px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(27, 94, 32, 0.85) 0%, rgba(46, 125, 50, 0.7) 50%, rgba(56, 142, 60, 0.5) 100%),
        url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=1920&q=80') center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* ── Hero BG Slider (carrusel de fondo) ──── */
.hero__bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 0;
    overflow: hidden;
}

.hero__bg-slide--active {
    opacity: 1;
}

.hero__bg-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.35) 100%),
        linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.62) 100%);
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 0;
}

.hero__content {
    display: flex;
    flex-direction: column;
}

.hero__title {
    font-size: clamp(1.95rem, 3.8vw, 3rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    max-width: 820px;
    text-wrap: balance;
}

.hero__title--accent {
    color: var(--green-300);
}

.hero__title--highlight {
    color: var(--green-200);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 520px;
    font-weight: 500;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.hero__media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__video-wrapper {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16/10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.5)),
        url('https://images.unsplash.com/photo-1586771107445-b3e7eb5e5135?w=800&q=80') center/cover no-repeat;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform var(--transition-base);
}

.hero__video-wrapper:hover {
    transform: scale(1.02);
}

.hero__video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.14);
}

.hero__video-placeholder svg {
    width: 74px;
    height: 74px;
    padding: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--green-700);
    fill: currentColor;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hero__video-wrapper:hover .hero__video-placeholder svg {
    transform: scale(1.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* Botón dinámico de play (inyectado por cms.js) */
.hero__play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.hero__play-btn__icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.hero__play-btn__icon svg {
    width: 26px;
    height: 26px;
    fill: var(--green-700);
    margin-left: 3px;
}

.hero__play-btn__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero__video-wrapper:hover .hero__play-btn__icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

/* ============================================
   BENEFICIOS — Íconos sobre el Hero (sin fondo)
   ============================================ */
.hero__benefits {
    position: relative;
    width: 100%;
    z-index: 3;
    margin-top: 84px;
    padding: 16px 0 32px;
    /* Gradiente oscuro extra justo en la franja de beneficios para garantizar legibilidad */
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.38) 100%);
}

.benefits-bar {
    background: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid var(--gray-200);
}

.benefits-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 60px;
    justify-items: stretch;  /* todas las celdas con el mismo ancho */
    align-items: stretch;    /* todas las celdas con la misma altura */
}

.benefits-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* contenido empieza arriba, card se estira */
    text-align: center;
    gap: 10px;
    padding: 18px 14px 16px;
    height: 100%;              /* ocupa toda la altura de su celda del grid */
    box-sizing: border-box;
    /* Glass card: legible sobre cualquier imagen del carrusel */
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
    animation: benefitFadeIn 0.7s ease forwards;
    opacity: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.benefits-bar__item:hover {
    background: rgba(0, 0, 0, 0.55);
    transform: translateY(-3px);
}

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

.benefits-bar__item:nth-child(1) { animation-delay: 0.15s; }
.benefits-bar__item:nth-child(2) { animation-delay: 0.30s; }
.benefits-bar__item:nth-child(3) { animation-delay: 0.45s; }
.benefits-bar__item:nth-child(4) { animation-delay: 0.60s; }
.benefits-bar__item:nth-child(5) { animation-delay: 0.75s; }
.benefits-bar__item:nth-child(6) { animation-delay: 0.90s; }

.benefits-bar__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Círculo verde semi-transparente que hace el ícono siempre visible */
    background: rgba(76, 175, 80, 0.28);
    border: 1.5px solid rgba(76, 175, 80, 0.55);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.benefits-bar__item:hover .benefits-bar__icon {
    transform: scale(1.1);
    background: rgba(76, 175, 80, 0.45);
}

.benefits-bar__icon svg {
    width: 26px;
    height: 26px;
    stroke: #ffffff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.benefits-bar__icon--cms {
    background: none;
    padding: 0;
}

.benefits-bar__icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: auto;
    transition: transform 0.3s ease, opacity 0.4s ease;
}

.benefits-bar__icon--cms.cms-loaded .benefits-bar__icon-img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.benefits-bar__item:hover .benefits-bar__icon-img {
    transform: scale(1.08);
}

.benefits-bar__text {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    line-height: 1.35;
    max-width: 150px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0,0,0,0.45);
}

.benefits-bar__desc {
    font-size: 0.62rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    letter-spacing: 0.2px;
    line-height: 1.5;
    max-width: 160px;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    margin-top: 2px;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services {
    padding: var(--section-padding);
    background: var(--gray-100);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card__image-placeholder {
    transform: scale(1.05);
}

.service-card__image-placeholder:not(.cms-loaded) {
    background: linear-gradient(135deg, #2E7D32, #43A047);
}

.service-card__image--fumigacion {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4)),
        url('https://images.unsplash.com/photo-1586771107445-b3e7eb5e5135?w=600&q=75') center/cover no-repeat;
}

.service-card__image--medicion {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4)),
        url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=600&q=75') center/cover no-repeat;
}

.service-card__image--venta {
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4)),
        url('https://images.unsplash.com/photo-1508614589041-895b88991e3e?w=600&q=75') center/cover no-repeat;
}

.service-card__image-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.7;
}

/* ── Slider automático de imágenes en cards de servicios ── */
.service-card__slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-card__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card__slide--active {
    opacity: 1;
}

.service-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--green-700);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.4);
    z-index: 3;
}

.service-card__content {
    padding: 28px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.service-card__icon-wrapper {
    width: 50px;
    height: 50px;
    margin: -50px auto 16px;
    background: var(--green-700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.service-card__icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.3;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.service-card__content .btn {
    max-width: 100%;
    width: auto;
    margin: 0 auto;
    padding: 11px 18px;
    font-size: 0.78rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    box-sizing: border-box;
    display: inline-flex;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.3px;
    align-self: center;
    justify-content: center;
    min-width: min(100%, 260px);
}

/* ============================================
   ¿POR QUÉ MAPAGRO?
   ============================================ */
.why-us {
    position: relative;
    overflow: hidden;
}

.why-us__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, var(--green-600) 100%);
    z-index: 0;
}

.why-us__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.why-us__content {
    background: linear-gradient(
        90deg,
        #1A4D00 0%,
        #1e5c08 20%,
        #246b12 40%,
        #3a8c20 60%,
        #5aa830 80%,
        #8BC34A 100%
    );
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 64px 56px 64px 8%;
    position: relative;
}

.why-us__content::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(
        90deg,
        rgba(26, 77, 0, 0.95) 0%,
        rgba(30, 92, 8, 0.75) 40%,
        rgba(36, 107, 18, 0.4) 70%,
        rgba(36, 107, 18, 0) 100%
    );
    backdrop-filter: blur(4px);
    z-index: 2;
}

.why-us__content-inner {
    max-width: 520px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.why-us__title {
    font-size: clamp(3rem, 5.5vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.why-us__title span {
    color: #4CAF50;
    display: inline;
}

.why-us__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-us__item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
    background: none !important;
}

.why-us__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.why-us__item:last-child {
    border-bottom: none;
}

.why-us__item:hover {
    padding-left: 10px;
}

.why-us__item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #4CAF50;
}

.why-us__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.why-us__image {
    position: relative;
    overflow: hidden;
    min-height: 460px;
}

.why-us__image-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease;
}

.why-us__image-inner.cms-loaded {
    background-blend-mode: normal;
}

/* -----------------------------------------------
   SLIDER de imágenes — sección Compromiso
   Contenido dentro de .why-us__image-inner
----------------------------------------------- */
.why-us__slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.why-us__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    pointer-events: none;
}
.why-us__slide--active {
    opacity: 1;
    pointer-events: auto;
}

.why-us__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Dots de navegación */
.why-us__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.why-us__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.why-us__dot--active {
    background: #ffffff;
    transform: scale(1.25);
}
.why-us__dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

/* -----------------------------------------------
   Compromiso con el Campo y el Medio Ambiente
   (columna izquierda del why-us)
----------------------------------------------- */
.why-us__compromiso-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.18;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.why-us__compromiso-title span {
    color: #7CDA7C;
}
.why-us__compromiso-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 440px;
}

/* Ítem con título en negrita + descripción debajo */
.why-us__item--compromiso {
    align-items: flex-start !important;
    padding: 13px 0;
    gap: 12px;
}
.why-us__item--compromiso .why-us__item-icon {
    margin-top: 2px;
    width: 22px;
    height: 22px;
    min-width: 22px;
}
.why-us__item--compromiso .why-us__item-icon svg {
    width: 22px;
    height: 22px;
    color: #7CDA7C;
}
.why-us__item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.why-us__item-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
.why-us__item-desc {
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    /* Oculta por defecto con transición suave */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

/* Mostrar al hover (desktop) */
.why-us__item--compromiso:hover .why-us__item-desc,
/* Mostrar al hacer clic (JS añade clase .open) */
.why-us__item--compromiso.open .why-us__item-desc {
    max-height: 200px;
    opacity: 1;
    margin-top: 4px;
}

/* Cursor de pointer para indicar interactividad */
.why-us__item--compromiso {
    cursor: pointer;
}

/* Pequeña flecha indicadora en el título */
.why-us__item-title::after {
    content: ' ›';
    font-size: 1rem;
    color: #7CDA7C;
    transition: transform 0.25s ease;
    display: inline-block;
}
.why-us__item--compromiso:hover .why-us__item-title::after,
.why-us__item--compromiso.open .why-us__item-title::after {
    transform: rotate(90deg);
}

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

/* ============================================
   TECNOLOGÍA
   ============================================ */
.technology {
    padding: var(--section-padding);
    background: var(--white);
}

.technology .container {
    max-width: 1600px;
}

.technology__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 24px;
}

.tech-card {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    min-width: 0;
}

.tech-card:hover {
    background: var(--white);
    border-color: var(--green-200);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.tech-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-base);
}

.tech-card__icon svg {
    width: 34px;
    height: 34px;
}

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

.tech-card__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.tech-card__desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ============================================
   GALERÍA / CASOS DE ÉXITO
   ============================================ */
.gallery {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    min-height: 240px;
}

.gallery__item--wide {
    grid-column: span 2;
}

.gallery__image {
    position: absolute;
    inset: 0;
    transition: transform var(--transition-slow);
}

.gallery__item:hover .gallery__image {
    transform: scale(1.08);
}

.gallery__image--1 {
    background: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=800&q=75') center/cover no-repeat;
}

.gallery__image--2 {
    background: url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=600&q=75') center/cover no-repeat;
}

.gallery__image--3 {
    background: url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?w=600&q=75') center/cover no-repeat;
}

.gallery__image--4 {
    background: url('https://images.unsplash.com/photo-1560493676-04071c5f467b?w=600&q=75') center/cover no-repeat;
}

.gallery__image--5 {
    background: url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=800&q=75') center/cover no-repeat;
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__overlay h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.gallery__overlay p {
    font-size: 0.85rem;
    color: var(--green-200);
    font-weight: 500;
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats {
    padding: 80px 0;
    background: var(--green-800);
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
    opacity: 0.9;
}

.stats__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stats__item {
    text-align: center;
    padding: 20px;
}

.stats__number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stats__number::after {
    content: '+';
    font-size: 0.7em;
    color: var(--green-300);
}

.stats__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-200);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats__map-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top: 28px;
    padding-bottom: 8px;
}

.stats__map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--green-800);
    background: #FFFFFF;
    border: 2px solid var(--green-700);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.stats__map-btn:hover {
    color: var(--white);
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 142, 60, 0.35);
}

.stats__map-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* ============================================
   MAPA DE COBERTURA — SECCIÓN INLINE (HOME)
   ============================================ */
.map-section {
    padding: 48px 0 50px;
    background: var(--gray-50, #f8f9fa);
}

.map-section .section-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--gray-600, #555);
    text-align: center;
}

.map-section__wrap {
    margin-top: 24px;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #f5f5f5;
    height: 480px;
    max-height: 64vh;
}

.map-section__wrap .map-cobertura {
    height: 100%;
}

@media (max-width: 768px) {
    .map-section {
        padding: 40px 0 50px;
    }
    .map-section__wrap {
        height: 380px;
        max-height: 58vh;
        border-radius: var(--radius-md, 12px);
    }
}

@media (max-width: 480px) {
    .map-section__wrap {
        height: 320px;
        max-height: 52vh;
    }
}

/* ============================================
   MAPA MODAL (conservado oculto)
   ============================================ */
.map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.map-modal.open {
    display: flex;
}

.map-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.7);
    cursor: pointer;
}

.map-modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border: 2px solid var(--green-200);
}

.map-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: var(--white);
}

.map-modal__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.map-modal__close {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.map-modal__close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.map-modal__body {
    padding: 12px 20px 16px;
}

.map-cobertura {
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
}

/* ── Contenedor del SVG con zoom ─────────── */
.map-svg-wrap {
    position: relative;
    padding: 0;
    cursor: grab;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    flex: 1 1 0%;
    min-height: 0;
}

.map-svg-wrap:active {
    cursor: grabbing;
}

.colombia-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Controles de zoom ───────────────────── */
.map-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.map-zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #1B5E20;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.map-zoom-btn:hover:not(:disabled) {
    background: #43A047;
    color: #fff;
}

.map-zoom-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.map-zoom-btn--reset {
    font-size: 1.1rem;
    border-top: 1px solid #e0e0e0;
}

/* ── Hint de zoom ────────────────────────── */
.map-zoom-hint {
    text-align: center;
    font-size: 0.75rem;
    color: #6b8f71;
    padding: 4px 16px 6px;
    background: #f0f7f0;
    border-top: 1px solid #e0ece0;
    flex-shrink: 0;
}

/* ── Departamentos ───────────────────────── */
.dept-active {
    cursor: pointer;
    transition: fill 0.25s, opacity 0.25s;
}

.dept-active:hover {
    fill: #2E7D32 !important;
}

.dept-inactive {
    cursor: pointer;
    transition: fill 0.25s;
}

.dept-inactive:hover {
    fill: #A5D6A7 !important;
}

/* ── Marcadores ──────────────────────────── */
.pin-pulse {
    fill: rgba(255, 255, 255, 0.5);
    transform-box: fill-box;
    transform-origin: center;
    animation: pinPulse 3s ease-in-out infinite;
}

.pin-outer {
    fill: #FFFFFF;
    stroke: #1B5E20;
    stroke-width: 1.2;
    cursor: pointer;
    transition: fill 0.2s, stroke 0.2s;
}

.pin-inner {
    fill: #2E7D32;
    pointer-events: none;
}

.city-pin:hover .pin-outer {
    fill: #FFC107;
    stroke: #F57F17;
}

.city-pin:hover .pin-inner {
    fill: #F57F17;
}

@keyframes pinPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(2.2); opacity: 0; }
}

/* ── Tooltip ─────────────────────────────── */
.map-tip {
    position: absolute;
    padding: 8px 16px;
    background: #1B5E20;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    letter-spacing: 0.02em;
}

.map-tip.show {
    opacity: 1;
}

/* ── Leyenda ─────────────────────────────── */
.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 10px 16px 12px;
    font-size: 0.82rem;
    color: #2E7D32;
    background: #fff;
    flex-shrink: 0;
}

.map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-legend__swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.map-legend__swatch--active {
    background: #43A047;
    border: 1px solid #2E7D32;
}

.map-legend__sep {
    width: 1px;
    height: 16px;
    background: #ddd;
    display: inline-block;
    flex-shrink: 0;
}

.map-legend strong {
    font-weight: 800;
    font-size: 1rem;
    color: #1B5E20;
}

.map-modal__hint {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================================
   CLIENTES
   ============================================ */
.clients {
    padding: var(--section-padding);
    background: var(--white);
}

.clients__carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.clients__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.clients__arrow:hover {
    border-color: var(--green-700);
    color: var(--green-700);
    background: var(--green-50);
}

.clients__arrow svg {
    width: 20px;
    height: 20px;
}

.clients__track-wrap {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Carrusel automático horizontal */
.clients__logos {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    width: max-content;
    will-change: transform;
    /* scroll controlado por requestAnimationFrame en cms.js */
}

.clients__logo {
    flex: 0 0 160px !important;
    width: 160px;
    flex-shrink: 0;
}

.clients__logo-inner {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
}

.clients__logo-inner:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.clients__logo-inner img {
    max-height: 72px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-fit: contain;
    display: block;
}

.clients__logo-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    text-align: center;
    line-height: 1.4;
}

.clients__logo-text strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
}

/* ============================================
   BLOG
   ============================================ */
.blog {
    padding: var(--section-padding);
    background: var(--gray-100);
}

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

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card__image {
    height: 200px;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__image {
    transform: scale(1.03);
}

.blog-card__image--1 {
    background: url('https://images.unsplash.com/photo-1586771107445-b3e7eb5e5135?w=500&q=75') center/cover no-repeat;
}

.blog-card__image--2 {
    background: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?w=500&q=75') center/cover no-repeat;
}

.blog-card__image--3 {
    background: url('https://images.unsplash.com/photo-1508614589041-895b88991e3e?w=500&q=75') center/cover no-repeat;
}

.blog-card__content {
    padding: 24px;
}

.blog-card__tag {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-700);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.blog-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--green-700);
    transition: color var(--transition-fast);
}

.blog-card__link:hover {
    color: var(--green-900);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-section__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 50%, var(--accent-tech) 150%);
}

.cta-section__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,188,212,0.15), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05), transparent 50%);
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-section__text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}

.cta-section__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   CONTACTO
   ============================================ */
.contact {
    padding: var(--section-padding);
    background: var(--white);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact__info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    background: var(--green-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--green-700);
}

.contact__info-icon svg {
    width: 22px;
    height: 22px;
}

.contact__info-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact__info-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.contact__socials {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.contact__social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.contact__social:hover {
    background: var(--green-800);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.contact__social svg {
    width: 20px;
    height: 20px;
}

.contact__form {
    background: var(--gray-100);
    padding: 40px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact__form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact__form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}

.contact__form-group input,
.contact__form-group select,
.contact__form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: border-color var(--transition-fast);
    outline: none;
    font-size: 0.95rem;
}

.contact__form-group input:focus,
.contact__form-group select:focus,
.contact__form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}

.contact__form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23777' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ============================================
   PÁGINA DE SERVICIOS (sección interna #pagina-servicios)
   ============================================ */
.services-page__hero {
    background: linear-gradient(135deg, #1A4D00 0%, #2E7D32 55%, #388E3C 100%);
    padding: 110px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 72px; /* compensa el header fijo */
}
.services-page__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.services-page__header {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
}
.services-page__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 28px;
}
.services-page__breadcrumb a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}
.services-page__breadcrumb a:hover { color: #fff; }
.services-page__breadcrumb span   { color: rgba(255,255,255,0.4); }

h2.services-title,
.services-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.services-title span { color: #7CDA7C; }

p.services-subtitle,
.services-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}
.services-page__hero .section-divider {
    background: rgba(255,255,255,0.45);
    margin: 18px auto 22px;
}
.svc-shimmer {
    display: inline-block;
    width: 340px;
    height: 1.2em;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.1) 25%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.1) 75%);
    background-size: 400% 100%;
    animation: svcShimmer 1.4s infinite;
    border-radius: 6px;
    vertical-align: middle;
}
@keyframes svcShimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position:   0% 50%; }
}
/* =====================================================
   ENCABEZADO DINÁMICO DE SERVICIOS
   CSS 100% aislado — NO afecta INICIO ni secciones
   globales. Solo aplica a .services-dynamic-hero
   ===================================================== */
.services-dynamic-hero {
    background: #ffffff;
    padding: 60px 24px 60px;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
}
/* Breadcrumb dentro del encabezado */
.services-dynamic-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 32px;
}
.services-dynamic-hero__breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.services-dynamic-hero__breadcrumb a:hover { color: #2E7D32; }
.services-dynamic-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

/* Título: grande, mayúsculas, espaciado elegante */
.services-dynamic-hero__titulo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #1C3A1C;
    line-height: 1.3;
    margin: 0 0 8px;
    text-shadow: none;
    word-break: break-word;
    white-space: pre-line; /* respeta saltos de línea del Google Sheets */
}
/* Última palabra resaltada en verde */
.services-dynamic-hero__titulo span {
    color: #4CAF50;
}

/* Divisor verde compacto */
.services-dynamic-hero__divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 2px;
    margin: 20px auto 24px;
}

/* Subtítulo: descriptivo, legible, sin sobrecargar */
.services-dynamic-hero__subtitulo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.92rem, 1.8vw, 1.08rem);
    font-weight: 400;
    color: #666666;
    line-height: 1.75;
    max-width: 620px;
    margin: 0 auto;
    letter-spacing: 0.2px;
}

/* Shimmer sobre fondo blanco */
.svc-shimmer--dark {
    background: linear-gradient(
        90deg,
        #e0e0e0 25%,
        #ebebeb 50%,
        #e0e0e0 75%
    ) !important;
    background-size: 400% 100% !important;
    animation: svcShimmer 1.4s infinite !important;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
    .services-dynamic-hero            { padding: 52px 20px 44px; }
    .services-dynamic-hero__titulo    { letter-spacing: 2px; }
}
@media (max-width: 480px) {
    .services-dynamic-hero            { padding: 40px 16px 36px; }
    .services-dynamic-hero__titulo    { letter-spacing: 1px; font-size: 1.7rem; }
    .services-dynamic-hero__subtitulo { font-size: 0.9rem; }
}

.services-page__content {
    padding: 70px 0 80px;
    background: #f9fafb;
}
@media (max-width: 768px) {
    .services-page__hero { padding: 90px 0 55px; }
}
@media (max-width: 480px) {
    .services-page__hero { padding: 80px 0 48px; }
    .services-title { letter-spacing: 0.5px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--green-800);
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 60%, var(--green-700) 100%);
    padding: 80px 0 0;
    color: var(--green-100);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer__logo-wrap {
    margin-bottom: 16px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.footer__desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--green-100);
    margin-bottom: 20px;
}

.footer__dji {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    background: none;
    border: none;
}

.footer__dji span {
    font-size: 0.75rem;
    color: var(--green-200);
}

.footer__dji-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-top: 6px;
}

.footer__links h4,
.footer__contact h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links a {
    font-size: 0.88rem;
    color: var(--green-100);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer__links a::before {
    content: '•';
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
}

.footer__links a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer__contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--green-100);
}

.footer__contact svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--white);
    margin-top: 2px;
}

.footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.footer__socials a:hover {
    background: rgba(255, 255, 255, 0.35);
    color: var(--white);
    transform: translateY(-3px);
}

.footer__socials svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.82rem;
    color: var(--green-200);
}

.footer__bottom a {
    color: var(--green-200);
    transition: color var(--transition-fast);
}

.footer__bottom a:hover {
    color: var(--green-400);
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

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

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--green-700);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green-800);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   VIDEO MODAL
   ============================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.video-modal__inner {
    position: relative;
    width: 90vw;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.35s ease;
}

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

.video-modal__iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   CMS - Estados de carga dinámicos
   ============================================ */
.cms-logo-img {
    display: block;
    height: 44px;        /* mismo tamaño que el SVG de fallback */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    transition: opacity 0.4s ease, height 0.3s ease;
}

.cms-loading {
    position: relative;
}

.cms-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: cms-shimmer 1.5s infinite;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes cms-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.cms-loaded {
    animation: cms-fadein 0.5s ease forwards;
}

@keyframes cms-fadein {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.cms-error {
    position: relative;
}

.cms-error:not([data-cms-type="logo"])::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: rgba(255, 152, 0, 0.6);
    border-radius: 50%;
    z-index: 5;
    pointer-events: none;
}

[data-cms-type="bg"].cms-loaded {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    image-rendering: auto;
}

.cms-fetching::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-500), var(--green-300), var(--green-500));
    background-size: 200% 100%;
    animation: cms-progress 1s linear infinite;
    z-index: 9999;
    pointer-events: none;
}

@keyframes cms-progress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   ANIMACIONES - SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--right {
    transform: translateX(40px);
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.services__grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.technology__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.technology__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.technology__grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.technology__grid .reveal:nth-child(5) { transition-delay: 0.4s; }

.benefits-bar__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.benefits-bar__grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.benefits-bar__grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.blog__grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.blog__grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.gallery__grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery__grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.gallery__grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.gallery__grid .reveal:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   RESPONSIVE - TABLET (max 1024px)
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
        --header-height: 70px;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-base);
        z-index: 1000;
    }

    .header__nav.open {
        right: 0;
    }

    .header__menu {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header__link {
        font-size: 1rem;
        padding: 14px 20px;
        width: 100%;
        border-radius: var(--radius-sm);
        letter-spacing: 0.8px;
    }

    .header__link::after {
        display: none;
    }

    .header__link:hover,
    .header__link.active {
        background: #f0f7e6;
    }

    .header__cta,
    .header__cta-btn {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Botones dentro del panel móvil */
    .header__mobile-ctas {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid #e8e8e8;
        width: 100%;
    }

    .header__mobile-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 20px;
        border-radius: 50px;
        font-family: var(--font-primary);
        font-size: 0.85rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .header__mobile-cta--primary {
        background: #7CB342;
        color: #ffffff;
        border: 2px solid #7CB342;
    }

    .header__mobile-cta--primary:hover {
        background: #689F38;
        border-color: #689F38;
    }

    .header__mobile-cta--outline {
        background: transparent;
        color: #7CB342;
        border: 2px solid #7CB342;
    }

    .header__mobile-cta--outline:hover {
        background: #7CB342;
        color: #ffffff;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero__benefits {
        margin-top: 64px;
    }

    .hero__subtitle {
        margin: 0 auto 36px;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__media {
        order: -1;
    }

    .hero__video-wrapper {
        max-width: 400px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .technology__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-us__inner {
        grid-template-columns: 1fr;
    }

    .why-us__content {
        padding: 50px 28px;
        justify-content: center;
    }

    .why-us__content::after {
        display: none;
    }

    .why-us__content-inner {
        max-width: 100%;
    }

    .why-us__title {
        font-size: 2.4rem;
        text-align: center;
    }

    .why-us__item {
        font-size: 1.1rem;
        padding: 13px 0;
    }

    .why-us__image {
        min-height: 300px;
        order: 1;
    }

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__item--wide {
        grid-column: span 2;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .hero__benefits {
        margin-top: 52px;
        padding: 12px 0 24px;
    }

    .benefits-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .benefits-bar__icon {
        width: 44px;
        height: 44px;
    }

    .benefits-bar__icon-img {
        width: 36px;
        height: 36px;
    }

    .benefits-bar__item {
        padding: 14px 10px 12px;
        border-radius: 12px;
    }

    .benefits-bar__text {
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }

    .service-card__content .btn {
        max-width: 100%;
        width: 100%;
        font-size: 0.8rem;
        padding: 12px 20px;
        white-space: normal;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (max 640px)
   ============================================ */
@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero {
        min-height: 100vh;
        padding: calc(var(--header-height) + 28px) 0 36px;
    }

    .hero__title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__video-wrapper {
        max-width: 100%;
    }

    .hero__play-btn__icon,
    .hero__video-placeholder svg {
        width: 68px;
        height: 68px;
        padding: 19px;
    }

    .hero__play-btn__icon svg {
        width: 22px;
        height: 22px;
    }

    .hero__play-btn__label {
        font-size: 0.66rem;
        padding: 5px 10px;
    }

    .benefits-bar__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero__benefits {
        margin-top: 44px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .technology__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .gallery__item--wide {
        grid-column: span 1;
    }

    .gallery__item {
        min-height: 200px;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stats__map-wrap {
        margin-top: 24px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats__map-btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .clients__track {
        gap: 16px;
    }

    .clients__logo {
        flex: 0 0 calc(50% - 8px);
        min-width: 140px;
    }

    .clients__logo-inner {
        height: 100px;
        padding: 16px;
    }

    .blog__grid {
        grid-template-columns: 1fr;
    }

    .cta-section__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .contact__form {
        padding: 24px;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }

    .back-to-top {
        bottom: 84px;
        right: 20px;
        width: 38px;
        height: 38px;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PEQUEÑO (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .benefits-bar__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefits-bar__item {
        padding: 14px 12px;
        border-radius: 10px;
        /* Layout horizontal: ícono a la izquierda, texto a la derecha */
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        height: auto;
    }

    .benefits-bar__icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .benefits-bar__icon svg,
    .benefits-bar__icon-img {
        width: 22px;
        height: 22px;
    }

    .benefits-bar__text {
        font-size: 0.75rem;
        letter-spacing: 0.6px;
        max-width: none;
    }

    .benefits-bar__desc {
        font-size: 0.7rem;
        text-align: left;
        max-width: none;
    }
}

/* ============================================
   RESPONSIVE - MOBILE PEQUEÑO (max 380px)
   ============================================ */
@media (max-width: 380px) {
    .hero__title {
        font-size: 1.58rem;
        line-height: 1.22;
    }

    .benefits-bar__grid {
        grid-template-columns: 1fr;
    }

    .stats__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

:focus-visible {
    outline: 3px solid var(--green-500);
    outline-offset: 2px;
}

::selection {
    background: var(--green-200);
    color: var(--green-900);
}

/* ============================================
   SHIMMER de carga — tabla comparativa
   Visible mientras llegan los datos del Sheet
   ============================================ */
.svc-compare__shimmer {
    color: transparent !important;
    background: linear-gradient(90deg, #e8e8e8 25%, #f5f5f5 50%, #e8e8e8 75%);
    background-size: 200% 100%;
    animation: svcShimmerAnim 1.4s infinite linear;
    border-radius: 4px;
    pointer-events: none;
}
@keyframes svcShimmerAnim {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   FONDO BLANCO para la sección de tarjetas
   únicamente dentro del panel SERVICIOS.
   Sobreescribe el gris global de .services
   sin afectar ninguna otra instancia.
   ============================================ */
#servicios-panel {
    background: #ffffff;
}

/* ============================================
   TABLA COMPARATIVA — PANEL SERVICIOS
   Clases aisladas: svc-compare__*
   No afectan ningún otro componente
   ============================================ */
.svc-compare {
    padding: 48px 0 56px;
    background: transparent;
}

.svc-compare__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Encabezados */
.svc-compare__header {
    background: #5a5a5a;
    padding: 16px 24px;
    text-align: center;
}
.svc-compare__header--green {
    background: #2E7D32;
}
.svc-compare__header span {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
}

/* Listas */
.svc-compare__list {
    list-style: none;
    margin: 0;
    padding: 28px 28px 32px;
    background: #f4f4f4;
    height: 100%;
    box-sizing: border-box;
}

.svc-compare__col--right .svc-compare__list {
    background: #f0f4f0;
}

.svc-compare__item {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d3a2e;
    padding: 10px 0 10px 28px;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.svc-compare__item:last-child {
    border-bottom: none;
}

/* Ícono ✗ para desventajas */
.svc-compare__item--bad::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: #c0392b;
    font-weight: 700;
}

/* Ícono ✓ para ventajas */
.svc-compare__item--good::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #2E7D32;
    font-weight: 700;
}

/* CTA debajo de la tabla — mismo estilo que .btn.btn--primary */
.svc-compare__cta-wrap {
    margin-top: 28px;
}

.svc-compare__cta {
    /* Layout: ocupa exactamente el ancho de la tabla */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    /* Tipografía idéntica a .btn */
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    /* Colores idénticos a .btn--primary */
    background: var(--green-700);
    color: var(--white);
    border: 2px solid var(--green-700);
    border-radius: var(--radius-sm);
    /* Espaciado */
    padding: 14px 28px;
    /* Transición idéntica a .btn */
    cursor: pointer;
    transition: all var(--transition-base);
}
.svc-compare__cta:hover {
    background: var(--green-800);
    border-color: var(--green-800);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.35);
}

/* Responsive: ya es width:100% en todos los viewports */
@media (max-width: 640px) {
    .svc-compare__cta {
        font-size: 0.8rem;
        padding: 13px 20px;
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .svc-compare__grid {
        grid-template-columns: 1fr;
    }
    .svc-compare__col--right .svc-compare__header {
        border-top: 3px solid #ffffff;
    }
    .svc-compare__item {
        font-size: 0.88rem;
    }
    .svc-compare__cta {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   MEJORAS GLOBALES DE RESPONSIVIDAD MÓVIL
   ============================================ */

/* Prevención de scroll horizontal */
html {
    overflow-x: hidden;
}

/* ============================================
   HEADER RESPONSIVE COMPLETO
   ============================================ */

/* Backdrop oscuro detrás del menú móvil */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* Tablet/Laptop intermedio: reducir padding del header */
@media (max-width: 1024px) {
    .header__inner {
        padding: 0 20px;
        gap: 12px;
    }

    .header__logo-svg,
    .cms-logo-img {
        height: 38px;
    }
}

/* Móvil: header compacto con hamburguesa */
@media (max-width: 768px) {
    .header__inner {
        padding: 0 16px;
        gap: 8px;
    }

    .header__logo-svg,
    .cms-logo-img {
        height: 34px;
    }

    /* Panel de navegación lateral — más cómodo en móvil */
    .header__nav {
        width: min(320px, 88vw); /* nunca más ancho que la pantalla */
        padding: 72px 24px 40px;
        overflow-y: auto;
        justify-content: flex-start; /* items desde arriba, no centrados */
    }

    .header__link {
        font-size: 0.92rem;
        padding: 13px 16px;
        letter-spacing: 0.8px;
    }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
    .header__inner {
        padding: 0 14px;
    }

    .header__logo-svg,
    .cms-logo-img {
        height: 30px;
    }

    .header__hamburger span {
        width: 22px;
    }
}

/* ── Ajustes 768px ──────────────────────────── */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Hero: max-width libre en móvil */
    .hero__title    { max-width: 100%; }
    .hero__subtitle { max-width: 100%; }

    /* Títulos de sección más compactos */
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    /* Why-us título reducido */
    .why-us__title {
        font-size: 1.9rem;
        letter-spacing: 1px;
    }

    .why-us__compromiso-title {
        font-size: 1.35rem;
    }

    /* Estadísticas: número más compacto */
    .stats__number {
        font-size: clamp(1.9rem, 5vw, 2.6rem);
    }

    /* Leyenda del mapa más compacta */
    .map-legend {
        font-size: 0.75rem;
        gap: 10px;
        padding: 8px 12px 10px;
    }
}

/* ── Ajustes 640px ──────────────────────────── */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Why-us: título y contenido */
    .why-us__title {
        font-size: 1.72rem;
        letter-spacing: 0.5px;
    }

    .why-us__content {
        padding: 36px 18px 40px;
    }

    .why-us__compromiso-title {
        font-size: 1.15rem;
    }

    .why-us__item {
        font-size: 0.97rem;
        padding: 10px 0;
    }

    .why-us__image {
        min-height: 260px;
    }

    /* Títulos de sección */
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.75rem);
    }

    /* Estadísticas */
    .stats__number { font-size: 1.85rem; }
    .stats__label  { font-size: 0.78rem; }

    /* Leyenda y hint del mapa */
    .map-legend {
        font-size: 0.72rem;
        gap: 8px;
        padding: 7px 10px 9px;
    }

    .map-legend strong { font-size: 0.86rem; }

    .map-zoom-hint {
        font-size: 0.68rem;
        padding: 3px 10px 5px;
    }

    /* Tarjetas de servicio */
    .service-card__content {
        padding: 20px 16px 18px;
    }

    /* Footer */
    .footer__dji     { padding: 24px 20px; text-align: center; }
    .footer__bottom p { font-size: 0.76rem; }

    /* Cards de beneficios: altura auto en móvil (no forzar igualdad estricta) */
    .benefits-bar__item {
        min-height: unset;
    }

    /* Panel SERVICIOS: título dinámico */
    .services-dynamic-hero__titulo {
        font-size: clamp(1.1rem, 4.5vw, 1.45rem);
        letter-spacing: 1.5px;
    }

    .services-dynamic-hero__subtitulo { font-size: 0.88rem; }

    .services-dynamic-hero { padding: 36px 16px 32px; }

    /* Tabla comparativa */
    .svc-compare__header {
        font-size: 0.8rem;
        padding: 14px 10px;
        letter-spacing: 0.5px;
    }

    .svc-compare__list {
        padding: 16px 12px 20px;
    }
}

/* ── Ajustes 480px ──────────────────────────── */
@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    /* Why-us */
    .why-us__title {
        font-size: 1.48rem;
        letter-spacing: 0;
    }

    .why-us__content {
        padding: 30px 14px 36px;
    }

    .why-us__compromiso-title { font-size: 1.05rem; }
    .why-us__item              { font-size: 0.92rem; }

    /* Grilla de tecnología: 1 columna en pantallas pequeñas */
    .technology__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Títulos de sección */
    .section-title {
        font-size: 1.3rem;
    }

    /* Stats */
    .stats__number { font-size: 1.7rem; }

    /* Subtítulo del hero */
    .hero__subtitle { font-size: 0.92rem; }

    /* Logos de clientes */
    .clients__logo       { flex: 0 0 118px; min-width: 100px; }
    .clients__logo-inner { height: 88px; padding: 12px; }

    /* Leyenda del mapa en columna en pantallas muy pequeñas */
    .map-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 8px 12px;
    }

    .map-legend__sep { display: none; }

    .map-section__wrap { border-radius: 8px; }

    /* Panel SERVICIOS: título dinámico */
    .services-dynamic-hero__titulo {
        font-size: clamp(1rem, 4.5vw, 1.3rem);
        letter-spacing: 1px;
    }
}

/* ── Ajustes 380px: pantallas muy pequeñas ── */
@media (max-width: 380px) {
    :root {
        --section-padding: 50px 0;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Menú lateral más estrecho para caber en pantalla */
    .header__nav {
        width: 88vw;
        padding: 30px 20px;
    }

    .why-us__title   { font-size: 1.3rem; }
    .section-title   { font-size: 1.2rem; }
    .hero__title     { font-size: 1.42rem; }
    .stats__number   { font-size: 1.5rem; }

    .benefits-bar__item { padding: 10px 6px 8px; }
    .stats__grid        { gap: 10px; }

    .technology__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MEJORAS DE INTERACTIVIDAD Y UX MÓVIL
   ============================================================ */

/* ── 1. Eliminar delay táctil y tap-highlight nativo ──────── */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button, [role="button"],
.btn, .service-card, .tech-card,
.benefits-bar__item, .stats__item,
.header__link, .header__hamburger,
.whatsapp-float, .back-to-top,
.mobile-cta-bar__btn {
    touch-action: manipulation; /* elimina el delay de 300ms en tap */
}

/* ── 2. Estados :active en móvil (respuesta táctil visual) ── */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.96);
        opacity: 0.88;
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    .service-card:active {
        transform: scale(0.985);
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        transition: transform 0.12s ease;
    }

    .tech-card:active {
        transform: scale(0.97);
        transition: transform 0.12s ease;
    }

    .benefits-bar__item:active {
        transform: scale(0.96);
        opacity: 0.85;
        transition: transform 0.1s ease;
    }

    .header__link:active {
        background: #f0f7e6;
    }

    .whatsapp-float:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }

    .mobile-cta-bar__btn:active {
        background: rgba(255,255,255,0.1);
        transition: background 0.1s ease;
    }
}


/* ── 4. Tipografía móvil mejorada ─────────────────────────── */
@media (max-width: 768px) {
    /* Textos de sección más legibles */
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .service-card__desc,
    .tech-card__desc {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    /* Botones más grandes (mínimo 48px de alto = accesibilidad táctil) */
    .btn {
        min-height: 48px;
        padding: 13px 24px;
        font-size: 0.88rem;
    }

    .btn--lg {
        min-height: 52px;
        padding: 15px 28px;
        font-size: 0.92rem;
    }

    /* Stats: números más impactantes */
    .stats__number {
        font-size: clamp(2rem, 6vw, 2.6rem);
    }

    .stats__label {
        font-size: 0.82rem;
        letter-spacing: 0.3px;
    }

    /* Padding de sección más cómodo */
    .stats {
        padding: 60px 0;
    }

    .tech-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 0.93rem;
    }

    .service-card__desc,
    .tech-card__desc {
        font-size: 0.85rem;
    }

    /* Hero buttons: altura táctil cómoda */
    .hero__buttons .btn {
        min-height: 52px;
        font-size: 0.9rem;
        padding: 15px 20px;
    }

    .stats {
        padding: 50px 0;
    }

    .tech-card {
        padding: 22px 16px;
    }

}

/* ── 5. Scroll reveal más suave en móvil ─────────────────── */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(16px); /* entrada más sutil en móvil */
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    /* Delay reducido en móvil para no hacer esperar al usuario */
    .reveal--right { transition-delay: 0.05s; }
    .reveal--left  { transition-delay: 0.05s; }
}

/* ── 6. Efecto de entrada del hero más rápido en móvil ────── */
@media (max-width: 768px) {
    .hero__content {
        animation: heroFadeInMobile 0.7s ease both;
    }

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

/* ============================================================
   VISTA VENTA DE DRONES
   ============================================================ */

/* ── Sección pregunta + tabs de modelos ─────────────────── */
.vd-models-section {
    background: #ffffff;
    padding: 56px 0 0;
    border-bottom: 1px solid #e8e8e8;
}

.vd-models__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 64px;  /* espacio entre tabs y video */
}

.vd-models__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #2e2e2e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
}

.vd-models__title:empty {
    display: none;
}

/* Tabs */
.vd-models__tabs {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    border-bottom: none;
    margin-bottom: 0;
}

.vd-models__tab {
    background: none;
    border: none;
    padding: 0 0 14px;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 600;
    color: #555;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.vd-models__tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.vd-models__tab--active {
    color: #1a1a1a;
}

.vd-models__tab--active::after {
    background: #2e2e2e;
}

.vd-models__tab:hover {
    color: #1a1a1a;
}

/* Paneles de contenido por tab */
.vd-models__panels {
    width: 100%;
    border-top: 1px solid #e8e8e8;
    margin-top: 24px;
}

.vd-models__panel {
    display: none;
}

.vd-models__panel--active {
    display: block;
}

/* ── Video del modelo ── */
.vd-model-video {
    width: 100%;
    background: #111;
    line-height: 0;
}

.vd-model-video__wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;  /* 16:9 */
    overflow: hidden;
}

.vd-model-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}

/* ── Detalle: imagen izq + info der ── */
.vd-model-detail {
    background: #fff;
    padding: 64px 0 80px;
}

.vd-model-detail__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.vd-model-detail__img-wrap {
    flex: 0 0 52%;
    max-width: 52%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vd-model-detail__img {
    width: 100%;
    max-width: 580px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.13));
}

.vd-model-detail__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* todo a la izquierda */
    gap: 18px;
    text-align: left;
}

.vd-model-detail__title {
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 900;
    color: #111;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.0;
    margin: 0;
    text-align: left;
}

.vd-model-detail__desc {
    font-size: clamp(0.88rem, 1.3vw, 0.97rem);
    color: #444;
    line-height: 1.85;
    text-align: justify;
    margin: 0;
}

.vd-model-detail__btn {
    margin-top: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 15px 38px;
    white-space: nowrap;
    align-self: flex-start;  /* botón pegado a la izquierda */
}

/* Responsive */
@media (max-width: 860px) {
    .vd-model-detail__inner {
        flex-direction: column;
        gap: 36px;
    }
    .vd-model-detail__img-wrap {
        flex: 0 0 100%;
        max-width: 80%;
        margin: 0 auto;
    }
    .vd-model-detail__info {
        align-items: flex-start;
        text-align: left;
    }
    .vd-model-detail { padding: 44px 0 56px; }
    .vd-model-detail__btn { white-space: normal; }
}
@media (max-width: 480px) {
    .vd-model-video__wrap    { padding-bottom: 65%; }
    .vd-model-detail__img-wrap { max-width: 100%; }
    .vd-model-detail__btn    { width: 100%; text-align: center; }
}

/* ══════════════════════════════════════════════════
   VD SPECS SECTION  — bloques alternados imagen / tarjetas
   Estructura (por modelo):
     Bloque 1 → imagen izquierda | 2 tarjetas derecha
     Bloque 2 → 2 tarjetas izquierda | imagen derecha
     Bloque 3 → imagen izquierda | 2 tarjetas derecha
     Final    → imagen ancho completo
   ══════════════════════════════════════════════════ */
.vd-specs-section {
    background: #fff;
    border: none;
}

/* Fila: mitad imagen — mitad tarjetas, altura fija y uniforme */
.vd-specs-row {
    display: flex;
    height: 420px;   /* altura fija igual para todas las filas */
}

/* Mitad imagen */
.vd-specs-row__img {
    flex: 0 0 50%;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.vd-specs-row__img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* recorta imágenes verticales para que llenen el espacio horizontal */
    object-position: center;
    display: block;
}

/* Mitad tarjetas: grid 2 columnas sin separadores visibles */
.vd-specs-row__cards {
    flex: 0 0 50%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #fff;
}

/* Tarjeta individual */
.vd-spec-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 24px;
    gap: 14px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Caja del ícono: sin borde ni fondo gris */
.vd-spec-card__icon-box {
    width: 220px;
    height: 220px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
    margin: 0 auto;
}

.vd-spec-card__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vd-spec-card__text {
    font-size: 0.83rem;
    font-weight: 700;
    color: #333;
    line-height: 1.55;
    width: 100%;
    max-width: 190px;
    text-align: center;
    margin: 0;
    align-self: center;
}

/* Imagen final ancho completo — sin bordes ni fondo gris */
.vd-specs-final {
    width: 100%;
    background: #fff;
    line-height: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    box-sizing: border-box;
}

.vd-specs-final__img {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    object-fit: contain;   /* muestra la imagen completa sin recortar */
}

/* Strip blanco: logo DJI Agriculture + botón CTA */
.vd-specs-cta-strip {
    background: #fff;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-top: 1px solid #e8e8e8;
}

.vd-specs-cta-strip__logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
}

.vd-specs-cta-strip__btn {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 13px 32px;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════
   RESPONSIVE VD-SPECS — optimizado para móvil
   ══════════════════════════════════════════════ */

/* ── Tablet (≤ 860px) ── */
@media (max-width: 860px) {
    /* Specs rows: apilar imagen arriba, tarjetas abajo */
    .vd-specs-row {
        flex-direction: column;
        height: auto;
    }
    .vd-specs-row__img,
    .vd-specs-row__cards {
        flex: 0 0 100%;
        width: 100%;
    }
    .vd-specs-row__img {
        height: 260px;
    }
    .vd-spec-card {
        padding: 28px 16px;
        gap: 12px;
    }
    .vd-spec-card__icon-box {
        width: 140px;
        height: 140px;
    }
    .vd-spec-card__text {
        font-size: 0.80rem;
    }
    .vd-specs-final {
        padding: 32px 40px;
    }
    .vd-specs-cta-strip {
        padding: 28px 24px;
    }
}

/* ── Móvil grande (≤ 600px) ── */
@media (max-width: 600px) {
    /* Tabs: scroll horizontal para varios modelos */
    .vd-models-section { padding: 32px 0 0; }
    .vd-models__container { padding: 0 16px; }
    .vd-models__title  { font-size: 1.1rem; padding: 0 16px; }
    .vd-models__tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 16px 12px;
        gap: 20px;
        scrollbar-width: none;
    }
    .vd-models__tabs::-webkit-scrollbar { display: none; }
    .vd-models__tab {
        font-size: 0.92rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Imagen del row más compacta */
    .vd-specs-row__img {
        height: 220px;
    }
    .vd-spec-card {
        padding: 22px 10px;
        gap: 10px;
    }
    .vd-spec-card__icon-box {
        width: 110px;
        height: 110px;
    }
    .vd-spec-card__text {
        font-size: 0.75rem;
        max-width: 130px;
    }
    .vd-specs-final {
        padding: 24px 16px;
    }
    .vd-specs-cta-strip {
        padding: 22px 16px;
        gap: 14px;
    }
    .vd-specs-cta-strip__btn {
        white-space: normal;
        width: 100%;
        text-align: center;
        font-size: 0.82rem;
        padding: 13px 20px;
    }
    .vd-specs-cta-strip__logo {
        height: 24px;
    }
}

/* ── Móvil pequeño (≤ 420px) ── */
@media (max-width: 420px) {
    .vd-specs-row__img {
        height: 185px;
    }
    .vd-spec-card {
        padding: 18px 8px;
        gap: 8px;
    }
    .vd-spec-card__icon-box {
        width: 82px;
        height: 82px;
    }
    .vd-spec-card__text {
        font-size: 0.70rem;
        max-width: 110px;
        line-height: 1.4;
    }
    .vd-specs-final {
        padding: 18px 10px;
    }
    .vd-specs-cta-strip {
        padding: 18px 14px;
    }
    .vd-models__tab {
        font-size: 0.82rem;
    }
}

/* ── Hero ─────────────────────────────────────────────────── */
.vd-hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    /* Fondo de respaldo mientras cargan las imágenes del Sheets */
    background: #0d2b0d;
    padding: calc(var(--header-height) + 48px) 0 64px;
    overflow: hidden;
}

/* Contenedor del slider de fondo */
.vd-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Overlay sobre el slider: oscuro izquierda → claro derecha */
.vd-hero__bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(5, 20, 5, 0.80) 0%,
        rgba(5, 20, 5, 0.55) 45%,
        rgba(5, 20, 5, 0.18) 75%,
        rgba(5, 20, 5, 0.05) 100%
    );
    pointer-events: none;
}

/* Las slides heredan las clases .hero__bg-slide ya definidas,
   pero necesitan estar relativas al .vd-hero__bg */
#vdHeroBgSlider .hero__bg-slide {
    z-index: 1;
}

.vd-hero__inner {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

/* El contenido ocupa solo la mitad izquierda */
.vd-hero__content {
    max-width: 520px;
    text-align: left;
}

.vd-hero__title:empty,
.vd-hero__subtitle:empty {
    display: none;
}

.vd-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.vd-hero__subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    margin-bottom: 36px;
    font-weight: 600;
    max-width: 420px;
    text-align: left;
}

.vd-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.vd-btn-outline {
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

.vd-btn-outline:hover {
    background: rgba(255,255,255,0.15) !important;
    border-color: #fff !important;
}

/* ── ¿Por qué MAPAGRO? ───────────────────────────────────── */
.vd-why {
    padding: var(--section-padding);
    background: #ffffff;
}

.vd-why__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 8px;
}

.vd-why__item {
    text-align: center;
    padding: 32px 20px;
    background: var(--gray-50, #f8f9fa);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vd-why__item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.vd-why__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.vd-why__icon svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
}

.vd-why__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.vd-why__desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ── Catálogo de drones ──────────────────────────────────── */
.vd-catalog {
    padding: var(--section-padding);
    background: var(--gray-100);
}

.vd-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 8px;
}

.vd-drone-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.vd-drone-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vd-drone-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--green-700);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 2;
}

.vd-drone-card__img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #f0f7e6, #e8f5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vd-drone-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.vd-drone-card:hover .vd-drone-card__img {
    transform: scale(1.06);
}

.vd-drone-card__body {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vd-drone-card__name {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.vd-drone-card__tagline {
    font-size: 0.83rem;
    color: var(--green-700);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.vd-drone-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.vd-drone-card__specs li {
    font-size: 0.84rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vd-drone-card__specs li::before {
    content: '✓';
    color: var(--green-600);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.vd-drone-card__specs li span {
    font-weight: 700;
    color: var(--gray-800);
    margin-right: 2px;
}

.vd-drone-card__btn {
    width: 100%;
    text-align: center;
    white-space: normal;
}

/* ── CTA final ───────────────────────────────────────────── */
.vd-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
}

.vd-cta__inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.vd-cta__title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 16px;
}

.vd-cta__desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .vd-why__grid     { grid-template-columns: repeat(2, 1fr); }
    .vd-catalog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .vd-hero {
        min-height: 55vh;
        padding-bottom: 48px;
    }

    .vd-hero__bg-overlay {
        background: linear-gradient(
            to right,
            rgba(5, 20, 5, 0.88) 0%,
            rgba(5, 20, 5, 0.70) 60%,
            rgba(5, 20, 5, 0.35) 100%
        );
    }

    .vd-hero__inner    { padding: 0 20px; }
    .vd-hero__content  { max-width: 100%; }
    .vd-hero__actions  { flex-direction: column; }
    .vd-hero__actions .btn { width: 100%; }

    /* Detalle modelo en móvil */
    .vd-model-detail { padding: 36px 0 44px; }
    .vd-model-detail__inner {
        flex-direction: column;
        gap: 24px;
        padding: 0 20px;
    }
    .vd-model-detail__img-wrap {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .vd-model-detail__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .vd-model-detail__btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* Hero en pantallas muy pequeñas */
@media (max-width: 420px) {
    .vd-hero {
        min-height: 50vh;
    }
    .vd-hero__inner { padding: 0 16px; }
    .vd-hero__title { font-size: clamp(1.6rem, 9vw, 2.2rem) !important; }
    .vd-hero__subtitle { font-size: 0.85rem; }
}

@media (max-width: 640px) {
    .vd-why__grid     { grid-template-columns: 1fr; gap: 16px; }
    .vd-catalog__grid { grid-template-columns: 1fr; gap: 20px; }
    .vd-why__item { padding: 24px 16px; }
}

/* ── 7. Ocultar elementos flotantes en print ─────────────── */

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .header,
    .whatsapp-float,
    .back-to-top,
    .cta-section,
    .hero__buttons {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .hero {
        min-height: auto;
        padding: 20px 0;
    }
}
