/* ════════════════════════════════════════════════════════════════════════
   empresas-evolved.css — ConsultorIA · Evolución visual de empresas.html (v1)
   Carga SOLO en empresas.html, después de style.css. No afecta otras páginas.
   Mismo sistema de marca que index-evolved.css, adaptado a B2B.
   ════════════════════════════════════════════════════════════════════════ */

/* ── BARRA DE PROGRESO DE SCROLL ─────────────────────────────────────── */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; width: 0; z-index: 1000;
    background: linear-gradient(90deg, var(--azul) 0%, var(--celeste) 45%, var(--baby-blue) 100%);
    box-shadow: 0 0 12px rgba(0, 81, 255, 0.5);
    transition: width 0.08s linear; pointer-events: none;
}

/* ── STARFIELD → PREMIUM AZUL (brandbook: sin starfield) ─────────────── */
.starfield {
    background-image: url('assets/bg-azul.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-color: var(--azul) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   HERO — capas de marca + compacto
   ════════════════════════════════════════════════════════════════════════ */
.hero { isolation: isolate; }
.hero::before {
    background: linear-gradient(135deg,
        rgba(0, 36, 131, 0.62) 0%, rgba(0, 81, 255, 0.40) 55%, rgba(0, 36, 131, 0.58) 100%) !important;
    z-index: 0 !important;
}
.hero .hero-fx { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.hero .container.hero-content { position: relative; z-index: 2; }

.hero-aurora { position: absolute; border-radius: 50%; filter: blur(60px); mix-blend-mode: screen; opacity: 0.55; will-change: transform; }
.hero-aurora--1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -8vw; top: -12vw;
    background: radial-gradient(circle at 50% 50%, #4d8bff 0%, rgba(77,139,255,0) 68%); animation: auroraDrift1 22s ease-in-out infinite; }
.hero-aurora--2 { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; right: -6vw; top: 6vw;
    background: radial-gradient(circle at 50% 50%, #9FC5FF 0%, rgba(159,197,255,0) 70%); animation: auroraDrift2 26s ease-in-out infinite; }
.hero-aurora--3 { width: 50vw; height: 50vw; max-width: 680px; max-height: 680px; left: 28vw; bottom: -26vw;
    background: radial-gradient(circle at 50% 50%, #1A6CFC 0%, rgba(26,108,252,0) 72%); animation: auroraDrift3 30s ease-in-out infinite; }
@keyframes auroraDrift1 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(6vw,4vw) scale(1.12);} }
@keyframes auroraDrift2 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-5vw,5vw) scale(1.08);} }
@keyframes auroraDrift3 { 0%,100%{transform:translate(0,0) scale(1);} 50%{transform:translate(-4vw,-6vw) scale(1.15);} }

.hero-iso-watermark { position: absolute; right: 2%; bottom: -6%; width: clamp(220px, 26vw, 360px); height: auto; opacity: 0.12; animation: isoFloat 12s ease-in-out infinite; }
@keyframes isoFloat { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-14px) rotate(-1.5deg);} }

.hero-grain { position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Eyebrow con chevron */
.hero-eyebrow--chev::before { display: none; }
.hero-eyebrow--chev { gap: 0.5rem; }
.eyebrow-chev { font-family: var(--font-heading); font-weight: 800; color: var(--baby-blue); font-size: 1.05em; line-height: 1; transform: translateY(1px); }

.hero h1.hero-gradient-text { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }

/* Entrada escalonada del hero */
.hero-animate > * { opacity: 0; transform: translateY(18px); animation: heroFadeUp 0.7s cubic-bezier(0.16,0.84,0.44,1) forwards; }
.hero-animate > *:nth-child(1){animation-delay:.05s} .hero-animate > *:nth-child(2){animation-delay:.16s}
.hero-animate > *:nth-child(3){animation-delay:.27s} .hero-animate > *:nth-child(4){animation-delay:.36s}
.hero-animate > *:nth-child(5){animation-delay:.45s} .hero-animate > *:nth-child(6){animation-delay:.54s}
@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* Botón con destello */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(0,81,255,0.18) 50%, transparent 100%); transform: skewX(-18deg); transition: left 0.6s ease; pointer-events: none; }
.btn-shine:hover::after { left: 130%; }

/* Hero compacto en desktop */
@media (min-width: 769px) {
    .hero { padding-top: 80px !important; padding-bottom: 72px !important; }
    .hero p { margin-bottom: 1.35rem !important; max-width: 620px; }
    .hero-seo-text { margin-top: 0.35rem !important; margin-bottom: 0 !important; }
    .hero .cta-group { margin-top: 1.4rem; }
}

/* ════════════════════════════════════════════════════════════════════════
   BANDA DE IMPACTO B2B
   ════════════════════════════════════════════════════════════════════════ */
.impact-band { background: var(--grad-surface); border-bottom: 1px solid var(--border); padding: 2.6rem 0; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.impact-stat { position: relative; }
.impact-stat:not(:last-child)::after { content: ""; position: absolute; right: -0.75rem; top: 50%; transform: translateY(-50%);
    width: 1px; height: 46px; background: linear-gradient(180deg, transparent, rgba(0,36,131,0.16), transparent); }
.impact-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.1rem, 4.4vw, 3.1rem); line-height: 1;
    letter-spacing: -0.03em; color: var(--celeste); display: inline-flex; align-items: baseline; gap: 2px; }
.impact-unit { font-size: 0.5em; font-weight: 700; color: var(--azul-40); }
.impact-label { margin-top: 0.5rem; font-family: var(--font-body); font-size: 0.9rem; color: var(--text-secondary); line-height: 1.35; }

/* ════════════════════════════════════════════════════════════════════════
   EYEBROWS DE SECCIÓN
   ════════════════════════════════════════════════════════════════════════ */
.sec-eyebrow { display: flex; align-items: center; justify-content: center; gap: 0.45rem; font-family: var(--font-heading);
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--celeste); margin-bottom: 0.85rem; }
.sec-eyebrow-chev { font-weight: 800; color: var(--baby-blue); font-size: 1.1em; transform: translateY(1px); }
.sec-subtitle { text-align: center; max-width: 580px; margin: 0.75rem auto 0; color: var(--text-secondary); font-size: 1.02rem; line-height: 1.6; }
.section-center { font-weight: 800; letter-spacing: -0.03em; }

/* ════════════════════════════════════════════════════════════════════════
   PRODUCTOS — price cards con hover
   ════════════════════════════════════════════════════════════════════════ */
.price-card { transition: transform 0.28s cubic-bezier(0.16,0.84,0.44,1), box-shadow 0.28s ease, border-color 0.28s ease; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,81,255,0.25); }
.price-card.featured:hover { transform: scale(1.05) translateY(-6px); }
@media (max-width: 768px) { .price-card.featured:hover { transform: translateY(-6px); } }
.price-card h3 { font-family: var(--font-heading); font-weight: 700; }

/* ════════════════════════════════════════════════════════════════════════
   METODOLOGÍA — step-cards (no existían estilos → se definen aquí)
   ════════════════════════════════════════════════════════════════════════ */
.metodologia-evolved .steps-grid { position: relative; }
.step-card {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 2rem 1.4rem 1.6rem; box-shadow: var(--shadow-sm); text-align: left;
    transition: transform 0.28s cubic-bezier(0.16,0.84,0.44,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,81,255,0.25); }
.step-number {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: 12px; background: var(--grad-diagonal); color: #fff;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow-brand);
}
.step-title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--primary); margin-bottom: 0.5rem; }
.step-desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   TESTIMONIOS B2B — tarjetas con comilla de marca
   ════════════════════════════════════════════════════════════════════════ */
.testi-item-b2b {
    position: relative; background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: 2rem 1.8rem 1.6rem; box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.testi-item-b2b:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-item-b2b::before {
    content: "\201C"; position: absolute; top: 0.2rem; left: 1.2rem;
    font-family: var(--font-heading); font-size: 3.4rem; line-height: 1; color: rgba(0,81,255,0.16);
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE + REDUCED MOTION
   ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
    .impact-stat::after { display: none; }
    .hero-iso-watermark { width: 240px; opacity: 0.06; bottom: -4%; right: -8%; }
    .metodologia-evolved .steps-grid { grid-template-columns: 1fr 1fr !important; gap: 0.9rem !important; }
}
@media (max-width: 480px) {
    .metodologia-evolved .steps-grid { grid-template-columns: 1fr !important; }
    .impact-num { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-aurora, .hero-iso-watermark { animation: none; }
    .hero-animate > * { opacity: 1; transform: none; animation: none; }
    .scroll-progress { transition: none; }
    .btn-shine::after { display: none; }
}
