/* --- Fundamentos --- */

:root {
  /* METAR Fácil usa el azul marino del kit como fondo principal (no el navy más
     oscuro de e6b) y el ámbar del estado "por vencer" como acento de marca. */
  --navy-900: #0b1f3a;
  --navy-800: #13294d;
  --navy-700: #1b3660;
  --line: rgba(148, 176, 214, 0.16);

  --blue: #0c81c7;
  --blue-bright: #38a5e8;
  --amber: #f0b429;
  --amber-bright: #f7cf63;
  --green: #22a45d;

  --text: #eef3fa;
  --muted: #93a7c4;
  --muted-dim: #8497b4;

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1140px;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--blue-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 18px;
}

/* --- Barra superior --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

/* --- Botones --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber));
  color: #1a1102;
  box-shadow: 0 10px 30px -10px rgba(240, 180, 41, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px -12px rgba(240, 180, 41, 0.85);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* --- Hero --- */

.hero {
  position: relative;
  padding: 90px 0 40px;
  overflow: hidden;
}

/* Resplandor de fondo: da profundidad sin cargar la pagina con imagenes. */
.hero::before {
  content: '';
  position: absolute;
  top: -340px;
  left: 50%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(12, 129, 199, 0.28), transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  margin-bottom: 22px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--amber-bright), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-note {
  font-size: 14px;
  color: var(--muted-dim);
}

.hero-shot {
  position: relative;
}

.hero-shot img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
}

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-shot {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- Tira de credibilidad --- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  padding: 34px 0;
}

.strip-item {
  text-align: center;
  padding: 8px 16px;
}

.strip-item strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.strip-item span {
  font-size: 14px;
  color: var(--muted);
}

/* --- Tarjetas --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 180, 41, 0.14);
  color: var(--amber-bright);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* --- Galeria de capturas --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.shot {
  text-align: center;
}

.shot img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9);
}

/* Pilot ID aún no tiene capturas reales: las tarjetas de #pantallas usan un
   ícono SVG en vez de foto de teléfono (ver TODO en index.html). */
.shot-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 180, 41, 0.12);
  color: var(--amber-bright);
}

.shot h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 7px;
}

.shot p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 320px;
  margin: 0 auto;
}

/* --- Premium --- */

.premium {
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.05), transparent);
  border-top: 1px solid var(--line);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.plan {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.plan-featured {
  border-color: rgba(240, 180, 41, 0.45);
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.09), rgba(255, 255, 255, 0.02));
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.plan-featured .plan-name {
  color: var(--amber);
}

.plan-price {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.plan li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  color: var(--muted);
  align-items: flex-start;
}

.plan li svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.tick {
  color: var(--green);
}

.dash {
  color: var(--muted-dim);
}

/* --- Instalacion --- */

.steps {
  counter-reset: paso;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  counter-increment: paso;
  position: relative;
  padding-left: 38px;
  font-size: 15.5px;
  color: var(--muted);
}

.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  top: 1px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(240, 180, 41, 0.16);
  color: var(--amber-bright);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps b {
  color: var(--text);
  font-weight: 600;
}

/* --- Aviso --- */

.callout {
  max-width: 760px;
  margin: 48px auto 0;
  background: rgba(56, 165, 232, 0.07);
  border: 1px solid rgba(56, 165, 232, 0.22);
  border-radius: var(--radius);
  padding: 22px 26px;
  color: var(--muted);
  font-size: 15.5px;
}

.callout strong {
  color: var(--text);
}

/* --- Cierre --- */

.closer {
  text-align: center;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.closer h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  margin-bottom: 18px;
}

.closer p {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* --- Pie --- */

.footer {
  border-top: 1px solid var(--line);
  padding: 46px 0;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer-brand div {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14.5px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-legal {
  width: 100%;
  padding-top: 22px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-dim);
}

/* --- Documento legal --- */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 0 96px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
}

.doc-meta {
  color: var(--muted-dim);
  font-size: 14.5px;
  margin-bottom: 44px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 46px 0 14px;
}

.doc h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 16.5px;
}

.doc p {
  margin-bottom: 15px;
}

.doc ul {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.doc strong {
  color: var(--text);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 15.5px;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.doc-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.doc-table-wrap {
  overflow-x: auto;
}

/* --- METAR Fácil: categorías de vuelo y piezas nuevas --- */

:root {
  --vfr: #22c55e;
  --mvfr: #3b82f6;
  --ifr: #ef4444;
  --lifr: #d946ef;
}

code {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

.cat {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}
.cat-vfr { background: var(--vfr); color: #04210f; }
.cat-mvfr { background: var(--mvfr); }
.cat-ifr { background: var(--ifr); }
.cat-lifr { background: var(--lifr); }

.btn-soon {
  cursor: default;
  color: var(--muted);
}
.btn-soon:hover { transform: none; background: rgba(255, 255, 255, 0.05); }

.metar-code {
  margin: 18px 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 15px;
  line-height: 1.6;
  color: var(--amber-bright);
  white-space: pre-wrap;
  word-break: break-word;
}
.metar-code code { background: none; padding: 0; color: inherit; font-size: inherit; }

.doc .lead { font-size: 19px; color: var(--text); margin-bottom: 8px; }
.doc ol { margin: 0 0 18px; padding-left: 24px; display: flex; flex-direction: column; gap: 9px; }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .btn { text-decoration: none; }
.doc .callout { margin: 40px 0 0; max-width: none; }
.doc .callout .btn-primary { color: #1a1102; }
.crumbs { font-size: 14px; color: var(--muted-dim); margin-bottom: 18px; }
.nota { margin-top: 40px; font-size: 14.5px; color: var(--muted-dim); }

/* Preguntas frecuentes: <details> nativo, sin JavaScript. */
.faqs { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin: 0 auto; }
.doc .faqs { margin: 0; }
.faq {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
}
.faq summary:focus-visible, a:focus-visible, .btn:focus-visible { outline: 2px solid var(--amber-bright); outline-offset: 3px; border-radius: 6px; }
.faq p, .doc .faq p { padding: 0 0 18px; color: var(--muted); font-size: 16px; margin: 0; }

/* Tarjetas de guías relacionadas */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 14px 0 0; }
.related-wide { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none !important;
}
.related-card:hover { border-color: rgba(240, 180, 41, 0.5); }
.related-card strong { color: var(--text); font-size: 17px; }
.related-card span { font-size: 15px; }

/* Capturas: el recuadro tiene fondo propio por si la imagen aún no existe. */
.shot-frame {
  width: 100%;
  max-width: 270px;
  aspect-ratio: 270 / 585;
  margin: 0 auto 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  overflow: hidden;
  box-shadow: 0 30px 70px -28px rgba(0, 0, 0, 0.9);
}
.shot-frame img { width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; font-size: 13px; color: var(--muted); }

.footer-legal a { color: var(--muted); text-decoration: underline; }
.doc-table code { white-space: nowrap; }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .doc { padding-top: 40px; }
  .doc-table th, .doc-table td { padding: 10px 10px; font-size: 14.5px; }
}
.nav-links a.btn-primary { color: #1a1102; font-weight: 700; }
