/* ==========================================================================
   AUREO · Base visual
   Tipografía, tokens, reset y componentes compartidos
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #08090a;
  --ink-soft: #0d0e0f;
  --panel: #121315;
  --panel-2: #17181b;
  --panel-3: #1d1f22;
  --cream: #f4efe5;
  --cream-dim: #d8d2c6;
  --muted: #9b988f;
  --muted-2: #716f69;
  --gold: #c8a35a;
  --gold-bright: #e6cd93;
  --gold-deep: #947238;
  --gold-wash: rgba(200, 163, 90, 0.12);
  --line: rgba(228, 218, 198, 0.12);
  --line-strong: rgba(228, 218, 198, 0.22);
  --success: #6fbf8e;
  --warning: #d9ac60;
  --danger: #d47a75;
  --info: #7fa8cf;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --container: min(1280px, calc(100vw - 64px));
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 86px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: #35322c;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-deep);
}

h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-wide {
  width: min(1480px, calc(100vw - 48px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(84px, 10vw, 148px);
}

.section-tight {
  padding-block: clamp(56px, 6vw, 92px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.eyebrow.no-rule::before {
  display: none;
}

.display-xl {
  font-size: clamp(3.5rem, 8.4vw, 8.6rem);
  letter-spacing: -0.045em;
}

.display-lg {
  font-size: clamp(2.75rem, 5.6vw, 5.8rem);
  letter-spacing: -0.035em;
}

.display-md {
  font-size: clamp(2.2rem, 3.8vw, 3.9rem);
  letter-spacing: -0.025em;
}

.display-sm {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.serif-italic {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.lead {
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 300;
  line-height: 1.8;
}

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

.gold {
  color: var(--gold);
}

.small {
  font-size: 0.78rem;
}

.kicker-number {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-heading > div:first-child {
  max-width: 760px;
}

.section-heading .display-lg,
.section-heading .display-md {
  margin-top: 18px;
}

.section-heading p {
  max-width: 390px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vertical-align: -0.15em;
}

.whatsapp-qr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.whatsapp-qr > img {
  border-radius: 0.375rem;
  background: white;
}

.whatsapp-qr figcaption {
  max-width: 24ch;
}

.whatsapp-qr p {
  margin-bottom: 0.75rem;
}

.icon-lg {
  width: 1.45em;
  height: 1.45em;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-border: var(--line-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--btn-border);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.btn:active {
  transform: translateY(1px);
}
.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn-gold {
  --btn-bg: var(--gold);
  --btn-fg: #12100b;
  --btn-border: var(--gold);
  font-weight: 700;
}
.btn-gold:hover {
  --btn-bg: var(--gold-bright);
  --btn-border: var(--gold-bright);
  color: #12100b;
}

.btn-outline {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
}

.btn-ghost {
  min-height: 40px;
  padding-inline: 0;
  border: 0;
  color: var(--cream-dim);
}
.btn-ghost:hover {
  color: var(--gold);
}

.btn-white {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-border: var(--cream);
}
.btn-white:hover {
  --btn-bg: #fff;
  color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 0.65rem;
}

.btn-lg {
  min-height: 58px;
  padding-inline: 32px;
}

.btn-block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.42;
  pointer-events: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(200, 163, 90, 0.45);
  padding-bottom: 4px;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.text-link:hover {
  gap: 14px;
  border-color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Formularios
   -------------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--cream-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--cream);
  font-size: 0.94rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.input,
.select {
  padding: 0 16px;
}

.textarea {
  min-height: 112px;
  padding: 14px 16px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--line-strong);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--gold);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(200, 163, 90, 0.1);
}

.input[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--danger);
}

.select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a29d92' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.select option {
  background: var(--panel);
  color: var(--cream);
}

.field-hint {
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.field-error {
  color: var(--danger);
  font-size: 0.72rem;
  line-height: 1.5;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  cursor: pointer;
}

.checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex: none;
}

.input-group {
  display: flex;
}
.input-group .prefix {
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.88rem;
}
.input-group .input {
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   Etiquetas, avisos, loaders
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-gold {
  border-color: rgba(200, 163, 90, 0.4);
  background: var(--gold-wash);
  color: var(--gold-bright);
}
.badge-success {
  border-color: rgba(111, 191, 142, 0.35);
  background: rgba(111, 191, 142, 0.09);
  color: var(--success);
}
.badge-warning {
  border-color: rgba(217, 172, 96, 0.35);
  background: rgba(217, 172, 96, 0.09);
  color: var(--warning);
}
.badge-danger {
  border-color: rgba(212, 122, 117, 0.35);
  background: rgba(212, 122, 117, 0.09);
  color: var(--danger);
}
.badge-neutral {
  color: var(--muted);
}
.badge-info {
  border-color: rgba(127, 168, 207, 0.35);
  background: rgba(127, 168, 207, 0.09);
  color: var(--info);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--cream-dim);
  font-size: 0.83rem;
  line-height: 1.65;
}
.alert .icon {
  margin-top: 2px;
  color: var(--gold);
}
.alert-error {
  border-color: rgba(212, 122, 117, 0.3);
  background: rgba(212, 122, 117, 0.06);
}
.alert-error .icon {
  color: var(--danger);
}
.alert-success {
  border-color: rgba(111, 191, 142, 0.28);
  background: rgba(111, 191, 142, 0.06);
}
.alert-success .icon {
  color: var(--success);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-dark {
  border-color: rgba(0, 0, 0, 0.2);
  border-top-color: #12100b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.055);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.7s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 56px 24px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.empty-state .icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  opacity: 0.75;
}
.empty-state h3 {
  color: var(--cream);
  font-size: 1.7rem;
}
.empty-state p {
  max-width: 380px;
  font-size: 0.83rem;
}

/* --------------------------------------------------------------------------
   Reveal / movimiento
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay='1'] {
  transition-delay: 0.1s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.2s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.3s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--gold);
  background: #17181a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  color: var(--cream-dim);
  font-size: 0.82rem;
  line-height: 1.55;
  pointer-events: auto;
  animation: toastIn 0.4s var(--ease);
}
.toast.is-leaving {
  animation: toastOut 0.25s ease forwards;
}
.toast-success {
  border-left-color: var(--success);
}
.toast-error {
  border-left-color: var(--danger);
}
.toast .icon {
  color: var(--gold);
  margin-top: 2px;
}
.toast-success .icon {
  color: var(--success);
}
.toast-error .icon {
  color: var(--danger);
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* --------------------------------------------------------------------------
   Modal compartido
   -------------------------------------------------------------------------- */
dialog.modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--panel);
  color: var(--cream);
  box-shadow: var(--shadow);
  overflow: hidden;
}
dialog.modal::backdrop {
  background: rgba(4, 5, 6, 0.78);
  backdrop-filter: blur(8px);
}
dialog.modal[open] {
  animation: modalIn 0.35s var(--ease);
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
}
.modal-lg {
  width: min(900px, calc(100vw - 32px)) !important;
}
.modal-sm {
  width: min(460px, calc(100vw - 32px)) !important;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 2rem;
}
.modal-header p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}
.modal-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.25s;
}
.modal-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.modal-body {
  max-height: calc(88vh - 160px);
  padding: 24px 26px;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   Responsive base
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --container: calc(100vw - 40px);
    --header-height: 74px;
  }
  .section-heading {
    display: block;
  }
  .section-heading p {
    margin-top: 20px;
    max-width: 520px;
  }
}

@media (max-width: 600px) {
  :root {
    --container: calc(100vw - 32px);
  }
  body {
    font-size: 15px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .btn {
    padding-inline: 19px;
    font-size: 0.69rem;
  }
  .modal-header,
  .modal-body {
    padding-inline: 20px;
  }
  .modal-footer {
    padding-inline: 20px;
  }
  .toast-stack {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
