/* ============================================================
   Akenda — Páginas de detalle de producto (/productos/*)
   Design system heredado del sitio principal:
   Inter (body) + Space Grotesk (display), teal Óptimo, indigo SFO
   ============================================================ */

:root {
    --teal:       #0d9488;
    --teal-l:     #14b8a6;
    --teal-d:     #0f766e;
    --teal-50:    #f0fdfa;
    --teal-100:   #ccfbf1;
    --teal-900:   #134e4a;

    --indigo:     #4f46e5;
    --indigo-l:   #6366f1;
    --indigo-d:   #4338ca;
    --indigo-50:  #eef2ff;
    --indigo-100: #e0e7ff;
    --indigo-900: #312e81;

    --amber:      #f59e0b;
    --green:      #16a34a;
    --red:        #dc2626;

    --ink:        #0f172a;
    --text-1:     #0f172a;
    --text-2:     #475569;
    --text-3:     #94a3b8;
    --sl-100:     #e2e8f0;
    --sl-200:     #cbd5e1;

    --bg-white:   #ffffff;
    --bg-light:   #f8fafc;
    --bg-dark:    #0b1220;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;

    --shadow-sm:  0 1px 3px rgba(15,23,42,0.06), 0 4px 14px rgba(15,23,42,0.05);
    --shadow-md:  0 4px 6px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.10);
    --shadow-lg:  0 8px 12px rgba(15,23,42,0.06), 0 28px 64px rgba(15,23,42,0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 16px; line-height: 1.6;
    color: var(--text-1); background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Reveal on scroll (idéntico al sitio principal) ───────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── Header (mismo patrón del sitio) ──────────────────────── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.86); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-bottom-color: var(--sl-100); box-shadow: 0 2px 18px rgba(15,23,42,0.05); }
.nav { max-width: 1140px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo-icon { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--teal), var(--teal-d)); display: grid; place-items: center; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.logo-text em { font-style: normal; color: var(--teal); }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--teal); }
.btn-nav {
    font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 99px;
    background: var(--ink); color: #fff; transition: transform .2s, background .2s;
}
.btn-nav:hover { background: var(--teal-d); transform: translateY(-1px); }

/* ── Botones ──────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-weight: 600; font-size: 15.5px; padding: 14px 28px; border-radius: 99px; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(13,148,136,0.32); }
.btn-primary:hover { background: var(--teal-d); transform: translateY(-2px); }
.btn-indigo { background: var(--indigo); color: #fff; box-shadow: 0 8px 24px rgba(79,70,229,0.32); }
.btn-indigo:hover { background: var(--indigo-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1.5px solid var(--sl-200); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost-dark { background: transparent; color: #cbd5e1; border: 1.5px solid rgba(255,255,255,0.22); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    padding: 7px 16px; border-radius: 99px;
}
.ey-teal { background: rgba(13,148,136,0.10); color: var(--teal); border: 1px solid rgba(13,148,136,0.22); }
.ey-indigo { background: rgba(79,70,229,0.10); color: var(--indigo); border: 1px solid rgba(79,70,229,0.22); }
.ey-indigo-dark { background: rgba(99,102,241,0.16); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.35); }

/* ── HERO de producto ─────────────────────────────────────── */
.p-hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.p-hero-teal {
    background:
        radial-gradient(900px 480px at 82% -10%, rgba(13,148,136,0.10), transparent 60%),
        radial-gradient(700px 420px at 8% 110%, rgba(13,148,136,0.07), transparent 60%),
        var(--bg-white);
}
.p-hero-dark {
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(99,102,241,0.22), transparent 60%),
        radial-gradient(700px 460px at 5% 115%, rgba(79,70,229,0.16), transparent 60%),
        var(--bg-dark);
    color: #e2e8f0;
}
/* textura de puntos sutil */
.p-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle, rgba(15,23,42,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 75%);
}
.p-hero-dark::before { background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); }

.p-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.breadcrumb { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--teal); }
.p-hero-dark .breadcrumb a:hover { color: var(--indigo-l); }
.p-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 700; margin: 18px 0 18px; }
.p-hero h1 .hl-teal { color: var(--teal); }
.p-hero h1 .hl-indigo { color: var(--indigo-l); }
.p-hero-sub { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 32px; }
.p-hero-dark .p-hero-sub { color: #94a3b8; }
.p-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.p-hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ── Mockup flotante (CSS puro) ───────────────────────────── */
.mock-wrap { position: relative; }
.mock-card {
    background: #fff; border: 1px solid var(--sl-100); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg); padding: 22px; position: relative; z-index: 2;
    animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mock-card-back {
    position: absolute; z-index: 1; inset: 28px -22px -26px 30px;
    background: linear-gradient(135deg, var(--teal-50), #fff);
    border: 1px solid var(--teal-100); border-radius: var(--r-lg);
}
.mock-card-back.back-indigo { background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(15,23,42,0.0)); border-color: rgba(99,102,241,0.3); }

.mdh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mdh-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14.5px; }
.mbadge { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 99px; }
.mb-green { background: #dcfce7; color: var(--green); }
.mb-indigo { background: var(--indigo-100); color: var(--indigo); }
.mb-amber { background: #fef3c7; color: #b45309; }

.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--sl-100); font-size: 13.5px; }
.mini-row:last-of-type { border-bottom: none; }
.mr-lbl { color: var(--text-2); }
.mr-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.mr-val.good { color: var(--green); }
.mr-val.bad { color: var(--red); }

.margin-block { margin-top: 14px; padding: 13px 15px; background: var(--bg-light); border-radius: var(--r-sm); }
.mb-lbl { font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.mb-track { height: 8px; background: var(--sl-100); border-radius: 99px; overflow: hidden; }
.mb-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-l), var(--teal)); }
.mb-pct { margin-top: 7px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; color: var(--teal-d); }

/* chat del SFO */
.sfo-chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.b-user { align-self: flex-end; background: var(--indigo); color: #fff; border-bottom-right-radius: 4px; }
.b-ai { align-self: flex-start; background: var(--bg-light); border: 1px solid var(--sl-100); border-bottom-left-radius: 4px; color: var(--text-1); }
.b-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 13px 16px; }
.b-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo-l); animation: blink 1.2s infinite; }
.b-typing span:nth-child(2) { animation-delay: .2s; }
.b-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* ── Stat strip ───────────────────────────────────────────── */
.stat-strip { padding: 56px 0; background: var(--bg-light); border-top: 1px solid var(--sl-100); border-bottom: 1px solid var(--sl-100); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); color: var(--teal-d); }
.stat-num.num-indigo { color: var(--indigo-d); }
.stat-lbl { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }

/* ── Secciones genéricas ──────────────────────────────────── */
.p-section { padding: 90px 0; }
.p-section-alt { background: var(--bg-light); }
.sec-head { max-width: 640px; margin-bottom: 54px; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; margin: 16px 0 14px; }
.sec-head p { color: var(--text-2); font-size: 16.5px; }

/* ── Feature rows alternadas ──────────────────────────────── */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 44px 0; }
.feat-row + .feat-row { border-top: 1px solid var(--sl-100); }
.feat-row h3 { font-size: 23px; font-weight: 700; margin: 12px 0 12px; }
.feat-row p { color: var(--text-2); font-size: 15.5px; }
.feat-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.k-teal { color: var(--teal); }
.k-indigo { color: var(--indigo); }
.feat-points { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.feat-points li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.feat-points li::before { content: "✓"; font-weight: 800; color: var(--teal); flex-shrink: 0; }
.fp-indigo li::before { color: var(--indigo); }

.feat-visual {
    background: linear-gradient(135deg, var(--bg-light), #fff);
    border: 1px solid var(--sl-100); border-radius: var(--r-lg);
    padding: 26px; box-shadow: var(--shadow-sm);
}

/* alert demo card */
.alert-demo { display: flex; flex-direction: column; gap: 11px; }
.alert-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--sl-100); box-shadow: var(--shadow-sm); font-size: 13.5px; }
.alert-item .ai-icon { font-size: 17px; }
.alert-item strong { display: block; font-size: 13.5px; }
.alert-item span { color: var(--text-2); font-size: 12.5px; }
.alert-crit { border-left: 3.5px solid var(--red); }
.alert-warn { border-left: 3.5px solid var(--amber); }
.alert-ok   { border-left: 3.5px solid var(--green); }

/* tabla comparativa simple */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.cmp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); padding: 12px 16px; background: var(--bg-light); border-bottom: 1px solid var(--sl-100); }
.cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--sl-100); }
.cmp-table tr:last-child td { border-bottom: none; }
.tag-up { color: var(--red); font-weight: 700; }
.tag-down { color: var(--green); font-weight: 700; }

/* ── Cómo funciona — timeline 3 pasos ─────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--sl-100); border-radius: var(--r-md); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; }
.sn-teal { background: var(--teal-50); color: var(--teal-d); border: 1px solid var(--teal-100); }
.sn-indigo { background: var(--indigo-50); color: var(--indigo-d); border: 1px solid var(--indigo-100); }
.step-card h3 { font-size: 17.5px; margin-bottom: 9px; }
.step-card p { font-size: 14px; color: var(--text-2); }

/* ── Verticales / casos de uso ────────────────────────────── */
.vert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vert-card { background: #fff; border: 1px solid var(--sl-100); border-radius: var(--r-md); padding: 24px 22px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.vert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(13,148,136,0.3); }
.vert-icon { font-size: 26px; margin-bottom: 13px; }
.vert-card h3 { font-size: 16px; margin-bottom: 8px; }
.vert-card p { font-size: 13.5px; color: var(--text-2); }

/* ── FAQ (details/summary nativo) ─────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--sl-100); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 19px 24px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 500; color: var(--text-3); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--teal); }
.faq-item p { padding: 0 24px 20px; color: var(--text-2); font-size: 14.5px; }

/* ── Cross-sell band ──────────────────────────────────────── */
.cross-band { border-radius: var(--r-lg); padding: 46px 48px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cb-teal { background: linear-gradient(120deg, var(--teal-900), var(--teal-d)); color: #fff; }
.cb-indigo { background: linear-gradient(120deg, var(--indigo-900), var(--indigo-d)); color: #fff; }
.cross-band h3 { font-size: clamp(20px, 2.6vw, 27px); margin-bottom: 10px; }
.cross-band p { font-size: 15px; opacity: .85; max-width: 560px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.25); }

/* ── CTA final ────────────────────────────────────────────── */
.final-cta { padding: 100px 0; text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(620px 320px at 50% 0%, rgba(13,148,136,0.09), transparent 70%);
}
.final-cta.fc-indigo::before { background: radial-gradient(620px 320px at 50% 0%, rgba(79,70,229,0.10), transparent 70%); }
.final-cta h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 16px; }
.final-cta p { color: var(--text-2); font-size: 17px; max-width: 540px; margin: 0 auto 34px; }
.final-cta .p-hero-ctas { justify-content: center; }

/* ── Footer compacto ──────────────────────────────────────── */
.footer { background: var(--ink); color: #94a3b8; padding: 52px 0 30px; font-size: 13.5px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer .logo-text { color: #fff; }
.fl-desc { max-width: 330px; margin-top: 12px; line-height: 1.55; }
.footer-col h5 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 13.5px; margin-bottom: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 920px) {
    .p-hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .feat-row { grid-template-columns: 1fr; gap: 30px; }
    .feat-row .feat-visual { order: 2; }
    .steps { grid-template-columns: 1fr; }
    .vert-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .cross-band { grid-template-columns: 1fr; padding: 36px 28px; }
    .nav-links { display: none; }
}
@media (max-width: 560px) {
    .vert-grid { grid-template-columns: 1fr; }
    .p-hero { padding: 120px 0 64px; }
    .p-section { padding: 64px 0; }
}
