/* ============================================================
   RVOLUCION — SERVICIOS
   Hereda variables de rvolucion.css (--ink, --fire, --cyan, etc.)
   Dirección: editorial-técnico cinemático, dark + acentos fuego/cyan.
   ============================================================ */

.sv-hero, .sv-services, .sv-custom, .sv-cta { position: relative; }

/* ---------- HERO ---------- */
.sv-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
    background: var(--ink);
}

.sv-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(44,232,245,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,87,34,0.05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    animation: svGridFloat 24s linear infinite;
}
@keyframes svGridFloat {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 64px 64px, 64px 64px; }
}

.sv-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    pointer-events: none;
}
.sv-hero-glow-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,87,34,0.4), transparent 70%);
    top: -150px; right: -100px;
    animation: svGlowPulse 8s ease-in-out infinite;
}
.sv-hero-glow-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(44,232,245,0.3), transparent 70%);
    bottom: -120px; left: -80px;
    animation: svGlowPulse 8s ease-in-out infinite 4s;
}
@keyframes svGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50%      { transform: scale(1.15); opacity: 0.6; }
}

.sv-hero-inner { text-align: center; }

.sv-hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 auto 1.8rem;
    max-width: 16ch;
    opacity: 0;
    animation: svRise 1s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.sv-hero-sub {
    color: var(--gray);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: svRise 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
@keyframes svRise {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Marquesina hero */
.sv-hero-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    opacity: 0;
    animation: svRise 1s ease 0.5s forwards;
}
.sv-hero-marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 1.6rem;
    white-space: nowrap;
    animation: svMarquee 32s linear infinite;
}
.sv-hero-marquee-track span {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--white);
    opacity: 0.7;
}
.sv-hero-marquee-track i { color: var(--fire); font-style: normal; }
@keyframes svMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.sv-hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--gray-dim);
}
.sv-hero-scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(var(--fire), transparent);
    animation: svScrollLine 2s ease-in-out infinite;
    transform-origin: top;
}
@keyframes svScrollLine {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ---------- BLOQUES DE SERVICIO ---------- */
.sv-services { padding: 7rem 0; background: var(--ink); }

/* Contenedor full-width: ocupa todo el ancho con padding lateral amplio,
   en vez del límite estrecho de 1320px. El contenido respira de borde a borde. */
.sv-services-inner {
    width: 100%;
    padding: 0 clamp(1.5rem, 7vw, 9rem);
}

.sv-block {
    position: relative;
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.sv-block:first-child { border-top: none; }

/* Número de sección — en línea sobre el kicker, nunca tapado por el nav */
.sv-block-index {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.03em;
    background: var(--grad-fire);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
    pointer-events: none;
    user-select: none;
}

.sv-block-body {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding-top: 2rem;
}
.sv-block-body > .sv-block-info, .sv-block-body > .sv-block-visual { position: relative; z-index: 1; }
.sv-block-rev .sv-block-info { order: 2; }
.sv-block-rev .sv-block-visual { order: 1; }

.sv-block-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
    display: block;
    margin-bottom: 1rem;
}
.sv-block-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.3rem;
}
.sv-block-desc {
    color: var(--gray);
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sv-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.sv-feature-list li {
    display: flex; align-items: flex-start; gap: 0.9rem;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
}
.sv-feature-list strong { color: var(--fire); font-weight: 700; }
.sv-fi-ic {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 2px;
    border-radius: 6px;
    background: var(--grad-fire);
    position: relative;
}
.sv-fi-ic::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 9px; height: 5px;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: translate(-50%, -65%) rotate(-45deg);
}

/* Spotlight que sigue al cursor */
[data-spotlight] {
    --mx: 50%;
    --my: 50%;
}
[data-spotlight]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,87,34,0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}
[data-spotlight]:hover::before { opacity: 1; }

/* ---------- VISUAL 01: web mockup ---------- */
.sv-block-visual { position: relative; }

.sv-web-mock {
    position: relative;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.sv-block:hover .sv-web-mock { transform: translateY(-8px) perspective(1000px) rotateX(2deg); }
.sv-web-bar {
    display: flex; align-items: center; gap: 6px;
    padding: 0.8rem 1rem;
    background: var(--ink-3);
    border-bottom: 1px solid var(--line);
}
.sv-web-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-dim); }
.sv-web-bar > span:first-child { background: var(--fire); }
.sv-web-url {
    margin-left: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray);
    background: var(--ink);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    flex: 1;
}
.sv-web-screen { padding: 1.8rem; display: flex; flex-direction: column; gap: 0.9rem; }
.sv-web-hero-line { height: 16px; width: 70%; border-radius: 6px; background: var(--grad-main); }
.sv-web-hero-line.short { width: 45%; opacity: 0.5; }
.sv-web-cta { height: 34px; width: 130px; border-radius: 8px; background: var(--grad-fire); margin: 0.4rem 0 1rem; }
.sv-web-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.sv-web-card {
    height: 70px; border-radius: 10px;
    background: var(--ink-3);
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
}
.sv-web-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(44,232,245,0.15), transparent);
    transform: translateX(-100%);
    animation: svShine 3s ease-in-out infinite;
}
.sv-web-card:nth-child(2)::after { animation-delay: 0.4s; }
.sv-web-card:nth-child(3)::after { animation-delay: 0.8s; }
@keyframes svShine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sv-web-pulse {
    position: absolute; bottom: 14px; right: 14px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(198,242,78,0.6);
    animation: svDot 2s ease-out infinite;
}
@keyframes svDot {
    0% { box-shadow: 0 0 0 0 rgba(198,242,78,0.6); }
    100% { box-shadow: 0 0 0 14px rgba(198,242,78,0); }
}

/* ---------- VISUAL 02: flow de automatización ---------- */
.sv-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 2.5rem 1rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    min-height: 240px;
    flex-wrap: wrap;
}
.sv-flow-node {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    background: var(--ink-3);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--white);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.sv-flow-trigger { border-color: rgba(255,87,34,0.4); box-shadow: 0 0 20px rgba(255,87,34,0.15); }
.sv-flow-process { border-color: rgba(44,232,245,0.4); box-shadow: 0 0 20px rgba(44,232,245,0.15); }
.sv-flow-process span { color: var(--cyan); }
.sv-flow-line { width: 36px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.sv-flow-line i {
    position: absolute; top: 0; left: 0; height: 100%; width: 12px;
    background: var(--fire);
    animation: svFlowDot 1.8s linear infinite;
}
@keyframes svFlowDot { from { left: -12px; } to { left: 100%; } }
.sv-flow-branch { display: flex; flex-direction: column; gap: 1.5rem; }
.sv-flow-line-up, .sv-flow-line-down { width: 28px; }
.sv-flow-ends { display: flex; flex-direction: column; gap: 0.8rem; }
.sv-flow-end { font-size: 0.78rem; }

/* ---------- VISUAL 03: órbita de integraciones ---------- */
.sv-orbit {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 420px;
    margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.sv-orbit-core {
    position: absolute;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--grad-fire);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 50px rgba(255,87,34,0.5);
    z-index: 3;
    animation: svCorePulse 3s ease-in-out infinite;
}
.sv-orbit-core img { width: 54px; height: 54px; object-fit: contain; }
.sv-orbit-core-fallback span {
    font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--ink);
}
@keyframes svCorePulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255,87,34,0.5); }
    50%      { box-shadow: 0 0 80px rgba(255,87,34,0.75); }
}
.sv-orbit-ring {
    position: absolute;
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 50%;
}
.sv-orbit-ring-1 { width: 62%; height: 62%; animation: svSpin 20s linear infinite; }
.sv-orbit-ring-2 { width: 100%; height: 100%; animation: svSpin 32s linear infinite reverse; }
@keyframes svSpin { to { transform: rotate(360deg); } }

.sv-orbit-item {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 30px;
    color: var(--white);
    white-space: nowrap;
    animation: svCounterSpin 20s linear infinite;
}
.sv-orbit-ring-2 .sv-orbit-item { animation: svCounterSpin 32s linear infinite reverse; }
@keyframes svCounterSpin { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* Posición de cada item en su anillo */
.sv-orbit-ring-1 .sv-orbit-item:nth-child(1) { top: 0; }
.sv-orbit-ring-1 .sv-orbit-item:nth-child(2) { top: 50%; left: 100%; }
.sv-orbit-ring-1 .sv-orbit-item:nth-child(3) { top: 50%; left: 0; }
.sv-orbit-ring-2 .sv-orbit-item:nth-child(1) { top: 0; }
.sv-orbit-ring-2 .sv-orbit-item:nth-child(2) { top: 50%; left: 100%; }
.sv-orbit-ring-2 .sv-orbit-item:nth-child(3) { top: 100%; }
.sv-orbit-ring-2 .sv-orbit-item:nth-child(4) { top: 50%; left: 0; }

/* ---------- CUSTOM STRIP ---------- */
.sv-custom {
    padding: 6rem 0;
    background: #f7f5f0;
    text-align: center;
    overflow: hidden;
}
.sv-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255,87,34,0.07), transparent 50%);
    pointer-events: none;
}
.sv-custom-inner { position: relative; z-index: 1; }
.sv-custom-mark {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 1;
    background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: svInfinity 6s ease-in-out infinite;
}
@keyframes svInfinity {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(1.08) rotate(3deg); }
}
.sv-custom-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.sv-custom-sub {
    color: #4a4742;
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

/* ---------- CTA FINAL ---------- */
.sv-cta {
    padding: 8rem 0;
    background: var(--ink);
    overflow: hidden;
    text-align: center;
}
.sv-cta-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,87,34,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,87,34,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000, transparent 70%);
}
.sv-cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,87,34,0.18), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}
.sv-cta-inner { position: relative; z-index: 1; }
.sv-cta-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0.5rem auto 1.2rem;
    max-width: 18ch;
}
.sv-cta-sub {
    color: var(--gray);
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 2.6rem;
}
.sv-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .sv-block { min-height: auto; padding: 4rem 0; }
    .sv-block-body { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 4rem; }
    .sv-block-rev .sv-block-info { order: 1; }
    .sv-block-rev .sv-block-visual { order: 2; }
    .sv-block-index { font-size: clamp(6rem, 22vw, 9rem); top: 2.5rem; left: -0.5rem; transform: none; }
    .sv-orbit { max-width: 320px; }
    .sv-impact { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (max-width: 560px) {
    .sv-hero { padding: 7rem 0 3rem; }
    .sv-flow { gap: 0.3rem; padding: 1.5rem 0.5rem; }
    .sv-flow-line { width: 20px; }
    .sv-cta-actions .btn { width: 100%; justify-content: center; }
}

/* Respeto a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .sv-hero-grid, .sv-hero-glow, .sv-hero-marquee-track, .sv-orbit-ring,
    .sv-orbit-item, .sv-orbit-core, .sv-custom-mark, .sv-flow-line i,
    .sv-web-card::after, .sv-web-pulse, .sv-hero-scroll-line {
        animation: none !important;
    }
}

/* ============================================================
   DATO DE IMPACTO — destacado al final de cada bloque
   ============================================================ */
.sv-impact {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin-top: 2.5rem;
    padding: 1.5rem 1.8rem;
    border-radius: 16px;
    background: rgba(255,87,34,0.06);
    border: 1px solid rgba(255,87,34,0.2);
    border-left: 3px solid var(--fire);
}
.sv-impact-num {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    flex-shrink: 0;
    background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sv-impact-txt {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* ============================================================
   QUIEBRE CLARO — Bloques 01 y 03 sobre crema (texto oscuro)
   El naranja queda solo como acento. Ritmo claro→oscuro→claro.
   ============================================================ */
.sv-block-light {
    --crema: #f7f5f0;
}
/* Fondo crema full-width que rompe el contenedor */
.sv-block-light::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 85% 15%, rgba(255,87,34,0.06), transparent 45%),
        var(--crema);
    z-index: 0;
}
/* Spotlight oscuro sobre fondo claro */
.sv-block-light::before {
    background: radial-gradient(440px circle at var(--mx) var(--my), rgba(255,87,34,0.1), transparent 60%);
    z-index: 1;
}
/* Número notorio en crema con stroke oscuro */
.sv-block-light .sv-block-index {
    opacity: 0.35;
}

/* Tipografía oscura */
.sv-block-light .sv-block-kicker { color: var(--fire); }
.sv-block-light .sv-block-title { color: var(--ink); }
.sv-block-light .sv-block-desc { color: #4a4742; }
.sv-block-light .sv-feature-list li { color: #14110e; }
.sv-block-light .sv-feature-list strong { color: var(--fire); }

/* Impacto sobre crema */
.sv-block-light .sv-impact { background: rgba(255,87,34,0.08); }
.sv-block-light .sv-impact-txt { color: #4a4742; }

/* Mockup web sobre crema: marco más definido */
.sv-block-light .sv-web-mock { box-shadow: 0 30px 70px rgba(6,8,13,0.18); }

/* ÓRBITA sobre crema: núcleo fuego, burbujas claras con borde */
.sv-block-light .sv-orbit-ring { border-color: rgba(6,8,13,0.12); }
.sv-block-light .sv-orbit-item {
    background: #fff;
    border-color: rgba(6,8,13,0.1);
    color: var(--ink);
    box-shadow: 0 4px 18px rgba(6,8,13,0.1);
}

/* ============================================================
   CASO DE EJEMPLO — Restaurant (timeline horizontal)
   ============================================================ */
.sv-case {
    position: relative;
    padding: 7rem 0;
    background: var(--ink);
    overflow: hidden;
}
.sv-case-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(44,232,245,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,87,34,0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 75%);
}
.sv-case-glow {
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(255,87,34,0.14), transparent 70%);
    filter: blur(90px);
    pointer-events: none;
}
.sv-case-inner { position: relative; z-index: 1; }

.sv-case-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.sv-case-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0.5rem 0 1rem;
}
.sv-case-sub { color: var(--gray); font-size: 1.1rem; line-height: 1.65; }

/* Tarjeta de objetivo */
.sv-case-goal {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    max-width: 640px;
    margin: 0 auto 3.5rem;
    padding: 1.4rem 1.8rem;
    background: rgba(255,87,34,0.07);
    border: 1px solid rgba(255,87,34,0.25);
    border-radius: 16px;
}
.sv-case-goal-ic {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--grad-fire);
    display: flex; align-items: center; justify-content: center;
}
.sv-case-goal-ic svg { width: 24px; height: 24px; stroke: var(--ink); }
.sv-case-goal-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fire);
    margin-bottom: 0.3rem;
}
.sv-case-goal-tx strong { color: var(--white); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

/* Timeline horizontal */
.sv-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 2.5rem;
}
.sv-tl-step { flex: 1; position: relative; }
.sv-tl-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--ink-3);
    border: 2px solid var(--fire);
    color: var(--fire);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.2rem;
    position: relative;
    z-index: 2;
}
.sv-tl-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
}
.sv-tl-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,87,34,0.3);
    transform: translateY(-4px);
}
.sv-tl-ic {
    width: 52px; height: 52px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: rgba(255,87,34,0.1);
    border: 1px solid rgba(255,87,34,0.25);
    display: flex; align-items: center; justify-content: center;
}
.sv-tl-ic svg { width: 26px; height: 26px; stroke: var(--fire); }
.sv-tl-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.7rem;
}
.sv-tl-card p { color: var(--gray); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.sv-tl-card strong { color: var(--white); font-weight: 600; }

/* Flecha conectora con punto que viaja */
.sv-tl-arrow {
    flex: 0 0 40px;
    align-self: flex-start;
    margin-top: 21px; /* centro del número (44/2 - 1) */
    height: 2px;
    background: var(--line);
    position: relative;
    overflow: hidden;
}
.sv-tl-arrow i {
    position: absolute; top: 0; left: 0; height: 100%; width: 14px;
    background: var(--fire);
    animation: svTlDot 2s linear infinite;
}
@keyframes svTlDot { from { left: -14px; } to { left: 100%; } }
.sv-tl-arrow::after {
    content: '';
    position: absolute; right: -1px; top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--fire);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0.6;
}

/* Paso resultado destacado en lima */
.sv-tl-result .sv-tl-num { border-color: var(--lime); color: var(--lime); }
.sv-tl-result .sv-tl-card { border-color: rgba(198,242,78,0.3); background: rgba(198,242,78,0.05); }
.sv-tl-result .sv-tl-ic { background: rgba(198,242,78,0.12); border-color: rgba(198,242,78,0.3); }
.sv-tl-result .sv-tl-ic svg { stroke: var(--lime); }
.sv-tl-arrow-result::after { border-left-color: var(--lime); }
.sv-tl-arrow-result i { background: var(--lime); }

/* Mensaje de cierre del caso */
.sv-case-foot {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 860px;
    margin: 2.5rem auto 0;
    padding: 2rem 2.4rem;
    background: linear-gradient(120deg, rgba(255,87,34,0.08), rgba(44,232,245,0.06));
    border: 1px solid var(--line);
    border-radius: 20px;
}
.sv-case-foot-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    background: var(--grad-main);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sv-case-foot-tx { color: var(--gray); font-size: 1.02rem; line-height: 1.6; margin: 0; }
.sv-case-foot-tx strong { color: var(--white); }

/* Responsive: timeline pasa a vertical en móvil/tablet */
@media (max-width: 900px) {
    .sv-timeline { flex-direction: column; gap: 0; }
    .sv-tl-step { width: 100%; }
    .sv-tl-card { text-align: left; }
    .sv-tl-num { margin: 0 0 1rem 0; }
    .sv-tl-arrow {
        width: 2px; height: 32px;
        flex: 0 0 32px;
        margin: 0 0 0 21px;
        align-self: flex-start;
    }
    .sv-tl-arrow i { animation: svTlDotV 2s linear infinite; width: 100%; height: 14px; }
    @keyframes svTlDotV { from { top: -14px; } to { top: 100%; } }
    .sv-tl-arrow::after {
        right: auto; top: auto; left: 50%; bottom: -1px;
        transform: translateX(-50%);
        border-left: 4px solid transparent; border-right: 4px solid transparent;
        border-top: 6px solid var(--fire); border-bottom: none;
    }
    .sv-tl-arrow-result::after { border-top-color: var(--lime); }
    .sv-case-foot { flex-direction: column; text-align: center; gap: 1rem; }
}

/* Mensaje de ejemplo tipo WhatsApp (el del jueves) */
.sv-case-msg {
    max-width: 540px;
    margin: 3rem auto 0;
    padding: 1.3rem 1.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--line);
    border-left: 3px solid var(--lime);
    border-radius: 0 16px 16px 0;
}
.sv-case-msg-head {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 0.7rem;
}
.sv-case-msg-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(198,242,78,0.5);
    animation: svDot 2s ease-out infinite;
}
.sv-case-msg-when {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--lime);
    letter-spacing: 0.04em;
}
.sv-case-msg-body { color: var(--white); font-size: 1rem; line-height: 1.6; margin: 0; }
.sv-case-msg-body strong { color: var(--lime); }
.sv-case-msg-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--lime);
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Esto es solo el comienzo: pills de más automatismos */
.sv-case-more { margin-top: 3.5rem; text-align: center; }
.sv-case-more-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.3rem, 2.4vw, 1.8rem);
    color: var(--white);
    margin-bottom: 1.6rem;
}
.sv-case-more-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    max-width: 820px;
    margin: 0 auto;
}
.sv-case-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.92rem;
    transition: all 0.25s ease;
}
.sv-case-pill:hover {
    border-color: rgba(255,87,34,0.4);
    background: rgba(255,87,34,0.06);
    transform: translateY(-2px);
}
.sv-case-pill span { font-size: 1.1rem; }
.sv-case-pill svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--fire);
}

/* ============================================================
   CARRUSEL DE CASOS — peek lateral + foco central
   ============================================================ */
.sv-case-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; position: relative; z-index: 1; }

.sv-carousel {
    position: relative;
    z-index: 1;
    width: 100%;
}

.sv-car-viewport {
    overflow: hidden;
    padding: 1rem 0 1.5rem;
}

.sv-car-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
}

.sv-slide {
    flex: 0 0 88vw;
    max-width: 1280px;
    opacity: 0.28;
    filter: blur(3px);
    transform: scale(0.92);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.sv-slide.is-active {
    opacity: 1;
    filter: none;
    transform: scale(1);
    pointer-events: auto;
}

.sv-slide-inner {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 3.5rem);
}

.sv-slide-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--white);
    background: rgba(255,87,34,0.12);
    border: 1px solid rgba(255,87,34,0.3);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.sv-slide-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 0.8rem;
}
.sv-slide-sub {
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 900px;
}

/* h4 dentro de las tarjetas del timeline (antes h3) */
.sv-tl-card h4 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.6rem;
}
.sv-case-more-title { /* ahora es h4 */
    font-family: var(--font-display);
    font-weight: 700;
}

/* Flechas — posicionadas sobre los casos laterales (absolutas) */
.sv-car-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(11,14,22,0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.sv-car-prev { left: 3vw; }
.sv-car-next { right: 3vw; }
.sv-car-arrow:hover {
    background: rgba(255,87,34,0.2);
    border-color: var(--fire);
    transform: translateY(-50%) scale(1.08);
}
.sv-car-arrow svg { width: 24px; height: 24px; }
.sv-car-arrow:disabled { opacity: 0.25; cursor: not-allowed; }
.sv-car-arrow:disabled:hover { transform: translateY(-50%); background: rgba(11,14,22,0.85); border-color: var(--line); }

/* Dots con etiqueta */
.sv-car-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.sv-car-dot {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.sv-car-dot span {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--gray);
    transition: color 0.3s;
}
.sv-car-dot:hover { border-color: rgba(255,87,34,0.4); }
.sv-car-dot.active {
    background: var(--grad-fire);
    border-color: transparent;
}
.sv-car-dot.active span { color: var(--ink); font-weight: 600; }

/* Responsive carrusel */
@media (max-width: 900px) {
    .sv-slide { flex: 0 0 90vw; }
    .sv-car-arrow { width: 44px; height: 44px; }
    .sv-car-arrow svg { width: 20px; height: 20px; }
    .sv-carousel { gap: 0.4rem; }
}
@media (max-width: 560px) {
    .sv-slide { flex: 0 0 92vw; }
    .sv-car-arrow { display: none; } /* en móvil solo dots + swipe */
}

/* Fila de 2 columnas: mensaje de ejemplo + pills (para usar ancho y bajar alto) */
.sv-case-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2.5rem;
}
.sv-case-row .sv-case-msg { margin: 0; }
.sv-case-row .sv-case-more { margin: 0; text-align: left; }
.sv-case-row .sv-case-more-grid { justify-content: flex-start; }
@media (max-width: 760px) {
    .sv-case-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .sv-case-row .sv-case-more { text-align: center; }
    .sv-case-row .sv-case-more-grid { justify-content: center; }
}
