/* ═══════════════════════════════════════════════════════
   HOME.CSS — Estilos exclusivos del Home (index.html)
   WebClic Studio
   ═══════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   HERO — Dos columnas: texto izquierda, PNG derecha
   Decoraciones SVG en el fondo
   ════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + var(--topbar-h));
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Fondo con profundidad: iluminación radial detrás del texto + glow del showcase */
    background:
        radial-gradient(ellipse 50% 55% at 22% 42%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(ellipse 75% 65% at 78% 38%, rgba(254,226,226,0.45) 0%, transparent 58%),
        radial-gradient(circle 60% at 12% 22%, rgba(219,234,254,0.40) 0%, transparent 55%),
        linear-gradient(155deg, #F4F7FB 0%, #FBFCFE 42%, #FFFFFF 100%);
}

/* Borde inferior con gradiente que cierra el hero */
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(224,18,27,0.25) 25%,
        rgba(224,18,27,0.55) 50%,
        rgba(224,18,27,0.25) 75%,
        transparent 100%);
    z-index: 3;
}

/* ─ Capas decorativas SVG ─ */
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-bg svg { display: block; }

/* 1. Mesh diagonal — textura completa */
.hero-bg__mesh {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.7;
}

/* 2. Ondas bezier — flujo a lo ancho */
.hero-bg__waves {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0.9;
}

/* 3. Orbe azul izquierda-arriba */
.hero-bg__orb-left {
    position: absolute;
    top: -18%; left: -14%;
    width: 620px; height: 620px;
    animation: orbDriftLeft 16s ease-in-out infinite;
}

/* 4. Orbe rojo grande derecha */
.hero-bg__orb-right {
    position: absolute;
    top: 50%; right: -10%;
    transform: translateY(-50%);
    width: 760px; height: 760px;
    animation: orbDrift 18s ease-in-out infinite reverse;
}

/* 5. Anillos concéntricos derecha */
.hero-bg__rings {
    position: absolute;
    top: 50%; right: -7%;
    transform: translateY(-50%);
    width: 640px; height: 640px;
    animation: ringsRotate 70s linear infinite;
}

/* 6. Cluster de puntos arriba-derecha */
.hero-bg__dots {
    position: absolute;
    top: 4%; right: 3%;
    width: 360px; height: 360px;
}

/* 7. Red de nodos tech — abajo */
.hero-bg__nodes {
    position: absolute;
    bottom: 6%; left: 4%;
    width: 620px; height: 130px;
    opacity: 0.85;
}

/* 8. Figuras geométricas — toda la sección */
.hero-bg__shapes {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
}

/* 9. Línea de acento vertical izquierda */
.hero-bg__accent {
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 420px;
}

/* ─ Animaciones de fondo ─ */
@keyframes orbDrift {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%       { transform: translateY(-48%) translateX(18px); }
}
@keyframes orbDriftLeft {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(20px, 16px); }
}
@keyframes ringsRotate {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg__orb-left, .hero-bg__orb-right, .hero-bg__rings { animation: none; }
}

/* ─ Container principal ─ */
.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1.22fr;  /* showcase grande, texto equilibrado */
    align-items: center;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 10px;
}

/* ─ Columna izquierda ─ */
.hero__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
}

/* ─ Eyebrow ─ */
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__pulse {
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: heroPulse 2.2s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.7); }
}

/* ─ Título ─ */
.hero__title {
    font-size: clamp(32px, 3.4vw, 50px);
    font-weight: 900;
    line-height: 1.08;
    color: #0F172A;
    margin-bottom: 20px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.02em;
}
.hero__highlight {
    color: var(--red);
    font-style: normal;
}

/* ─ Efecto de escritura (typewriter) ─ */
.hero__typed { color: var(--red); font-style: normal; }
.hero__caret {
    display: inline-block;
    width: 3px;
    height: 0.92em;
    margin-left: 4px;
    background: var(--red);
    border-radius: 2px;
    vertical-align: text-bottom;
    animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink {
    0%, 50%  { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* ─ Descripción ─ */
.hero__desc {
    font-size: 15.5px;
    line-height: 1.72;
    color: #334155;
    max-width: 420px;
    margin-bottom: 32px;
}

/* ─ Botones ─ */
.hero__ctas {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(224,18,27,0.32);
    transition: background .18s, transform .14s, box-shadow .18s;
    will-change: transform;
    letter-spacing: -0.01em;
}
.hero__btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(224,18,27,0.42);
}

.hero__btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #374151;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 100px;
    border: 1.5px solid #D1D5DB;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s, background .18s, color .18s;
    letter-spacing: -0.01em;
}
.hero__btn-outline:hover {
    border-color: #6B7280;
    background: #F9FAFB;
    color: #111827;
}
.hero__btn-outline svg { color: #6B7280; }

/* ─ Tags ─ */
.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: none;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16,24,40,0.06);
    transition: background .2s, transform .2s, box-shadow .2s, color .2s;
    cursor: default;
    user-select: none;
}
.hero__tag svg { color: #94A3B8; flex-shrink: 0; transition: color .2s, transform .2s; }
.hero__tag:hover {
    background: rgba(255,255,255,0.9);
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16,24,40,0.10);
}
.hero__tag:hover svg { color: var(--red); transform: scale(1.12); }

/* ─ Social proof ─ */
.hero__proof {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero__avatars { display: flex; }
.hero__avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff;
    margin-left: -8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.hero__avatar:first-child { margin-left: 0; }
.hero__proof-text { font-size: 13px; color: #6B7280; line-height: 1.4; }
.hero__proof-text strong { color: #0F172A; font-weight: 700; }

/* ─ Columna derecha: stage parallax multicapa ─ */
.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    perspective: 1300px;       /* perspectiva para el tilt 3D del conjunto */
    align-self: start;          /* ancla el showcase arriba */
    margin-top: 24px;           /* baja un poco el bloque */
}

/* Stage: recibe el tilt 3D global (JS) */
.hero__stage {
    position: relative;
    width: 100%;
    max-width: 1140px;
    aspect-ratio: 1 / 0.63;   /* compacto verticalmente */
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
    /* Sangra ligeramente a la derecha sin cortar las cards */
    margin-right: -4%;
}

/* Sombra de piso: ancla el cluster de dispositivos */
.hero__stage::after {
    content: '';
    position: absolute;
    bottom: -1%;
    left: 14%;
    right: 14%;
    height: 8%;
    background: radial-gradient(ellipse at center, rgba(16,24,40,0.16) 0%, transparent 70%);
    filter: blur(9px);
    z-index: 0;
}

/* Capas base (dispositivos y cards) */
.hero__device,
.hero__card {
    position: absolute;
    display: block;
    height: auto;
    will-change: transform;
}

/* ─ Monitor: PROTAGONISTA, dominante ─ */
.hero__device--monitor {
    width: 92%;
    bottom: 0; right: 0;
    z-index: 2;
    filter: drop-shadow(0 40px 80px rgba(16,24,40,0.14));
}

/* ─ Laptop: secundaria, izquierda ─ */
.hero__device--laptop {
    width: 51%;
    bottom: 0; left: 0;
    z-index: 4;
    filter: drop-shadow(0 36px 64px rgba(16,24,40,0.18));
}

/* ─ Tablet: terciaria, entre laptop y card donut ─ */
.hero__device--tablet {
    width: 22%;
    bottom: 0; right: 17%;
    z-index: 5;
    filter: drop-shadow(0 28px 50px rgba(16,24,40,0.16));
}

/* ═══════════════════════════════════════════
   CARDS FLOTANTES (HTML/CSS — nítidas)
   ═══════════════════════════════════════════ */
.hero__card {
    z-index: 6;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    /* Sombra SaaS premium: mucho blur, baja opacidad */
    box-shadow:
        0 32px 64px -20px rgba(16,24,40,0.16),
        0 16px 32px -16px rgba(16,24,40,0.08),
        0 1px 0 rgba(255,255,255,0.7) inset;
    padding: 15px 17px;
}

/* Card crecimiento — flotando arriba-izquierda sobre el dashboard */
.hero__card--ventas {
    top: 4%; left: -6%;
    width: 166px;
}
.hcard__top {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}
.hcard__icon {
    width: 26px; height: 26px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hcard__icon--up { background: #FEF2F2; color: var(--red); }
.hcard__label { font-size: 12px; font-weight: 600; color: #64748B; }
.hcard__value {
    font-size: 32px; font-weight: 900; color: #0F172A;
    line-height: 1; letter-spacing: -0.02em;
}
.hcard__value span { font-size: 19px; color: var(--red); margin-left: 1px; }
.hcard__spark { width: 100%; height: 40px; margin: 9px 0 7px; display: block; }
.hcard__foot { font-size: 10.5px; color: #94A3B8; }

/* Card donut — abajo derecha (no tapa la tablet) */
.hero__card--donut {
    bottom: 6%; right: -3%;
    width: 204px;
}
.hcard__title {
    font-size: 12px; font-weight: 700; color: #334155;
    margin-bottom: 11px;
}
.hcard__donut-row {
    display: flex; align-items: center; gap: 12px;
}
.hcard__donut {
    width: 60px; height: 60px; flex-shrink: 0;
    transform: rotate(-90deg);
    overflow: visible;
}
.hcard__legend {
    display: flex; flex-direction: column; gap: 6px;
}
.hcard__legend li {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 500; color: #475569;
}
.hcard__legend i {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.hcard__legend b { margin-left: auto; font-weight: 700; color: #0F172A; }

/* ── Microanimaciones de las cards (al cargar el hero) ── */
/* Sparkline: se dibuja de izquierda a derecha */
.hcard__spark-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.hero--loaded .hcard__spark-line {
    animation: sparkDraw 1.1s cubic-bezier(.65,0,.35,1) forwards;
    animation-delay: .9s;
}
@keyframes sparkDraw {
    to { stroke-dashoffset: 0; }
}

/* Donut: cada segmento se llena en secuencia */
.hcard__seg {
    stroke-linecap: butt;       /* extremos planos → segmentos se unen limpio */
    stroke-dasharray: 0 100;    /* arranca vacío (CSS gana al atributo inline) */
}
.hero--loaded .hcard__seg--1 { animation: fillSeg1 0.8s ease-out forwards; animation-delay: 1.0s; }
.hero--loaded .hcard__seg--2 { animation: fillSeg2 0.8s ease-out forwards; animation-delay: 1.25s; }
.hero--loaded .hcard__seg--3 { animation: fillSeg3 0.8s ease-out forwards; animation-delay: 1.5s; }
@keyframes fillSeg1 { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 45 55; } }
@keyframes fillSeg2 { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 35 65; } }
@keyframes fillSeg3 { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 20 80; } }

@media (prefers-reduced-motion: reduce) {
    .hcard__spark-line { stroke-dashoffset: 0; animation: none; }
    .hcard__seg { animation: none !important; }
    .hcard__seg--1 { stroke-dasharray: 45 55; }
    .hcard__seg--2 { stroke-dasharray: 35 65; }
    .hcard__seg--3 { stroke-dasharray: 20 80; }
}

/* ═══════════════════════════════════════════
   HERO — Entrada animada en cascada
   ═══════════════════════════════════════════ */
.hero__eyebrow,
.hero__title,
.hero__desc,
.hero__ctas,
.hero__tags,
.hero__proof,
.hero__visual {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22,.61,.36,1),
                transform .7s cubic-bezier(.22,.61,.36,1);
}

/* La columna visual entra desde la derecha */
.hero__visual {
    transform: translateY(0) translateX(40px) scale(0.96);
}

/* Estado cargado → revela en cascada con delays */
.hero--loaded .hero__eyebrow { opacity: 1; transform: translateY(0); transition-delay: .05s; }
.hero--loaded .hero__title   { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.hero--loaded .hero__desc    { opacity: 1; transform: translateY(0); transition-delay: .28s; }
.hero--loaded .hero__ctas    { opacity: 1; transform: translateY(0); transition-delay: .40s; }
.hero--loaded .hero__tags    { opacity: 1; transform: translateY(0); transition-delay: .50s; }
.hero--loaded .hero__proof   { opacity: 1; transform: translateY(0); transition-delay: .58s; }
.hero--loaded .hero__visual  { opacity: 1; transform: translateX(0) scale(1); transition-delay: .25s; transition-duration: .9s; }

/* Accesibilidad: sin animación si el usuario lo pidió */
@media (prefers-reduced-motion: reduce) {
    .hero__eyebrow, .hero__title, .hero__desc,
    .hero__ctas, .hero__tags, .hero__proof, .hero__visual {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero__visual { animation: none; }
}

/* ─ Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
    .hero__container { gap: 20px; }
    .hero__stage { max-width: 580px; margin-right: 0; }
    .hero__card--ventas { width: 158px; left: 0; }
    .hero__card--donut  { width: 184px; right: 0; }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        padding-top: 40px;
        padding-bottom: 40px;
        gap: 40px;
    }
    .hero__content { max-width: 100%; }
    .hero__stage   { max-width: 520px; margin: 0 auto; }
    /* La entrada de la columna ya no viene desde la derecha en 1 columna */
    .hero--loaded .hero__visual { transform: translateY(0) scale(1); }
    .hero__visual  { transform: translateY(24px) scale(0.98); }
    /* Aligerar decoraciones */
    .hero-bg__rings  { right: -35%; opacity: 0.6; }
    .hero-bg__nodes  { display: none; }
}

@media (max-width: 768px) {
    .hero__container { padding: 32px 20px; gap: 32px; }
    .hero__title { font-size: clamp(28px, 8vw, 40px); }
    .hero__stage { max-width: 460px; }
    .hero-bg__dots   { width: 200px; height: 200px; opacity: 0.6; }
    .hero-bg__shapes { display: none; }
    .hero-bg__rings  { display: none; }
    .hero-bg__waves  { opacity: 0.5; }
    /* Cards reducidas y dentro de margen */
    .hero__card--ventas { width: 140px; left: 0; padding: 11px 13px; }
    .hero__card--ventas .hcard__value { font-size: 26px; }
    .hero__card--ventas .hcard__value span { font-size: 16px; }
    .hero__card--donut  { width: 168px; right: 0; padding: 11px 13px; }
    .hcard__donut { width: 54px; height: 54px; }
}

@media (max-width: 480px) {
    .hero__ctas { flex-direction: column; align-items: stretch; }
    .hero__btn-primary,
    .hero__btn-outline { justify-content: center; }
    .hero__stage { max-width: 100%; }
    /* En móvil ocultar cards flotantes — solo dispositivos */
    .hero__card { display: none; }
}


/* ═══════════════════════════════════════════
   TRUST BAR — franja de confianza (marquee)
   ═══════════════════════════════════════════ */
.trustbar {
    position: relative;
    background: #0F172A;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0 0 0 32px;
    height: 64px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.trustbar__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    z-index: 2;
}
.trustbar__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(224,18,27,0.25);
}
.trustbar__marquee {
    position: relative;
    flex: 1;
    overflow: hidden;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent 100%);
}
.trustbar__track {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: trustScroll 38s linear infinite;
    will-change: transform;
}
.trustbar:hover .trustbar__track { animation-play-state: paused; }
.trustbar__item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    letter-spacing: -0.01em;
    padding: 0 34px;
    flex-shrink: 0;
}
.trustbar__item svg {
    width: 20px; height: 20px;
    color: var(--red);
    flex-shrink: 0;
}
@keyframes trustScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .trustbar__track { animation: none; }
}
@media (max-width: 768px) {
    .trustbar { flex-direction: column; gap: 0; height: auto; padding: 14px 0; }
    .trustbar__label { padding: 0 16px 10px; }
    .trustbar__item { font-size: 16px; }
}


/* ─── Stats bar ──────────────────────────────────────── */
.stats-bar {
    background: #F9FAFB;
    border-top: 1px solid #F1F3F5;
    border-bottom: 1px solid #F1F3F5;
    padding: 32px 0;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

@media (max-width: 640px) {
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: #E5E7EB;
    }
    .stat { background: #F9FAFB; }
}

.stat {
    padding: 8px 16px;
    border-right: 1px solid #E5E7EB;
}
.stat:last-child { border-right: none; }

.stat__number {
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 900;
    color: #111827;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat--red .stat__number { color: var(--red); }

.stat__label {
    font-size: 12.5px;
    color: #6B7280;
    margin-top: 5px;
    font-weight: 500;
}


/* ─── Servicios grid (rediseño con color por servicio) ── */
.section--solutions {
    position: relative;
    overflow: hidden;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}
/* Línea de acento roja superior */
.section--solutions::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(224,18,27,.25) 15%,
        rgba(224,18,27,.7) 40%,
        var(--red) 50%,
        rgba(224,18,27,.7) 60%,
        rgba(224,18,27,.25) 85%,
        transparent 100%);
    z-index: 2;
}
.sol-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sol-bg__blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.10;
}
.sol-bg__blob--1 { width: 420px; height: 420px; background: #2563EB; top: -120px; left: -80px; }
.sol-bg__blob--2 { width: 460px; height: 460px; background: var(--red); bottom: -160px; right: -100px; }
.sol-bg__blob--3 { width: 300px; height: 300px; background: #9333EA; top: 40%; left: 55%; opacity: 0.07; }
.sol-bg__grid {
    position: absolute; inset: 0; opacity: 0.5;
    background-image:
        linear-gradient(rgba(15,23,42,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,0.025) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000, transparent 80%);
}
.section--solutions .container { position: relative; z-index: 1; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .services-grid { grid-template-columns: 1fr; } }

.service-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid #E2E8F0;
    border-top: 3px solid color-mix(in srgb, var(--c, #E0121B) 60%, transparent);
    border-radius: 22px;
    padding: 30px 28px 26px;
    transition: border-color .25s, box-shadow .25s, transform .25s;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
/* halo de color por tarjeta (aparece al hover) */
.service-card::before {
    content: ''; position: absolute; top: -45%; right: -30%;
    width: 230px; height: 230px; border-radius: 50%;
    background: radial-gradient(circle, var(--c, #E0121B), transparent 70%);
    opacity: 0; transition: opacity .35s; z-index: 0; pointer-events: none; filter: blur(6px);
}
.service-card:hover::before { opacity: 0.18; }
.service-card > * { position: relative; z-index: 1; }

.service-card:hover {
    border-color: color-mix(in srgb, var(--c, #E0121B) 45%, transparent);
    border-top-color: var(--c, #E0121B);
    box-shadow: 0 26px 55px -20px color-mix(in srgb, var(--c, #E0121B) 55%, transparent);
    transform: translateY(-6px);
}

/* número marca de agua */
.service-card__num {
    position: absolute; top: 16px; right: 22px; z-index: 0;
    font-size: 56px; font-weight: 900; line-height: 1;
    color: var(--c, #E0121B); opacity: 0.09; letter-spacing: -0.04em;
}

.service-card__icon {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; margin-bottom: 22px;
    background: linear-gradient(135deg, var(--c, #E0121B), var(--c2, #7F0A10));
    box-shadow: 0 12px 24px -8px var(--c, #E0121B);
    transition: transform .3s;
}
.service-card:hover .service-card__icon { transform: translateY(-3px) rotate(-5deg) scale(1.06); }

.service-card h3 {
    font-size: 17px; font-weight: 800; color: var(--gray-900); margin-bottom: 9px;
}
.service-card p {
    font-size: 14px; color: var(--gray-500); line-height: 1.65; flex: 1;
}

/* divisor de color animado */
.service-card__div {
    height: 3px; width: 36px; border-radius: 3px; margin: 18px 0 16px;
    background: linear-gradient(90deg, var(--c, #E0121B), var(--c2, #7F0A10));
    transition: width .3s;
}
.service-card:hover .service-card__div { width: 64px; }

.service-card__link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 800; color: var(--c, #E0121B);
}
.service-card__link i { transition: transform .25s; }
.service-card:hover .service-card__link i { transform: translateX(5px); }


/* ─── Proceso ────────────────────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .process-step { align-items: center; text-align: center; }
}

.process-step__number {
    width: 60px;
    height: 60px;
    background: var(--red);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(224,18,27,0.35);
}

.process-step h3 {
    font-size: 24px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.process-step__line {
    width: 32px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 16px;
}

.process-step p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--gray-400);
}


/* ─── Sectores grid ──────────────────────────────────── */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

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

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

.sector-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-100);
    transition: border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.sector-card:hover {
    border-color: rgba(224,18,27,0.3);
    box-shadow: 0 16px 40px rgba(0,0,0,0.10);
    transform: translateY(-4px);
}

.sector-card__img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    overflow: hidden;
    transition: filter var(--transition);
    background: #0F172A;
}

.sector-card__img > i { position: relative; z-index: 1; }

/* Foto del sector con leve oscurecido + zoom al hover */
.sector-card__img img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.72) saturate(1.05);
    transition: transform .5s ease, filter var(--transition);
}
.sector-card:hover .sector-card__img img { transform: scale(1.08); filter: brightness(0.6); }

/* Ícono flotante sobre la foto */
.sector-card__ico {
    position: relative;
    z-index: 1;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
    transition: background var(--transition);
}
.sector-card:hover .sector-card__ico { background: var(--red); }

.sector-card--more .sector-card__img {
    background: var(--gray-50);
    color: var(--gray-400);
    border: 2px dashed var(--gray-200);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.sector-card--more:hover .sector-card__img {
    background: #FEF2F2;
    border-color: rgba(224,18,27,0.3);
    color: var(--red);
}

/* Red badge sobre la esquina del sector */
.sector-card__img::after {
    content: '→';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(224,18,27,0.9);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.sector-card--more .sector-card__img::after { display: none; }

.sector-card:not(.sector-card--more):hover .sector-card__img::after {
    transform: scale(1);
    opacity: 1;
}

.sector-card__body {
    padding: 12px;
    text-align: center;
    background: var(--white);
}

.sector-card__body p {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
}

.sector-card__body span {
    font-size: 11px;
    color: var(--gray-400);
    display: block;
    margin-top: 3px;
}


/* ─── Proyectos grid ─────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

@media (max-width: 580px) {
    .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--dark-3);
    border: 1.5px solid var(--dark-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition),
                transform var(--transition);
    cursor: pointer;
}

.project-card:hover {
    border-color: rgba(224,18,27,0.3);
    box-shadow: 0 20px 56px rgba(224,18,27,0.18);
    transform: translateY(-5px);
}

.project-card__img {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #0B0B0F;
}
.project-card__img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.06); }

/* Badge "Demo en vivo" */
.project-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #16A34A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 100px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(22,163,74,0.35);
}

.project-card__name {
    font-size: 14px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    position: relative;
    z-index: 1;
}

.project-card__sector {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Mini dashboard preview del proyecto 4 */
.project-card__dash-preview {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.dash-mini {
    display: flex;
    gap: 6px;
}

.dash-mini__val,
.dash-mini__growth {
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.dash-mini__val   { color: var(--white); }
.dash-mini__growth { color: #34D399; }

.project-card__body {
    padding: 18px 20px;
    flex: 1;
}

.project-card__body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
}

.project-card__body p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.55;
    margin-bottom: 14px;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
}


/* ─── Tech strip (marquee de tecnologías) ────────────── */
.tech-strip {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.tech-strip__label {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 26px;
}
.tech-strip .fx-marquee__item {
    font-size: 18px;
    color: var(--gray-500);
    font-weight: 700;
}
.tech-strip .fx-marquee__item i {
    font-size: 24px;
    color: var(--red);
}

/* ─── CTA Diagnóstico ────────────────────────────────── */
.cta-diag-section {
    padding-bottom: 80px;
}

.cta-diag {
    background: var(--dark-3);
    border: 1.5px solid var(--dark-border);
    border-radius: var(--radius-xl);
    padding: 52px 56px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-diag::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, rgba(224,18,27,0.04), transparent);
    pointer-events: none;
}

@media (max-width: 900px) {
    .cta-diag {
        grid-template-columns: 1fr;
        padding: 36px 28px;
        gap: 36px;
    }
}

.cta-diag__content h2 {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 14px;
}

.cta-diag__content > p {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 24px;
}

.cta-diag__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cta-diag__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-300, #D1D5DB);
}

.cta-diag__list li .fa-check {
    width: 18px;
    height: 18px;
    background: rgba(224,18,27,0.15);
    border: 1px solid rgba(224,18,27,0.35);
    border-radius: 4px;
    font-size: 10px;
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-diag__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 260px;
}

@media (max-width: 900px) {
    .cta-diag__action { align-items: flex-start; }
}

/* Botón CTA WhatsApp con ícono + texto en 2 líneas */
.btn--xl.wa-cta-diag {
    width: 100%;
    gap: 14px;
}
.btn--xl.wa-cta-diag i {
    font-size: 26px;
    flex-shrink: 0;
}
.btn--xl.wa-cta-diag span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.btn--xl.wa-cta-diag strong { font-size: 15px; font-weight: 800; }
.btn--xl.wa-cta-diag em     { font-style: normal; font-size: 12px; color: rgba(255,200,200,0.85); }

.cta-diag__proof {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cta-diag__proof p { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.cta-diag__proof p strong { color: var(--white); }

.cta-diag__disclaimer {
    font-size: 12px;
    color: var(--gray-600);
    text-align: center;
}
