/* =========================================================
   TICTIGER — Landing page
   Estilos globales
   ========================================================= */

:root {
    --tiger-dark: #050A18;
    --tiger-slate: #1C2541;
    --tiger-card: #111936;
    --tiger-cyan: #00A8E8;
    --tiger-cyan-soft: #38BDF8;
    --tiger-emerald: #10B981;
    --tiger-emerald-soft: #34D399;
    --tiger-amber: #F59E0B;
    --tiger-red: #EF4444;
    --tiger-indigo: #6366F1;
    --text-main: #F8FAFC;
    --text-soft: #CBD5E1;
    --text-muted: #94A3B8;
    --border-color: rgba(148, 163, 184, 0.16);
    --glass: rgba(17, 25, 54, 0.55);
    --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--tiger-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ BARRA DE PROGRESO ============ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--tiger-cyan), var(--tiger-emerald));
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
    transition: width 0.1s linear;
}

/* ============ BOTONES ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(100deg, var(--tiger-emerald) 0%, #22C55E 45%, var(--tiger-cyan-soft) 130%);
    background-size: 160% 100%;
    background-position: 0% 50%;
    color: #04121A;
    padding: 12px 22px;
    font-size: 14.5px;
    box-shadow: 0 10px 26px -10px rgba(16, 185, 129, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: btnShine 6s var(--ease) infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -12px rgba(16, 185, 129, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-lg {
    padding: 16px 30px;
    font-size: 15.5px;
    border-radius: 14px;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.28);
    padding: 16px 28px;
    font-size: 15px;
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    margin-top: 6px;
}

@keyframes btnShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: rgba(5, 10, 24, 0.55);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
    background-color: rgba(5, 10, 24, 0.9);
    border-bottom-color: var(--border-color);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.nav-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.85;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(0, 168, 232, 0.35);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px -10px rgba(0, 168, 232, 0.8);
}

.brand-text-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.6px;
    line-height: 1.1;
}

.brand-text-title span {
    background: linear-gradient(100deg, var(--tiger-cyan-soft), var(--tiger-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-text-sub {
    display: block;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--text-muted);
    white-space: nowrap;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.primary-nav a {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tiger-cyan), var(--tiger-emerald));
    transition: width 0.3s var(--ease);
}

.primary-nav a:hover {
    color: #FFFFFF;
}

.primary-nav a:hover::after {
    width: 100%;
}

/* ---------- Menú desplegable de demos ---------- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 4px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-soft);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-drop-btn:hover,
.nav-dropdown.is-open .nav-drop-btn {
    color: #FFFFFF;
}

.drop-chevron {
    opacity: 0.7;
    transition: transform 0.25s var(--ease);
}

.nav-dropdown.is-open .drop-chevron,
.nav-dropdown:hover .drop-chevron {
    transform: rotate(180deg);
}

.nav-drop-panel {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 310px;
    padding: 10px;
    border-radius: 16px;
    background: linear-gradient(170deg, #0D152B, #070D1E);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity 0.22s, transform 0.25s var(--ease), visibility 0.25s;
    z-index: 70;
}

.nav-drop-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
}

.nav-dropdown.is-open .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

@media (hover: hover) {
    .nav-dropdown:hover .nav-drop-panel {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }
}

.drop-label {
    display: block;
    padding: 6px 10px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #64748B;
}

.drop-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 11px;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s var(--ease);
}

.nav-drop-panel .drop-link::after {
    display: none;
}

.drop-link:hover {
    background-color: rgba(56, 189, 248, 0.08);
    transform: translateX(2px);
}

.drop-link:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.6);
    outline-offset: 2px;
}

.drop-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #7DD3FC;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.drop-badge.tone-emerald {
    color: var(--tiger-emerald-soft);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.32);
}

.drop-badge.tone-amber {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.32);
}

.drop-badge.tone-indigo {
    color: #A5B4FC;
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.34);
}

.drop-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.drop-copy strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #F1F5F9;
}

.drop-copy small {
    font-size: 11.5px;
    color: var(--text-muted);
}

.drop-external {
    margin-left: auto;
    flex-shrink: 0;
    color: #64748B;
    opacity: 0;
    transform: translate(-2px, 2px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.drop-link:hover .drop-external {
    opacity: 1;
    transform: none;
    color: #7DD3FC;
}

.nav-mobile-cta {
    display: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    position: relative;
    transition: background-color 0.2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.is-open span { background-color: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px);
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 20%, #000 25%, transparent 78%);
    opacity: 0.6;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 560px;
    height: 560px;
    top: -220px;
    left: -140px;
    background: radial-gradient(circle, rgba(0, 168, 232, 0.55), transparent 68%);
}

.orb-2 {
    width: 520px;
    height: 520px;
    bottom: -260px;
    right: -160px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.42), transparent 68%);
    animation-delay: -7s;
}

.orb-3 {
    width: 380px;
    height: 380px;
    top: 40px;
    right: 28%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 70%);
    animation-delay: -13s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 168, 232, 0.08);
    border: 1px solid rgba(0, 168, 232, 0.28);
    color: #7DD3FC;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 26px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--tiger-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2.2s ease-out infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(100deg, var(--tiger-cyan-soft) 0%, var(--tiger-emerald) 55%, var(--tiger-cyan-soft) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 200% center; }
}

.hero-lead {
    font-size: clamp(15.5px, 1.35vw, 18px);
    color: #B6C2D8;
    max-width: 560px;
    margin-bottom: 30px;
}

.hero-lead strong {
    color: #FFFFFF;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 22px;
}

.hero-highlights li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-soft);
}

.hero-highlights svg {
    color: var(--tiger-emerald-soft);
    flex-shrink: 0;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 9px 15px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.hero-note svg {
    color: var(--tiger-emerald-soft);
    flex-shrink: 0;
}

/* ---------- Panel visual del hero ---------- */
.hero-visual {
    position: relative;
    perspective: 1200px;
}

.panel {
    position: relative;
    background: linear-gradient(160deg, rgba(28, 37, 65, 0.92), rgba(8, 14, 32, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    transform: rotateY(-6deg) rotateX(3deg);
    animation: panelFloat 9s ease-in-out infinite;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.14), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.panel:hover::after {
    opacity: 1;
}

@keyframes panelFloat {
    0%, 100% { transform: rotateY(-6deg) rotateX(3deg) translateY(0); }
    50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-12px); }
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    color: var(--text-muted);
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--tiger-emerald);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    animation: panelBlink 2.6s ease-in-out infinite;
}

@keyframes panelBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.panel-title {
    font-weight: 600;
    color: #DCE6F5;
}

.panel-chip {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7DD3FC;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 999px;
    padding: 3px 10px;
}

.panel-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    padding: 14px;
}

.metric-label {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    color: #FFFFFF;
}

.metric-value em {
    font-style: normal;
    font-size: 14px;
    color: var(--tiger-emerald-soft);
    margin-left: 2px;
}

.metric-trend {
    display: block;
    font-size: 10.5px;
    color: var(--tiger-emerald-soft);
    margin-top: 4px;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    height: 92px;
    padding: 0 2px;
    margin-bottom: 18px;
}

.chart span {
    flex: 1;
    height: var(--h);
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.95), rgba(16, 185, 129, 0.35));
    transform-origin: bottom;
    animation: barGrow 1s var(--ease) both, barPulse 4s ease-in-out infinite 1.2s;
    animation-delay: var(--d, 0s), calc(1.2s + var(--d, 0s));
}

.chart span:nth-child(2n) {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.95), rgba(56, 189, 248, 0.3));
}

@keyframes barGrow {
    from { transform: scaleY(0.05); opacity: 0.3; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes barPulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.88); }
}

.panel-rows {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: #C7D3E6;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.08);
}

.panel-row strong {
    margin-left: auto;
    color: #FFFFFF;
    font-weight: 700;
}

.row-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.row-dot.ok { background-color: var(--tiger-emerald); }
.row-dot.warn { background-color: var(--tiger-amber); }
.row-dot.info { background-color: var(--tiger-cyan); }

.floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 14px;
    background: rgba(8, 14, 32, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
    font-size: 12.5px;
    font-weight: 600;
    color: #E6EEF9;
    backdrop-filter: blur(10px);
    z-index: 2;
    animation: floatY 7s ease-in-out infinite;
}

.floating svg {
    color: var(--tiger-emerald-soft);
    flex-shrink: 0;
}

.floating small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

.floating-1 {
    top: -48px;
    right: 0;
}

.floating-2 {
    bottom: -48px;
    left: 0;
    animation-delay: -3.5s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* ============ MARQUEE ============ */
.marquee {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    padding: 15px 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 44px;
    padding-right: 44px;
    flex-shrink: 0;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    white-space: nowrap;
}

.marquee-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tiger-cyan), var(--tiger-emerald));
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============ SECCIONES ============ */
section {
    padding: clamp(60px, 7vw, 100px) 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(17, 25, 54, 0.55), rgba(5, 10, 24, 0.2));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(36px, 4.5vw, 58px);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    border-radius: 999px;
    border: 1px solid rgba(0, 168, 232, 0.26);
    background: rgba(0, 168, 232, 0.08);
    color: #7DD3FC;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 16px;
}

.kicker-emerald {
    border-color: rgba(16, 185, 129, 0.28);
    background: rgba(16, 185, 129, 0.08);
    color: var(--tiger-emerald-soft);
}

.kicker-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -1.1px;
    margin-bottom: 14px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto;
}

/* ============ TARJETAS ============ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 26px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    background: linear-gradient(165deg, rgba(28, 37, 65, 0.6), rgba(10, 17, 36, 0.75));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: clamp(24px, 2.6vw, 32px);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 30px 60px -34px rgba(0, 168, 232, 0.7);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.3);
    color: #7DD3FC;
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.card:hover .card-icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px -10px rgba(0, 168, 232, 0.8);
}

.card-icon.tone-emerald {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.32);
    color: var(--tiger-emerald-soft);
}

.card-icon.tone-amber {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.32);
    color: #FBBF24;
}

.card-icon.tone-indigo {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(99, 102, 241, 0.34);
    color: #A5B4FC;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 18.5px;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 9px;
    color: #FFFFFF;
}

.card p {
    font-size: 14.5px;
    color: var(--text-muted);
}

/* ---------- Comparación ---------- */
.card-before {
    border-color: rgba(239, 68, 68, 0.22);
}

.card-before:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 30px 60px -34px rgba(239, 68, 68, 0.5);
}

.card-before::before {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(239, 68, 68, 0.12), transparent 60%);
}

.card-after {
    border-color: rgba(16, 185, 129, 0.35);
    background: linear-gradient(165deg, rgba(28, 37, 65, 0.85), rgba(6, 30, 28, 0.55));
}

.card-after::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--tiger-emerald), var(--tiger-cyan));
}

.card-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.label-red {
    color: #FCA5A5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.24);
}

.label-green {
    color: var(--tiger-emerald-soft);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: #DEE7F4;
    line-height: 1.5;
}

.check-list li strong {
    color: #FFFFFF;
    font-weight: 600;
}

.icon-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.is-bad {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #FCA5A5;
}

.is-good {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--tiger-emerald-soft);
}

/* ---------- Método ---------- */
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 18px;
    position: relative;
}

.step-1 {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FBBF24;
    box-shadow: 0 0 30px -12px rgba(245, 158, 11, 0.7);
}

.step-2 {
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.38);
    color: #38BDF8;
    box-shadow: 0 0 30px -12px rgba(0, 168, 232, 0.7);
}

.step-3 {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.38);
    color: var(--tiger-emerald-soft);
    box-shadow: 0 0 30px -12px rgba(16, 185, 129, 0.7);
}

.step-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ============ CTA / FORM ============ */
.cta-section {
    padding: clamp(60px, 7vw, 100px) 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 168, 232, 0.18), transparent 62%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.cta-box {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(160deg, rgba(28, 37, 65, 0.9), rgba(6, 11, 24, 0.92));
    border: 1px solid rgba(0, 168, 232, 0.3);
    border-radius: 26px;
    padding: clamp(30px, 4.5vw, 52px);
    text-align: center;
    box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.cta-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(0, 168, 232, 0.6), transparent 35%, transparent 65%, rgba(16, 185, 129, 0.55));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-box > p {
    color: #B6C2D8;
    max-width: 560px;
    margin: 0 auto 30px;
    font-size: 15.5px;
}

form {
    max-width: 430px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 7px;
}

input,
select {
    width: 100%;
    background-color: rgba(5, 10, 24, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    padding: 13px 16px;
    color: #FFFFFF;
    font-size: 14.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    appearance: none;
}

select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 15px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

input::placeholder {
    color: #64748B;
}

input:focus,
select:focus {
    border-color: rgba(56, 189, 248, 0.7);
    background-color: rgba(5, 10, 24, 0.95);
    box-shadow: 0 0 0 4px rgba(0, 168, 232, 0.14);
}

.cta-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    margin-top: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: #A9B8CE;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.chip svg {
    color: var(--tiger-emerald-soft);
    flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0 40px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    background: rgba(3, 7, 18, 0.6);
}

.footer-logo {
    display: inline-block;
    background-color: transparent;
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 20px;
    line-height: 0;
    box-shadow: 0 18px 40px -24px rgba(255, 255, 255, 0.35);
}

.footer-logo img {
    width: 190px;
    height: auto;
    display: block;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: #E2E8F0;
    font-size: 15.5px;
    margin-bottom: 4px;
}

.footer-brand span {
    color: var(--tiger-cyan-soft);
}

.footer-legal {
    margin-top: 16px;
    font-size: 12px;
    color: #64748B;
}

/* ============ ANIMACIONES DE SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 76px;
    }

    .hero-copy {
        max-width: 640px;
    }

    .hero-visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .panel {
        transform: none;
        animation: none;
    }
}

@media (max-width: 1024px) {
    .primary-nav {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 24px 22px;
        background: #070D1E;
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(18px);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    }

    .primary-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .primary-nav a {
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        font-size: 15px;
    }

    .primary-nav a::after {
        display: none;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
    }

    .nav-drop-btn {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        font-size: 15px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.1);
        pointer-events: none;
    }

    .drop-chevron {
        display: none;
    }

    .primary-nav .nav-dropdown .nav-drop-panel {
        position: static;
        width: 100%;
        padding: 4px 0 12px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-drop-panel::before {
        display: none;
    }

    .drop-label {
        padding: 8px 2px 4px;
    }

    .primary-nav .drop-link {
        width: 100%;
        padding: 10px 8px;
        border-bottom: 1px solid rgba(148, 163, 184, 0.08);
        border-radius: 10px;
    }

    .drop-copy strong {
        font-size: 14px;
    }

    .drop-external {
        opacity: 0.55;
        transform: none;
    }

    .primary-nav .nav-mobile-cta {
        display: inline-flex;
        width: 100%;
        margin: 16px 0 4px;
        padding: 14px 20px;
        border-bottom: 0;
        text-align: center;
        font-size: 14.5px;
        color: #04121A;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        height: 68px;
    }

    .primary-nav {
        top: 68px;
    }

    .brand-text-title {
        font-size: 19px;
    }

    .hero {
        padding-top: 44px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-highlights {
        gap: 9px 16px;
    }

    .floating-1 {
        top: -44px;
        right: 0;
    }

    .floating-2 {
        bottom: -44px;
        left: 0;
    }

    .panel-metrics {
        grid-template-columns: 1fr;
    }

    .chart {
        height: 72px;
    }
}

@media (max-width: 420px) {
    .floating {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    /* El carrusel se mantiene en movimiento, pero a velocidad reducida */
    .marquee-track {
        animation-duration: 70s !important;
        animation-iteration-count: infinite !important;
    }
}
