/* Zona Guía · estilos comunes (ES / EN) */

/* Tipografías alojadas en la propia web (sin enviar datos a Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2") format("woff2"); }
:root {
  --bg: #0B0F17;
  --bg-alt: #0F1520;
  --surface: #131A26;
  --surface-2: #182132;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #E6EAF0;
  --muted: #9AA6B8;
  --blue: #3B82F6;
  --blue-2: #60A5FA;
  --amber: #F59E0B;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 96px 0; position: relative; }
.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.12; margin: 0 0 18px; letter-spacing: -.025em; color: #fff; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.grad {
  background: linear-gradient(90deg, var(--blue-2), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--blue) 0%, #2563EB 100%);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  padding: 16px 30px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 12px 32px rgba(59, 130, 246, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 16px 40px rgba(59, 130, 246, .5); }
.btn .price-chip { background: rgba(0, 0, 0, .22); padding: 3px 10px; border-radius: 8px; font-weight: 700; }
.btn-small { font-size: .9rem; padding: 10px 18px; box-shadow: 0 6px 18px rgba(59, 130, 246, .3); }
.btn-ghost { background: transparent; box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn-ghost:hover { background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.trust span::before { content: "✓  "; color: var(--amber); font-weight: 700; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 15, 23, .55); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s;
}
.site-header.scrolled { background: rgba(11, 15, 23, .88); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 6px 18px rgba(59, 130, 246, .3);
}
.logo-mark img { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; }
.logo-tag { font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.lang {
  display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px;
  background: rgba(255, 255, 255, .03); font-size: .82rem; font-weight: 600;
}
.lang svg { width: 15px; height: 15px; color: var(--muted); margin: 0 4px 0 6px; }
.lang a { padding: 5px 9px; color: var(--muted); text-decoration: none; border-radius: 8px; }
.lang a:hover { color: #fff; }
.lang a[aria-current="page"] { background: var(--surface-2); color: #fff; box-shadow: 0 0 0 1px var(--line) inset; }

/* Hero */
.hero { padding: 120px 0 130px; overflow: hidden; text-align: center; margin-top: -72px; padding-top: 192px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 90%, rgba(245, 158, 11, .10), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 85%, rgba(99, 102, 241, .10), transparent 70%);
}
.hero::after { /* cuadrícula sutil */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero-logos {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 46% 38% at 50% 42%, transparent 45%, #000 100%);
  mask-image: radial-gradient(ellipse 46% 38% at 50% 42%, transparent 45%, #000 100%);
}
.hero-logos img {
  position: absolute; filter: brightness(0) invert(1); opacity: .09;
  width: var(--s); height: var(--s); left: var(--x); top: var(--y); transform: rotate(var(--r));
  animation: float 9s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .hero-logos img { animation: none; } }
.hero .wrap { position: relative; z-index: 1; max-width: 860px; }
.hero .lead { font-size: 1.22rem; max-width: 680px; margin: 0 auto 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.tools-line { margin-top: 30px; font-size: .88rem; color: var(--muted); }
.tools-line strong { color: var(--text); font-weight: 600; }

/* Tarjetas genéricas */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); }
.card p { color: var(--muted); margin: 0; }
.ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: var(--blue-2);
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .25); margin-bottom: 18px;
}
.ico svg { width: 22px; height: 22px; }
.ico.amber { color: var(--amber); background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }

/* Comparativa cursos */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.compare .card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.compare .card li { padding: 11px 0 11px 32px; position: relative; color: var(--muted); border-top: 1px solid var(--line); }
.compare .card li::before { position: absolute; left: 0; top: 11px; font-weight: 800; }
.compare .bad { opacity: .85; }
.compare .bad li::before { content: "✕"; color: #F87171; }
.compare .good { border-color: rgba(59, 130, 246, .45); background: linear-gradient(180deg, rgba(59, 130, 246, .10), var(--surface) 60%); box-shadow: 0 20px 60px rgba(59, 130, 246, .12); }
.compare .good li { color: var(--text); }
.compare .good li::before { content: "✓"; color: var(--amber); }
.compare .label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.compare .good .label { color: var(--blue-2); }

/* Ejemplo */
.example .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.example figure { margin: 0; }
.example figcaption { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.example img {
  border-radius: 20px; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(59, 130, 246, .2);
}

/* Módulos */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.module { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; transition: border-color .15s, transform .15s; }
.module:hover { border-color: rgba(59, 130, 246, .4); transform: translateY(-2px); }
.module .num { flex: 0 0 auto; font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--amber); font-size: 1rem; padding-top: 2px; min-width: 26px; }
.module h3 { margin-bottom: 4px; font-size: 1.05rem; }
.module p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Incluye */
.stat { font-family: "Space Grotesk", sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1; margin-bottom: 14px; }

/* Precio */
.price-card {
  max-width: 500px; margin: 44px auto 0; text-align: center; padding: 40px 36px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(59, 130, 246, .12), var(--surface) 55%);
  border: 1px solid rgba(59, 130, 246, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(59, 130, 246, .15);
}
.tag {
  display: inline-block; background: rgba(245, 158, 11, .15); color: var(--amber); border: 1px solid rgba(245, 158, 11, .4);
  font-weight: 700; font-size: .75rem; padding: 6px 12px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase;
}
.price { font-family: "Space Grotesk", sans-serif; font-size: 4rem; font-weight: 700; color: #fff; line-height: 1; margin: 20px 0 8px; letter-spacing: -.03em; }
.price-note { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.price-card ul { text-align: left; list-style: none; padding: 0; margin: 0 0 28px; }
.price-card li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 800; }
.price-card .btn { width: 100%; }
.secure { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }

/* FAQ */
.faq { max-width: 780px; margin: 44px auto 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; transition: border-color .15s; }
details[open] { border-color: rgba(59, 130, 246, .35); }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; position: relative; color: #fff; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--blue-2); }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Cierre */
.final { text-align: center; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, .2), transparent 65%); pointer-events: none;
}
.final .wrap { position: relative; }

/* Pie */
footer { padding: 48px 0; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; }
footer p { margin: 0 0 8px; }

/* Responsive */
@media (max-width: 880px) {
  section { padding: 68px 0; }
  .hero { padding-top: 140px; padding-bottom: 90px; }
  .hero-logos img { width: calc(var(--s) * .6); height: calc(var(--s) * .6); }
  .example .wrap { grid-template-columns: 1fr; gap: 36px; }
  .grid-2, .compare, .modules { grid-template-columns: 1fr; }
  .price-card { padding: 30px 22px; }
}
@media (max-width: 520px) {
  .logo-tag, .header-buy { display: none; }
  .site-header .wrap { height: 64px; }
}

/* Páginas legales */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: #C9D1DC; }
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: .95rem; }
.legal td { border-top: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; color: #C9D1DC; }
.legal td:first-child { color: var(--muted); width: 38%; }
.todo { background: rgba(245, 158, 11, .18); color: var(--amber); padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.back:hover { color: #fff; }
