/* ============================================================
   Hosting Sin Trampa — sistema de diseño global
   Paleta y tipografía tomadas del mockup aprobado (mockup-diseno.html).
   Azules/verdes técnicos = credibilidad; el naranja (--accent) está
   reservado EXCLUSIVAMENTE para el CTA de conversión, nunca decoración.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #0b3d66;
  --ink-deep: #071b30;
  --ink-light: #1c5f96;
  --teal: #0f9d8b;
  --teal-bright: #22d3b8;
  --teal-soft: #e3f4f1;
  --accent: #ff6b35;
  --accent-hover: #e8551f;
  --paper: #ffffff;
  --paper-alt: #eef3f7;
  --border: #dbe4ec;
  --text: #16283a;
  --text-muted: #55697a;
  --on-dark: #eef6fa;
  --on-dark-muted: #93b4cb;
  --shadow-sm: 0 1px 3px rgba(7,27,48,0.08);
  --shadow-md: 0 4px 16px rgba(7,27,48,0.12);
  --shadow-lg: 0 24px 60px -12px rgba(7,27,48,0.35);
  --radius: 10px;
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101c28; --paper-alt: #16232f; --border: #2a3b4a;
    --text: #e7eef4; --text-muted: #9fb3c2; --teal-soft: #113630;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
    --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #101c28; --paper-alt: #16232f; --border: #2a3b4a;
  --text: #e7eef4; --text-muted: #9fb3c2; --teal-soft: #113630;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4); --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  padding-bottom: 72px; /* espacio para la barra CTA fija en móvil */
}
img { max-width: 100%; display: block; }
a { color: var(--ink-light); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3 { color: var(--on-dark); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) h1,
  :root:not([data-theme="light"]) h2,
  :root:not([data-theme="light"]) h3 { color: var(--on-dark); }
}
h1 { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 8px 0 14px; }
h2 { font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 40px 0 14px; }
h3 { font-weight: 700; font-size: 1.1rem; margin: 22px 0 8px; }
p { max-width: 74ch; }
.lede { max-width: 68ch; color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================ Header ============================================================ */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { height: 26px; width: 26px; }
.brand span { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--teal); }
.updated-badge { font-size: 0.78rem; color: var(--text-muted); background: var(--paper-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }

/* ============================================================ Breadcrumbs ============================================================ */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); margin: 18px 0 0; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; }

/* ============================================================ Hero (Home) ============================================================ */
.hero {
  position: relative; background-color: var(--ink-deep); color: var(--on-dark); padding: 56px 0 64px;
  background-image: linear-gradient(100deg, rgba(7,27,48,0.94) 0%, rgba(7,27,48,0.88) 38%, rgba(7,27,48,0.62) 72%, rgba(7,27,48,0.42) 100%), url('/assets/img/hero-bg.jpg');
  background-repeat: no-repeat; background-position: center; background-size: cover;
}
.hero .eyebrow { color: var(--teal-bright); }
.hero h1 { color: #fff; }
.hero .lede { color: var(--on-dark-muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

/* ============================================================ Quick answer — extraíble por AI Overview / Perplexity / ChatGPT ============================================================ */
.quick-answer {
  background: var(--paper-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.quick-answer h2 { margin-top: 0; font-size: 1.05rem; color: var(--ink); }
:root[data-theme="dark"] .quick-answer h2 { color: var(--on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick-answer h2 { color: var(--on-dark); } }
.quick-answer p { margin: 0; max-width: none; }

/* ============================================================ Trust badges ============================================================ */
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-soft); color: var(--teal);
  border: 1px solid rgba(15,157,139,0.35);
  border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 600;
}
.hero .trust-badge { background: rgba(34,211,184,0.12); color: var(--teal-bright); border-color: rgba(34,211,184,0.4); }

/* ============================================================ CTA — único uso del color de acento ============================================================ */
.btn-cta {
  display: inline-block; background: var(--accent); color: #fff !important;
  font-weight: 700; text-decoration: none; padding: 14px 26px;
  border-radius: var(--radius); border: none; cursor: pointer; font-size: 1rem;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-cta:hover { background: var(--accent-hover); }
.btn-cta:active { transform: translateY(1px); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--ink-light) !important;
  font-weight: 700; text-decoration: none; padding: 13px 24px;
  border-radius: var(--radius); border: 1.5px solid var(--border); font-size: 0.98rem;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }

.mobile-cta-bar { display: none; }
@media (max-width: 640px) {
  .mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--paper); border-top: 1px solid var(--border); padding: 10px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }
  .mobile-cta-bar .btn-cta { width: 100%; text-align: center; }
}

/* ============================================================ Tabla comparativa ============================================================ */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; background: var(--paper); min-width: 640px; }
table.compare th, table.compare td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; font-size: 0.94rem; }
table.compare th { background: var(--paper-alt); color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; font-family: var(--font-mono); font-weight: 600; }
:root[data-theme="dark"] table.compare th { color: var(--on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) table.compare th { color: var(--on-dark); } }
table.compare tr:last-child td { border-bottom: none; }
table.compare td.price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
table.compare .row-winner td { background: var(--teal-soft); }

/* ============================================================ Tarjetas de proveedor ============================================================ */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 24px 0; }
.provider-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 10px; }
.provider-card .rank { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.05em; }
.provider-card h3 { margin: 0; }
.provider-card .price-tag { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
:root[data-theme="dark"] .provider-card .price-tag { color: var(--on-dark); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .provider-card .price-tag { color: var(--on-dark); } }
.provider-card .price-tag small { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.provider-card ul { margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--text-muted); }
.provider-card .caveat { font-size: 0.82rem; color: var(--text-muted); font-style: italic; }

/* ============================================================ Metodología / pasos ============================================================ */
.steps { counter-reset: step; display: grid; gap: 18px; margin: 24px 0; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
}
.step .num::before { content: counter(step); }
.step h3 { margin: 2px 0 4px; }
.step p { margin: 0; }

/* ============================================================ FAQ ============================================================ */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item h3 { margin: 0 0 8px; font-size: 1.05rem; }
.faq-item p { margin: 0; max-width: none; }
.faq-item p.faq-direct-answer { font-weight: 600; }

/* ============================================================ Callouts genéricos ============================================================ */
.callout { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; background: var(--paper-alt); }
.callout.warn { border-left: 4px solid var(--accent); }
.callout.info { border-left: 4px solid var(--ink-light); }
.callout p:last-child { margin-bottom: 0; }

/* ============================================================ Footer ============================================================ */
footer.site-footer { background: var(--ink-deep); color: rgba(238,246,250,0.78); padding: 40px 0 28px; margin-top: 56px; font-size: 0.88rem; }
footer.site-footer .container { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
footer.site-footer h4 { font-family: var(--font-display); color: #fff; font-size: 0.9rem; margin: 0 0 10px; }
footer.site-footer a { color: rgba(238,246,250,0.78); text-decoration: none; }
footer.site-footer a:hover { color: var(--teal-bright); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
footer.site-footer .disclosure { grid-column: 1 / -1; border-top: 1px solid rgba(238,246,250,0.15); margin-top: 24px; padding-top: 18px; font-size: 0.8rem; color: rgba(238,246,250,0.55); }
@media (max-width: 720px) { footer.site-footer .container { grid-template-columns: 1fr 1fr; } }

/* ============================================================ Section utilities ============================================================ */
.section-alt { background: var(--paper-alt); padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
