/* PsicoMario · Sistema visual (guía de identidad v1)
   Azul petróleo #103C46 (principal) · Turquesa #16B8C8 (acento) · Verde lima #A8D84F (acento secundario)
   Carbón #22272B (texto) · Gris claro #F5F7F8 (fondos). Títulos en Montserrat, texto en Inter. */

:root {
  --petrol: #103C46;
  --turquoise: #16B8C8;
  --lime: #A8D84F;
  --charcoal: #22272B;
  --ink: #103C46;
  --ink-soft: #3D4F55;
  --muted: #5E6B70;
  --primary: #103C46;
  --primary-600: #0B2D35;
  --primary-50: #E6F4F6;
  --accent: #16B8C8;
  --accent-600: #12A1AF;
  --accent-ink: #097582;
  --accent-strong: #0E97A5;
  --accent-50: #E3F6F8;
  --lime-50: #F1F8E3;
  --sand: #F5F7F8;
  --sand-2: #EAF0F2;
  --paper: #FFFFFF;
  --line: #DCE4E7;
  --on-dark: #D5E4E7;
  --on-dark-muted: #9DB8BE;
  --success: #2E7D4F;
  --danger: #B3402F;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(16, 60, 70, .06), 0 8px 24px rgba(16, 60, 70, .07);
  --shadow-lg: 0 24px 60px rgba(16, 60, 70, .14);
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--petrol); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--lime); }
.section-dark .eyebrow, .lead-box .eyebrow { color: var(--lime); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 .98rem/1.2 var(--display); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--petrol); }
.btn-primary:hover { background: var(--accent-600); color: var(--petrol); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-600); color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; font-weight: 500; font-size: .96rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: 72px 0 auto 0; background: var(--sand); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; display: none; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-actions .btn { width: 100%; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 32px; } }

/* Mensajes */
.messages { list-style: none; margin: 16px auto 0; padding: 0 20px; max-width: var(--container); }
.message { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; background: var(--primary-50); color: var(--primary-600); border: 1px solid #cfe2de; }
.message.error { background: #FBEAE7; color: var(--danger); border-color: #f1c9c2; }
.message.success { background: #E7F4EC; color: var(--success); border-color: #c5e3d0; }

/* Hero */
.hero { padding: 64px 0 88px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero .lead { max-width: 560px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-soft); font-size: .93rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.hero-visual { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-photo { position: relative; z-index: 1; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #8a9593; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-shape { position: absolute; z-index: 0; border-radius: 50%; }
.hero-shape.s1 { width: 78%; aspect-ratio: 1; background: var(--accent); right: -18%; top: -8%; }
.hero-shape.s2 { width: 34%; aspect-ratio: 1; background: var(--lime); left: -10%; bottom: 10%; }
.hero-shape.s3 { width: 46%; aspect-ratio: 1; border: 2px solid var(--accent); right: -4%; bottom: -10%; background: transparent; }
.hero-card { position: absolute; z-index: 2; left: -28px; bottom: 32px; background: var(--paper); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; }
.hero-card strong { display: block; font-size: .98rem; }
.hero-card span { font-size: .82rem; color: var(--muted); }
.hero-card .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--lime-50); display: grid; place-items: center; color: var(--petrol); flex: none; }
.hero-card .dot svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { width: min(360px, 88%); }
  .hero-card { left: -12px; }
}

/* Tarjetas */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }

/* Hexaflex */
.hexaflex { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 32px; align-items: center; }
.hexaflex-col { display: grid; gap: 20px; }
.hex-item { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px 20px; transition: background .2s, border-color .2s; }
.hex-item:hover, .hex-item.active { background: rgba(255, 255, 255, .1); border-color: var(--accent); }
.hex-item h3 { font-size: 1.1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.hex-item h3 .tag { font: 600 .68rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lime); border: 1px solid rgba(168, 216, 79, .45); border-radius: 999px; padding: 4px 8px; }
.hex-item p { font-size: .93rem; margin: 0; color: var(--on-dark-muted); }
.hex-svg { width: 100%; height: auto; }
.hex-svg .node { cursor: pointer; transition: transform .2s; transform-origin: center; transform-box: fill-box; }
.hex-svg .node:hover circle, .hex-svg .node.active circle { fill: var(--accent); }
.hex-svg .node:hover text, .hex-svg .node.active text { fill: var(--petrol); }
.hex-svg text { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: #fff; }
@media (max-width: 1000px) {
  .hexaflex { grid-template-columns: 1fr; }
  .hexaflex .hex-svg-wrap { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Cursos */
.course-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.course-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: var(--primary); }
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-cover.generated { display: grid; place-items: center; background: var(--petrol); }
.course-cover.generated.live { background: linear-gradient(135deg, var(--petrol) 0%, #0F6B78 100%); }
.course-cover.generated .cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-cover.generated .cover-symbol { position: relative; width: 20%; height: auto; object-fit: contain; }
.course-cover .badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; background: var(--primary-50); color: var(--primary-600); }
.badge-live { background: var(--lime); color: var(--petrol); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--petrol); animation: pulse 1.6s infinite; }
.badge-light { background: rgba(255, 255, 255, .92); color: var(--ink); }
.badge-outline { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .badge-live::before { animation: none; } * { scroll-behavior: auto; transition: none !important; } }
.course-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-body h3 { font-size: 1.28rem; margin: 0; }
.course-body p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); }
.course-meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-meta svg { width: 16px; height: 16px; }
.course-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; margin-left: 6px; font-family: var(--sans); font-weight: 400; }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 32px; }
.filters .field { margin: 0; min-width: 160px; flex: 1; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); text-decoration: none; font-size: .9rem; font-weight: 500; }
.chip.active, .chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Formularios */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .errors { color: var(--danger); font-size: .85rem; margin: 6px 0 0; padding: 0; list-style: none; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 56px 0 88px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px; } }
.non-field-errors { background: #FBEAE7; color: var(--danger); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }

/* Ficha de curso */
.course-hero { padding: 56px 0; background: var(--petrol); color: var(--on-dark); position: relative; overflow: hidden; }
.course-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(22, 184, 200, .35); right: -140px; top: -180px; pointer-events: none; }
.course-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.course-hero .lead { color: var(--on-dark-muted); }
.course-hero .badge { background: rgba(255, 255, 255, .12); color: #fff; }
.course-hero .badge-live { background: var(--lime); color: var(--petrol); }
.breadcrumbs { font-size: .86rem; margin-bottom: 18px; color: var(--on-dark-muted); }
.breadcrumbs a { color: var(--on-dark); }
.course-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.course-main section { margin-bottom: 48px; }
.course-main h2 { font-size: 1.7rem; }
.buy-box { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); margin-top: -180px; }
.buy-box .price { font-size: 2.2rem; }
.buy-box ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: .93rem; }
.buy-box li { display: flex; gap: 10px; align-items: flex-start; }
.buy-box li svg { width: 18px; height: 18px; color: var(--primary); flex: none; margin-top: 3px; }
.country-select { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.country-select select { padding: 6px 10px; font-size: .85rem; width: auto; }
@media (max-width: 960px) {
  .course-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; margin-top: 0; order: -1; }
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--primary-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F5F5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.fact { border-left: 3px solid var(--lime); padding-left: 14px; }
.fact strong { display: block; color: #fff; font-size: 1.05rem; }
.fact span { font-size: .82rem; color: var(--on-dark-muted); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

.syllabus { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.syllabus details { border-top: 1px solid var(--line); }
.syllabus details:first-child { border-top: 0; }
.syllabus summary { padding: 18px 22px; cursor: pointer; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.syllabus summary::-webkit-details-marker { display: none; }
.syllabus summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); }
.syllabus details[open] summary::after { content: "–"; }
.syllabus ul { list-style: none; margin: 0; padding: 0 22px 18px; display: grid; gap: 8px; }
.syllabus li { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; color: var(--ink-soft); }
.sessions-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
.sessions-table th, .sessions-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.sessions-table th { background: var(--sand-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.table-wrap { overflow-x: auto; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-ink); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }

.instructor { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.instructor img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
@media (max-width: 520px) { .instructor { grid-template-columns: 1fr; } }

/* Pasos */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.step::after { content: ""; position: absolute; top: 22px; left: 64px; width: 28px; height: 3px; border-radius: 2px; background: var(--lime); }

/* About */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 360px; } }

/* Testimonios */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.quote::before { content: "“"; font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--lime); position: absolute; top: 12px; right: 22px; }
.quote footer { margin-top: 16px; font-size: .9rem; }
.quote footer strong { display: block; }

/* Lead */
.lead-box { background: var(--petrol); color: var(--on-dark); position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lead-box h2 { color: #fff; }
.lead-box::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); right: -90px; top: -120px; opacity: .9; }
.lead-box::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--lime); right: 60px; top: -70px; }
.lead-box > * { position: relative; z-index: 1; }
.lead-box .check { color: var(--on-dark-muted); }
.lead-box .check a { color: #fff; }
.lead-form { display: grid; gap: 12px; }
@media (max-width: 860px) { .lead-box { grid-template-columns: 1fr; padding: 32px 24px; } }

/* CTA final */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 720px; margin: 0 auto 16px; }

/* Blog */
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.post-card h3 { margin: 0; font-size: 1.25rem; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lime); font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.page-head { padding: 64px 0 40px; }
.notice { background: var(--accent-50); border: 1px solid #BDE7EC; border-radius: 10px; padding: 14px 18px; font-size: .92rem; color: var(--petrol); }

/* Aula */
.classroom-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 32px 0; }
.progress { height: 10px; background: var(--sand-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.classroom-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 32px 0 80px; align-items: start; }
@media (max-width: 960px) { .classroom-grid { grid-template-columns: 1fr; } }
.module-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.module-list h3 { font-size: 1rem; font-family: var(--sans); padding: 14px 18px; margin: 0; background: var(--sand-2); }
.module-list ul { list-style: none; margin: 0; padding: 6px 0; }
.module-list a { display: flex; gap: 10px; align-items: center; padding: 9px 18px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.module-list a:hover { background: var(--sand); }
.module-list a.current { background: var(--primary-50); font-weight: 600; }
.module-list .status { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.module-list .done .status { background: var(--primary); border-color: var(--primary); }
.module-list .done .status::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.module-list .dur { margin-left: auto; font-size: .8rem; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--petrol); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty { display: grid; place-items: center; color: var(--on-dark-muted); text-align: center; padding: 24px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h3 { font-size: 1.1rem; }
.session-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.session-row:first-of-type { border-top: 0; }
.status-pill { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand-2); color: var(--ink-soft); }
.status-pill.ok { background: #E7F4EC; color: var(--success); }
.status-pill.warn { background: #FFF4DE; color: #8A5A00; }
.status-pill.bad { background: #FBEAE7; color: var(--danger); }

.quiz-question { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.quiz-question legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.quiz-question fieldset { border: 0; margin: 0; padding: 0; }
.quiz-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.quiz-option:hover { background: var(--sand); }
.quiz-option input { margin-top: 5px; accent-color: var(--primary); }
.quiz-option.correct { background: #E7F4EC; }
.quiz-option.wrong { background: #FBEAE7; }

/* Tablas genéricas */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--paper); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--petrol); }
.stat span { font-size: .85rem; color: var(--muted); }

/* Demo gateway */
.demo-gateway { max-width: 480px; margin: 64px auto; }

/* Footer */
.site-footer { background: var(--petrol); color: var(--on-dark-muted); padding: 64px 0 32px; font-size: .93rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand img { height: 52px; }
.footer-tagline { font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-top: 18px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: var(--on-dark); }
.socials a:hover { background: var(--accent); }
.socials a:hover svg { fill: var(--petrol); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* Certificado imprimible (plantilla de la guía de marca) */
.cert-page { padding: 40px 0 80px; }
.cert-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.certificate { width: 100%; max-width: 1050px; aspect-ratio: 297 / 210; margin: 0 auto; background: var(--sand); position: relative; box-shadow: var(--shadow-lg); padding: 7.5% 8.5% 6%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; container-type: inline-size; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.certificate::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.6%; background: var(--petrol); }
.cert-frame { position: absolute; inset: 5.2% 3.9% 5.4%; border: 2px solid var(--petrol); border-radius: 2.2cqi; pointer-events: none; }
.cert-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.cert-orb.o1 { width: 19%; aspect-ratio: 1; background: var(--turquoise); right: -1.9%; top: -10%; }
.cert-orb.o2 { width: 9.7%; aspect-ratio: 1; background: var(--lime); right: 0; top: -6.7%; }
.cert-orb.o3 { width: 9.7%; aspect-ratio: 1; background: var(--sand); right: .3%; top: -7.6%; }
.cert-top, .cert-center, .cert-bottom, .cert-foot { position: relative; z-index: 1; }
.cert-top img { width: 32%; height: auto; }
.cert-center { text-align: center; }
.cert-center .cert-type { font-family: var(--display); font-size: 3cqi; font-weight: 800; color: var(--petrol); margin: 0 0 1.6cqi; letter-spacing: .01em; text-transform: uppercase; }
.cert-center .label { font-size: 1.6cqi; color: var(--muted); margin: 0 0 1.2cqi; }
.cert-center h1 { display: inline-block; font-size: 3.6cqi; margin: 0 0 2cqi; padding: 0 3cqi .6cqi; color: var(--petrol); border-bottom: .3cqi solid var(--turquoise); }
.cert-center h2 { font-size: 2.8cqi; margin: 0 0 1cqi; color: var(--petrol); }
.cert-center p { font-size: 1.5cqi; margin: 0; color: var(--muted); }
.cert-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: 1.3cqi; color: var(--petrol); gap: 6cqi; padding: 0 3%; }
.cert-sign { text-align: center; flex: 0 1 42%; }
.cert-sign .line { border-top: 1.5px solid var(--petrol); margin-bottom: .9cqi; }
.cert-sign small { display: block; color: var(--muted); font-size: 1.1cqi; }
.cert-foot { text-align: center; font-size: 1.05cqi; color: var(--petrol); margin-top: 1.6cqi; }
.cert-foot .code { font-family: ui-monospace, monospace; font-weight: 700; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .site-header, .site-footer, .cert-actions, .messages, .whatsapp-float, .no-print { display: none !important; }
  .cert-page { padding: 0; }
  .certificate { box-shadow: none; max-width: none; width: 297mm; height: 210mm; aspect-ratio: auto; }
}
.country-select svg { width: 16px; height: 16px; }
.video-empty svg { width: 44px; height: 44px; margin: 0 auto 8px; }
.panel a svg, .module-list svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.btn svg { width: 18px; height: 18px; }
.grid > [data-modality] > .course-card { height: 100%; }

/* Sobre Mario */
.about-bio p { color: var(--ink-soft); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-stats div { border-left: 3px solid var(--lime); padding-left: 16px; }
.about-stats strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--petrol); line-height: 1.2; }
.about-stats span { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
.timeline-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.timeline-title svg { width: 24px; height: 24px; color: var(--accent-ink); }
.timeline { list-style: none; margin: 16px 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline li:first-child::before { background: var(--accent); }
.tl-period { display: block; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.timeline strong { display: block; font-family: var(--display); color: var(--petrol); font-size: 1.05rem; }
.tl-place { display: block; color: var(--ink-soft); font-size: .95rem; }
.timeline p { margin: 6px 0 0; font-size: .93rem; color: var(--muted); }
.model-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 22px; }
.model-card strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: var(--accent); }
.model-card span { color: var(--on-dark); font-size: .95rem; }
.model-card:first-child { border-color: var(--lime); }
.model-card:first-child strong { color: var(--lime); }
.edu-list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 16px; }
.edu-list li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.edu-list strong { display: block; font-family: var(--display); color: var(--petrol); font-size: 1rem; line-height: 1.35; }
.edu-list span { font-size: .88rem; color: var(--muted); }

/* Testimonios */
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.quote-highlight { font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.5; color: var(--petrol); margin: 0; padding-right: 36px; }
.quote-more summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--accent-ink); list-style: none; }
.quote-more summary::-webkit-details-marker { display: none; }
.quote-more summary::after { content: " +"; }
.quote-more[open] summary::after { content: " –"; }
.quote-more p { font-size: .95rem; color: var(--ink-soft); margin: 10px 0 0; }
.quote footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }

/* Masterclass */
.announce { background: var(--petrol); color: var(--on-dark); font-size: .9rem; }
.announce[hidden] { display: none; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center; }
.announce-tag { background: var(--lime); color: var(--petrol); font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.announce a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.announce a:hover { color: #fff; }
@media (max-width: 640px) { .announce-text { display: none; } }
.mc-promo { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: var(--radius-lg); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.mc-promo h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.mc-promo p { color: var(--ink-soft); }
.mc-promo-actions { flex: none; }
@media (max-width: 760px) { .mc-promo { flex-direction: column; align-items: flex-start; padding: 24px; } }
.mc-hero { position: relative; overflow: hidden; padding: 64px 0 80px; }
.mc-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.mc-orb.o1 { width: 520px; height: 520px; background: var(--accent-50); right: -160px; top: -200px; }
.mc-orb.o2 { width: 140px; height: 140px; background: var(--lime); opacity: .35; left: -50px; bottom: 30px; }
.mc-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.mc-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.mc-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.mc-date { display: flex; align-items: baseline; gap: 10px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.mc-day { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--petrol); }
.mc-month { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); }
.mc-card ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.mc-card li { display: flex; gap: 12px; align-items: flex-start; }
.mc-card li svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.mc-card li strong { display: block; color: var(--petrol); line-height: 1.3; }
.mc-card li span { font-size: .85rem; color: var(--muted); }
.mc-split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .mc-hero-grid, .mc-split { grid-template-columns: 1fr; } .mc-hero { padding: 40px 0 56px; } }
.model-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.model-tag { font-family: var(--display); font-weight: 700; font-size: .85rem; letter-spacing: .06em; color: var(--petrol); background: var(--paper); border: 1.5px solid var(--accent); border-radius: 999px; padding: 6px 14px; }
.model-tag:first-child { background: var(--accent); }
