/*
 * HOME.CSS â€” Aseagro Vanguardia â€” Dark Tech Premium
 * Mismo lenguaje visual que CropsConnect: glassmorphism, neon, grid animado.
 * Aplicado a: front-page.php (body.home)
 */

/* ========================================================
   GLOBAL â€” HOME DARK MODE
   ======================================================== */
body.home {
    background: #0a0f1a;
}

body.home .site-header:not(.is-scrolled) {
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.home .site-header:not(.is-scrolled) .nav__list li a {
    color: rgba(255, 255, 255, 0.85);
}

body.home .site-header:not(.is-scrolled) .nav__list li a:hover {
    color: #8BC53F;
    background: rgba(139, 197, 63, 0.08);
}

body.home .site-header:not(.is-scrolled) .site-header__logo-name {
    color: #fff;
}

body.home .site-header:not(.is-scrolled) .site-header__logo-ag {
    color: #8BC53F;
}

body.home .site-header:not(.is-scrolled) .site-header__logo-tagline {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================================
   VARIABLES LOCALES â€” HOME
   ======================================================== */
body.home {
    --h-green: #8BC53F;
    --h-green-dark: #6B9B2A;
    --h-blue: #0D5C8C;
    --h-blue-dark: #043A6B;
    --h-dark: #0a0f1a;
    --h-dark-2: #111827;
    --h-glow-green: rgba(139, 197, 63, 0.35);
    --h-glow-blue: rgba(13, 92, 140, 0.35);
    --h-border: rgba(255, 255, 255, 0.06);
    --h-border-green: rgba(139, 197, 63, 0.2);
    --h-text-muted: rgba(255, 255, 255, 0.5);
    --h-text-body: rgba(255, 255, 255, 0.65);
}

/* ========================================================
   ANIMACIONES GLOBALES â€” HOME
   ======================================================== */
@keyframes h-gridPulse {
    0%, 100% { opacity: 0.03; }
    50%       { opacity: 0.07; }
}

@keyframes h-float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-18px); }
}

@keyframes h-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.2; }
}

@keyframes h-scanLine {
    0%   { top: -2px; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

@keyframes h-pulseGlow {
    0%, 100% { box-shadow: 0 0 25px var(--h-glow-green), 0 0 60px rgba(139,197,63,0.08); }
    50%      { box-shadow: 0 0 50px var(--h-glow-green), 0 0 100px rgba(139,197,63,0.15); }
}

@keyframes h-fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes h-fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes h-fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes h-countUp {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* Intersection observer animations */
body.home .h-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.home .h-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.home .h-animate--left  { transform: translateX(-40px); }
body.home .h-animate--right { transform: translateX(40px); }
body.home .h-animate--scale { transform: scale(0.85); }

/* ========================================================
   HERO â€” DARK TECH PREMIUM
   ======================================================== */
body.home .hero {
    background: radial-gradient(ellipse at 25% 55%, rgba(13, 92, 140, 0.18) 0%, transparent 55%),
                radial-gradient(ellipse at 75% 75%, rgba(139, 197, 63, 0.07) 0%, transparent 50%),
                #0a0f1a;
}

/* Animated Grid overlay */
body.home .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 197, 63, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 197, 63, 0.055) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: h-gridPulse 5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Floating orbs */
body.home .hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(139,197,63,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: h-float 10s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

/* Override fondo del hero-bg cuando no hay imagen */
body.home .hero__bg--gradient {
    background: transparent;
}

/* ==========================================================================
   TESTIMONIOS — BENTO GRID UI
   ========================================================================== */
.bento-section {
    position: relative;
    background: radial-gradient(ellipse at 80% 20%, rgba(13,92,140,0.1) 0%, transparent 50%),
                #111827; /* Estilo alineado con CropsConnect */
    padding: 8rem 0;
    overflow: hidden;
}

.bento-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem; /* gap-6 */
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

/* Base Card Estilo y Reflejo */
.bento-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem; /* rounded-3xl */
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Linear Gradient border reflection */
.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px; 
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.01) 50%, rgba(139,197,63,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(139,197,63,0.06);
}

/* Multimedia Gran Bloque */
.bento-media {
    grid-column: 1 / -1; /* Ocupa las 3 columnas para que las testies caigan proporcionadas abajo */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px; /* Aumentado para mayor presencia premium hero-like */
}

.bento-media__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: inherit; /* Asegura que el video respete el rounded del card */
}

@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-media {
        padding: 2rem;
        min-height: 350px;
    }
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 26, 0.4); /* 40% oscurecimiento */
    z-index: 1;
}

.bento-media__content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.bento-media__content h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #fff;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.bento-media__content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.6;
}

/* Botón Glass Tech */
.btn-glass-tech {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(139,197,63,0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.btn-glass-tech:hover {
    background: rgba(139,197,63,0.15);
    border-color: rgba(139,197,63,0.4);
    box-shadow: 0 0 30px rgba(139,197,63,0.4), inset 0 0 15px rgba(139,197,63,0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Testimonios pequeños */
.bento-testi {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.bento-testi__icon {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.bento-testi__quote {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
    font-weight: 300;
    flex-grow: 1;
}

.bento-testi__author {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
}

.bento-testi__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(139,197,63,0.3); /* crops-green con opacidad */
    flex-shrink: 0;
}

.bento-testi__author div {
    display: flex;
    flex-direction: column;
}

.bento-testi__author strong {
    color: var(--crops-green);
    font-weight: 600;
    font-size: 1rem;
}

.bento-testi__author span {
    color: rgba(255,255,255,0.45);
    font-size: 0.85rem;
}

/* Testimonios normalizados - Todas las cajas iguales */

/* Responsive grid */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-media { grid-column: span 1; padding: 2rem; }
}

/* Overlay: quitar el overlay azul antiguo, la nueva bg lo maneja */
body.home .hero__bg::after {
    background: none;
}

/* H1 con gradient text */
body.home .hero__h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.03em;
}

body.home .hero__h1 em,
body.home .hero__h1 .accent {
    font-style: normal;
    background: linear-gradient(135deg, var(--h-green), #c2e87a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.home .hero__h2 {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

/* Badge hero: estilo alineado con CropsConnect (azul) */
body.home .hero__badge .badge--white {
    background: rgba(13, 92, 140, 0.15);
    color: #5ba8d4;
    border: 1px solid rgba(13, 92, 140, 0.25);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

body.home .hero__badge .badge--dot::before {
    background: #5ba8d4;
    animation: h-blink 2s infinite;
}

/* MÃ©tricas del hero: valores en verde neÃ³n */
body.home .hero__metric-value {
    font-family: var(--font-mono);
    font-size: var(--text-3xl);
    color: var(--h-green);
    font-weight: 800;
}

body.home .hero__metric-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home .hero__metrics {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* CTA Hero */
body.home .hero__ctas .btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(4px);
}

body.home .hero__ctas .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

body.home .hero__ctas .btn--accent {
    background: var(--h-green);
    color: #0a0f1a;
    border-color: var(--h-green);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

body.home .hero__ctas .btn--accent::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

body.home .hero__ctas .btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--h-glow-green);
    color: #0a0f1a;
}

body.home .hero__ctas .btn--accent:hover::after {
    transform: translateX(100%);
}

/* Panel dashboard glassmorphism mejorado */
body.home .hero__panel-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--h-border-green);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    animation: h-pulseGlow 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

/* Scan line sobre el panel */
body.home .hero__panel-card::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--h-green), transparent);
    animation: h-scanLine 4s linear infinite;
    z-index: 2;
    pointer-events: none;
}

body.home .hero__panel-title {
    color: rgba(255, 255, 255, 0.4);
}

body.home .hero__panel-metric-label {
    color: rgba(255, 255, 255, 0.45);
}

body.home .hero__panel-metric-value {
    color: var(--h-green);
}

body.home .hero__panel-bar-fill {
    background: var(--h-blue);
}

body.home .hero__panel-bar-fill--accent {
    background: var(--h-green);
}

body.home .hero__panel-bar-fill--green {
    background: #25D366;
}

body.home .hero__panel-alert {
    background: rgba(139, 197, 63, 0.08);
    border: 1px solid rgba(139, 197, 63, 0.2);
    color: var(--h-green);
}

/* ========================================================
   PARTNERS BAND â€” Dark style
   ======================================================== */
body.home .partners-band {
    background: #111827;
    border-top: 1px solid rgba(139, 197, 63, 0.1);
    border-bottom: 1px solid rgba(139, 197, 63, 0.1);
    padding-block: 1.75rem;
}

body.home .partners-band__label {
    color: rgba(255, 255, 255, 0.3);
}

body.home .partners-band__logo {
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

body.home .partners-band__logo:hover {
    color: var(--h-green);
}

/* ========================================================
   TRUST SECTION â€” Dark glassmorphism
   ======================================================== */
body.home .trust.section {
    background: #0a0f1a;
    position: relative;
    overflow: hidden;
}

/* LÃ­nea central decorativa */
body.home .trust.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(139,197,63,0.12), transparent);
    pointer-events: none;
}

body.home .trust__stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.home .trust__stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,197,63,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.home .trust__stat:hover {
    border-color: var(--h-border-green);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139,197,63,0.04);
}

body.home .trust__stat:hover::before {
    opacity: 1;
}

body.home .trust__stat-value {
    font-family: var(--font-mono);
    color: var(--h-green);
    font-size: clamp(2.2rem, 4vw, 3rem);
}

body.home .trust__stat-unit {
    color: rgba(255, 255, 255, 0.3);
}

body.home .trust__stat-label {
    color: rgba(255, 255, 255, 0.55);
}

body.home .trust__headline {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

body.home .trust > .container > .trust__inner > .trust__text p {
    color: rgba(255, 255, 255, 0.72);
}

body.home .trust__team {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

body.home .trust__team-member strong {
    color: #fff;
}

body.home .trust__team-member span {
    color: rgba(255, 255, 255, 0.4);
}

body.home .trust__team-avatar {
    background: rgba(139, 197, 63, 0.15);
    color: var(--h-green);
    border: 1px solid rgba(139, 197, 63, 0.25);
}

body.home .trust .badge--primary {
    background: rgba(13, 92, 140, 0.15);
    color: #5ba8d4;
    border: 1px solid rgba(13, 92, 140, 0.25);
}

body.home .trust .btn--outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

body.home .trust .btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ========================================================
   CROPSCONNECT SECTION â€” Dark con glow azul / layout dos columnas
   ======================================================== */
body.home .cropsconnect.section.bg-dark {
    background: radial-gradient(ellipse at 80% 20%, rgba(13,92,140,0.1) 0%, transparent 50%),
                #111827;
    position: relative;
    overflow: hidden;
}

body.home .cropsconnect.section.bg-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Badge del header */
body.home .cc-home__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(139, 197, 63, 0.1);
    color: var(--h-green);
    border: 1px solid rgba(139, 197, 63, 0.22);
    margin-bottom: var(--space-md);
}

body.home .cc-home__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--h-green);
    animation: h-blink 2s infinite;
    flex-shrink: 0;
}

body.home .cc-home__headline {
    color: #fff !important;
    font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

body.home .cc-home__intro {
    color: rgba(255,255,255,0.58) !important;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
}

/* Cuerpo: grid de dos columnas */
body.home .cc-home__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: var(--space-3xl);
}

/* â€”â€”â€” COLUMNA FEATURES â€”â€”â€” */
body.home .cc-home__features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

body.home .cc-home__feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

body.home .cc-home__feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,197,63,0.35), transparent);
    opacity: 0;
    transition: opacity 0.35s ease;
}

body.home .cc-home__feature:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(139,197,63,0.2);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

body.home .cc-home__feature:hover::before {
    opacity: 1;
}

/* Ãconos */
body.home .cc-home__feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 197, 63, 0.1);
    border: 1px solid rgba(139, 197, 63, 0.2);
    color: var(--h-green);
}

body.home .cc-home__feature-icon--ai {
    background: rgba(13, 92, 140, 0.15);
    border-color: rgba(13, 92, 140, 0.3);
    color: #5ba8d4;
}

body.home .cc-home__feature-icon--whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.2);
    color: #25D366;
}

/* Texto del feature â€” especificidad alta para superar reset global */
body.home .cc-home__features .cc-home__feature .cc-home__feature-text h3 {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

body.home .cc-home__features .cc-home__feature .cc-home__feature-text p {
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* Tag "Exclusivo" dentro del h3 */
body.home .cc-home__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 50px;
    background: rgba(139,197,63,0.12);
    color: var(--h-green);
    border: 1px solid rgba(139,197,63,0.22);
    vertical-align: middle;
}

/* CTA debajo de los features */
body.home .cc-home__cta {
    margin-top: var(--space-xl);
}

/* â€”â€”â€” COLUMNA VISUAL (imagen) â€”â€”â€” */
body.home .cc-home__visual {
    position: relative;
}

body.home .cc-home__device {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(139,197,63,0.18);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 60px rgba(139,197,63,0.05);
    animation: h-pulseGlow 5s ease-in-out infinite;
}

body.home .cc-home__device img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    display: block;
    border-radius: 16px;
}

/* Scanline animada sobre la imagen */
body.home .cc-home__device-scanline {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--h-green), transparent);
    animation: h-scanLine 4s linear infinite;
    z-index: 2;
    pointer-events: none;
}

/* Stat flotante sobre la imagen */
body.home .cc-home__float-stat {
    position: absolute;
    bottom: -1rem;
    left: -1.5rem;
    background: rgba(10,15,26,0.9);
    border: 1px solid rgba(139,197,63,0.25);
    border-radius: 12px;
    padding: 0.9rem 1.4rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body.home .cc-home__float-stat-value {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--h-green);
    line-height: 1;
}

body.home .cc-home__float-stat-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 1024px) {
    body.home .cc-home__body {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    body.home .cc-home__visual {
        max-width: 600px;
        margin: 0 auto;
    }
    body.home .cc-home__float-stat {
        bottom: -0.5rem;
        left: 1rem;
    }
}

@media (max-width: 640px) {
    body.home .cc-home__feature {
        flex-direction: column;
        gap: 1rem;
    }
    body.home .cc-home__float-stat {
        display: none;
    }
}



/* ========================================================
   SERVICIOS - Infraestructura Digital
   ======================================================== */
body.home .servicios.section {
    background:
        radial-gradient(ellipse at 80% 15%, rgba(13, 92, 140, 0.22) 0%, transparent 46%),
        radial-gradient(ellipse at 5% 85%, rgba(139, 197, 63, 0.12) 0%, transparent 45%),
        #0b111d;
    position: relative;
    overflow: hidden;
}

body.home .servicios.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 197, 63, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 197, 63, 0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.14;
    pointer-events: none;
}

body.home .infra-home {
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-2xl);
}

body.home .infra-home__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-2xl);
    align-items: center;
}

body.home .infra-home__badge {
    margin-bottom: var(--space-md);
    display: inline-flex;
}

body.home .infra-home__title {
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3rem);
    line-height: 1.08;
    margin-bottom: var(--space-md);
}

body.home .infra-home__intro {
    color: rgba(255, 255, 255, 0.74);
    max-width: 62ch;
    margin-bottom: var(--space-lg);
}

body.home .infra-home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: var(--space-xl);
}

body.home .infra-home__chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(139, 197, 63, 0.28);
    background: rgba(139, 197, 63, 0.1);
    color: #d9f3a8;
    border-radius: 999px;
    padding: 0.44rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home .infra-home__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

body.home .infra-home__visual {
    position: relative;
    width: 100%;
    max-width: 520px;
    justify-self: end;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(13, 92, 140, 0.18) inset;
}

body.home .infra-home__visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.04);
}

body.home .infra-home__pulse {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: grid;
    gap: 0.2rem;
    background: rgba(10, 15, 26, 0.84);
    border: 1px solid rgba(139, 197, 63, 0.35);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: h-pulseGlow 3.5s ease-in-out infinite;
}

body.home .infra-home__pulse-value {
    color: #c9ec7b;
    font-family: var(--font-mono);
    font-size: 1.18rem;
    line-height: 1;
    font-weight: 700;
}

body.home .infra-home__pulse-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.home .servicios__grid {
    position: relative;
    z-index: 2;
}

body.home .infra-service-card.servicios__card.card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
}

body.home .infra-service-card.servicios__card.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(139, 197, 63, 0.1) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

body.home .infra-service-card.servicios__card.card:hover {
    transform: translateY(-6px);
    border-color: var(--h-border-green);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(139, 197, 63, 0.08);
}

body.home .infra-service-card.servicios__card.card:hover::before {
    transform: translateX(120%);
}

body.home .infra-service-card .infra-service-card__icon {
    background: rgba(139, 197, 63, 0.13);
    border: 1px solid rgba(139, 197, 63, 0.25);
}

body.home .infra-service-card .infra-service-card__icon svg {
    color: #b5e36d;
}

body.home .infra-service-card h3 {
    color: #fff;
}

body.home .infra-service-card p {
    color: rgba(255, 255, 255, 0.68);
}

body.home .infra-service-card .badge--accent {
    background: rgba(13, 92, 140, 0.2);
    color: #8fd1f6;
    border: 1px solid rgba(13, 92, 140, 0.4);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

body.home .infra-service-card .servicios__card-link {
    color: #d9f3a8;
    gap: 7px;
}

body.home .infra-service-card:hover .servicios__card-link {
    color: #f0ffd1;
    gap: 10px;
}

@media (max-width: 1024px) {
    body.home .infra-home__top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    body.home .infra-home__intro {
        max-width: 100%;
    }

    body.home .infra-home__visual {
        max-width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    body.home .infra-home {
        margin-bottom: var(--space-xl);
    }

    body.home .infra-home__visual img {
        aspect-ratio: 16 / 11;
    }

    body.home .infra-home__pulse {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

/* Fallback de estructura para entornos donde no exista body.home */
.servicios .infra-home {
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-2xl);
}

.servicios .infra-home__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: var(--space-2xl);
    align-items: center;
}

.servicios .infra-home__title {
    color: #fff;
}

.servicios .infra-home__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.servicios .infra-home__chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(139, 197, 63, 0.28);
    background: rgba(139, 197, 63, 0.1);
    color: #d9f3a8;
    border-radius: 999px;
    padding: 0.44rem 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.servicios .infra-home__visual {
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.servicios .infra-home__visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 1024px) {
    .servicios .infra-home__top {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .servicios .infra-home__visual {
        max-width: 100%;
        justify-self: stretch;
    }
}

/* ========================================================
   TESTIMONIOS â€” Dark glassmorphism
   ======================================================== */
body.home .testimonios.section.bg-off-white {
    background: #111827;
    border-top: 1px solid rgba(139,197,63,0.08);
    border-bottom: 1px solid rgba(139,197,63,0.08);
}

body.home .testimonios .section-header .badge--primary {
    background: rgba(13, 92, 140, 0.15);
    color: #5ba8d4;
    border: 1px solid rgba(13, 92, 140, 0.25);
}

body.home .testimonios .section-header h2 {
    color: #fff;
}

body.home .testimonios .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

body.home .testimonio.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

body.home .testimonio.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,197,63,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.home .testimonio.card:hover {
    border-color: var(--h-border-green);
    background: rgba(255, 255, 255, 0.046);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

body.home .testimonio.card:hover::before {
    opacity: 1;
}

body.home .testimonio__quote {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-base);
}

body.home .testimonio__metric.badge--accent {
    background: rgba(139, 197, 63, 0.12);
    color: var(--h-green);
    border: 1px solid rgba(139, 197, 63, 0.25);
}

body.home .testimonio__name {
    color: #fff;
}

body.home .testimonio__role,
body.home .testimonio__company {
    color: rgba(255, 255, 255, 0.4);
}

body.home .testimonio__avatar {
    background: rgba(139, 197, 63, 0.15);
    color: var(--h-green);
    border: 1px solid rgba(139, 197, 63, 0.25);
}

/* ========================================================
   BLOG PREVIEW â€” Dark cards
   ======================================================== */
body.home .blog-preview.section {
    background: #0a0f1a;
}

body.home .blog-preview .section-header .badge--primary {
    background: rgba(13, 92, 140, 0.15);
    color: #5ba8d4;
    border: 1px solid rgba(13, 92, 140, 0.25);
}

body.home .blog-preview .section-header h2 {
    color: #fff;
}

body.home .blog-preview .section-header p {
    color: rgba(255, 255, 255, 0.5);
}

body.home .blog-card.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

body.home .blog-card.card:hover {
    border-color: var(--h-border-green);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 40px rgba(139,197,63,0.04);
}

body.home .blog-card__body {
    padding: var(--space-lg);
}

body.home .blog-card__date {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

body.home .blog-card__title a {
    color: #fff;
    font-size: var(--text-lg);
    transition: color 0.3s ease;
}

body.home .blog-card__title a:hover {
    color: var(--h-green);
}

body.home .blog-card__excerpt {
    color: rgba(255, 255, 255, 0.48);
    font-size: var(--text-sm);
}

body.home .blog-card__link {
    color: var(--h-green);
    font-weight: 600;
    font-size: 0.85rem;
    transition: gap 0.3s ease, color 0.3s ease;
}

body.home .blog-card__link:hover {
    gap: 10px;
    color: #c2e87a;
}

/* BotÃ³n "Ver todos" del blog */
body.home .blog-preview .btn--outline {
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.75);
}

body.home .blog-preview .btn--outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ========================================================
   CTA FINAL â€” Dark gradient con glow
   ======================================================== */
body.home .cta-final.section.bg-primary {
    background: linear-gradient(135deg, #043A6B 0%, #0a0f1a 100%);
    position: relative;
    overflow: hidden;
}

body.home .cta-final.section.bg-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139,197,63,0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13,92,140,0.1) 0%, transparent 50%);
    pointer-events: none;
}

body.home .cta-final__inner {
    position: relative;
    z-index: 1;
}

body.home .cta-final .badge--white {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* BotÃ³n blanco del CTA final */
body.home .cta-final .btn--white {
    background: var(--h-green);
    color: #0a0f1a;
    border: 2px solid var(--h-green);
    font-weight: 700;
}

body.home .cta-final .btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--h-glow-green);
    background: #a3e635;
    border-color: #a3e635;
    color: #0a0f1a;
}

body.home .cta-final .btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(4px);
}

body.home .cta-final .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ========================================================
   FOOTER â€” Dark en home
   ======================================================== */
body.home .site-footer {
    background: #060c14;
    border-top: 1px solid rgba(139,197,63,0.08);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
    body.home .trust.section::before {
        display: none;
    }
}

@media (max-width: 768px) {
    body.home .hero__h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    body.home .hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    body.home .hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }
}
