/* GesMan HERMES — Páginas públicas secundarias (/planes, /contacto, 404).
   Comparte los tokens de la portada para que no se note el salto al cambiar de página.
   Deliberadamente NO se toca gesman-hermes.php: la portada funciona y refactorizarla para
   compartir hoja de estilos arriesgaría la página que más tráfico recibe. */

:root {
  --bg:        #0b132b;
  --bg-2:      #121c3f;
  --bg-3:      #1b2655;
  --gold:      #f4b400;
  --gold-2:    #ffd84d;
  --gold-soft: #ffe38b;
  --text:      #f8fafc;
  --muted:     #cbd5e1;
  --line:      rgba(244,180,0,0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-2); }

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- Cabecera ---------- */
.pg-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,19,43,.9);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.pg-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.pg-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.pg-brand svg { width: 34px; height: 34px; display: block; }
.pg-brand-text {
  font-family: 'Cinzel', serif; letter-spacing: .16em; font-size: .95rem; color: var(--text);
}
.pg-brand-text span { color: var(--gold-2); }
.pg-nav-links { display: flex; gap: 1.3rem; align-items: center; font-size: .92rem; }
.pg-nav-links a { color: var(--muted); text-decoration: none; transition: color .2s ease; }
.pg-nav-links a:hover { color: var(--gold-2); }
/* El selector de arriba (0,1,1) le ganaba a .btn-primary (0,1,0) y dejaba el boton con texto
   gris sobre dorado. Se sube la especificidad del boton en vez de usar !important. */
.pg-nav-links a.btn-primary,
.pg-nav-links a.btn-primary:hover { color: #0d1733; }
.pg-nav-links a.btn { padding: .5rem 1.05rem; font-size: .86rem; }
@media (max-width: 700px) { .pg-nav-links a.opcional { display: none; } }

/* ---------- Bloques ---------- */
.pg-main { padding: 3.2rem 0 4rem; }
.eyebrow {
  display: inline-block; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem;
}
h1 {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.15;
  margin: 1rem 0 .6rem; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold-2); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin: 0 0 .5rem; }
.nota { color: var(--muted); font-size: .95rem; }
.nota strong { color: var(--gold-2); }

/* ---------- Planes ---------- */
.planes-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 2rem;
}
@media (max-width: 1100px) { .planes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .planes-grid { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.4rem; border-radius: 16px;
  background: linear-gradient(165deg, #16204a 0%, #121c3f 100%);
  border: 1px solid var(--line);
}
.plan.destacado {
  border-color: rgba(244,180,0,.65);
  background: linear-gradient(165deg, #1a2758 0%, #121c3f 100%);
  box-shadow: 0 24px 42px -30px rgba(244,180,0,.6);
}
.plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; }
.plan h2 { font-family: 'Cinzel', serif; font-size: 1.12rem; letter-spacing: .05em; margin: 0; font-weight: 600; }
.badge {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #1f2937; background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  border-radius: 999px; padding: .22rem .55rem;
}
.precio { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--gold-2); }
.precio small { font-size: .78rem; font-weight: 600; color: var(--muted); }
.plan p.desc { margin: 0; color: var(--muted); font-size: .92rem; }
.plan ul { margin: .2rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; color: var(--muted); font-size: .89rem; }
.plan li { padding-left: 1.05rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.25rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background .2s ease;
}
.btn-primary { background: linear-gradient(140deg, var(--gold), var(--gold-soft)); color: #0d1733; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.22); color: var(--text); }
.btn-outline:hover { border-color: var(--gold-2); color: var(--gold-2); }
/* margin-top:auto alinea los botones abajo aunque las tarjetas tengan distinto alto. */
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- Contacto ---------- */
.contacto-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 860px) { .contacto-grid { grid-template-columns: 1fr; } }
.tarjeta { padding: 1.5rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.tarjeta h2 { font-family: 'Cinzel', serif; font-size: 1.1rem; margin: 0 0 .8rem; font-weight: 600; }
.dato { display: flex; flex-direction: column; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid rgba(148,163,184,.16); }
.dato:last-child { border-bottom: 0; }
.dato .et { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dato .va { font-size: 1rem; }
.dato a { text-decoration: none; }
.dato a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.err { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.err .codigo { font-family: 'Cinzel', serif; font-size: clamp(3.4rem, 12vw, 7rem); color: var(--gold); line-height: 1; margin: 0; }
.err h1 { margin-top: .4rem; }
.err .acciones { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }

/* ---------- Pie ---------- */
.pg-foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; color: var(--muted); font-size: .86rem; }
.pg-foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pg-foot a { color: var(--muted); text-decoration: none; }
.pg-foot a:hover { color: var(--gold-2); text-decoration: underline; }
.pg-foot nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Precio anual bajo el mensual en la pagina de planes. */
.precio-anual { margin: -.5rem 0 0; font-size: .82rem; color: var(--gold-2); }
