/* ==========================================================
   IA para el Mundo — estilos del sitio
   Colores tomados del brochure del curso
   ========================================================== */
:root {
  --navy: #1b255a;
  --navy-2: #26326e;
  --navy-3: #313f85;
  --amber: #f4a62a;
  --amber-dark: #d98a10;
  --teal: #12807a;
  --teal-soft: #e3f1f0;
  --ice: #eef3f8;
  --ice-2: #e1eaf3;
  --ink: #1b2240;
  --muted: #5a6382;
  --line: #dbe3ee;
  --white: #ffffff;
  --wa: #128c5e;
  --wa-hover: #0e7a51;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(27, 37, 90, 0.10);
  --shadow-lg: 0 20px 50px rgba(27, 37, 90, 0.18);
  --wrap: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}
.eyebrow.on-dark { color: var(--amber); }

.section { padding: 88px 0; }
.section.alt { background: var(--ice); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 8px 20px rgba(244,166,42,.35); }
.btn-primary:hover { background: #ffb53f; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 37, 90, .97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
}
.brand small { display: block; font-weight: 500; font-size: .72rem; color: #b9c3e8; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: #dfe5fb; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--amber); }
.nav .btn { padding: .6em 1.2em; font-size: .92rem; color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% 20%, rgba(18,128,122,.25), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(244,166,42,.12), transparent 60%),
    var(--navy);
  color: #fff;
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 .hl { color: var(--amber); }
.hero .lead { font-size: 1.15rem; color: #cfd7f5; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-art { border-radius: 28px; overflow: hidden; }
.hero-art img { width: 100%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38em .95em; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.35); color: #fff;
  font-size: .88rem; font-weight: 600;
}
.chip.solid { background: var(--amber); color: var(--navy); border-color: var(--amber); }
.chip.light { border-color: var(--line); color: var(--navy); background: #fff; }

.quote { font-style: italic; color: #cfd7f5; margin-top: 26px; font-weight: 500; }

/* ---------- Tarjetas de cursos ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.course-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course-card .thumb { background: var(--navy); aspect-ratio: 16/10; position: relative; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card .thumb .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px;
}
.course-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.3rem; color: var(--navy); }
.course-card p { color: var(--muted); font-size: .97rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .88rem; color: var(--ink); font-weight: 600; margin: 4px 0 18px; }
.meta span { display: inline-flex; align-items: center; gap: .35em; }
.meta svg { width: 16px; height: 16px; color: var(--teal); }
.course-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.price small { font-size: .8rem; font-weight: 600; color: var(--muted); display: block; }

.course-card.soon .thumb {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
}
.course-card.soon .thumb .icon { width: 74px; height: 74px; color: var(--amber); opacity: .95; }
.course-card.soon .thumb .badge { background: #fff; }

/* ---------- Beneficios / ¿Por qué? ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 16px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.15rem; color: var(--navy); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Docente ---------- */
.teacher {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  background: var(--navy); color: #fff; border-radius: 24px; padding: 40px;
}
.teacher .avatar {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-size: 2.4rem; font-weight: 800;
}
.teacher h3 { font-size: 1.6rem; margin-bottom: .3em; }
.teacher ul { margin: .6em 0 0; padding-left: 1.1em; color: #cfd7f5; }
.teacher li { margin-bottom: .3em; }

/* ---------- Página de curso ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; z-index: 2; }
.fact { background: #fff; border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.fact .k { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.fact .v { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-top: 4px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312807a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step .t { font-size: .85rem; font-weight: 700; color: var(--teal); }
.step h3 { font-size: 1.15rem; color: var(--navy); margin: .2em 0 .4em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Sesiones (acordeón) */
.sessions { display: grid; gap: 14px; }
.session { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.session summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px;
}
.session summary::-webkit-details-marker { display: none; }
.session .num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
}
.session .date { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.session .title { font-weight: 700; color: var(--navy); font-size: 1.1rem; line-height: 1.3; }
.session .chev { width: 24px; height: 24px; color: var(--muted); transition: transform .2s; }
.session[open] .chev { transform: rotate(180deg); }
.session .content { padding: 0 24px 24px 88px; color: var(--ink); }
.session .content h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin: 18px 0 8px; }
.session .content ul { margin: 0; padding-left: 1.1em; }
.session .content li { margin-bottom: .45em; }
.session .content .product { background: var(--ice); border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: 8px; margin-top: 16px; }

/* Herramientas */
.tool-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tool-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tool-group h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.tool-group .chips { margin-top: 0; gap: 8px; }
.tool-group .chip { border: 0; background: var(--ice-2); color: var(--navy); font-size: .85rem; }

/* Tabla de evaluación */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td.w { font-weight: 800; color: var(--navy); white-space: nowrap; }

.note { background: #fff7e8; border: 1px solid #f6d79f; border-radius: var(--radius-sm); padding: 16px 20px; color: #6b4a0e; font-size: .95rem; }

/* ---------- Formulario ---------- */
.register { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.register-info { background: var(--navy); color: #fff; border-radius: 24px; padding: 36px; position: sticky; top: 96px; }
.register-info h2 { font-size: 1.9rem; }
.register-info p { color: #cfd7f5; }
.register-info .price-big { font-size: 2.6rem; font-weight: 800; color: var(--amber); line-height: 1; margin: 6px 0 18px; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.contact-list a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--amber); }
.contact-list svg { width: 20px; height: 20px; color: var(--amber); flex: none; }

.form-card { background: #fff; border-radius: 24px; padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--navy); }
.field label .req { color: #c23b3b; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; padding: .78em .95em; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18,128,122,.15); background: #fff;
}
.field .hint { font-size: .82rem; color: var(--muted); }
.field.invalid input, .field.invalid select { border-color: #c23b3b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.hp { position: absolute !important; left: -9999px !important; }
.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-actions .btn-primary { min-width: 220px; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: var(--teal-soft); color: #0b5d58; border: 1px solid #b6dedb; }
.form-status.err { display: block; background: #fdecec; color: #8f2424; border: 1px solid #f3c2c2; }

/* ---------- Pie ---------- */
.site-footer { background: #121a44; color: #b9c3e8; padding: 48px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #dfe5fb; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: .85rem; text-align: center; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease, background .2s ease;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-hover); }
.wa-float svg { width: 36px; height: 36px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip {
  position: fixed; right: 96px; bottom: 36px; z-index: 100;
  background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 12px;
  box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: .2s;
}
.wa-float:hover + .wa-tip, .wa-float:focus-visible + .wa-tip { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col, .register { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .features, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .register-info { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 20px 20px; display: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card, .register-info { padding: 24px; }
  .teacher { grid-template-columns: 1fr; text-align: left; padding: 28px; }
  .teacher .avatar { width: 84px; height: 84px; font-size: 1.7rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fact { padding: 14px; }
  .course-grid { grid-template-columns: 1fr; }
  .session summary { grid-template-columns: auto 1fr; padding: 16px; gap: 14px; }
  .session .chev { display: none; }
  .session .content { padding: 0 16px 20px; }
  .wa-float { right: 16px; bottom: 16px; width: 58px; height: 58px; }
  .wa-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Foto y biografía del docente ---------- */
.teacher { grid-template-columns: 280px 1fr; gap: 40px; }
.teacher-photo {
  width: 100%; height: auto; align-self: center; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px;
  border: 4px solid var(--amber); box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.teacher .bio { color: #cfd7f5; font-size: 1.02rem; line-height: 1.7; margin: .4em 0 0; }
.teacher .bio strong { color: #fff; }
.teacher-stack { grid-template-columns: 1fr; gap: 24px; }
.teacher-stack .teacher-photo { max-width: 220px; align-self: start; }
@media (max-width: 760px) {
  .teacher { grid-template-columns: 1fr; gap: 24px; }
  .teacher-photo { max-width: 240px; }
}
