/* ============================================================
   Billy Ying Marketing — styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #111111; color: #FFD600; }
.bg-y ::selection, .bg-y::selection { background: #111111; color: #FFD600; }

:root {
  --yellow: #FFD600;
  --black:  #111111;
  --white:  #F9F8F6;
  --beige:  #EDEDEB;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Variables de tema claro */
  --bg-snow:   #F9F8F6;
  --bg-sand:   #EDEDEB;
  --bg-ink:    #111111;
  --text-ink:  #111111;
}

/* ── Modo oscuro ── */
html.dark {
  --bg-snow:  #0f0f0f;
  --bg-sand:  #1a1a1a;
  --bg-ink:   #050505;
  --text-ink: #F0EFED;
}
html.dark body { background: #0f0f0f; color: #F0EFED; }
html.dark .bg-snow { background-color: #0f0f0f !important; }
html.dark .bg-sand { background-color: #1a1a1a !important; }
html.dark .bg-ink  { background-color: #050505 !important; }
html.dark #site-header {
  background: rgba(15,15,15,0.95) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) !important;
}
html.dark #site-header .header-text    { color: #F0EFED; }
html.dark #site-header .header-subtext { color: rgba(240,239,237,0.4); }
html.dark .lang-btn  { color: rgba(240,239,237,0.45); }
html.dark .lang-btn:hover { color: rgba(240,239,237,0.9); }
html.dark .lang-btn.lang-active { color: var(--yellow); }
html.dark .opacity-30.text-ink { color: rgba(240,239,237,0.55) !important; }
/* Form dark mode */
html.dark .bg-snow.border-0 { background-color: #1e1e1e !important; color: #F0EFED !important; }
html.dark input, html.dark textarea { background-color: #1e1e1e !important; color: #F0EFED !important; }
html.dark label { color: rgba(240,239,237,0.85) !important; }
html.dark .dark-text-muted { color: rgba(240,239,237,0.7) !important; }
html.dark [data-i18n-html="form-terminos"] { color: rgba(240,239,237,0.7) !important; }
html.dark [data-i18n-html="form-terminos"] a { color: rgba(240,239,237,0.9) !important; }
html.dark .text-ink   { color: #F0EFED !important; }
html.dark .text-ink\/88 { color: rgba(240,239,237,0.95) !important; }
html.dark .text-ink\/70 { color: rgba(240,239,237,0.85) !important; }
html.dark .text-ink\/60 { color: rgba(240,239,237,0.82) !important; }
html.dark .text-ink\/55 { color: rgba(240,239,237,0.78) !important; }
html.dark .text-ink\/50 { color: rgba(240,239,237,0.75) !important; }
html.dark .text-ink\/40 { color: rgba(240,239,237,0.68) !important; }
html.dark .text-ink\/35 { color: rgba(240,239,237,0.62) !important; }
html.dark .text-ink\/30 { color: rgba(240,239,237,0.55) !important; }
html.dark .text-ink\/25 { color: rgba(240,239,237,0.48) !important; }
html.dark .text-white\/85 { color: rgba(240,239,237,0.92) !important; }
html.dark .text-white\/70 { color: rgba(240,239,237,0.78) !important; }
html.dark .section-label  { color: rgba(240,239,237,0.55) !important; }
html.dark .border-ink\/10 { border-color: rgba(240,239,237,0.15) !important; }
html.dark .border-ink\/6  { border-color: rgba(240,239,237,0.1) !important; }
html.dark .ring-ink\/8    { --tw-ring-color: rgba(240,239,237,0.1) !important; }
html.dark .ring-ink\/10   { --tw-ring-color: rgba(240,239,237,0.12) !important; }
html.dark .bg-ink\/15     { background-color: rgba(240,239,237,0.1) !important; }
html.dark .bg-ink\/8      { background-color: rgba(240,239,237,0.06) !important; }html.dark .result-chip   { background-color: rgba(255,255,255,0.10) !important; color: rgba(240,239,237,0.88) !important; }
html.dark .card-menos-caos { background-color: #252525 !important; }html.dark .h-px.bg-ink\/15 { background-color: rgba(240,239,237,0.2) !important; }
html.dark .dark-toggle-btn { color: rgba(240,239,237,0.6); }
html.dark .dark-toggle-btn:hover { color: var(--yellow); }
/* Fondos amarillos: mantener texto negro en dark mode */
html.dark .bg-y .text-ink    { color: #111111 !important; }
html.dark .bg-y.text-ink     { color: #111111 !important; }
html.dark .bg-y .text-ink\/82 { color: rgba(17,17,17,0.82) !important; }
html.dark .bg-y.text-ink\/82  { color: rgba(17,17,17,0.82) !important; }
html.dark .bg-y .text-ink\/10 { color: rgba(17,17,17,0.1) !important; }
/* Iconos bg-y/20: más vibrantes en dark mode */
html.dark .bg-y\/20 { background-color: rgba(255,214,0,0.55) !important; }
html.dark .bg-y\/35 { background-color: rgba(255,214,0,0.55) !important; }

.stmt-overlay { background: rgba(249,248,246,0.72); }
html.dark .stmt-overlay { background: rgba(10,10,10,0.52); }

/* ── Dark toggle button ── */
.dark-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(15,15,15,0.45);
  padding: 0.3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s var(--ease);
}
.dark-toggle-btn:hover { color: var(--black); }

/* ── Display typography ── */
.display-xl {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}

/* ── Section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.5;
  border-radius: 2px;
}

/* ── Step numbers ── */
.step-number {
  display: block;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--yellow);
}

/* ── Ticker ── */
.ticker-track {
  display: inline-block;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
  position: relative;
  z-index: 1;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Fade-up ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Flash de idioma: ocultar body hasta que se apliquen las traducciones ── */
html.lang-loading body { visibility: hidden; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 32px rgba(255,214,0,0.40), 0 3px 10px rgba(255,214,0,0.20);
}
.btn-primary:disabled { opacity: 0.45; pointer-events: none; }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.22);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ── Header adaptive ── */
#site-header {
  background: rgba(250,250,250,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

/* ── Language switcher ── */
.lang-btn {
  color: rgba(15,15,15,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s var(--ease);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-weight: 800;
}
.lang-btn:hover { color: rgba(15,15,15,0.85); }
.lang-btn.lang-active { color: var(--black); }

#site-header .header-text {
  color: #0f0f0f;
  transition: none;
}
#site-header .header-subtext {
  color: rgba(15,15,15,0.4);
  transition: none;
}


/* ── Dividers ── */
.divider-dark  { height: 1px; background: rgba(255,255,255,0.07); }
.divider-light { height: 1px; background: rgba(15,15,15,0.07); }

/* ── Decorative bg text ── */
.bg-deco {
  position: absolute;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  opacity: 0.028;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
