/**
 * landing.css — Estilos exclusivos de la landing page (src/pages/index.html)
 * No depende de tokens.css ni base.css — autocontenido para la página pública.
 */

/* ═══ VARIABLES ═══ */
:root {
    --primary: #0057B8;
    --primary-light: #3b82f6;
    --secondary: #FFC20E;
    --accent: #16A34A;
    --purple: #8b5cf6;
    --dark: #0F172A;
    --darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --gold-glow: rgba(255, 194, 14, 0.3);
}

/* ═══ BASE RESET ═══ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: #020617;
    color: #F8FAFC;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: #F8FAFC; }
p { color: #94A3B8; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { display: block; max-width: 100%; }

/* ═══ TYPOGRAPHY ═══ */
.ist-title-display {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.ist-title-section {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.ist-text-gradient {
    background: linear-gradient(135deg, #FFC20E, #FFF0B3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ist-text-gradient-blue {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ist-text-muted { color: #94A3B8; }

/* ═══ ANIMATED BACKGROUND ═══ */
.ist-abstract-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background-color: #020617;
    overflow: hidden;
    pointer-events: none;
}
.ist-abstract-orb {
    position: absolute;
    filter: blur(140px);
    border-radius: 50%;
    animation: orb-float 25s infinite alternate ease-in-out;
    opacity: 0.4;
}
.ist-orb-1 { width: 800px; height: 800px; background: var(--primary); top: -200px; left: -200px; animation-delay: 0s; }
.ist-orb-2 { width: 700px; height: 700px; background: var(--purple); top: 30%; right: -200px; animation-delay: -7s; }
.ist-orb-3 { width: 900px; height: 900px; background: var(--accent); bottom: -300px; left: 10%; animation-delay: -14s; opacity: 0.25; }
.ist-bg-noise {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}
@keyframes orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(80px, 120px) scale(1.1); }
    100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* ═══ UTILITIES ═══ */
.ist-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
.ist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.ist-btn-primary {
    background: var(--secondary);
    color: var(--darker);
    box-shadow: 0 4px 20px var(--gold-glow);
}
.ist-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 194, 14, 0.5); }
.ist-btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.ist-btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.ist-glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 20px;
}

/* ═══ HEADER ═══ */
.ist-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.ist-header-inner { display: flex; justify-content: space-between; align-items: center; }
.ist-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.ist-logo img {
    height: 38px;
    width: auto;
    display: block;
}
@media (max-width: 768px) {
    .ist-logo img { height: 32px; }
}
.ist-nav { display: flex; gap: 32px; }
.ist-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #CBD5E1;
    transition: color 0.2s;
}
.ist-nav a:hover { color: #fff; }

/* ═══ HAMBURGER MENU MOBILE ═══ */
.ist-hamburger {
    display: none;
    width: 40px; height: 40px;
    border: none; background: none;
    cursor: pointer;
    position: relative; z-index: 110;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ist-hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ist-hamburger.ist-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ist-hamburger.ist-open span:nth-child(2) { opacity: 0; }
.ist-hamburger.ist-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.ist-mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(2, 6, 23, 0.97);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.ist-mobile-menu.ist-open { display: flex; opacity: 1; }
.ist-mobile-menu a.ist-mobile-link {
    font-size: 1.5rem; font-weight: 600; color: #CBD5E1;
    padding: 16px 0; transition: color 0.2s;
    display: block; text-align: center;
}
.ist-mobile-menu a.ist-mobile-link:hover { color: #fff; }
.ist-mobile-menu .ist-mobile-btns {
    margin-top: 32px;
    display: flex; flex-direction: column; gap: 12px;
    width: 100%; max-width: 280px;
}
.ist-mobile-menu .ist-mobile-btns .ist-btn { width: 100%; text-align: center; justify-content: center; }

/* ═══ HERO ═══ */
.ist-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}
.ist-hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(circle at 50% 0%, #0057B840 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, #8b5cf630 0%, transparent 40%);
}
.ist-hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}
.ist-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}
.ist-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93C5FD;
    font-size: 0.875rem; font-weight: 600;
    margin-bottom: 32px;
}
.ist-hero-desc {
    font-size: 1.15rem; color: #94A3B8;
    margin: 24px 0 36px;
    max-width: 520px; line-height: 1.75;
}
.ist-hero-actions { display: flex; gap: 16px; align-items: center; }
.ist-cta-desc {
    font-size: 1.125rem; color: #cbd5e1;
    margin: 24px auto 40px;
    max-width: 600px; text-align: center; line-height: 1.7;
}
.ist-hero-trust { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.ist-trust-offer {
    display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
    font-size: 0.875rem; color: #94A3B8; font-weight: 500;
}
.ist-trust-offer span { display: inline-flex; align-items: center; gap: 8px; }
.ist-trust-offer .ist-trust-label { font-weight: 700; color: #CBD5E1; }
.ist-trust-offer .ist-check-icon {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(34, 197, 94, 0.15); color: #22c55e;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; flex-shrink: 0;
}

/* ═══ HERO MOCKUP ═══ */
.ist-hero-mockup { position: relative; }
.ist-mockup-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; height: 90%;
    background: radial-gradient(circle, rgba(0,87,184,0.18) 0%, transparent 70%);
    filter: blur(50px); pointer-events: none; z-index: -1;
}
.ist-mockup-container {
    background: #1E293B;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 24px 80px rgba(0,0,0,0.5), 0 0 120px rgba(0,87,184,0.08);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ist-mockup-container:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(1deg); }
.ist-mockup-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ist-dot { width: 10px; height: 10px; border-radius: 50%; }
.ist-dot-r { background: #FF5F57; }
.ist-dot-y { background: #FEBC2E; }
.ist-dot-g { background: #28C840; }
.ist-mockup-url { flex: 1; text-align: center; font-size: 12px; color: rgba(255,255,255,0.3); font-weight: 500; }
.ist-mockup-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ist-mock-header { display: flex; justify-content: space-between; align-items: center; }
.ist-mock-tool-title { font-size: 16px; font-weight: 700; color: #fff; }
.ist-mock-live-badge {
    background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.3); color: #16A34A;
    padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}
.ist-live-dot { width: 7px; height: 7px; background: #16A34A; border-radius: 50%; animation: ist-pulse-dot 2s infinite; }
@keyframes ist-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(22,163,74,0); }
}
.ist-mock-row-4, .ist-mock-row-results {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.ist-mock-card { border-radius: 10px; padding: 14px 12px; text-align: center; transition: all 0.3s; }
.ist-mock-card:hover { transform: translateY(-2px); }
.ist-mock-card-yellow { background: rgba(255,194,14,0.08); border: 1px solid rgba(255,194,14,0.2); }
.ist-mock-card-green  { background: rgba(22,163,74,0.08);  border: 1px solid rgba(22,163,74,0.2);  }
.ist-mock-card-blue   { background: rgba(0,87,184,0.08);   border: 1px solid rgba(0,87,184,0.2);   }
.ist-mock-card-label  { font-size: 10px; color: rgba(255,255,255,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.ist-mock-card-value  { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.ist-val-gold  { color: #FFC20E; }
.ist-val-green { color: #16A34A; }
.ist-val-blue  { color: #3b82f6; }
.ist-val-white { color: #fff; }
.ist-mock-card-sub { font-size: 9px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.ist-mock-chart { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; }
.ist-mock-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ist-mock-chart-label { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 600; }
.ist-mock-chart-tabs { display: flex; gap: 4px; }
.ist-mock-tab { padding: 4px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); }
.ist-mock-tab.ist-tab-active { background: rgba(0,87,184,0.2); color: #3b82f6; }
.ist-mock-chart-svg { width: 100%; height: 110px; }
.ist-chart-line { stroke-dasharray: 500; stroke-dashoffset: 500; animation: ist-draw 2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards; }
.ist-chart-area-fill { opacity: 0; animation: ist-fade 1s ease 2s forwards; }
@keyframes ist-draw { to { stroke-dashoffset: 0; } }
@keyframes ist-fade { to { opacity: 1; } }
.ist-mock-bottom { display: flex; gap: 10px; align-items: stretch; }
.ist-mock-pdf-btn {
    background: rgba(0,87,184,0.15); border: 1px solid rgba(0,87,184,0.3);
    border-radius: 10px; padding: 14px 20px;
    display: flex; align-items: center; gap: 8px;
    color: #3b82f6; font-size: 13px; font-weight: 700;
    transition: all 0.3s; white-space: nowrap;
}
.ist-mock-pdf-btn:hover { background: rgba(0,87,184,0.25); }
.ist-mock-tools-row { display: flex; gap: 8px; flex: 1; }
.ist-mock-mini-tool {
    flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 12px;
    display: flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.ist-mock-mini-tool:hover { background: rgba(0,87,184,0.1); border-color: rgba(0,87,184,0.25); }
.ist-mock-mini-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.ist-bg-blue  { background: rgba(0,87,184,0.2);  color: #3b82f6;  }
.ist-bg-green { background: rgba(22,163,74,0.2);  color: #16A34A;  }
.ist-bg-gold  { background: rgba(255,194,14,0.2); color: #FFC20E;  }
.ist-mock-mini-name { font-size: 12px; font-weight: 700; color: #fff; }
.ist-mock-mini-desc { font-size: 9px; color: rgba(255,255,255,0.3); }

/* ═══ MARQUEE ═══ */
.ist-marquee-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.3);
    overflow: hidden; white-space: nowrap; position: relative;
}
.ist-marquee-track { display: flex; width: max-content; animation: marquee-scroll 35s linear infinite; }
.ist-marquee-group { display: flex; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.ist-marquee-item {
    font-size: 1.25rem; font-weight: 700; color: #64748B;
    display: flex; align-items: center; gap: 12px;
    white-space: nowrap; flex-shrink: 0;
}
@keyframes marquee-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ SECTIONS ═══ */
.ist-section { padding: 80px 0; position: relative; }
.ist-section-header { text-align: center; margin-bottom: 48px; }
.ist-section-header .ist-title-section { margin-bottom: 16px; }

/* ═══ PAIN POINTS ═══ */
/* Pain Points — sección y encabezado */
.ist-pain-head {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}
.ist-pain-head p { margin-left: auto; margin-right: auto; }
.ist-pain-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* Grid 2x2 en desktop, stack en mobile */
.ist-pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 8px;
}
.ist-pain-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border);
    transition: border-color 0.25s, background 0.25s;
    text-align: left;
}
.ist-pain-card:hover {
    border-color: rgba(255, 194, 14, 0.25);
    background: rgba(15, 23, 42, 0.55);
}
.ist-pain-num {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: 3.75rem;
    font-weight: 300;
    line-height: 1;
    color: var(--secondary);
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
    padding-top: 4px;
}
.ist-pain-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #F8FAFC;
    margin-bottom: 12px;
}
.ist-pain-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #94A3B8;
    max-width: 52ch;
}
.ist-pain-desc strong {
    color: #CBD5E1;
    font-weight: 700;
}

/* Bridge al cierre de la sección */
.ist-pain-bridge {
    margin: 80px auto 0;
    max-width: 720px;
    text-align: center;
    padding: 40px 32px;
    border-top: 1px solid rgba(255, 194, 14, 0.18);
    border-bottom: 1px solid rgba(255, 194, 14, 0.18);
}
.ist-pain-bridge-lead {
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #F8FAFC;
    margin-bottom: 16px;
}
.ist-pain-bridge-list {
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: #94A3B8;
    max-width: 56ch;
    margin: 0 auto 24px;
}
.ist-pain-bridge-tag {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--secondary);
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 194, 14, 0.12);
}
@media (max-width: 560px) {
    .ist-pain-bridge { margin-top: 56px; padding: 32px 20px; }
    .ist-pain-bridge-lead { font-size: 1.375rem; }
    .ist-pain-bridge-list { font-size: 1rem; }
    .ist-pain-bridge-tag { font-size: 0.9375rem; }
}

/* Tablet: cards se hacen 1 columna pero mantienen layout horizontal del número */
@media (max-width: 900px) {
    .ist-pain-grid { grid-template-columns: 1fr; gap: 20px; }
    .ist-pain-card { padding: 28px 24px; }
    .ist-pain-head { margin-bottom: 48px; }
}

/* Mobile: número arriba del body, no a la izquierda */
@media (max-width: 560px) {
    .ist-pain-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 20px;
    }
    .ist-pain-num { font-size: 3rem; padding-top: 0; }
    .ist-pain-bridge { font-size: 1rem; margin-top: 48px; }
}

/* ═══ STEPPER / PROCESO ═══ */
.ist-tabs {
    display: flex; gap: 16px;
    background: var(--card-bg); padding: 8px;
    border-radius: 100px; width: fit-content;
    margin: 0 auto 48px;
    border: 1px solid var(--border);
}
.ist-tab {
    padding: 12px 32px; border-radius: 100px;
    font-weight: 600; cursor: pointer;
    transition: all 0.3s; color: #94A3B8;
}
.ist-tab.ist-active { background: var(--secondary); color: var(--darker); }
.ist-stepper-content { display: none; opacity: 0; transition: opacity 0.4s; }
.ist-stepper-content.ist-active { display: block; opacity: 1; }
.ist-step-layout { display: none; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.ist-step-layout.ist-active { display: grid; }
.ist-step-indicators { display: flex; gap: 8px; margin-bottom: 32px; }
.ist-step-dot { height: 4px; flex: 1; background: #334155; border-radius: 4px; cursor: pointer; transition: background 0.3s; }
.ist-step-dot.ist-active { background: var(--primary-light); }
.ist-step-pre {
    color: var(--primary-light); font-weight: 700;
    font-size: 0.875rem; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 16px; display: block;
}
.ist-step-img-wrapper {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.ist-step-img-wrapper img { width: 100%; height: auto; display: block; }
.ist-step-controls { display: flex; justify-content: space-between; margin-top: 40px; }

/* ═══ TOOLS LIST ═══ */
.ist-tools-list { flex-direction: column; gap: 0; }
.ist-tool-panel { flex-direction: column; }
.ist-tool-row {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px; border-radius: 16px;
    border: 1px solid var(--border); background: var(--card-bg);
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px; position: relative; backdrop-filter: blur(10px);
}
.ist-tool-row:hover { border-color: rgba(255,255,255,0.2); background: rgba(30,41,59,0.7); }
.ist-tool-row.ist-row-active {
    border-color: rgba(255,194,14,0.35);
    background: rgba(30,41,59,0.8);
    margin-bottom: 0; border-radius: 16px 16px 0 0;
}
.ist-tool-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.ist-tool-row-body { flex: 1; min-width: 0; }
.ist-tool-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ist-tool-title { font-size: 1.1rem; font-weight: 700; color: #fff; }
.ist-tool-badge {
    font-size: 0.7rem; font-weight: 700;
    padding: 3px 10px; border-radius: 100px;
}
.ist-tool-law-tag {
    font-size: 0.7rem; font-weight: 600; color: #64748B;
    background: rgba(255,255,255,0.05); padding: 3px 10px; border-radius: 100px;
}
.ist-tool-desc { font-size: 0.9rem; color: #94A3B8; line-height: 1.5; }
.ist-row-chevron { width: 20px; height: 20px; color: #475569; flex-shrink: 0; transition: transform 0.3s, color 0.3s; }
.ist-tool-row:hover .ist-row-chevron { color: #94A3B8; }
.ist-tool-row.ist-row-active .ist-row-chevron { transform: rotate(180deg); color: var(--secondary); }
.ist-tool-detail { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease; opacity: 0; }
.ist-tool-detail.ist-detail-open { max-height: 500px; opacity: 1; }
.ist-tool-detail-inner {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255,194,14,0.15); border-top: 2px solid rgba(255,194,14,0.3);
    border-radius: 0 0 16px 16px; padding: 32px; margin-bottom: 8px;
    backdrop-filter: blur(16px);
}
.ist-detail-desc { font-size: 1rem; color: #CBD5E1; line-height: 1.7; margin-bottom: 24px; }
.ist-detail-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ist-detail-feat {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 100px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem; font-weight: 500; color: #CBD5E1; transition: all 0.3s;
}
.ist-detail-feat:hover { background: rgba(255,194,14,0.06); border-color: rgba(255,194,14,0.2); }
.ist-detail-feat .ist-feat-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ist-detail-cta { display: flex; align-items: center; gap: 12px; }
.ist-cat-blue .ist-tool-icon { background: rgba(0,87,184,0.12); color: #60A5FA; }
.ist-cat-blue .ist-tool-badge { background: rgba(0,87,184,0.2); color: #60A5FA; }
.ist-cat-green .ist-tool-icon { background: rgba(22,163,74,0.12); color: #4ADE80; }
.ist-cat-green .ist-tool-badge { background: rgba(22,163,74,0.2); color: #4ADE80; }
.ist-cat-purple .ist-tool-icon { background: rgba(139,92,246,0.12); color: #A78BFA; }
.ist-cat-purple .ist-tool-badge { background: rgba(139,92,246,0.2); color: #A78BFA; }

/* ═══ TESTIMONIALS ═══ */
.ist-testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.ist-testimonial-card {
    padding: 40px; border-radius: 24px;
    background: rgba(15,23,42,0.6); border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.ist-testimonial-card::before {
    content: '"'; position: absolute; top: 16px; left: 24px;
    font-size: 6rem; color: rgba(255,255,255,0.03);
    font-weight: 800; font-family: serif; line-height: 1;
}
.ist-stars { color: #FBBF24; font-size: 1.25rem; margin-bottom: 24px; letter-spacing: 2px; }
.ist-testimonial-text { font-size: 1.05rem; color: #CBD5E1; line-height: 1.6; margin-bottom: 32px; font-style: italic; position: relative; z-index: 2; }
.ist-author-flex { display: flex; align-items: center; gap: 16px; }
.ist-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 1.25rem;
    border: 2px solid rgba(255,255,255,0.1);
}
.ist-author-name { font-weight: 700; color: #F8FAFC; display: block; margin-bottom: 4px; }
.ist-author-title { font-size: 0.85rem; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

/* ═══ PRICING ═══ */
.ist-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.ist-price-card {
    padding: 48px 40px; border-radius: 24px;
    border: 1px solid var(--border); background: var(--card-bg);
    display: flex; flex-direction: column; position: relative;
}
.ist-price-card.ist-popular {
    border-color: var(--secondary);
    background: linear-gradient(180deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.9) 100%);
    transform: translateY(-16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--secondary);
    z-index: 2;
}
.ist-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--secondary); color: var(--darker);
    font-size: 0.8rem; font-weight: 800;
    padding: 6px 16px; border-radius: 100px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.ist-price-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.ist-price-val { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1; }
.ist-price-val span { font-size: 1rem; color: #94A3B8; font-weight: 500; }
.ist-price-desc { color: #94A3B8; margin-bottom: 32px; font-size: 0.95rem; }
.ist-price-features { margin-bottom: 40px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ist-price-feature { display: flex; align-items: flex-start; gap: 12px; color: #CBD5E1; font-size: 0.9rem; line-height: 1.4; }
.ist-feature-icon { color: var(--accent); font-weight: bold; flex-shrink: 0; }
.ist-feature-bold {
    font-weight: 700; color: #fff; margin-bottom: 8px; font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 6px;
}

/* ═══ PRICING TABLE ═══ */
.ist-table-wrapper { margin-top: 48px; overflow-x: auto; background: var(--card-bg); border-radius: 24px; border: 1px solid var(--border); }
.ist-table { width: 100%; border-collapse: collapse; min-width: 800px; text-align: left; }
.ist-table th { padding: 24px; border-bottom: 1px solid var(--border); font-size: 1.125rem; font-weight: 700; color: #fff; background: rgba(15,23,42,0.8); }
.ist-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 0.95rem; color: #94A3B8; }
.ist-table tr:last-child td { border-bottom: none; }
.ist-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.ist-table-check { color: var(--accent); font-weight: bold; font-size: 1.1rem; }
.ist-table-cross { color: #475569; }
.ist-table-tier { text-align: center; }
.ist-table th.ist-table-tier { color: #CBD5E1; font-size: 1.25rem; }
.ist-table-tier-desc { font-size: 0.8rem; color: #64748B; font-weight: 500; display: block; margin-top: 4px; }
.ist-table .ist-col-pro { background: rgba(255,194,14,0.04); }
.ist-table th.ist-col-pro { background: rgba(255,194,14,0.08); position: relative; }
.ist-table-popular-tag {
    display: inline-block; background: var(--secondary); color: var(--darker);
    font-size: 0.65rem; font-weight: 800; padding: 3px 10px;
    border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}

/* ═══ FAQ ═══ */
.ist-faq-container { max-width: 800px; margin: 48px auto 0; }
.ist-faq-item { border-bottom: 1px solid var(--border); }
.ist-faq-question {
    padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-size: 1.125rem; font-weight: 600; color: #F8FAFC; transition: color 0.3s;
}
.ist-faq-question:hover { color: var(--secondary); }
.ist-faq-icon { font-size: 1.5rem; color: var(--secondary); transition: transform 0.3s; }
.ist-faq-answer { height: 0; overflow: hidden; transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.ist-faq-answer-inner { padding-bottom: 24px; color: #94A3B8; line-height: 1.7; }
.ist-faq-item.ist-active .ist-faq-icon { transform: rotate(45deg); }

/* ═══ CTA FINAL & FOOTER ═══ */
.ist-cta-section {
    background: linear-gradient(135deg, #0057B8 0%, #0F172A 100%);
    padding: 80px 40px; text-align: center;
    border-radius: 40px; margin: 80px 24px 40px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ist-cta-section .ist-title-display { text-align: center; }
.ist-cta-trust {
    margin-top: 32px; color: #E2E8F0; font-size: 1.05rem; font-weight: 600;
    display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; letter-spacing: 0.01em;
}
.ist-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center; color: #64748B; font-size: 0.9rem;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .ist-hero-content, .ist-step-layout { grid-template-columns: 1fr; gap: 48px; }
    .ist-pricing-grid { grid-template-columns: 1fr; }
    .ist-price-card.ist-popular { transform: none; }
    .ist-mockup-container {
        transform: perspective(1200px) rotateY(0deg) rotateX(2deg);
        max-width: 600px; margin: 0 auto;
    }
    .ist-mockup-container:hover { transform: perspective(1200px) rotateY(0deg) rotateX(1deg); }
}
@media (max-width: 768px) {
    .ist-nav { display: none; }
    .ist-header-btns { display: none; }
    .ist-hamburger { display: flex; align-items: center; justify-content: center; }
    .ist-hero { padding: 100px 0 60px; min-height: auto; }
    .ist-hero-actions { flex-direction: column; align-items: stretch; }
    .ist-hero-actions .ist-btn { text-align: center; }
    .ist-title-display { font-size: 2.5rem; }
    .ist-trust-offer { gap: 12px; font-size: 0.8rem; }
    .ist-mock-row-4, .ist-mock-row-results { grid-template-columns: repeat(2, 1fr); }
    .ist-mock-card-value { font-size: 16px; }
    .ist-mock-bottom { flex-direction: column; }
    .ist-mock-tools-row { flex-direction: column; }
    .ist-tabs { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .ist-tabs::-webkit-scrollbar { display: none; }
    .ist-tab { white-space: nowrap; padding: 10px 20px; font-size: 0.85rem; flex-shrink: 0; }
    .ist-step-img-wrapper img { max-height: 300px; object-fit: contain; width: 100%; }
    .ist-tool-row { padding: 14px 16px; }
    .ist-cta-section { margin: 60px 0 0; border-radius: 0; padding: 60px 24px; border-left: none; border-right: none; }
    .ist-cta-trust { gap: 16px; font-size: 0.9rem; }
    .ist-abstract-bg { position: absolute; height: 100%; }
    .ist-abstract-orb { animation: none; opacity: 0.25; }
    .ist-bg-noise { position: absolute; }
    .ist-section { padding: 56px 0; }
    .ist-testimonial-grid { margin-top: 32px; }
    .ist-tool-row { padding: 16px; gap: 12px; }
    .ist-tool-icon { width: 40px; height: 40px; font-size: 16px; }
    .ist-tool-desc { font-size: 0.82rem; }
    .ist-tool-detail-inner { padding: 24px 16px; }
    .ist-detail-feat { font-size: 0.78rem; padding: 5px 10px; }
    .ist-detail-cta { flex-direction: column; }
    .ist-detail-cta .ist-btn { width: 100%; text-align: center; }
    .ist-tabs { flex-wrap: wrap; border-radius: 16px; }
    .ist-tab { padding: 10px 16px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .ist-mockup-body { padding: 14px; gap: 10px; }
    .ist-mock-card { padding: 10px 8px; }
    .ist-mock-card-value { font-size: 14px; }
    .ist-mock-card-label { font-size: 8px; }
    .ist-title-display { font-size: 2rem; }
    .ist-hero-desc { font-size: 1rem; }
}

/* ═══ FUSION VISUAL: Proceso por Regimen + Herramientas ═══ */
/* Proceso se siente como introduccion del catalogo, no como seccion aparte */
.ist-process-section {
    padding-bottom: 24px;
}
.ist-process-section + .ist-tools-section {
    padding-top: 24px;
}
.ist-process-eyebrow,
.ist-tools-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
}
.ist-tools-section .ist-section-header {
    text-align: center;
}
.ist-tools-eyebrow {
    margin-bottom: 16px;
}

/* ═══ DATOS OFICIALES (TRUST INSTITUCIONAL) ═══ */
.ist-trust-section {
    background: transparent;
}
.ist-trust-head {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
}
.ist-trust-head p { margin-left: auto; margin-right: auto; }
.ist-trust-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
}
.ist-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.ist-trust-card {
    padding: 32px 28px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid var(--border);
    transition: border-color 0.25s, background 0.25s;
}
.ist-trust-card:hover {
    border-color: rgba(255, 194, 14, 0.25);
    background: rgba(15, 23, 42, 0.55);
}
.ist-trust-eyebrow-small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94A3B8;
    margin-bottom: 10px;
    line-height: 1.3;
}
.ist-trust-name {
    font-size: clamp(1.875rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.025em;
    color: #F8FAFC;
    margin-bottom: 18px;
}
.ist-trust-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 194, 14, 0.35);
    margin-bottom: 18px;
}
.ist-trust-desc {
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
    color: #94A3B8;
    margin-bottom: 14px;
}
.ist-trust-use {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.55;
    color: #F8FAFC;
}
.ist-trust-footer {
    margin: 56px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #64748B;
    font-style: italic;
}
@media (max-width: 900px) {
    .ist-trust-grid { grid-template-columns: 1fr; gap: 20px; }
    .ist-trust-head { margin-bottom: 48px; }
}
@media (max-width: 560px) {
    .ist-trust-card { padding: 26px 22px; }
    .ist-trust-footer { font-size: 0.75rem; margin-top: 40px; }
}

/* ═══ PRICING — bloque "Incluido en todos los planes" ═══ */
.ist-price-included {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 194, 14, 0.05);
    border: 1px solid rgba(255, 194, 14, 0.15);
}
.ist-price-included-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 8px;
    opacity: 0.85;
}
.ist-price-included-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #F8FAFC;
    line-height: 1.3;
    margin-bottom: 4px;
}
.ist-price-included-sub {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #94A3B8;
    line-height: 1.45;
}
.ist-price-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
}
.ist-price-divider::before,
.ist-price-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.ist-price-divider span {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94A3B8;
}

/* ═══ PRICING TABLE — fila Expediente destacada ═══ */
.ist-table tr.ist-row-expediente {
    background: rgba(255, 194, 14, 0.04);
}
.ist-table tr.ist-row-expediente td:first-child {
    border-left: none;
}
.ist-table tr.ist-row-expediente td {
    border-top: 1px solid rgba(255, 194, 14, 0.16);
    border-bottom: 1px solid rgba(255, 194, 14, 0.16);
    padding-top: 18px;
    padding-bottom: 18px;
}
.ist-row-expediente-title {
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 4px;
    display: block;
}
.ist-row-expediente-sub {
    font-size: 0.85rem;
    color: #94A3B8;
    display: block;
}

/* ═══ EXPEDIENTE DEL CLIENTE ═══ */
.ist-expediente {
    position: relative;
    z-index: 1;
    background: transparent;
}
.ist-expediente-head {
    max-width: 720px;
    margin: 0 auto 72px;
    text-align: center;
}
.ist-expediente-head p { margin-left: auto; margin-right: auto; }
.ist-expediente-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 20px;
}
.ist-expediente-flow {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 760px;
    margin: 0 auto;
}
.ist-expediente-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ist-expediente-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.ist-expediente-num {
    font-family: 'Plus Jakarta Sans', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    line-height: 1;
    color: var(--secondary);
    letter-spacing: -0.04em;
    font-feature-settings: "tnum";
    padding-top: 6px;
}
.ist-expediente-title {
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #F8FAFC;
    margin-bottom: 12px;
}
.ist-expediente-desc {
    font-size: 1rem;
    line-height: 1.65;
    color: #94A3B8;
    max-width: 56ch;
}
.ist-expediente-foot {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.ist-expediente-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94A3B8;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 194, 14, 0.06);
    border: 1px solid rgba(255, 194, 14, 0.18);
}
@media (max-width: 640px) {
    .ist-expediente-head { margin-bottom: 56px; }
    .ist-expediente-flow { gap: 36px; }
    .ist-expediente-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-bottom: 36px;
    }
    .ist-expediente-num {
        font-size: 2.5rem;
        padding-top: 0;
    }
    .ist-expediente-foot { margin-top: 48px; }
}
