/* Deep Tennis AI · web pública 2026-10. Negro y naranja, sin adornos. */
:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f2eee8;
  --ink: #141210;
  --muted: #6b645c;
  --line: #e6e0d8;
  --accent: #ff7a1a;
  --accent-strong: #e8640a;
  --accent-ink: #1a0f05;
  --good: #16794a;
  --bad: #b3362f;
  --band: #141210;
  --band-ink: #f6f2ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 18 16 / 6%), 0 8px 24px rgb(20 18 16 / 6%);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0d;
    --surface: #181614;
    --surface-alt: #141210;
    --ink: #f3efe9;
    --muted: #a39b91;
    --line: #2b2723;
    --good: #3fbf7f;
    --bad: #f07067;
    --band: #1c1916;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.5rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0; }
dl, dd { margin: 0; }
small { font-size: .75em; font-weight: 500; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 760px; }
.measure { max-width: 62ch; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .8rem; }
.eyebrow { color: var(--accent-strong); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.12rem; margin-top: 16px; max-width: 56ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font: 650 .95rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--muted); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-button { border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.arrow-link { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.arrow-link::after { content: " →"; color: var(--accent-strong); }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cabecera */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: .93rem; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--surface-alt); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang { padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.lang:hover { color: var(--ink); background: var(--surface-alt); }
@media (min-width: 760px) { .nav { display: flex; } }
@media (max-width: 759px) {
  /* Navegación móvil: barra fija inferior de tres enlaces. */
  .nav { display: flex; position: fixed; inset: auto 0 0 0; z-index: 30; margin: 0; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .nav a { flex: 1; padding: 8px 2px; text-align: center; font-size: .8rem; white-space: nowrap; }
  .nav a[aria-current="page"] { color: var(--accent-strong); }
  body { padding-bottom: 60px; }
  /* backdrop-filter convierte la cabecera en contenedor de los fixed: la barra se quedaría arriba. */
  .header { backdrop-filter: none; background: var(--bg); }
  .brand span { font-size: .95rem; }
}

/* Secciones */
.section { padding: 64px 0; }
.section-tight { padding: 28px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin-top: 6px; }
.page-head { padding: 52px 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.h-small { font-size: 1rem; font-weight: 650; letter-spacing: 0; }
@media (max-width: 719px) { .section { padding: 44px 0; } .page-head { padding: 36px 0 8px; } }

/* Inicio */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 72px; } .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (max-width: 479px) { .actions .btn { flex: 1 1 100%; } }
.today { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .9rem; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.stats { padding: 22px; }
.stats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stats-head span { font-size: .82rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.stat-grid dt, .kpi dt, .period-stats dt { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-grid dd, .period-stats dd { font-size: 1.15rem; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-grid dd.big { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; }
.spark { height: 64px; margin: 18px 0 16px; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps p { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 750; }
.plan-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.plan-mini { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; transition: border-color .15s; }
.plan-mini:hover { border-color: var(--accent); }
.plan-mini .price { font-size: 1.2rem; font-weight: 700; }
.plan-mini .muted { font-size: .82rem; }

/* Lista de picks */
.picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pick.skeleton { height: 68px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-alt) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pick.skeleton { animation: none; } }
.pick-main { min-width: 0; }
.pick-title { font-weight: 650; }
.pick-meta { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.pick-side { text-align: right; white-space: nowrap; }
.pick-profit { font-weight: 700; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; }
.tag-win { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.tag-loss { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.tag-void { color: var(--muted); background: var(--surface-alt); }
.pos { color: var(--good); }
.neg { color: var(--bad); }

/* Resultados */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 860px) { .kpis { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.kpi dd { font-size: 1.35rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-main { grid-column: 1 / -1; }
@media (min-width: 860px) { .kpi-main { grid-column: auto; } }
.kpi-main dd { font-size: 2.2rem; letter-spacing: -0.02em; }
.chart-card { padding: 18px 18px 10px; }
.chart { height: 240px; margin-top: 10px; }
.chart svg, .spark svg { width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--muted); font: 500 11px var(--font); }
.periods { display: grid; gap: 12px; margin-top: 20px; }
@media (min-width: 760px) { .periods { grid-template-columns: 1fr 1fr; } }
.period { padding: 20px; }
.period > .muted { font-size: .88rem; margin-top: 4px; }
.period-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .93rem; }
.table th, .table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table th { color: var(--muted); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.table tr:last-child td { border-bottom: 0; }
#main .section-tight .picks { margin-top: 16px; }
.error { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); margin-bottom: 16px; }
[data-updated] { margin-top: 16px; }

/* Planes */
.plans { display: grid; gap: 12px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan .btn { white-space: nowrap; padding: 0 12px; }
.plan { display: flex; flex-direction: column; padding: 22px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.badge { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-strong); font-size: .74rem; font-weight: 700; }
.plan-price { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; margin-top: 10px; }
.plan > .muted { font-size: .86rem; }
.ticks { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: .93rem; flex: 1; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(-45deg); }
.guarantee { display: grid; gap: 24px; }
@media (min-width: 860px) { .guarantee { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 48px; } }
.guarantee .muted { margin-top: 12px; }
.guarantee-list { display: grid; gap: 8px; }
.guarantee-list div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.guarantee-list dt { font-weight: 650; }
.guarantee-list dd { color: var(--muted); text-align: right; }
.faq { margin-top: 20px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Franja final y pie */
.band { background: var(--band); color: var(--band-ink); padding: 48px 0; }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.band p { color: color-mix(in srgb, var(--band-ink) 70%, transparent); margin-top: 6px; }
.footer { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.footer-inner .muted { margin-top: 10px; font-size: .9rem; max-width: 36ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-content: start; font-size: .9rem; }
.footer-links a, .footer-links .link-button { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links .link-button:hover { color: var(--ink); }

/* Aviso de cookies: una barra pequeña, no un muro. */
.consent { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 760px; margin: 0 auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 30px rgb(0 0 0 / 18%); font-size: .86rem; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 260px; color: var(--muted); }
.consent-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 759px) { .consent { bottom: 72px; } }

/* Cómo funciona y FAQ */
@media (min-width: 760px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.labels { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 760px) { .labels { grid-template-columns: repeat(3, 1fr); } }
.label-card { padding: 20px; }
.label-card p { margin-top: 8px; font-size: .95rem; }
.label-premium { border-color: var(--accent); }
.label-premium h3 { color: var(--accent-strong); }
.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ticks-lg { margin: 20px 0; gap: 12px; font-size: 1rem; }
.note { padding: 20px 22px; }
.note p { margin-top: 8px; }
.faq-group { font-size: 1.15rem; margin-top: 36px; }
.faq-group:first-child { margin-top: 0; }
.faq-group + .faq { margin-top: 10px; }

/* Páginas legales y contacto: texto original con su marcado de siempre. */
.legacy-content { max-width: 820px; padding-top: 44px; padding-bottom: 56px; }
.legacy-content .page-hero { margin-bottom: 28px; }
.legacy-content .page-hero h1 { margin-bottom: 12px; }
.legacy-content .page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.legacy-content .section { padding: 0 0 28px; }
.legacy-content h2 { font-size: 1.2rem; margin: 28px 0 10px; }
.legacy-content p, .legacy-content li { color: var(--ink); line-height: 1.65; }
.legacy-content p + p { margin-top: 10px; }
.legacy-content ul, .legacy-content ol { padding-left: 22px; }
.legacy-content a { color: var(--accent-strong); text-underline-offset: 3px; }
.legacy-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; display: block; overflow-x: auto; }
.legacy-content th, .legacy-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legacy-content .section-heading { margin-bottom: 6px; }
.legacy-content .legal-grid, .legacy-content .contact-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .legacy-content .legal-grid, .legacy-content .contact-grid { grid-template-columns: 1fr 1fr; } }
.legacy-content .legal-card, .legacy-content .contact-card { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s; }
.legacy-content .legal-card:hover, .legacy-content .contact-card:hover { border-color: var(--accent); }
.legacy-content .legal-card span, .legacy-content .contact-card span { color: var(--accent-strong); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.legacy-content .legal-card h2, .legacy-content .contact-card h2 { margin: 6px 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.legacy-content .legal-card p, .legacy-content .contact-card p { color: var(--muted); font-size: .9rem; }

/* Panel de cookies por finalidad */
.consent-options { flex: 1 1 100%; display: grid; gap: 8px; }
.consent-options[hidden] { display: none; }
.consent-option { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.consent-option input { margin-top: 3px; accent-color: var(--accent); }
.consent-option strong { color: var(--ink); }
.consent-actions { flex-wrap: wrap; }
.consent-actions [hidden] { display: none; }
.legacy-content .eyebrow { color: var(--accent-strong); }
