/* ============================================================
   COMPONENTS.CSS — Componentes reutilizables entre las 3 páginas
   Botones · Badges · Tabla de horarios · Formulario · Timeline
   Perks · Cajas de aviso · Price block · CTA · Instructor
   ============================================================ */

/* ─── BOTONES ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,111,255,0.25);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(0,111,255,0.35); }

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(252,117,44,0.25);
}
.btn-orange:hover { background: var(--orange-dark); box-shadow: 0 6px 20px rgba(252,117,44,0.35); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-light); }

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

.btn-lg { font-size: 16px; padding: 15px 42px; }
.btn-block { width: 100%; }

/* WhatsApp */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 16px;
  padding: 15px 28px;
  border-radius: 10px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.4); }
.btn-whatsapp .wa-icon { font-size: 22px; }

/* ─── BADGES (sistema unificado) ────────────────────────── */
/* Uso: <span class="badge badge--blue">AZ-900</span>
   Variantes de forma: .badge--pill (redondeada), .badge--solid */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--blue   { background: var(--blue-light);   color: var(--blue);   border-color: var(--blue-mid); }
.badge--teal   { background: var(--teal-light);   color: var(--teal);   border-color: var(--teal-mid); }
.badge--orange { background: var(--orange-light); color: var(--orange); border-color: var(--orange-mid); }
.badge--purple { background: var(--purple-light); color: var(--purple); border-color: var(--purple-mid); }
.badge--red    { background: var(--red-light);    color: var(--red);    border-color: var(--red-mid); }
.badge--new    { background: #FFF7E0;             color: #B45309;       border-color: #FBBF24; }
.badge--muted  { background: var(--surface-2);    color: var(--muted);  border-color: var(--border); }
.badge--solid  { background: var(--blue);         color: #fff;          border-color: transparent; }
.badge--pill   { border-radius: 20px; padding: 5px 14px; }

/* ─── TABLA DE HORARIOS (schedule) ──────────────────────── */
.schedule-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  font-size: 13px;
}
.schedule-table thead tr { background: var(--blue); color: var(--white); }
.schedule-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em;
}
.schedule-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--bg); }
.tz-flag { font-size: 15px; margin-right: 5px; }
.tz-time { font-family: var(--font-heading); font-weight: 600; color: var(--blue); }
.tz-note { font-size: 11px; color: var(--muted-2); }

/* ─── FORMULARIO ────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-mid); letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,111,255,0.1);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-privacy { margin-top: 10px; font-size: 11px; color: var(--muted-2); text-align: center; line-height: 1.5; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ─── CAJAS DE AVISO ────────────────────────────────────── */
.notice {
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}
.notice--info   { background: var(--teal-light);   border: 1px solid var(--teal);   border-left: 4px solid var(--teal); }
.notice--info strong   { color: var(--teal); }
.notice--warn   { background: var(--orange-light); border: 1px solid var(--orange); border-left: 4px solid var(--orange); }
.notice--warn strong   { color: var(--orange); }
.notice--alert  { background: var(--red-light);    border: 1px solid var(--red-mid); border-left: 4px solid var(--red); }
.notice--alert strong  { color: var(--red); }

/* ─── PRICE BLOCK (brochures) ───────────────────────────── */
.price-block {
  display: inline-flex;
  align-items: center; gap: 16px;
  background: var(--blue-light);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 18px 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.price-old { font-size: 17px; color: var(--muted-2); text-decoration: line-through; }
.price-sep { color: var(--muted-2); }
.price-new {
  font-family: var(--font-heading);
  font-size: clamp(34px, 7vw, 42px); font-weight: 700;
  color: var(--blue); line-height: 1;
}
.price-new sub { font-size: 16px; vertical-align: super; margin-right: 2px; }
.price-tag {
  background: var(--orange);
  color: var(--white); font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.price-note { font-size: 12px; color: var(--muted); }
/* Dual price block (Perú + Internacional) */
.price-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price-group-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.price-group-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.price-group-div { width: 1px; height: 56px; background: var(--border-strong); align-self: center; margin: 0 4px; }
.price-new.price-intl { font-size: clamp(26px, 5vw, 32px); }
.price-usd-label { font-size: 16px; font-weight: 600; margin-left: 2px; }
.price-facilidades { font-size: 13px; color: var(--teal); font-weight: 600; margin-top: 6px; }
/* CTA dual prices */
.cta-dual-prices { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 10px; }
.cta-price-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cta-region-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 2px; }
.cta-price-vdiv { width: 1px; height: 70px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.cta-new--sm { font-size: clamp(26px, 5vw, 36px); }
.cta-usd { font-size: 16px; font-weight: 600; }
/* CTA modality extras (AI-901) */
.cta-mod-intl { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.cta-mod-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 16px; }

/* ─── PRICE MODALITY CARDS (AI-901: 2 opciones) ─────────── */
.price-modality-wrap {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 6px 0 0;
}
.price-modality-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px 28px; display: flex; flex-direction: column; align-items: center;
  text-align: center; min-width: 155px; position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pm-card--featured { border-color: var(--teal); box-shadow: 0 4px 20px rgba(0,176,167,0.12); }
.pm-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap; letter-spacing: 0.04em;
}
.pm-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 12px; margin-top: 2px;
}
.pm-prices { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.pm-price-row { display: flex; align-items: center; gap: 8px; }
.pm-flag { font-size: 15px; }
.pm-amount {
  font-family: var(--font-heading); font-size: clamp(26px, 5.5vw, 34px);
  font-weight: 700; color: var(--blue); line-height: 1;
}
.pm-amount sub { font-size: 13px; vertical-align: super; margin-right: 1px; font-weight: 600; }
.pm-amount--sm { font-size: clamp(19px, 3.5vw, 24px); color: var(--muted); }
.pm-usd { font-size: 12px; font-weight: 600; margin-left: 2px; }
.pm-includes { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; max-width: 140px; }
.pm-old { font-size: 12px; color: var(--muted-2); text-decoration: line-through; margin-left: 2px; }

/* ─── PERKS (incluye) ───────────────────────────────────── */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.perk {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.perk:hover { border-color: var(--blue); box-shadow: 0 2px 12px rgba(0,111,255,0.08); }
.perk-icon { font-size: 26px; margin-bottom: 10px; }
.perk-title { font-family: var(--font-heading); font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 5px; }
.perk-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ─── TIMELINE (cronograma) ─────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--teal));
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -24px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue);
  background: var(--blue);
}
/* Variantes de color del nodo */
.timeline-item.tl-teal::before   { background: var(--teal);    box-shadow: 0 0 0 2px var(--teal); }
.timeline-item.tl-orange::before { background: var(--orange);  box-shadow: 0 0 0 2px var(--orange); }
.timeline-item.tl-purple::before { background: var(--purple);  box-shadow: 0 0 0 2px var(--purple); }
.timeline-item.tl-muted::before  { background: var(--muted-2); box-shadow: 0 0 0 2px var(--muted-2); }

.tl-week {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 3px;
}
.tl-teal   .tl-week { color: var(--teal); }
.tl-orange .tl-week { color: var(--orange); }
.tl-purple .tl-week { color: var(--purple); }
.tl-muted  .tl-week { color: var(--muted-2); }
.tl-title { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--text); margin-bottom: 3px; }
.tl-desc { font-size: 13px; color: var(--muted); }

.break-box {
  background: var(--surface-2);
  border: 1px dashed var(--muted-2);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 13px; color: var(--muted);
}
.break-box strong { color: var(--text); }

/* ─── CTA BLOCK (brochures) ─────────────────────────────── */
.cta-block {
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.cta-block::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(0,166,139,0.15);
}
.cta-block > * { position: relative; z-index: 1; }
.cta-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 12px; }
.cta-title { font-family: var(--font-heading); font-size: clamp(22px, 4vw, 34px); font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.2; }
.cta-sub { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.cta-price-wrap { display: inline-flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.cta-old { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: line-through; margin-bottom: 4px; }
.cta-new { font-family: var(--font-heading); font-size: clamp(40px, 9vw, 54px); font-weight: 700; color: var(--white); line-height: 1; }
.cta-new sub { font-size: 20px; vertical-align: super; margin-right: 3px; }
.cta-save { font-size: 12px; color: #A8F0C0; margin-top: 6px; font-weight: 600; }
.cta-guarantee { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* ─── INSTRUCTOR CARD (brochures) ───────────────────────── */
.instructor-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; gap: 24px; align-items: flex-start;
}
.instructor-photo {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0,111,255,0.2);
}
.instructor-name { font-family: var(--font-heading); font-weight: 700; font-size: 20px; color: var(--text); margin-bottom: 4px; }
.instructor-title { font-size: 13px; color: var(--blue); margin-bottom: 12px; font-weight: 500; }
.instructor-bio { font-size: 13px; color: var(--muted); line-height: 1.7; }
.cert-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
@media (max-width: 500px) { .instructor-card { flex-direction: column; align-items: center; text-align: center; } }

/* ─── ACORDEÓN (temario) ────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.accordion-item.is-teal   { border-left-color: var(--teal); }
.accordion-item.is-orange { border-left-color: var(--orange); }
.accordion-item.is-purple { border-left-color: var(--purple); }
.accordion-item.open { box-shadow: 0 6px 24px rgba(0,111,255,0.10); }

.accordion-trigger {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: none; border: none; cursor: pointer; text-align: left;
  transition: background var(--t-fast);
}
.accordion-trigger:hover { background: var(--surface-2); }
.accordion-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.accordion-title {
  flex: 1;
  font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--text); line-height: 1.3;
}
.accordion-weight { font-size: 12px; font-weight: 600; color: var(--muted-2); white-space: nowrap; }
.accordion-chevron {
  width: 22px; height: 22px; flex-shrink: 0; color: var(--blue);
  transition: transform var(--t-mid);
}
.accordion-item.is-teal   .accordion-chevron { color: var(--teal); }
.accordion-item.is-orange .accordion-chevron { color: var(--orange); }
.accordion-item.is-purple .accordion-chevron { color: var(--purple); }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }

.accordion-panel { height: auto; overflow: hidden; transition: height var(--t-mid); }
.accordion-panel-inner { padding: 2px 20px 18px; }
