/* ===== Tokens ===== */
:root {
  --black: #0A0A0C;
  --panel: #14161B;
  --panel-2: #1B1E25;
  --navy: #16315C;
  --gold: #E3B341;
  --gold-soft: rgba(227, 179, 65, 0.14);
  --ivory: #F5F3EE;
  --slate: #9C9890;
  --border: rgba(245, 243, 238, 0.08);

  --display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.center { justify-content: center; }

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.section-title.center { text-align: center; }

.center { text-align: center; }

em {
  font-style: normal;
  color: var(--gold);
}

.section { padding: 96px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(227, 179, 65, 0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(227, 179, 65, 0.28);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary:active { transform: scale(0.97); box-shadow: 0 3px 12px rgba(227, 179, 65, 0.24); transition-duration: 0.08s; }
.btn-ghost:active { transform: scale(0.97); transition-duration: 0.08s; }
.btn-small { padding: 10px 20px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(9, 9, 11, 0.9);
  border-bottom-color: rgba(245, 243, 238, 0.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { height: 28px; width: auto; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ivory);
  letter-spacing: 0.01em;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(90vh, 860px);
  display: flex;
  align-items: center;
  padding: clamp(90px, 13vh, 150px) clamp(24px, 6vw, 88px) clamp(64px, 10vh, 110px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 80% at 82% 42%, rgba(22, 49, 92, 0.42), transparent 62%),
    radial-gradient(55% 55% at 16% 90%, rgba(227, 179, 65, 0.06), transparent 70%);
  z-index: 0;
}
.hero-lion {
  position: absolute;
  top: 50%;
  right: clamp(-180px, -7vw, -40px);
  transform: translateY(calc(-50% + var(--lion-shift, 0px)));
  width: clamp(400px, 48vw, 820px);
  will-change: transform;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 52%, transparent 100%);
}
.hero-lion img { width: 100%; opacity: 0.16; display: block; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 7.6vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(20px, 3vw, 30px);
  text-wrap: balance;
}
.hero-br { display: none; }
.hero-subtitle {
  font-family: var(--body);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
  color: var(--slate);
  max-width: 58ch;
  margin: 0 0 clamp(30px, 4vw, 42px);
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  flex-wrap: wrap;
}
.hero-note {
  font-family: var(--body);
  font-size: 14px;
  color: var(--slate);
  max-width: 22ch;
  line-height: 1.4;
}
@media (min-width: 760px) {
  .hero-br { display: inline; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-title { animation: heroIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-subtitle { animation: heroIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both; }
  .hero-cta { animation: heroIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.20s both; }
  .hero-lion img { animation: lionIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
}
@keyframes lionIn {
  from { opacity: 0; transform: scale(1.08); }
}

/* ===== Quienes somos ===== */
.about-inner {
  max-width: 760px;
  text-align: center;
}
.about-inner .eyebrow { text-align: center; }
.about-text {
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
  color: var(--ivory);
  font-weight: 400;
}
.about-text strong { color: var(--gold); font-weight: 600; }

/* ===== Servicios ===== */
.services-title { max-width: 18ch; margin-bottom: clamp(34px, 5vw, 52px); }
.services-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(14px, 5vw, 64px);
  align-items: start;
  padding: clamp(24px, 3.4vw, 38px) clamp(0px, 1vw, 14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.service-row:hover { background: rgba(245, 243, 238, 0.022); }
.service-row-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
.service-icon {
  width: 30px; height: 30px;
  color: var(--gold);
  flex: none;
}
.service-icon svg { width: 100%; height: 100%; display: block; }
.service-row h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}
.service-row p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
  max-width: 54ch;
}

/* ===== Muro de confianza (marquee) ===== */
.trust-wall { padding-bottom: 64px; }
.trust-subtitle {
  color: var(--slate);
  max-width: 520px;
  margin: 0 auto 40px;
}
.trust-disclaimer {
  color: var(--slate);
  font-size: 12.5px;
  max-width: 640px;
  margin: 28px auto 0;
  opacity: 0.8;
}

.marquee-row {
  overflow: hidden;
  margin: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-left 38s linear infinite;
}
.marquee-track.marquee-reverse {
  animation-name: marquee-right;
  animation-duration: 46s;
}
.marquee-track.marquee-slow {
  animation-duration: 95s;
}
.marquee-row[data-pause-on-hover]:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.marquee-item.bank {
  height: 72px;
  width: 168px;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.marquee-item.bank img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}
.marquee-item.card {
  height: 110px;
  width: 174px;
  padding: 0;
  overflow: hidden;
}
.marquee-item.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.marquee-item.result {
  height: 320px;
  width: 382px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.marquee-item.result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy), var(--black));
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}
.cta-banner-inner h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
}

/* Fluid reveal when a CTA opens the (initially hidden) booking section. */
#agenda.is-revealed { animation: agendaReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes agendaReveal { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) {
  #agenda.is-revealed { animation: none; }
}

/* ===== Agenda / Formulario nativo ===== */
.booking {
  margin-top: 44px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 36px);
}
.booking-step { position: relative; }
.booking-step + .booking-step {
  margin-top: clamp(26px, 4vw, 40px);
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--border);
}
.booking-step-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}
.step-num {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.step-num.is-done { background: rgba(227, 179, 65, 0.16); color: var(--gold); }
.step-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 0;
}
.step-lock {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--body);
  font-size: 12px;
  color: var(--slate);
}
.booking-step-foot {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
#step-agenda.step-revealed {
  animation: stepReveal 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stepReveal {
  from { opacity: 0; transform: translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  #step-agenda.step-revealed { animation: none; }
}
.booking-fields { min-width: 0; }
.booking-schedule { min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate);
  margin-bottom: 7px;
}
.booking input,
.booking select {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ivory);
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.booking input:focus,
.booking select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}
.booking 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' stroke='%239C9890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.booking input::placeholder { color: #55535000; }

.booking-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin: 0 0 12px;
}
.booking-schedule .booking-label:nth-of-type(2) { margin-top: 22px; }
.tz-note { font-weight: 500; color: #6f6c66; }

.day-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--panel-2) transparent;
}
.day-strip::-webkit-scrollbar { height: 6px; }
.day-strip::-webkit-scrollbar-thumb { background: var(--panel-2); border-radius: 3px; }
.day-chip {
  flex: 0 0 auto;
  width: 62px;
  padding: 10px 0;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ivory);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.day-chip:hover { border-color: rgba(227, 179, 65, 0.4); }
.day-chip:active { transform: scale(0.94); }
.day-chip .day-wd { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); }
.day-chip .day-num { font-size: 20px; font-weight: 600; line-height: 1.1; }
.day-chip .day-mo { font-size: 11px; color: var(--slate); }
.day-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1400;
}
.day-chip.is-active .day-wd,
.day-chip.is-active .day-mo { color: #4a3a00; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 48px;
}
.slot-btn {
  padding: 12px 8px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.slot-btn:hover { border-color: rgba(227, 179, 65, 0.5); }
.slot-btn:active { transform: scale(0.95); }
.slot-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1400;
}
.slot-hint {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  align-self: center;
}
.slot-error { color: #e0896b; }

.booking-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.booking-selected {
  min-height: 20px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--slate);
}
.booking-selected.is-set { color: var(--gold); font-weight: 600; }
.booking-footer .btn-primary { min-width: 260px; }
.booking-footer .btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.booking-micro { margin: 14px 0 0; font-size: 13px; color: var(--slate); }

.booking-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}
.booking-status.error { background: rgba(224, 137, 107, 0.12); border: 1px solid rgba(224, 137, 107, 0.35); color: #e9a488; }

.booking-success { text-align: center; padding: 24px 12px; }
.booking-check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1400;
  font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.booking-success h3 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
.booking-success-when { color: var(--gold); font-weight: 600; margin: 0 0 12px; }
.booking-success-msg { color: var(--slate); max-width: 440px; margin: 0 auto; }
.booking-success-note { color: #6f6c66; font-size: 13px; margin-top: 14px; }

@media (max-width: 560px) {
  .field-row { flex-direction: column; gap: 0; }
  .booking-footer .btn-primary,
  .booking-step-foot .btn-primary { width: 100%; min-width: 0; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { height: 24px; }
.footer-brand .brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
}
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ivory);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 18px; height: 18px; }
.footer-legal {
  text-align: right;
  color: var(--slate);
  font-size: 12.5px;
  line-height: 1.6;
}
.footer-legal p { margin: 0; }

/* ===== Scroll-linked fade (JS-driven) =====
   script.js sets opacity / blur / transform on each .sfade block based on how
   close it is to the centre of the viewport, so content materialises from a
   blur as it rises into view and dissolves again as it leaves — in both scroll
   directions. Driving it from JS (instead of CSS scroll-timelines, which don't
   activate reliably everywhere) keeps it working across browsers and lets us
   tune the blur per device. Fail-safe: with JS off or reduced motion on, .sfade
   stays fully visible. It never ships blank. */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}


/* ===== Responsive ===== */
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 96px 20px 64px; min-height: auto; }
  .hero-lion img { opacity: 0.11; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-legal { text-align: center; }
  .brand-name { font-size: 16px; }
  .marquee-item.bank { width: 132px; height: 60px; padding: 12px 18px; }
  .marquee-item.card { width: 140px; height: 88px; }
  .marquee-item.result { width: 268px; height: 225px; }
}
