/* ════════════════════════════════════════════════════════════════
   Central English Studio · estilos compartidos de páginas legales
   Tokens y componentes (nav, footer, banner, botones) extraídos de
   index.html para mantener la misma identidad visual. Añade estilos
   de prosa legal (.legal-*) y de preferencias de cookies (.prefs-*).
   ════════════════════════════════════════════════════════════════ */

/* ════════ TOKENS · sistema CES v3 ════════ */
:root {
  --ink: #1a1712;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --slate: #574f42;
  --slate-soft: #6e6757;
  --cobalt: #1d4ed8;
  --cobalt-ink: #1a3fb5;
  --cobalt-deep: #11286e;
  --cobalt-wash: #edf1ff;
  --gold: #9a7b33;
  --gold-wash: #f6f0e2;
  --rule: #e6e2d9;
  --rule-strong: #d7d2c6;
  --rule-ink: rgba(255, 255, 255, 0.12);
  --green: #1a7d4f;
  --red: #b4452f;
  --wa: #1f7a52;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(26, 23, 18, 0.04);
  --shadow-2: 0 6px 24px rgba(26, 23, 18, 0.07);
  --shadow-3: 0 18px 48px rgba(26, 23, 18, 0.1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --t-fast: 160ms var(--ease);
  --t: 240ms var(--ease);
  --measure: 60ch;
  --max: 1080px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--font-text);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
a {
  color: var(--cobalt-ink);
  text-decoration: none;
}
:where(a, button, summary, input, select, [tabindex]):focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
  border-radius: 3px;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ════════ BOTONES ════════ */
.btn {
  font-family: var(--font-text);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-pill);
  padding: 13px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow:
    0 1px 2px rgba(26, 23, 18, 0.06),
    0 8px 20px rgba(29, 78, 216, 0.16);
}
.btn-primary:hover {
  background: var(--cobalt-deep);
  box-shadow:
    0 2px 4px rgba(26, 23, 18, 0.08),
    0 12px 28px rgba(29, 78, 216, 0.22);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}
.btn-ghost {
  background: transparent;
  color: var(--cobalt-ink);
  padding-left: 4px;
  padding-right: 4px;
  font-weight: 500;
}
.btn-ghost:hover {
  color: var(--cobalt-deep);
}

/* ════════ NAV ════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  height: 68px;
  transition:
    box-shadow var(--t),
    border-color var(--t);
}
nav.scrolled {
  box-shadow: 0 1px 20px rgba(26, 23, 18, 0.05);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  position: relative;
  display: flex;
  align-items: center;
  height: 32px;
}
.logo-sizer {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.logo-full {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: baseline;
  gap: 0.42em;
  white-space: nowrap;
  transition:
    opacity var(--t),
    transform var(--t);
}
.logo-full .w1,
.logo-full .w3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.logo-full .w2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.logo-short {
  position: absolute;
  left: 0;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(calc(-50% + 8px));
  transition:
    opacity var(--t),
    transform var(--t);
}
nav.scrolled .logo-full {
  opacity: 0;
  transform: translateY(calc(-50% - 8px));
}
nav.scrolled .logo-short {
  opacity: 1;
  transform: translateY(-50%);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-size: 0.9375rem;
  color: var(--slate);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition:
    background var(--t-fast),
    color var(--t-fast);
}
.nav-link:hover {
  background: var(--cobalt-wash);
  color: var(--cobalt-ink);
}
.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--rule-strong);
  margin: 0 8px;
}
.nav-acceder {
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  transition:
    border-color var(--t-fast),
    background var(--t-fast);
}
.nav-acceder:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}
.nav-reservar {
  font-size: 0.9375rem;
  color: #fff;
  background: var(--cobalt);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-weight: 500;
  margin-left: 6px;
  transition: background var(--t-fast);
}
.nav-reservar:hover {
  background: var(--cobalt-deep);
}
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.hamburger:hover {
  background: var(--cobalt-wash);
}
.hamburger svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 14px 20px 22px;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform var(--t),
    opacity var(--t);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  font-size: 1rem;
  color: var(--slate);
  padding: 12px 8px;
  border-radius: var(--r-sm);
}
.mobile-menu a:hover {
  background: var(--cobalt-wash);
  color: var(--cobalt-ink);
}
.mm-divider {
  height: 1px;
  background: var(--rule);
  margin: 8px 0;
}
.mm-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.mobile-menu .mm-btns a.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.mobile-menu .mm-btns a.btn-primary:hover {
  background: var(--cobalt-deep);
  color: #fff;
}
.mobile-menu .mm-btns a.btn-secondary {
  color: var(--ink);
}

/* ════════ CABECERA DE PÁGINA LEGAL ════════ */
.legal-hero {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--rule);
}
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.legal-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cobalt);
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 360;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.legal-updated {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-soft);
}

/* ════════ CUERPO DE PROSA LEGAL ════════ */
.legal-body {
  padding: 48px 0 88px;
}
.legal-body .prose {
  max-width: var(--measure);
}
.legal-body h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  padding-top: 8px;
}
.legal-body h2:first-child {
  margin-top: 0;
}
.legal-body h3 {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.legal-body p,
.legal-body li {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
}
.legal-body p {
  margin-bottom: 14px;
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-body strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 0.875rem;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  vertical-align: top;
  color: var(--slate);
  line-height: 1.55;
}
.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt-ink);
  background: var(--cobalt-wash);
  font-weight: 500;
}
.legal-callout {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--cobalt);
  border-radius: var(--r);
  padding: 18px 20px;
  margin: 8px 0 22px;
}
.legal-callout p {
  margin: 0;
}

/* ════════ PREFERENCIAS DE COOKIES ════════ */
.prefs {
  max-width: 720px;
  margin-top: 8px;
}
.prefs-group {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin-bottom: 14px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.prefs-group.is-locked {
  background: var(--cobalt-wash);
  border-color: rgba(29, 78, 216, 0.18);
}
.prefs-text h3 {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.prefs-text p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 48ch;
}
.prefs-text .prefs-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-soft);
  display: inline-block;
  margin-top: 8px;
}

/* Toggle accesible */
.toggle {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
}
.toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.toggle .track {
  position: absolute;
  inset: 0;
  background: var(--rule-strong);
  border-radius: var(--r-pill);
  transition: background var(--t-fast);
}
.toggle .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast);
}
.toggle input:checked + .track {
  background: var(--cobalt);
}
.toggle input:checked + .track::after {
  transform: translateX(20px);
}
.toggle input:focus-visible + .track {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}
.toggle input:disabled {
  cursor: not-allowed;
}
.toggle input:disabled + .track {
  background: var(--cobalt);
  opacity: 0.55;
}
.prefs-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.prefs-save {
  background: var(--cobalt);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 28px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.16);
  transition:
    background var(--t-fast),
    transform var(--t-fast);
}
.prefs-save:hover {
  background: var(--cobalt-deep);
  transform: translateY(-1px);
}
.prefs-feedback {
  font-size: 0.875rem;
  color: var(--green);
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.prefs-feedback.show {
  opacity: 1;
}

/* ════════ FOOTER ════════ */
footer {
  border-top: 1px solid var(--rule);
  padding: 68px 0 38px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 0.42em;
}
.footer-logo .w1,
.footer-logo .w3 {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-soft);
}
.footer-logo .w2 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-tagline {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  max-width: 260px;
  margin-top: 14px;
}
.footer-links {
  display: flex;
  gap: 56px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate-soft);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 11px;
  transition: color var(--t-fast);
}
.footer-col a:hover {
  color: var(--cobalt-ink);
}
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate-soft);
}
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-legal a {
  font-size: 0.8125rem;
  color: var(--slate-soft);
  transition: color var(--t-fast);
}
.footer-legal a:hover {
  color: var(--cobalt-ink);
}
.cookie-reopen {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--slate-soft);
  font-size: 0.8125rem;
  padding: 0;
  transition: color var(--t-fast);
}
.cookie-reopen:hover {
  color: var(--cobalt-ink);
}

/* ════════ BANNER DE COOKIES ════════ */
.cookie {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 200;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  padding: 20px;
  max-width: 340px;
  box-shadow: var(--shadow-2);
  transition:
    transform var(--t),
    opacity var(--t);
}
.cookie.hidden {
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
}
.cookie p {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 14px;
}
.cookie .c-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie .c-accept {
  background: var(--cobalt);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
  transition: background var(--t-fast);
}
.cookie .c-accept:hover {
  background: var(--cobalt-deep);
}
.cookie .c-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
  transition: border-color var(--t-fast);
}
.cookie .c-reject:hover {
  border-color: var(--ink);
}
.cookie .c-config {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--cobalt-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 860px) {
  .wrap,
  .nav-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  nav {
    height: 60px;
  }
  .mobile-menu {
    top: 60px;
    display: flex;
  }
  .nav-right {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .legal-hero {
    padding: 48px 0 28px;
  }
  .legal-body {
    padding: 40px 0 64px;
  }
  .prefs-group {
    padding: 20px;
  }
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links {
    flex-direction: column;
    gap: 28px;
  }
  .cookie {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}
