:root {
  --navy: #0c1b30;
  --navy-2: #13263f;
  --navy-3: #081422;
  --gold: #c6a15a;
  --gold-2: #e4c98a;
  --ivory: #f4efe4;
  --ink: #f4efe4;
  --ink-soft: #d7d0c3;
  --paper: #0c1b30;
  --paper-2: #13263f;
  --cream: #10233c;
  --brass: #c6a15a;
  --brass-deep: #e4c98a;
  --line: rgba(198, 161, 90, 0.38);
  --muted: #b7b0a2;
  --danger: #e07a72;
  --ok: #8fbfa3;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --nav: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { top: 12px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kicker {
  margin: 0 0 12px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 0.96; }
h1 { margin: 0 0 18px; font-size: clamp(3rem, 6.2vw, 5.4rem); }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { margin: 0 0 10px; font-size: 2rem; }
.lead { max-width: 40rem; margin: 0; font-size: 1.12rem; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }
.btn-dark { background: var(--gold); color: var(--navy); }
.btn-light { background: var(--ivory); color: var(--navy); }
.btn-line { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn-line-light { background: transparent; color: var(--ivory); border-color: var(--gold-2); }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav);
  background: rgba(8, 20, 34, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner, .wrap, .section, .ticker, .instagram-band, .footer-grid, .footer-base {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand { display: flex; margin-right: auto; }
.brand img, .admin-auth img { height: 48px; width: auto; display: block; filter: invert(1) sepia(0.45) saturate(1.6) hue-rotate(5deg); }
.nav-links { display: flex; gap: 18px; }
.nav-links a { text-decoration: none; font-size: 0.95rem; }
.nav-links a[aria-current="page"] { color: var(--brass-deep); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--gold);
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
}
.nav-drawer {
  position: fixed;
  inset: var(--nav) 0 0;
  background: var(--paper);
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 12px 24px 32px;
}
.nav-drawer a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 2.3rem;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.hero {
  width: min(1240px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 42px 28px 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: stretch;
  min-height: calc(100vh - var(--nav) - 78px);
  border: 1px solid var(--gold);
}
.hero h1 span {
  display: block;
  margin-top: 8px;
  font-style: italic;
  color: var(--brass-deep);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.slogan {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-2);
}
.hero-panel {
  background: var(--navy-3);
  color: var(--ivory);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  border: 1px solid var(--gold);
}
.mono {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5.5rem, 10vw, 8.4rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
}
.panel-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold);
}
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  border-top: 1px solid rgba(198, 161, 90, 0.35);
  padding: 12px 0;
  font-family: var(--serif);
  font-size: 1.85rem;
}
.hero-panel li span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.panel-note { margin: 12px 0 0; color: rgba(244, 239, 228, 0.72); font-size: 0.92rem; }

.ticker {
  display: flex;
  justify-content: space-between;
  gap: 12px 22px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section { padding: 88px 0; }
.section-tight { padding-top: 28px; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card {
  min-height: 320px;
  padding: 24px;
  border: 1px solid var(--gold);
  background: var(--navy-2);
  display: flex;
  flex-direction: column;
}
.area-card p { color: var(--ink-soft); }
.area-card a { margin-top: auto; color: var(--brass-deep); }
.area-index { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--brass); }

.quote-band { background: var(--gold); color: var(--navy); padding: 72px 0; }
.quote-band .wrap { width: min(980px, calc(100% - 40px)); margin: 0 auto; }
.quote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -0.03em; }
.quote-by { margin: 22px 0 0; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; color: var(--navy-3); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.steps span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--brass); }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); color: var(--brass-deep); }
.faq-item[open] summary::after { content: "–"; }
.faq-body { max-width: 68ch; padding: 0 0 18px; color: var(--ink-soft); }
.faq-body p { margin: 0 0 12px; }
.faq-links { display: flex; gap: 18px; margin-top: 18px; }
.faq-links a { color: var(--brass-deep); }

.instagram-band {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--gold);
}
.instagram-band h2 { max-width: 16ch; }
.instagram-band p { max-width: 42rem; color: var(--ink-soft); }

.cta-band {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 28px;
  padding: 42px;
  background: var(--navy-3);
  color: var(--ivory);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--gold);
}
.cta-band p { margin: 8px 0 0; color: rgba(244, 239, 228, 0.78); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }

.footer { background: var(--navy-3); color: var(--ivory); padding: 56px 0 22px; margin-top: 20px; border-top: 1px solid var(--gold); }
.footer img { height: 46px; width: auto; filter: invert(1) sepia(0.45) saturate(1.6) hue-rotate(5deg); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1fr 0.9fr; gap: 28px; }
.footer p { margin: 8px 0; }
.footer a { display: block; margin: 6px 0; text-decoration: none; }
.footer a:hover { color: var(--gold-2); }
.footer-label { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; color: var(--gold); }
.footer-note { color: rgba(221, 214, 200, 0.72); font-size: 0.88rem; }
.footer-panel { opacity: 0.7; font-size: 0.82rem; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(198, 161, 90, 0.35);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.85rem;
}

.page-hero { padding: 54px 0 10px; }
.page-hero h1 { max-width: 16ch; }
.wrap.narrow { padding-bottom: 80px; }
.split { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 36px; align-items: start; }
.prose h2 { margin-bottom: 16px; }
.prose p { margin-top: 0; }
.prose ul { list-style: none; margin: 0; padding: 0; }
.prose li { margin: 0 0 12px; padding-left: 14px; border-left: 1px solid var(--brass); }
.side-note { background: var(--navy-2); padding: 24px; border: 1px solid var(--gold); }
.side-note p { margin-top: 0; }
.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px;
  margin-bottom: 28px;
  background: var(--navy-2);
  border: 1px solid var(--gold);
}
.callout p { margin: 0; max-width: 62ch; }

.contact-form, .editor, .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form { gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .admin-auth label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select, .contact-form input, .contact-form textarea, .contact-form select, .list-card > input, .admin-auth input, .chat-form input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 10px 0;
  outline: none;
}
.field textarea, .contact-form textarea { border: 1px solid var(--line); padding: 12px; background: var(--cream); resize: vertical; }
.field select, .contact-form select { background: var(--cream); border: 1px solid var(--line); padding: 10px; }
.field input:focus, .field textarea:focus, .field select:focus, .contact-form input:focus, .contact-form textarea:focus, .chat-form input:focus {
  border-color: var(--brass-deep);
}
.check { display: flex; gap: 8px; align-items: flex-start; }
.hp { position: absolute; left: -9999px; }
.form-error { color: var(--danger); margin: 8px 0; }
.form-success-line { color: var(--ok); }
.form-success { padding: 8px 0 24px; }
.contact-line { display: block; margin: 0 0 12px; font-family: var(--serif); font-size: 1.7rem; text-decoration: none; line-height: 1.1; }
.contact-split { align-items: start; }

.chat-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  background: var(--gold);
  color: var(--navy);
  cursor: pointer;
}
.chat-panel {
  position: fixed;
  z-index: 45;
  right: 20px;
  bottom: 84px;
  width: min(400px, calc(100vw - 24px));
  height: min(640px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--navy-2);
  border: 1px solid var(--gold);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.chat-head, .chat-log, .chips, .chat-form, .chat-note { padding-left: 16px; padding-right: 16px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.chat-head h2 { font-size: 1.8rem; }
.chat-head button { background: none; border: 0; cursor: pointer; }
.chat-log { flex: 1; overflow: auto; padding-top: 8px; }
.bubble { max-width: 92%; margin: 0 0 10px; padding: 10px 12px; background: #17304c; border: 1px solid var(--line); }
.bubble p { margin: 0 0 8px; }
.bubble p:last-child { margin: 0; }
.bubble.user { margin-left: auto; background: var(--gold); color: var(--navy); }
.bubble.urgent { border-color: var(--danger); }
.bubble a { display: inline-block; margin-top: 8px; }
.chat-wait { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.chips button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.3;
}
.chips button.active, .chips button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: 8px; align-items: center; }
.chat-form input { flex: 1; min-width: 0; }
.chat-note { margin: 0; padding-bottom: 12px; color: var(--muted); font-size: 0.75rem; }

.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-auth form { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; }
.admin-auth h1 { font-size: 3.2rem; }
.admin-app { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 80px; }
.admin-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.admin-bar h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.admin-tabs button { background: transparent; border: 1px solid transparent; min-height: 40px; padding: 0 12px; cursor: pointer; }
.admin-tabs button.active { border-color: var(--gold); color: var(--gold-2); }
.admin-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.list-card, .stack { display: flex; flex-direction: column; gap: 10px; }
.scroll-list { max-height: 62vh; overflow: auto; border: 1px solid var(--line); }
.scroll-list button {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px;
  cursor: pointer;
}
.scroll-list button strong { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.scroll-list button span { color: var(--muted); font-size: 0.78rem; text-transform: capitalize; }
.scroll-list button.active { background: rgba(198, 161, 90, 0.16); }
.editor { background: var(--cream); border: 1px solid var(--line); padding: 20px; gap: 14px; }
.editor-wide { max-width: 860px; }
.editor small, .help, .muted { color: var(--muted); font-size: 0.88rem; }
.checks { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.message-card { border-bottom: 1px solid var(--line); padding: 8px 0 16px; }
.message-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.message-body { white-space: pre-wrap; }
.pill { border: 1px solid var(--line); padding: 2px 8px; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pill.nuevo { color: var(--danger); border-color: var(--danger); }
.pill.respondido { color: var(--ok); border-color: var(--ok); }
.empty-editor { min-height: 220px; justify-content: center; }

@media (max-width: 980px) {
  .nav-links, .nav-wa { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero, .areas, .steps, .split, .footer-grid, .cta-band, .admin-grid, .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-panel { min-height: 0; }
  .instagram-band, .callout, .footer-base, .admin-bar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .nav-inner, .wrap, .section, .ticker, .instagram-band, .footer-grid, .footer-base, .hero, .cta-band, .admin-app {
    width: min(100% - 28px, 1160px);
  }
  .section { padding: 56px 0; }
  .cta-band { padding: 28px 20px; }
  .chat-launcher.is-open { display: none; }
  .chat-panel { inset: 0; width: auto; height: auto; bottom: 0; right: 0; }
  .page-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

.nav-drawer[hidden], .chat-panel[hidden], [hidden] { display: none !important; }
