/* ═══════════════════════════════════════
   BASE — Reset, Typography, Utilities
   ═══════════════════════════════════════ */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
  font-family: var(--font-sans);
  font-size: inherit;
}
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(32px, 5vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(20px, 3vw, 34px); }
h4 { font-size: clamp(18px, 2.5vw, 24px); }
p  { font-size: 15px; line-height: 1.9; color: var(--tmid); font-weight: 300; }

.serif  { font-family: var(--font-serif); }
.ital   { font-style: italic; }
.accent { color: var(--cta); }

/* ── Labels & Bars ── */
.lbl {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cta);
  margin-bottom: 14px;
}
.bar {
  width: 36px;
  height: 1.5px;
  background: var(--cta);
  margin: 20px 0;
  opacity: .6;
}
.bar-c { margin-left: auto; margin-right: auto; }

/* ── Layout Wrappers ── */
.wrap    { max-width: 1020px; margin: 0 auto; padding: 0 52px; }
.wrap-sm { max-width: 700px;  margin: 0 auto; padding: 0 52px; }
.wrap-xs { max-width: 560px;  margin: 0 auto; padding: 0 52px; }
section  { padding: var(--space-xl) 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  background: var(--cta);
  color: var(--white);
  border: 1px solid var(--cta);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-med) var(--ease-std),
              border-color var(--dur-med) var(--ease-std),
              transform var(--dur-fast) var(--ease-std);
}
.btn:hover { background: var(--ctah); border-color: var(--ctah); transform: translateY(-1px); }

.btn-o {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  background: transparent;
  color: var(--cta);
  border: 1px solid var(--cta);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-std);
}
.btn-o:hover { background: var(--cta); color: var(--white); transform: translateY(-1px); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 40px;
  background: var(--text);
  color: var(--white);
  border: 1px solid var(--text);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-std);
}
.btn-dark:hover { background: var(--cta); border-color: var(--cta); }

/* ── Scroll Reveal ── */
.rv  { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rl  { opacity: 0; transform: translateX(-28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rr  { opacity: 0; transform: translateX(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.rv.on, .rl.on, .rr.on { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .35s; }
.d4 { transition-delay: .5s; }

/* ── Split Layout ── */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-img {
  overflow: hidden;
  min-height: 480px;
}
.split-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  filter: saturate(.9) contrast(1.01);
  mix-blend-mode: multiply;
  transition: transform var(--dur-slow) var(--ease-std);
}
.split-img:hover img { transform: scale(1.03); }
.split-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 60px;
}

/* ── Background Modifiers ── */
.bg-bg  { background: var(--bg); }
.bg-bg2 { background: var(--bg2); }
.bg-bg3 { background: var(--bg3); }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--cta);
  color: #fff;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Disclaimer ── */
.disclaimer {
  font-size: 11px;
  color: var(--tlight);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.6;
}

/* ── Pagination bar ── */
.pbar { height: 1.5px; background: var(--line); margin-bottom: 48px; }
.pfill { height: 100%; background: var(--cta); transition: width .5s var(--ease-out); width: 0%; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  transition: color var(--dur-fast);
}
.faq-q::after { content: '+'; font-size: 20px; color: var(--cta); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-q:hover { color: var(--cta); }
.faq-a { display: none; padding: 0 0 18px; font-size: 14px; color: var(--tmid); line-height: 1.85; }
.faq-item.open .faq-a { display: block; }

/* ── Video Box ── */
.vid-box {
  background: var(--bg3);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.vid-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; mix-blend-mode: multiply; }
.play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--cta);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  z-index: 2;
  transition: transform .3s, background .3s;
  box-shadow: var(--shadow-md);
}
.vid-box:hover .play-btn { transform: scale(1.12); background: var(--ctah); }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

/* ── ID Grid ── */
.id-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.id-item {
  padding: 18px 22px;
  border: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px;
  transition: background .3s;
  margin: -1px 0 0 -1px;
}
.id-item:hover { background: var(--bg2); }
.id-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cta); flex-shrink: 0; margin-top: 8px; }

/* ── Para-ti Grid ── */
.parati-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); }
.pi {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.pi:hover { background: var(--bg2); }
.pi:nth-child(2n) { border-right: none; }
.pinum { font-family: var(--font-serif); font-size: 32px; font-weight: 200; color: var(--line); display: block; margin-bottom: 7px; }

/* ── Olist ── */
.olist { display: flex; flex-direction: column; }
.oitem { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; align-items: flex-start; }
.oitem:last-child { border: none; }
.oarrow { font-family: var(--font-serif); font-size: 22px; color: var(--cta); flex-shrink: 0; opacity: .7; }

/* ── Date Cards ── */
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.date-card { padding: 36px 36px; background: var(--bg2); }
.date-card h4 { font-family: var(--font-serif); font-size: 24px; font-weight: 300; margin-bottom: 14px; }
.date-includes { margin: 16px 0; display: flex; flex-direction: column; gap: 7px; }
.date-inc { display: flex; gap: 8px; font-size: 12px; color: var(--tmid); }
.date-inc::before { content: '✓'; color: var(--cta); flex-shrink: 0; }

/* ── Fases Grid ── */

/* ── Route Cards ── */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.route-card { padding: 36px 32px; background: var(--bg2); transition: background .3s; }
.route-card:hover { background: var(--bg3); }
.route-num { font-family: var(--font-serif); font-size: 44px; font-weight: 200; color: var(--line); line-height: 1; display: block; margin-bottom: 10px; }
.route-card h4 { font-family: var(--font-serif); font-size: 22px; font-weight: 300; color: var(--text); margin-bottom: 8px; }

/* ── Journey Cards ── */
.jcard { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.jcard-txt { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px; background: var(--bg); }
.jcard-img { overflow: hidden; min-height: 440px; }
.jcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.88); mix-blend-mode: multiply; }
.jnum { font-family: var(--font-serif); font-size: 72px; font-weight: 200; color: var(--line); line-height: 1; display: block; margin-bottom: -8px; }
.jfeats { margin: 16px 0; display: flex; flex-direction: column; gap: 9px; }
.jfeat { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--tmid); }
.jfeat::before { content: '—'; color: var(--cta); flex-shrink: 0; }
.jdates-box { margin: 14px 0 20px; padding: 18px 22px; background: var(--bg2); border-left: 2px solid var(--cta); }
.jdates-box p { font-size: 13px; line-height: 1.9; }

/* ── Topic Grid (Conferencias) ── */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tcard { padding: 36px 28px; background: var(--bg2); transition: transform .25s; }
.tcard:nth-child(even) { background: var(--bg3); }
.tcard:hover { transform: translateY(-3px); }
.tnum { font-family: var(--font-serif); font-size: 40px; font-weight: 200; color: var(--line); line-height: 1; display: block; margin-bottom: 10px; }
.tcard h4 { font-family: var(--font-serif); font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ── Estilo Grid ── */
.egrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.ei { padding: 32px 20px; background: var(--bg2); text-align: center; transition: background .3s; }
.ei:hover { background: var(--bg3); }
.eicon { font-size: 24px; display: block; margin-bottom: 10px; }
.ei h4 { font-family: var(--font-serif); font-size: 17px; color: var(--text); margin-bottom: 5px; }
.ei p { font-size: 11px; line-height: 1.7; }

/* ── Format Grid ── */
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.fi { padding: 28px 20px; background: var(--bg); text-align: center; transition: transform .25s, box-shadow .25s; }
.fi:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(46,39,35,.07); }
.ficon { font-size: 24px; display: block; margin-bottom: 8px; }
.fi p { font-size: 12px; font-weight: 400; color: var(--text); }

/* ── Ideal Grid ── */
.igrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.iitem {
  padding: 14px 22px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
  display: flex; gap: 9px; align-items: center;
  font-size: 13px; color: var(--tmid);
  transition: background .25s;
}
.iitem:hover { background: var(--bg2); }
.iitem::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--cta); flex-shrink: 0; }

/* ── Conf Event Block ── */
.conf-event-block { position: relative; overflow: hidden; }
.conf-event-block img { width: 100%; height: 480px; object-fit: cover; object-position: center top; }
.conf-event-block .ev-text {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 40px 56px;
  background: linear-gradient(to top, rgba(46,39,35,.7), transparent);
}
.conf-event-block .ev-text p { color: rgba(255,255,255,.9); font-size: 14px; }

/* ── Success Msg ── */
.success-msg { display: none; padding: 48px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.success-msg.show { display: block; }
.success-msg h3 { font-family: var(--font-serif); font-size: 28px; color: var(--cta); margin-bottom: 12px; }

/* ── Legal Pages ── */
.legal-page { background: var(--bg); padding: 120px 0 80px; }
.legal-page h1 { font-family: var(--font-serif); font-size: clamp(32px,4vw,48px); font-weight: 300; margin-bottom: 32px; }
.legal-page h2 { font-size: clamp(18px,2.5vw,24px); margin: 28px 0 12px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--tmid); line-height: 1.85; margin-bottom: 12px; }
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 24px;
  background: var(--text);
  color: var(--white);
  font-size: 13px;
  z-index: 10000;
  transform: translateY(80px);
  opacity: 0;
  transition: all .4s var(--ease-out);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #3d6b47; }
.toast.error   { background: #8b3a3a; }

/* ── WhatsApp Button ── */
.wa-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.5); }
.wa-btn svg { width: 26px; height: 26px; fill: #fff; }

/* ── Carrusel infinito de fases ── */
.fases-grid {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.fases-track {
  display: flex;
  animation: fasesScroll 25s linear infinite;
  width: max-content;
  will-change: transform;
}
.fases-track:hover,
.fases-track:focus-within {
  animation-play-state: paused;
}
.fase {
  flex: 0 0 260px;
  width: 260px;
  padding: 44px 28px;
  background: var(--bg2);
  text-align: center;
  margin-right: 2px;
  box-sizing: border-box;
}
.fase:nth-child(odd)  { background: var(--bg2); }
.fase:nth-child(even) { background: var(--bg3); }
.fase-num {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 200;
  color: var(--cta);
  opacity: .35;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.fase-title {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
}
@keyframes fasesScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 640px) {
  .fase { flex: 0 0 80vw; width: 80vw; }
  .fases-track { animation-duration: 18s; }
}

/* ════════════════════════════════════
   POPUP — Single column with image top
════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0; /* iOS inset fallback */
  inset: 0;
  z-index: 9999;
  background: rgba(46,39,35,.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
}
.popup-overlay.show { display: flex; }

#popup-box {
  background: var(--bg);
  max-width: 480px;
  width: 92%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(46,39,35,.25);
  animation: popSlideUp .55s cubic-bezier(.16,1,.3,1) both;
}
@keyframes popSlideUp {
  from { transform: translateY(36px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pop-img {
  height: 220px;
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  position: relative;
}
.pop-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--bg) 100%);
}
.pop-body {
  padding: 0 36px 36px;
}
.pop-lbl {
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cta);
  display: block;
  margin-bottom: 10px;
}
.pop-body h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}
.pop-body p {
  font-size: 13px;
  color: var(--tmid);
  line-height: 1.8;
  margin-bottom: 20px;
}
.pop-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pop-form input[type="text"],
.pop-form input[type="email"] {
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .3s;
  width: 100%;
}
.pop-form input:focus { border-color: var(--cta); }
.pop-btn {
  padding: 14px;
  background: var(--cta);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .3s;
  width: 100%;
}
.pop-btn:hover { background: var(--ctah); }
.pop-note {
  font-size: 10px;
  color: var(--tlight);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}
.pop-skip {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--tlight);
  cursor: pointer;
  text-decoration: underline;
}
.pop-skip:hover { color: var(--text); }
.pop-close {
  position: absolute;
  top: 12px; right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: rgba(255,255,255,.8);
  background: none;
  border: none;
  line-height: 1;
  z-index: 10;
}
.pop-close:hover { color: #fff; }

/* ── YouTube popup ── */
#yt-popup { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.yt-hidden { display: none !important; }

/* ── jcard mobile reorder ── */
@media (max-width: 960px) {
  .jcard-alt .jcard-img { order: 0 !important; }
  .jcard-alt .jcard-txt { order: 1 !important; }
}

/* ── Testimonios grid ── */
@media (max-width: 640px) {
    .pop-box-split { grid-template-columns: 1fr; }
  .pop-img-col { display: none; }
  .pop-form-col { padding: 36px 28px; }
}

/* ── Testimonios grid ── */
.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 640px) {
  .testimonios-grid { grid-template-columns: 1fr; }
}


/* Testimonios carousel → see test-quiz.css */
