/* ═══════════════════════════════════════════
   COMPONENTES — Intrépidos Tecnológicos
   Requiere tokens.css + base.css
   Base: landing-v12.html
   ═══════════════════════════════════════════ */

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: none;
  transition: background .3s;
}
nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 50%, transparent 95%);
  opacity: .45;
  transition: background .3s;
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  padding-bottom: .8rem;
  gap: 1rem;
  transition: padding .3s;
}
nav.compact .wrap {
  padding-top: .4rem;
  padding-bottom: .4rem;
}
nav.compact .nav-logo {
  font-size: .88rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: var(--weight-black);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
  min-width: 12rem;
  transition: color .3s;
}
#logo-t {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent);
  transition: color .3s, text-shadow .3s;
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.nav-links a {
  position: relative;
  font-size: .82rem;
  font-weight: var(--weight-bold);
  color: var(--soft);
  text-decoration: none;
  padding: .38rem .5rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: .1rem;
  left: .5rem; right: .5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease, background .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--accent); background: var(--accent-dim); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-sep { display: none; }
.nav-ext {
  display: inline-flex !important;
  align-items: center;
  gap: .2rem;
}
.ext-icon {
  opacity: .5;
  flex-shrink: 0;
}

/* ── TEMA: PÍLDORA (desktop) ── */
.theme-pill {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-pill);
  padding: .2rem .26rem;
  flex-shrink: 0;
  transition: background .3s, border-color .3s;
}
.pill-sep {
  width: 1px; height: 14px;
  background: var(--border2);
  margin: 0 .3rem;
  flex-shrink: 0;
  transition: background .3s;
}
.mode-btn {
  width: 26px; height: 26px;
  border: none; background: none;
  color: var(--muted);
  font-size: .78rem;
  cursor: pointer;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.mode-btn.active { background: var(--accent); color: #fff; }
.mode-btn:not(.active):hover { background: var(--border); color: var(--ink); }

.color-dots {
  display: flex;
  align-items: center;
  gap: .26rem;
  padding: 0 .06rem;
}
.swatch-btn {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s, border-color .15s;
}
.swatch-btn:hover { transform: scale(1.28); }
.swatch-btn.active { border-color: var(--ink); transform: scale(1.2); }

/* ── COLOR PICKER DROPDOWN ── */
.color-picker-wrap { position: relative; }
.color-trigger {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: .1rem .15rem;
  color: var(--muted);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: color .2s;
}
.color-trigger:hover { color: var(--ink); }
.color-dot-current {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: background .3s;
}
.color-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: -.4rem;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: .5rem;
  gap: .35rem;
  flex-wrap: wrap;
  width: 5.5rem;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: background .3s, border-color .3s;
}
.color-dropdown.open { display: flex; }

/* ── CONTROLES MÓVILES ── */
.mobile-controls {
  display: none;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}
.mob-theme-wrap { position: relative; }
.mob-icon-btn {
  width: 32px; height: 32px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  color: var(--soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, color .2s, border-color .3s;
}
.mob-icon-btn:hover { color: var(--ink); background: var(--border); }

.mob-theme-panel {
  display: none;
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: .65rem .75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  flex-direction: column;
  gap: .55rem;
  z-index: 200;
  min-width: 148px;
  transition: background .3s, border-color .3s;
}
.mob-theme-panel.open { display: flex; }
.mob-mode-row { display: flex; gap: .3rem; }

.mob-nav-drawer {
  display: none;
  flex-direction: column;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--border);
  padding: .4rem 1.5rem .8rem;
  transition: background .3s, border-color .3s;
}
.mob-nav-drawer.open { display: flex; }
.mob-nav-drawer a {
  font-size: 1.15rem;
  font-weight: var(--weight-bold);
  color: var(--soft);
  text-decoration: none;
  padding: .85rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: color .2s, border-color .3s;
}
.mob-nav-drawer a:last-child { border-bottom: none; }
.mob-nav-drawer a:hover { color: var(--accent); }
.mob-nav-drawer a.nav-ext { display: flex !important; justify-content: center; }

/* ── HERO ── */
.hero {
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s;
}
.hero-top {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
.hero-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: var(--weight-medium);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-bdr);
  padding: .55rem .9rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.3rem;
  line-height: 1.7;
  transition: color .3s, background .3s, border-color .3s;
}
#hero-tw {
  display: block;
  min-height: 1.7em;
}
#hero-tw[data-typing="true"]::after {
  content: '|';
  animation: tw-blink .7s step-end infinite;
  opacity: 1;
}
@keyframes tw-blink {
  50% { opacity: 0; }
}
.hero-who {
  font-size: .78rem;
  font-weight: var(--weight-regular);
  color: var(--muted);
  margin-bottom: .45rem;
  letter-spacing: .01em;
  transition: color .3s;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: .85rem;
  transition: color .3s;
}
h1 em { font-style: normal; color: var(--accent); transition: color .3s; }

.hero-sub {
  font-size: .95rem;
  font-weight: var(--weight-light);
  color: var(--soft);
  line-height: var(--leading-relaxed);
  margin-bottom: 1.4rem;
  transition: color .3s;
}
.hero-sub strong { color: var(--ink2); font-weight: var(--weight-medium); transition: color .3s; }

/* ── FOTO HERO ── */
.hero-photo-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.photo-wrap {
  position: relative;
  width: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}
.photo-glow {
  position: absolute;
  inset: -30% -20%;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  transition: background .4s;
}
.carlos-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: var(--photo-filter);
  transition: filter .3s;
}

/* ── FORMULARIO ── */
.form-block {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 1.1rem 1.4rem .75rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.form-block::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .55;
  transition: opacity .3s, background .3s;
}
.form-block:hover::before { opacity: 1; }
.form-block:hover {
  border-color: var(--accent-bdr);
  box-shadow: 0 16px 56px rgba(0,0,0,.22), 0 0 0 3px var(--accent-glow);
}
.form-divider {
  height: 1px;
  background: var(--border);
  margin: .7rem 0;
  transition: background .3s;
}
.form-stmt {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: var(--weight-medium);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--soft);
  transition: color .3s;
}
.form-exc { color: var(--ink2); font-weight: var(--weight-bold); transition: color .3s; }
.form-stmt strong { color: var(--accent); font-weight: var(--weight-bold); transition: color .3s; }

.form-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: .55rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input {
  flex: 1;
  min-width: 0;
  background: var(--form-input);
  border: none;
  padding: .88rem 1.1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: var(--weight-light);
  outline: none;
  transition: background .3s, color .3s;
}
.form-input::placeholder { color: var(--muted); }

.btn-sub {
  background: var(--cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: var(--weight-bold);
  padding: .88rem 1.3rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .02em;
  flex-shrink: 0;
  transition: background .25s, transform .1s;
}
.btn-sub:hover { background: #22C55E; }
.btn-sub:active { transform: scale(.98); }

.form-legal {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: var(--text-3xs);
  color: var(--muted);
  line-height: 1.6;
  cursor: pointer;
  transition: color .3s;
}
.form-legal input { accent-color: var(--accent); margin-top: .15rem; flex-shrink: 0; }
.form-legal a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color .2s;
}
.form-legal a:hover { color: var(--accent); }

#form-result {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  margin-top: .4rem;
}
#form-result.ok  { color: var(--accent); }
#form-result.err { color: #ff5757; }

/* ── HISTORIA ── */
.historia {
  position: relative;
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--soft);
  line-height: var(--leading-loose);
  padding: 1.3rem 1.2rem 1.3rem 1.8rem;
  border-left: 2px solid var(--accent-bdr);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: color .3s, border-color .3s, background .3s;
}
.historia::before {
  content: '\201C';
  position: absolute;
  top: .1rem; left: .55rem;
  font-size: 2.5rem;
  font-style: normal;
  font-family: var(--font-display);
  color: var(--accent-bdr);
  line-height: 1;
  transition: color .3s;
}
.historia .punch {
  font-style: normal;
  font-weight: var(--weight-bold);
  color: var(--ink2);
  transition: color .3s;
}

/* ── CTA CURSOS ── */
.cursos-strip {
  margin-top: 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  transition: border-color .3s;
}
.btn-cursos {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: var(--weight-bold);
  padding: .72rem 1.5rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.01em;
  box-shadow: 0 4px 24px var(--accent-glow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-cursos:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--accent-glow); }
.btn-cursos:active { transform: translateY(0); }

/* ── TESTIMONIOS ── */
.testimonials { padding: 3.2rem 0 3.8rem; }
.testi-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.testi-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: var(--weight-regular);
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -.02em;
  transition: color .3s;
}
.testi-label-sub {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .3s;
}
.testi-line { flex: 1; height: 1px; background: var(--border); transition: background .3s; }

.testi-item {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  transition: border-color .3s;
}
.testi-item:last-child { border-bottom: 1px solid var(--border); }
.testi-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--weight-black);
  color: var(--border2);
  line-height: 1;
  padding-top: .1rem;
  transition: color .3s;
}
.testi-quote {
  font-size: .86rem;
  font-weight: var(--weight-light);
  color: var(--soft);
  line-height: 1.85;
  font-style: italic;
  margin-bottom: .45rem;
  transition: color .3s;
}
.testi-quote strong { font-style: normal; color: var(--ink2); font-weight: var(--weight-medium); transition: color .3s; }
.testi-author {
  font-size: .65rem;
  font-weight: var(--weight-bold);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color .3s;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  position: relative; z-index: 1;
  transition: border-color .3s;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: var(--weight-black);
  color: var(--muted);
  letter-spacing: -.01em;
  transition: color .3s;
}
.footer-brand .footer-dot { color: var(--accent); transition: color .3s; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: var(--text-2xs);
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: var(--text-2xs);
  color: var(--muted);
  opacity: .55;
  width: 100%;
  text-align: center;
  margin: .15rem 0 0;
  transition: color .3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .theme-pill       { display: none; }
  .nav-links        { display: none; }
  .mobile-controls  { display: flex; }
  footer .wrap      { flex-direction: column; align-items: center; text-align: center; gap: .75rem; }
  .footer-links     { justify-content: center; gap: 1rem; }
  .footer-copy      { margin-top: 0; }
  .mob-icon-btn     { width: 52px; height: 52px; font-size: 1.9rem; background: none; border: none; box-shadow: none; }
  .mob-icon-btn svg { width: 80%; height: 80%; }
  .hero-photo-col   { display: none !important; }
  .hero-badge       { font-size: .74rem; padding: .5rem .85rem; margin-bottom: .85rem; line-height: 1.5; }
  .hero-top         { grid-template-columns: 1fr; gap: 0; }
  .hero             { padding: 2rem 0 2.2rem; }
  .form-stmt br     { display: none; }
  .form-field       { flex-direction: column; }
  .btn-sub          { justify-content: center; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.75rem; }
}
