/* ===== De Supervisor a Líder — estilos compartidos =====
   Paleta y tipografías tomadas de la portada del libro.
   Todos los pares texto/fondo cumplen WCAG AA (≥ 4.5:1). */
:root {
  --negro: #0d0d0d;      /* fondo principal */
  --negro-2: #16151a;    /* secciones alternas */
  --tarjeta: #1c1b21;    /* tarjetas */
  --rosa: #d4708f;       /* acento: botones, palabras destacadas, precios, iconos */
  --rosa-hover: #e08aa5;
  --texto: #f5f1ee;      /* texto principal */
  --texto-2: #b9b3b0;    /* texto secundario */
  --error: #ff8a8a;
  --exito: #8fd6a4;
  --linea: rgba(245, 241, 238, 0.10);
  --linea-2: rgba(245, 241, 238, 0.18);
  --f-titulo: 'Bebas Neue', 'Arial Narrow', Impact, sans-serif;
  --f-texto: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
  --radio: 16px;
  --ticker-h: 34px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 122px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--negro); color: var(--texto); font-family: var(--f-texto); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: var(--rosa); }
a:hover { color: var(--rosa-hover); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 400; letter-spacing: 0.5px; line-height: 1; margin: 0; color: var(--texto); }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--rosa); color: var(--negro); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

/* Mientras se aplica el inglés, no se muestra el español un instante */
.i18n-pending body { visibility: hidden; }

/* Cinta animada superior */
.ticker { position: fixed; inset: 0 0 auto 0; height: var(--ticker-h); z-index: 101; background: #0a0a0b; border-bottom: 1px solid rgba(212,112,143,0.35); overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; align-items: center; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-size: 12.5px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--rosa); white-space: nowrap; }
.ticker-sep { color: var(--rosa); font-size: 11px; margin: 0 26px; opacity: 0.85; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { justify-content: center; }
  .ticker-track { animation: none; width: 100%; justify-content: center; padding: 0 16px; }
  .ticker-item[aria-hidden], .ticker-sep { display: none; }
  .ticker-item { white-space: normal; text-align: center; font-size: 11px; letter-spacing: 1.2px; }
}

/* Selector de idioma */
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--texto-2); border: 1px solid var(--linea-2); border-radius: 50px; padding: 3px 6px; }
.lang-switch button { background: none; border: 0; color: var(--texto-2); font: inherit; font-weight: 600; letter-spacing: 1px; padding: 5px 8px; border-radius: 50px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--rosa); color: var(--negro); }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--texto); }
.lang-switch span { opacity: .4; }

/* Iconos de línea (Lucide) */
.ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--rosa); vertical-align: middle; }
.btn .ico { width: 18px; height: 18px; color: currentColor; }
.icon-badge { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212,112,143,0.12); border: 1px solid rgba(212,112,143,0.28); }
.icon-badge .ico { width: 24px; height: 24px; }

/* Marca */
.logo { font-family: var(--f-titulo); font-size: 26px; letter-spacing: 1px; color: var(--texto); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--rosa); }
.logo:hover { color: var(--texto); }

/* Botones: primario rosa con texto negro; secundario con borde rosa */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 10px; font-family: var(--f-texto); font-size: 15.5px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn-primary { background: var(--rosa); color: var(--negro); border-color: var(--rosa); }
.btn-primary:hover { background: var(--rosa-hover); border-color: var(--rosa-hover); color: var(--negro); transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(212,112,143,0.6); }
.btn-secondary { background: transparent; color: var(--rosa); border-color: var(--rosa); }
.btn-secondary:hover { background: rgba(212,112,143,0.10); color: var(--rosa-hover); border-color: var(--rosa-hover); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }

/* Estructura de secciones */
.section { padding: 120px 24px; }
.section.alt { background: var(--negro-2); }
.wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--rosa); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--rosa); }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(46px, 5.6vw, 76px); margin: 14px 0 18px; }
.sec-head p { color: var(--texto-2); font-size: 17.5px; margin: 0; }

.card { background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: rgba(212,112,143,0.4); }

/* Formularios */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--texto); margin-bottom: 6px; }
.field label .opt { color: var(--texto-2); font-weight: 400; }
.field input { width: 100%; background: var(--negro); border: 1.5px solid var(--linea-2); border-radius: 10px; padding: 13px 16px; color: var(--texto); font: inherit; font-size: 16px; }
.field input::placeholder { color: #8f8986; }
.field input:focus { outline: none; border-color: var(--rosa); }
.field input.invalid { border-color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--texto-2); line-height: 1.55; margin: 12px 0 6px; padding: 8px 10px; border: 1.5px solid transparent; border-radius: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--rosa); margin-top: 2px; flex-shrink: 0; }
.check.invalid { border-color: var(--error); }
.form-msg { font-size: 14px; margin: 8px 0 12px; min-height: 20px; }
.form-msg.error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Galerías con zoom */
.gallery { display: grid; gap: 16px; }
.gallery-fig { margin: 0; background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; transition: border-color .3s, transform .3s; }
.gallery-fig:hover { border-color: rgba(212,112,143,0.45); transform: translateY(-4px); }
.gallery-item { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.gallery-fig:hover .gallery-item img { transform: scale(1.05); }
.gallery-fig figcaption { padding: 14px 16px 16px; font-size: 14px; line-height: 1.5; color: var(--texto-2); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,0.9); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; display: block; }
.lightbox button { position: fixed; top: 16px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--linea-2); background: rgba(13,13,13,0.8); color: var(--texto); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button .ico { color: var(--texto); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--rosa); color: var(--negro); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -6px rgba(0,0,0,0.6); z-index: 200; transition: transform .2s, background .2s; }
.wa-float:hover { transform: scale(1.07); background: var(--rosa-hover); color: var(--negro); }

/* Aparición suave al hacer scroll (solo si la persona no pidió reducir el movimiento) */
.anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 600px) {
  .section { padding: 84px 18px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head h2 { font-size: 46px; }
}
