@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --ink: #072637;
  --brand: #005484;
  --brand-dark: #003d60;
  --accent: #61ce70;
  --paper: #ffffff;
  --muted: #f2f7f9;
  --line: #d7e3e8;
  --text-muted: #526875;
  --shadow: 0 24px 70px rgba(0, 37, 59, 0.13);
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem clamp(1.25rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.original-header { min-height: 76px; padding: 0; border: 0; background: #00283d; color: white; }
.header-inner { width: min(1152px, calc(100% - 40px)); min-height: 76px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.original-brand { color: white; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.original-brand strong { color: white; font-weight: 800; }
.original-nav { display: flex; align-items: center; gap: 2.1rem; }
.original-nav a, .login-link { color: rgba(255,255,255,.92); text-decoration: none; font-size: .95rem; font-weight: 600; }
.original-nav a:hover, .login-link:hover { color: var(--accent); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.6rem; }
.login-link { font-weight: 800; }
.cart-link { position: relative; display: grid; place-items: center; color: white; text-decoration: none; }
.cart-link span { position: absolute; right: -9px; top: -9px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #d71b1b; color: white; font-size: .7rem; font-weight: 800; }
.brand { font-size: 1.05rem; letter-spacing: .055em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--brand); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { text-decoration: none; font-weight: 650; }
.hero { min-height: 78vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 7vw, 7rem); background: linear-gradient(135deg, #f8fcfd 0%, #eaf4f7 100%); }
.original-hero { position: relative; min-height: 620px; display: block; padding: 0; background: url('/images/hero-equipo.webp?v=6') center center / cover no-repeat; color: white; }
.original-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,84,132,.9) 0%, rgba(0,84,132,.8) 52%, rgba(0,84,132,.72) 100%); }
.original-hero-content { position: relative; z-index: 1; width: min(1152px, calc(100% - 40px)); max-width: none; min-height: 620px; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.original-hero-content h1 { max-width: 620px; margin-bottom: 2.2rem; color: white; font-size: clamp(2.5rem, 4.5vw, 4.3rem); font-weight: 850; letter-spacing: -.035em; }
.original-hero-content .lead { max-width: 650px; color: white; font-size: 1.08rem; line-height: 1.7; }
.original-primary { background: #61ce70; color: white; border-radius: 3px; box-shadow: none; padding: .9rem 2rem; }
.original-primary:hover { background: #4ebb5e; }
.original-secondary { color: white; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; background: rgba(255,255,255,.07); padding: .9rem 2rem; }
.original-secondary:hover { background: rgba(255,255,255,.14); }
.hero-copy { max-width: 760px; }
.eyebrow { color: var(--brand); font-size: .79rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -.055em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; max-width: 800px; }
.lead { color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 680px; }
.hero-actions { display: flex; align-items: center; gap: 1.25rem; margin: 2rem 0; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .75rem 1.2rem; border-radius: .5rem; font-weight: 800; text-decoration: none; }
.button-primary { background: var(--brand); color: white; box-shadow: 0 8px 25px rgba(0, 84, 132, .22); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary { border: 1px solid var(--brand); color: var(--brand); }
.text-link { color: var(--brand); font-weight: 800; }
.trust-list { display: flex; gap: 1.5rem; padding: 0; margin: 0; list-style: none; color: var(--text-muted); flex-wrap: wrap; }
.trust-list li::before { content: "✓"; color: #267c34; font-weight: 900; margin-right: .4rem; }
.hero-media { position: relative; }
.hero-media > img { display: block; width: 100%; height: clamp(390px, 48vw, 620px); object-fit: cover; border-radius: 1.4rem; box-shadow: var(--shadow); }
.hero-note { position: absolute; right: -1rem; bottom: -1.5rem; max-width: 300px; padding: 1.25rem; border-radius: .8rem; background: var(--ink); color: white; box-shadow: var(--shadow); }
.hero-note strong, .hero-note span { display: block; }
.hero-note span { color: #c8d8df; font-size: .9rem; margin-top: .35rem; }
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--paper); padding: 0 clamp(1.25rem, 7vw, 7rem); }
.proof-strip div { padding: 1.5rem; border-right: 1px solid var(--line); }
.proof-strip div:first-child { border-left: 1px solid var(--line); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip span { color: var(--text-muted); font-size: .88rem; }
.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 7vw, 7rem); }
.section > p { max-width: 700px; color: var(--text-muted); }
.section-muted { background: var(--muted); }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 3rem; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 12px 35px rgba(0, 37, 59, .07); }
.course-card-image { aspect-ratio: 1 / 1; min-height: 0; padding: 1rem; display: flex; justify-content: space-between; align-items: flex-start; background-color: #005b8e; background-size: contain; background-repeat: no-repeat; background-position: center; }
.course-badge { padding: .4rem .65rem; border-radius: 999px; background: var(--accent); color: #082d13; font-size: .72rem; font-weight: 900; }
.course-monogram { margin: auto; color: rgba(255,255,255,.92); font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 900; letter-spacing: -.08em; }
.course-card-body { padding: 1.5rem; }
.course-card-body h3 { font-size: 1.7rem; margin-bottom: .7rem; }
.course-card-body h3 a { text-decoration: none; }
.course-card-body > p { color: var(--text-muted); }
.course-type { color: var(--brand) !important; text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 850; }
.course-card-footer { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.course-card-footer strong, .purchase-card strong { display: block; font-size: 1.5rem; }
.course-card-footer del, .purchase-card del { color: var(--text-muted); }
.card-actions { display: flex; align-items: center; gap: .8rem; }
.card-actions form { margin: 0; }
.card-actions button { padding: .55rem .75rem; border: 0; border-radius: .35rem; background: #005b8e; color: white; font: inherit; font-weight: 850; cursor: pointer; }
.purchase-card form { display: grid; }
.purchase-card form button { width: 100%; border: 0; cursor: pointer; }
.course-banner { padding: .75rem 1rem; background: var(--brand); color: white; font-weight: 800; text-align: center; }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 390px); gap: clamp(2rem, 7vw, 7rem); align-items: center; padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 7vw, 7rem); background: var(--muted); }
.course-hero-image { display: block; width: 100%; height: 430px; object-fit: contain; background: #005b8e; border-radius: 1rem; margin-top: 2rem; box-shadow: 0 16px 40px rgba(0,37,59,.12); }
.purchase-card { padding: 2rem; border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.purchase-card .button { width: 100%; margin: 1.5rem 0 .75rem; border: 0; }
.purchase-card .button:disabled { opacity: .65; cursor: not-allowed; }
.purchase-card small { color: var(--text-muted); }
.purchase-benefits { padding: 1rem 0 0; margin: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.purchase-benefits li { margin: .55rem 0; color: var(--text-muted); }
.purchase-benefits li::before { content: "✓"; color: #267c34; font-weight: 900; margin-right: .5rem; }
.course-content { display: grid; gap: 4rem; max-width: 1000px; }
.course-content article { max-width: 800px; }
.preline { white-space: pre-line; color: var(--text-muted); }
.experience-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(400px, 1.2fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); background: var(--ink); color: white; }
.experience-copy > p { color: #c8d8df; }
.check-list { padding: 0; list-style: none; display: grid; gap: .75rem; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; margin-right: .65rem; border-radius: 50%; background: rgba(97,206,112,.16); color: var(--accent); font-weight: 900; }
.experience-gallery { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; align-items: end; }
.experience-gallery img { width: 100%; height: 420px; object-fit: cover; border-radius: 1rem; }
.experience-gallery img:last-child { height: 310px; }
.faq-block details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq-block details:last-child { border-bottom: 1px solid var(--line); }
.faq-block summary { cursor: pointer; font-weight: 800; }
.faq-block details p { color: var(--text-muted); }
.course-details-section { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 7vw, 7rem); background: #f7f9fa; }
.course-details-inner { width: min(1120px, 100%); margin: 0 auto; }
.course-about { max-width: 850px; margin-bottom: 4rem; }
.detail-kicker, .detail-block h2 { color: #005484; font-size: .86rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.course-about h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); margin: .8rem 0 1.5rem; }
.course-about > p:last-child { color: #3e5360; line-height: 1.75; }
.detail-block { margin-bottom: 3rem; }
.detail-block h2 { margin-bottom: 1.4rem; }
.detail-block h2 span { color: #005484; margin-right: .4rem; }
.detail-block ul { padding: 0; margin: 0; list-style: none; display: grid; gap: .85rem; }
.detail-block li { position: relative; padding-left: 1.5rem; color: #263f4d; line-height: 1.65; }
.detail-learning li::before, .include-list li::before { content: "✓"; position: absolute; left: 0; color: #40bd5a; font-weight: 900; }
.target-list li::before { content: "⊙"; position: absolute; left: 0; color: #005484; font-weight: 900; }
.detail-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 7rem); }
.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0 5rem; padding: 1.3rem 1.8rem; background: white; border: 1px solid #e2e7ea; border-radius: .75rem; box-shadow: 0 12px 28px rgba(0,37,59,.08); }
.course-facts > div { display: flex; align-items: center; gap: .8rem; }
.fact-icon { color: #005484; font-size: 1.5rem; }
.course-facts p, .course-facts strong, .course-facts small { display: block; margin: 0; }
.course-facts strong { color: #003e62; font-size: .95rem; }
.course-facts small { color: #526875; font-size: .76rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.steps article { background: var(--paper); padding: 2rem; border: 1px solid var(--line); border-radius: .9rem; }
.steps span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: white; font-weight: 900; margin-bottom: 1.5rem; }
.steps p { color: var(--text-muted); }
footer { padding: 2rem clamp(1.25rem, 7vw, 7rem); background: var(--ink); color: #c8d8df; }
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--muted); padding: 2rem; text-align: center; }
.error-page main { max-width: 620px; }

@media (max-width: 820px) {
  .header-inner { grid-template-columns: 1fr auto; width: min(100% - 24px, 1152px); }
  .original-nav { display: none; }
  .original-brand { font-size: 1.05rem; }
  .login-link { display: none; }
  .hero { grid-template-columns: 1fr; }
  .original-hero { min-height: 560px; }
  .original-hero-content { min-height: 560px; width: min(100% - 32px, 1152px); }
  .original-hero-content h1 { font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .hero-note { position: relative; right: auto; bottom: auto; margin: -2rem 1rem 0; }
  .steps { grid-template-columns: 1fr; }
  .course-grid, .course-hero, .experience-section { grid-template-columns: 1fr; }
  .detail-two-columns, .course-facts { grid-template-columns: 1fr 1fr; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .experience-gallery img { height: 330px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { border-left: 1px solid var(--line); }
  .experience-gallery { grid-template-columns: 1fr; }
  .experience-gallery img, .experience-gallery img:last-child { height: 280px; }
  .course-facts { grid-template-columns: 1fr; }
}


:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.auth-page { background: #f2f6f8; }
.auth-main { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: min(100%, 560px); padding: clamp(1.5rem, 5vw, 3rem); background: white; border-radius: 1rem; box-shadow: var(--shadow); }
.auth-card h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 6vw, 3rem); }
.auth-card form { display: grid; gap: 1.15rem; margin-top: 2rem; }
.auth-card label { display: grid; gap: .45rem; font-weight: 750; }
.auth-card input { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #b7c4ca; border-radius: .4rem; font: inherit; }
.auth-card input:focus { outline: 3px solid rgba(0,95,145,.2); border-color: var(--brand); }
.auth-card .button { border: 0; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-errors { padding: .8rem 1rem; margin-top: 1rem; border-left: 4px solid #b42318; background: #fff2f0; color: #7a271a; }
.form-errors p { margin: .25rem 0; }
.auth-switch { margin-top: 1.5rem; }
.account-main { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; padding: 5rem 0; }
.empty-courses { margin-top: 3rem; padding: 2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.logout-form { margin: 0; }
.logout-form button { border: 0; background: transparent; color: white; font: inherit; font-weight: 700; cursor: pointer; }
.forgot-link { margin: -.4rem 0 0; text-align: right; font-size: .92rem; }
.account-data { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 0; }
.account-data div { min-width: 220px; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .65rem; background: white; }
.account-data dt { color: #60717a; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.account-data dd { margin: .3rem 0 0; font-weight: 800; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.admin-page { background: #f3f6f7; }
.admin-main { width: min(1400px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.admin-heading h1 { margin: .35rem 0 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.admin-heading-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .85rem; }
.admin-search { width: min(100%, 480px); }
.admin-search label { display: block; margin-bottom: .4rem; font-weight: 800; }
.admin-search > div { display: flex; gap: .5rem; }
.admin-search input { min-width: 0; flex: 1; padding: .7rem .85rem; border: 1px solid #aebdc5; border-radius: .4rem; font: inherit; }
.admin-search button { border: 0; }
.admin-message { padding: 1rem 1.25rem; margin: 1.5rem 0; border-left: 4px solid #2d9f45; background: #edfaef; color: #175c25; font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2.5rem 0; }
.admin-stats article { padding: 1.5rem; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.admin-stats strong, .admin-stats span { display: block; }
.admin-stats strong { color: var(--brand); font-size: 2rem; }
.admin-stats span { margin-top: .25rem; color: #526875; }
.admin-users { padding: 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-title h2 { margin: 0 0 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { padding: .85rem; border-bottom: 2px solid #ccd7dc; color: #49606c; text-align: left; }
.admin-table td { min-width: 145px; padding: 1rem .85rem; border-bottom: 1px solid #e2e8eb; vertical-align: top; }
.admin-table td:first-child { min-width: 190px; }
.admin-table td:nth-child(2), .admin-table td:nth-child(4) { min-width: 230px; }
.admin-table td:last-child { min-width: 150px; }
.admin-table small { display: block; margin-top: .35rem; color: #62737c; }
.role-badge, .status-badge { display: inline-block; padding: .3rem .5rem; margin-top: .5rem; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.role-badge { background: #e8ddff; color: #55319a; }
.status-active { background: #e4f7e8; color: #176329; }
.status-suspended { background: #ffe8e5; color: #8e261b; }
.status-pending { background: #fff3cf; color: #705200; }
.inline-form { display: flex; gap: .35rem; margin-top: .75rem; }
.inline-form select { min-width: 0; max-width: 180px; padding: .45rem; border: 1px solid #b9c6cc; border-radius: .3rem; }
.inline-form button, .text-action { border: 0; background: #e3f1f7; color: #005484; border-radius: .3rem; padding: .45rem .6rem; font: inherit; font-weight: 800; cursor: pointer; }
.danger-action { background: #fff0ee; color: #a22b20; }
.admin-user-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; min-width: 135px; }
.admin-user-actions form, .admin-user-actions .delete-user-link, .admin-user-actions small { margin: 0; }
.admin-user-actions .text-action { display: inline-block; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.admin-empty { padding: 2rem; text-align: center; color: #62737c; }
@media (max-width: 850px) { .admin-heading { align-items: stretch; flex-direction: column; } .admin-search { width: 100%; } .admin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .admin-stats { grid-template-columns: 1fr; } .admin-search > div { align-items: stretch; flex-direction: column; } }
.admin-course-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.admin-course-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: stretch; gap: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.admin-course-image { display: grid; place-items: center; align-self: start; aspect-ratio: 1 / 1; min-height: 0; border-radius: .6rem; overflow: hidden; background: #e8eef1; color: #62737c; }
.admin-course-image img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.admin-course-card > div:last-child { display: flex; min-width: 0; flex-direction: column; }
.course-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #62737c; font-size: .82rem; }
.admin-course-card h2 { margin: .8rem 0 .35rem; line-height: 1.08; overflow-wrap: anywhere; }
.admin-course-card > div:last-child > p { max-width: 100%; margin-bottom: 0; overflow-wrap: anywhere; }
.admin-course-card dl { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 1.25rem 0; }
.admin-course-card dl div { min-width: 110px; }
.admin-course-card dt { color: #62737c; font-size: .75rem; text-transform: uppercase; }
.admin-course-card dd { margin: .2rem 0 0; font-weight: 850; }
.admin-course-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: .5rem; }
.admin-course-actions .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1rem; white-space: nowrap; }
.admin-course-actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 48px; padding: .7rem .25rem; }
.admin-form-main { width: min(1000px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 5rem; }
.admin-form-heading { margin-bottom: 2rem; }
.admin-form-heading .detail-kicker { margin-top: 1.5rem; }
.admin-form-heading h1 { margin: .4rem 0; font-size: clamp(2.2rem, 6vw, 4rem); }
.admin-course-form { display: grid; gap: 1.5rem; }
.admin-course-form fieldset { min-width: 0; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: .85rem; background: white; }
.admin-course-form legend { float: left; width: 100%; margin: 0 0 1.35rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.3rem; font-weight: 900; line-height: 1.2; }
.admin-course-form legend + * { clear: both; }
.admin-form-section-title { grid-column: 1 / -1; margin: 0 0 1.35rem; padding-bottom: .85rem; border-bottom: 1px solid var(--line); font-size: 1.3rem; line-height: 1.2; }
.admin-user-form fieldset { padding-top: 1.6rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.admin-form-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
.admin-course-form label { display: grid; align-content: start; gap: .4rem; font-weight: 800; }
.admin-course-form input, .admin-course-form textarea, .admin-course-form select { width: 100%; padding: .75rem .85rem; border: 1px solid #afbec5; border-radius: .4rem; background: white; font: inherit; }
.admin-course-form textarea { resize: vertical; line-height: 1.5; }
.admin-course-form small { color: #62737c; font-weight: 500; }
.full-field { grid-column: 1 / -1; }
.admin-form-submit { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0; }
.admin-form-submit button { border: 0; cursor: pointer; }
.pack-course-selector > p { margin-top: 0; color: #62737c; }
.pack-course-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.pack-course-options > label { display: flex; min-width: 0; align-items: center; gap: .75rem; padding: .9rem; border: 1px solid #cbdbe1; border-radius: .55rem; background: #f8fafb; cursor: pointer; }
.pack-course-options input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #00618f; }
.pack-course-options span,.pack-course-options strong,.pack-course-options small { display: block; min-width: 0; }
.pack-course-options strong { overflow-wrap: anywhere; }
.pack-course-options small { color: #6b7f88; }
@media (max-width: 650px) { .pack-course-options { grid-template-columns: minmax(0,1fr); } }
.status-draft { background: #fff3cf; color: #705200; }
.status-archived { background: #e8ecee; color: #52616a; }
@media (max-width: 760px) { .admin-course-card { grid-template-columns: 1fr; } .admin-course-image { width: min(100%, 320px); justify-self: center; } .admin-course-actions .button, .admin-course-actions > a:not(.button) { flex: 1 1 180px; } .admin-form-grid, .admin-form-grid.three-columns { grid-template-columns: 1fr; } .full-field { grid-column: auto; } }
.image-upload-field { display: grid; align-content: start; gap: .7rem; padding: 1rem; border: 1px dashed #9eb2bc; border-radius: .6rem; background: #f7fafb; }
.image-upload-field input[type="file"] { padding: .6rem; background: white; }
.image-upload-field img { width: 100%; max-height: 260px; object-fit: contain; border-radius: .45rem; background: #e8eef1; }
.course-program-button { width: 100%; text-align: center; }
.pack-includes-section { padding: 3rem 1.5rem; background: #eef5f7; }
.pack-saving { display: block; margin: .35rem 0 .8rem; color: #237536; font-weight: 850; }
.pack-includes-inner { width: min(1180px,100%); margin: 0 auto; }
.pack-includes-inner > h2 { margin: .35rem 0 1.5rem; font-size: clamp(2rem,4vw,3.4rem); }
.pack-public-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.pack-public-grid article { display: grid; grid-template-columns: 150px minmax(0,1fr); overflow: hidden; border: 1px solid #d2e1e6; border-radius: .8rem; background: white; }
.pack-public-grid img { width: 100%; height: 100%; min-height: 170px; object-fit: contain; background: #e7eff2; }
.pack-public-grid article > div { display: flex; min-width: 0; flex-direction: column; padding: 1rem; }
.pack-public-grid h3 { margin: 0; }
.pack-public-grid p { margin: .35rem 0; color: #62737c; }
.pack-public-grid small { color: #526875; }
.pack-public-grid a { margin-top: auto; padding-top: .75rem; color: #005b8e; font-weight: 850; }
@media (max-width: 760px) { .pack-public-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) { .pack-public-grid article { grid-template-columns: minmax(0,1fr); } .pack-public-grid img { min-height: 190px; max-height: 220px; } }
.image-upload-field span { color: #376071; font-size: .8rem; }
.content-create-panel, .module-admin-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.content-create-panel > form { display: grid; grid-template-columns: 1fr 120px auto; align-items: end; gap: 1rem; }
.content-create-panel label, .create-lesson label, .resource-upload-form label { display: grid; gap: .35rem; font-weight: 750; }
.content-create-panel input, .create-lesson input, .create-lesson textarea, .create-lesson select, .resource-upload-form input { width: 100%; padding: .65rem .75rem; border: 1px solid #afbec5; border-radius: .35rem; font: inherit; }
.content-create-panel button { border: 0; }
.module-list { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.module-title { padding-bottom: 1rem; border-bottom: 2px solid #dbe4e8; }
.module-title span, .lesson-summary span { color: #005484; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.module-title h2, .lesson-summary h3 { margin: .35rem 0; }
.module-admin-heading, .lesson-admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.module-admin-heading .module-title { flex: 1 1 auto; }
.lesson-summary { min-width: 0; }
.content-order-actions { display: flex; flex: 0 0 auto; gap: .4rem; }
.content-order-actions form { margin: 0; }
.content-order-actions button { min-width: 42px; padding: .45rem .6rem; border: 1px solid #b9cbd3; border-radius: .35rem; background: white; color: #005484; font: inherit; font-weight: 850; cursor: pointer; }
.content-order-actions button:disabled { opacity: .35; cursor: not-allowed; }
.content-edit-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1rem 0; }
.lesson-visibility { padding: .2rem .4rem; border-radius: 999px; letter-spacing: 0; }
.lesson-visibility-published { background: #e4f7e8; color: #176329; }
.lesson-visibility-draft { background: #fff3cf; color: #705200; }
.lesson-schedule { display: block; margin-top: .35rem; color: #075f89; font-weight: 750; }
.course-availability-message { display: inline-block; padding: .75rem 1rem; border-radius: .45rem; background: #fff3cf; color: #705200; font-weight: 800; }
.lesson-status-form { flex: 1 1 100%; margin: 0; }
.lesson-status-form button { padding: .55rem .75rem; border: 1px solid #8aa9b8; border-radius: .35rem; background: white; color: #005484; font: inherit; font-weight: 850; cursor: pointer; }
.content-edit-panel, .content-delete-panel { flex: 1 1 280px; padding: .75rem 1rem; border: 1px solid #d4e0e5; border-radius: .55rem; background: #fff; }
.content-edit-panel summary, .content-delete-panel summary { color: #005484; font-weight: 900; cursor: pointer; }
.content-delete-panel summary { color: #a22b20; }
.content-edit-panel form, .content-delete-panel form { display: grid; gap: .8rem; margin-top: 1rem; }
.content-edit-panel label { display: grid; gap: .35rem; font-weight: 750; }
.content-edit-panel input, .content-edit-panel textarea, .content-edit-panel select { width: 100%; padding: .65rem .75rem; border: 1px solid #afbec5; border-radius: .35rem; background: white; font: inherit; }
.content-edit-panel button { justify-self: start; padding: .6rem .85rem; border: 0; border-radius: .35rem; background: #00679c; color: white; font: inherit; font-weight: 850; cursor: pointer; }
.content-delete-panel p { margin: 0; color: #62737c; }
.content-delete-panel label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 750; }
.content-delete-panel button { justify-self: start; padding: .6rem .85rem; border: 0; border-radius: .35rem; background: #a22b20; color: white; font: inherit; font-weight: 850; cursor: pointer; }
.lesson-edit-form { grid-template-columns: 1fr 1fr; }
.lesson-edit-form .full-field { grid-column: 1 / -1; }
.lesson-edit-form .preview-check { display: flex; align-items: center; flex-direction: row; }
.lesson-edit-form .preview-check input { width: auto; }
.lesson-list { display: grid; gap: 1rem; padding: 1rem 0; }
.lesson-admin-card { padding: 1rem; border: 1px solid #dce5e9; border-radius: .65rem; background: #fafcfc; }
.lesson-summary a { display: inline-block; margin-top: .5rem; }
.resource-list { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; }
.resource-list h4 { flex-basis: 100%; margin: 0; }
.resource-list a { padding: .45rem .65rem; border-radius: .35rem; background: #e5f2f7; text-decoration: none; }
.resource-admin-item { display: flex; align-items: center; gap: .35rem; }
.resource-admin-item details { position: relative; }
.resource-admin-item summary { color: #a22b20; font-size: .8rem; font-weight: 800; cursor: pointer; }
.resource-admin-item form { position: absolute; z-index: 4; right: 0; display: grid; gap: .5rem; width: 190px; padding: .75rem; border: 1px solid #d8e1e5; border-radius: .45rem; background: white; box-shadow: var(--shadow); }
.resource-admin-item form label { display: flex; gap: .4rem; font-size: .8rem; }
.resource-admin-item form button { padding: .45rem; border: 0; border-radius: .3rem; background: #a22b20; color: white; font-weight: 800; cursor: pointer; }
.resource-upload-form { display: grid; grid-template-columns: 1fr 1.4fr 90px auto; align-items: end; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #b8c7ce; }
.multi-resource-form { grid-template-columns: 1fr 1.35fr 1.35fr 100px auto; }
.multi-resource-form small { color: #62737c; font-weight: 500; }
.resource-upload-form button { padding: .7rem; border: 0; border-radius: .35rem; background: #005b8e; color: white; font-weight: 800; cursor: pointer; }
.create-lesson { margin-top: 1rem; border-top: 1px solid #dbe4e8; padding-top: 1rem; }
.create-lesson summary { color: #005484; font-weight: 900; cursor: pointer; }
.create-lesson form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.create-lesson .preview-check { display: flex; align-items: center; flex-direction: row; }
.create-lesson .preview-check input { width: auto; }
.create-lesson button { border: 0; }
@media (max-width: 760px) { .content-create-panel > form, .resource-upload-form, .create-lesson form, .lesson-edit-form { grid-template-columns: 1fr; } .lesson-edit-form .full-field { grid-column: auto; } .module-admin-heading, .lesson-admin-heading { flex-direction: column; } }
.my-courses-section { margin-top: 4rem; }
.my-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1rem; }
.my-course-card { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.my-course-cover { height: 210px; background: #dbe6eb center / cover no-repeat; }
.my-course-card > div:last-child { padding: 1.25rem; }
.my-course-card span { color: #005484; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.my-course-card h3 { margin: .4rem 0; font-size: 1.5rem; }
.my-course-card .button { margin-top: .75rem; }
.learning-page { background: #f3f6f7; }
.learning-main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 6rem; }
.learning-hero { padding: clamp(1.5rem, 5vw, 3rem); border-radius: 1rem; background: #e9f3f7; }
.learning-hero h1 { margin: .4rem 0; font-size: clamp(2.4rem, 7vw, 4.8rem); }
.learning-hero > div { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; color: #005484; font-weight: 800; }
.learning-modules { display: grid; gap: 1.5rem; margin-top: 2rem; }
.learning-module { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.learning-module-title { padding: 1.4rem; background: #00283d; color: white; }
.learning-module-title span { color: #83d991; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.learning-module-title h2 { margin: .35rem 0 0; }
.learning-lessons { padding: 0 1.25rem; }
.learning-lesson { border-bottom: 1px solid #dce5e9; }
.learning-lesson summary { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; cursor: pointer; }
.learning-lesson summary span { color: #005484; font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.learning-lesson summary small { color: #637680; }
.lesson-content { padding: 0 0 1.5rem 110px; }
.video-frame { position: relative; overflow: hidden; width: 100%; padding-top: 56.25%; border-radius: .65rem; background: #001722; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-placeholder { padding: 2rem; border-radius: .5rem; background: #edf2f4; color: #526875; text-align: center; }
.learning-resources { margin-top: 1.25rem; padding: 1rem; border-radius: .55rem; background: #f2f7f9; }
.learning-resources h3 { margin-top: 0; }
.learning-resources a { display: inline-block; margin: .25rem .6rem .25rem 0; padding: .55rem .75rem; border-radius: .35rem; background: white; text-decoration: none; font-weight: 750; }
@media (max-width: 700px) { .my-course-grid { grid-template-columns: 1fr; } .learning-lesson summary { grid-template-columns: 1fr auto; } .learning-lesson summary span { grid-column: 1 / -1; } .lesson-content { padding-left: 0; } }
.classroom-page { margin: 0; background: #041f33; color: white; }
.classroom-header { position: sticky; top: 0; z-index: 10; min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.12); background: #00283d; }
.classroom-header > div:first-child { display: flex; align-items: center; gap: 1.5rem; }
.classroom-header a { color: white; text-decoration: none; }
.classroom-header > div:first-child a { color: #b8cad4; }
.classroom-progress { display: flex; align-items: center; gap: .7rem; color: #60df73; font-size: .8rem; font-weight: 900; }
.classroom-progress > div { overflow: hidden; width: 110px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.16); }
.classroom-progress i { display: block; height: 100%; background: #61ce70; }
.classroom-brand { justify-self: end; font-weight: 900; }
.classroom-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: calc(100vh - 64px); }
.classroom-stage { min-width: 0; background: #061d4b; }
.stage-heading { min-height: 95px; padding: 1.2rem 1.75rem; background: #00283d; }
.stage-heading span { color: #61ce70; font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.stage-heading h1 { margin: .45rem 0 0; color: white; font-size: clamp(1.35rem, 3vw, 2rem); }
.classroom-player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 160px); background: #00101b; }
.classroom-player iframe { width: 100%; height: 100%; border: 0; }
.external-video { min-height: 100%; display: grid; place-content: center; justify-items: center; padding: 2rem; background: #061c32; color: #d5e2e8; text-align: center; }
.classroom-lesson-info { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 2rem 3rem; background: white; color: #163444; }
.classroom-lesson-info h2 { margin-top: 0; }
.classroom-lesson-info form { flex: 0 0 auto; }
.classroom-lesson-info button { border: 0; cursor: pointer; }
.classroom-resources { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.classroom-resources a { padding: .55rem .7rem; border-radius: .35rem; background: #e9f3f7; color: #005484; text-decoration: none; font-weight: 750; }
.classroom-sidebar { overflow-y: auto; max-height: calc(100vh - 64px); background: #00283d; }
.program-heading { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1.25rem; border-bottom: 3px solid #29b94a; background: #00283d; text-transform: uppercase; }
.program-heading span { color: #61ce70; font-size: .75rem; font-weight: 800; }
.program-module h2 { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; margin: 0; padding: 1rem 1.15rem; background: #052238; color: white; font-size: .85rem; text-transform: uppercase; }
.program-module h2 > span { color: #61ce70; }
.program-module h2 small { padding: .25rem .45rem; border-radius: 999px; background: rgba(255,255,255,.08); color: #9eb3be; }
.program-module nav { display: grid; }
.program-module nav a, .program-module nav > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: .65rem; min-height: 70px; padding: .75rem 1rem; border-left: 3px solid transparent; color: #c5d3da; text-decoration: none; }
.program-module nav a:hover, .program-module nav a.current-lesson { border-left-color: #61ce70; background: #0c3a50; }
.program-module nav a > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #12394f; color: #a7bbc5; font-style: normal; font-size: .75rem; }
.program-module nav a.current-lesson > i, .program-module nav a.completed-lesson > i { background: #0574aa; color: white; }
.program-module nav a.completed-lesson > i { background: #2aa749; }
.program-module nav a span, .program-module nav a strong, .program-module nav a small { display: block; }
.program-module nav a strong { color: inherit; font-size: .86rem; }
.program-module nav a small { margin-top: .3rem; color: #7895a3; }
.program-module nav > div span, .program-module nav > div strong, .program-module nav > div small { display: block; }
.program-module nav > div > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #12394f; font-style: normal; font-size: .72rem; }
.program-module nav .locked-lesson { border-left-color: #d3a62b; background: #092d40; color: #9fb3bd; cursor: not-allowed; }
.program-module nav .locked-lesson .lesson-available-date { margin-top: .3rem; color: #ffd66b; font-weight: 800; }
.program-module nav .locked-lesson .lesson-unlock-countdown { color: #a8c5d2; }
.classroom-scheduled-empty { align-self: start; margin: 2rem; padding: 2rem; border: 1px solid #c7d9e1; border-radius: .75rem; background: white; color: #00283d; }
@media (max-width: 980px) { .classroom-header { grid-template-columns: 1fr auto; } .classroom-progress { display: none; } .classroom-layout { grid-template-columns: minmax(0,1fr); min-height: auto; } .classroom-sidebar { overflow: visible; max-height: none; } .classroom-brand { display: none; } .classroom-player { max-height: none; } .program-heading { top: 64px; } }
@media (max-width: 600px) { .classroom-header { min-height: 56px; padding: .65rem .8rem; } .classroom-header > div:first-child { min-width: 0; gap: .6rem; } .classroom-header > div:first-child a { flex: 0 0 auto; font-size: .82rem; } .classroom-header strong { min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; } .stage-heading { min-height: 78px; padding: 1rem; } .classroom-player { aspect-ratio: 16/9; } .classroom-lesson-info { flex-direction: column; gap: 1rem; padding: 1.15rem; } .classroom-lesson-info form, .classroom-lesson-info button { width: 100%; } .program-heading { top: 56px; padding: .65rem .85rem; } .progress-circle { --size: 58px; } .program-module h2 { padding: .85rem; } .program-module nav a, .program-module nav > div { min-height: 76px; padding: .7rem .8rem; } .custom-play { width: 58px; height: 58px; font-size: 1.35rem; } .custom-player-bar { grid-template-columns: 1fr; gap: .45rem; padding: .75rem; } .classroom-scheduled-empty { margin: 1rem; padding: 1.25rem; } }
.progress-circle { --size: 66px; position: relative; width: var(--size); height: var(--size); display: grid; place-content: center; border-radius: 50%; background: conic-gradient(#61ce70 calc(var(--progress) * 1%), #173f53 0); text-align: center; }
.progress-circle::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #00283d; }
.progress-circle span, .progress-circle small { position: relative; z-index: 1; display: block; }
.progress-circle span { color: #61ce70; font-size: .9rem; font-weight: 900; }
.progress-circle small { color: #a9bdc7; font-size: .48rem; }
.custom-youtube iframe { pointer-events: none; }
.youtube-interaction-shield { position: absolute; inset: 0; z-index: 1; }
.custom-play { position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; display: grid; place-items: center; transform: translate(-50%,-50%); border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(0,20,35,.7); color: white; font-size: 1.8rem; cursor: pointer; }
.custom-player-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: linear-gradient(transparent,rgba(0,15,25,.9)); }
.custom-player-bar span { font-size: .78rem; font-weight: 800; }
.custom-player-bar input { width: 100%; accent-color: #61ce70; cursor: pointer; }
.progress-report { margin-top: 2rem; }
.admin-progress-bar { display: inline-block; overflow: hidden; width: 140px; height: 9px; margin-right: .6rem; border-radius: 999px; background: #dce6ea; vertical-align: middle; }
.admin-progress-bar i { display: block; height: 100%; background: #42bd58; }
.admin-page { padding-left: 250px; }
.admin-page .original-header { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 250px; height: 100vh; }
.admin-page .header-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; padding: 2rem 1.35rem; }
.admin-page .original-brand { padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.admin-page .original-nav { width: 100%; display: grid; gap: .35rem; }
.admin-page .admin-sidebar .header-inner { overflow-y: auto; }
.admin-page .admin-sidebar .original-nav { flex: 0 0 auto; }
.admin-page .original-nav a { padding: .8rem .9rem; border-radius: .4rem; }
.admin-page .original-nav a:hover { background: rgba(255,255,255,.1); }
.admin-page .logout-form { width: 100%; margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.admin-page .logout-form button { width: 100%; padding: .8rem; text-align: left; }
.delete-user-link { display: inline-block; margin-top: .55rem; color: #a22b20; font-weight: 800; }
.delete-confirm-card { max-width: 680px; padding: clamp(1.5rem,5vw,3rem); border: 1px solid #efc5c0; border-radius: .85rem; background: white; }
.delete-confirm-card h1 { font-size: clamp(2rem,5vw,3.5rem); }
.delete-confirm-card dl { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; margin: 2rem 0; }
.delete-confirm-card dt { color: #62737c; font-weight: 800; }
.delete-confirm-card dd { margin: 0; }
.delete-confirm-card form { display: flex; align-items: center; gap: 1rem; }
.delete-button { border: 0; background: #b42318; color: white; cursor: pointer; }
.commerce-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 1.5rem; align-items: start; }
.commerce-form { display: grid; min-width: 0; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.commerce-form h2 { margin: 0 0 .25rem; }
.commerce-form label { display: grid; min-width: 0; gap: .4rem; font-weight: 800; }
.commerce-form input, .commerce-form select { display: block; min-width: 0; max-width: 100%; width: 100%; padding: .72rem .8rem; border: 1px solid #afbec5; border-radius: .4rem; background: white; font: inherit; }
.commerce-form button { border: 0; cursor: pointer; }
.form-row { display: grid; min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.coupon-list { margin-top: 0; }
.coupon-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.coupon-card > div { min-width: 0; overflow-wrap: anywhere; }
.coupon-card form { margin: 0; }
.coupon-card strong { color: #005b8e; font-size: 1.15rem; }
.coupon-card p { margin: .25rem 0; }
.coupon-card small { color: #62737c; }
.status-paid, .status-recovered { background: #daf5df; color: #176b2b; }
.status-pending, .status-recovery_sent { background: #fff3cf; color: #705200; }
.status-cancelled, .status-failed, .status-refunded { background: #fde4e1; color: #8e2118; }
@media (max-width: 1180px) { .coupon-admin-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 1050px) { .commerce-grid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 620px) { .commerce-form { padding: 1rem; } .commerce-form .form-row { grid-template-columns: minmax(0,1fr); } .coupon-card { grid-template-columns: minmax(0,1fr); } .coupon-card form button { width: 100%; } }
@media (max-width: 850px) {
  .admin-page { padding-left: 0; }
  .admin-page .original-header { position: static; width: auto; height: auto; }
  .admin-page .header-inner { padding: .8rem 1rem; flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-page .original-brand { padding: 0; border: 0; white-space: nowrap; }
  .admin-page .original-nav { display: flex; width: auto; white-space: nowrap; }
  .admin-page .original-nav a { padding: .5rem; }
  .admin-page .logout-form { width: auto; margin: 0; padding: 0; border: 0; white-space: nowrap; }
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.cart-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2.5rem,6vw,5rem) 0 6rem; }
.cart-heading h1 { margin: .4rem 0; font-size: clamp(2.5rem,7vw,5rem); }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 2rem; align-items: start; margin-top: 2rem; }
.cart-items { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.cart-item { display: grid; grid-template-columns: 180px minmax(0,1fr) auto; align-items: center; gap: 1.25rem; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 180px; height: 120px; border-radius: .55rem; object-fit: cover; background: #e5eef2; }
.cart-item h2 { margin: .2rem 0; font-size: 1.35rem; }
.cart-item h2 a { text-decoration: none; }
.cart-item > strong { white-space: nowrap; font-size: 1.15rem; }
.remove-cart-item { padding: 0; border: 0; background: none; color: #a22b20; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.cart-pack-items { margin-top: .45rem; color: #526875; font-size: .86rem; }
.cart-summary { position: sticky; top: 1.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.cart-summary h2 { margin-top: 0; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.cart-summary .cart-total { margin-top: .5rem; padding-top: 1rem; border-top: 2px solid var(--ink); font-size: 1.25rem; }
.cart-summary .button { width: 100%; margin-top: 1rem; border: 0; }
.cart-summary .button:disabled { opacity: .55; cursor: not-allowed; }
.cart-summary small { display: block; margin-top: .65rem; color: #62737c; text-align: center; }
.empty-cart { display: grid; justify-items: center; margin-top: 2rem; padding: 4rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; text-align: center; }
.empty-cart > div { font-size: 3rem; }
.empty-cart h2 { margin-bottom: .2rem; }
@media (max-width: 850px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }
@media (max-width: 650px) { .cart-item { grid-template-columns: 90px 1fr; } .cart-item img { width: 90px; height: 90px; } .cart-item > strong { grid-column: 2; } }
.cart-open { overflow: hidden; }
.cart-drawer-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(0,28,43,.45); }
.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(430px,100vw); display: grid; grid-template-rows: auto 1fr auto; transform: translateX(105%); background: white; box-shadow: -18px 0 55px rgba(0,30,45,.22); transition: transform .25s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer > header { display: flex; align-items: center; justify-content: space-between; padding: 1.35rem 1.25rem; border-bottom: 1px solid var(--line); }
.cart-drawer > header h2 { margin: 0; color: #005b8e; font-size: 1.35rem; }
.cart-drawer > header button { border: 0; background: none; color: #52616a; font-size: 2rem; line-height: 1; cursor: pointer; }
.drawer-items { overflow-y: auto; padding: 1.25rem; }
.drawer-items article { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .45rem; background: #f8fafb; }
.drawer-items article + article { margin-top: .75rem; }
.drawer-items article strong, .drawer-items article span { display: block; }
.drawer-items article strong { color: #005b8e; }
.drawer-items article small { display: block; color: #62737c; font-size: .75rem; }
.drawer-items article span { margin-top: .45rem; color: var(--ink); font-size: 1.1rem; font-weight: 900; }
.drawer-items article button { border: 0; background: none; color: #d71920; font-size: 1.35rem; cursor: pointer; }
.drawer-empty { padding: 3rem 1rem; text-align: center; }
.cart-drawer > footer { padding: 1.25rem; border-top: 1px solid var(--line); background: #f8fafb; }
.cart-drawer > footer > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; font-size: 1.12rem; font-weight: 850; }
.cart-drawer > footer .drawer-total { border-top: 1px solid var(--line); }
.drawer-checkout { display: block; margin-top: 1rem; border: 0; background: #5ccf70; color: white; text-align: center; }
.drawer-checkout.disabled { background: #adc7b3; }
.drawer-full-cart { display: block; margin-top: .8rem; color: #005b8e; text-align: center; font-weight: 800; }
.drawer-coupon { display: grid; grid-template-columns: 1fr auto; gap: .55rem; margin-bottom: .5rem; }
.drawer-coupon input { min-width: 0; padding: .72rem; border: 1px solid var(--line); border-radius: .35rem; font: inherit; }
.drawer-coupon button { padding: .72rem .85rem; border: 0; border-radius: .35rem; background: #005b8e; color: white; font-weight: 850; cursor: pointer; }
.checkout-main { width: min(1100px,calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0 6rem; }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 2rem; align-items: start; margin-top: 2rem; }
.checkout-form, .checkout-summary { padding: clamp(1.25rem,4vw,2rem); border: 1px solid var(--line); border-radius: .85rem; background: white; }
.checkout-form { display: grid; gap: 1rem; }
.checkout-form h2, .checkout-summary h2 { margin-top: 0; }
.checkout-form label { display: grid; gap: .4rem; font-weight: 800; }
.checkout-form input { width: 100%; padding: .75rem .8rem; border: 1px solid #afbec5; border-radius: .4rem; font: inherit; }
.checkout-form small { color: #62737c; font-weight: 500; }
.coupon-input { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.coupon-input button { border: 1px solid #005b8e; cursor: pointer; }
.checkout-summary { position: sticky; top: 1.5rem; }
.checkout-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.checkout-summary .discount-line { color: #237536; }
.checkout-summary .cart-total { border-bottom: 0; font-size: 1.25rem; }
.order-result { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: #edf3f5; }
.order-result section { width: min(650px,100%); padding: clamp(2rem,6vw,4rem); border-radius: 1rem; background: white; text-align: center; }
.order-result h1 { font-size: clamp(2.5rem,7vw,4.5rem); }
.order-total { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; padding: 1.25rem 0; border-block: 1px solid var(--line); font-size: 1.3rem; }
.order-warning { padding: 1rem; border-radius: .5rem; background: #fff3cf; color: #705200; }
@media (max-width: 850px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-summary { position: static; } }
@media (max-width: 560px) { .coupon-input { grid-template-columns: 1fr; } }
.embedded-payment-page { min-height: 100vh; display: grid; grid-template-columns: minmax(280px,.7fr) minmax(480px,1.3fr); gap: 2rem; align-items: start; padding: clamp(1.5rem,5vw,5rem); background: #edf3f5; }
.embedded-order-summary, .embedded-payment-card { padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: 1rem; background: white; }
.embedded-order-summary { position: sticky; top: 2rem; }
.embedded-order-summary h1 { font-size: clamp(2.5rem,6vw,4.7rem); }
.embedded-payment-card h2 { margin-top: 0; font-size: 1.7rem; }
#paymentBrick_container { min-height: 420px; }
.secure-payment-note { margin-top: 1rem; padding: .8rem; border-radius: .45rem; background: #edf7f0; color: #276238; font-size: .82rem; }
@media (max-width: 850px) { .embedded-payment-page { grid-template-columns: 1fr; padding: 1rem; } .embedded-order-summary { position: static; } }
.account-course-progress { height: 8px; background: #dce6ea; border-radius: 999px; overflow: hidden; margin: 16px 0 7px; }
.account-course-progress i { display: block; height: 100%; background: #39c96b; border-radius: inherit; }
.course-account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.certificate-verify-link { color: var(--primary); font-size: .86rem; font-weight: 800; }
.learning-history { margin-top: 48px; background: #fff; border: 1px solid #d7e2e7; border-radius: 18px; padding: 28px; }
.history-table-wrap { overflow-x: auto; }
.learning-history table { width: 100%; border-collapse: collapse; min-width: 760px; }
.learning-history th, .learning-history td { padding: 14px 12px; text-align: left; border-bottom: 1px solid #dce5e9; vertical-align: top; }
.learning-history th { color: var(--primary); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.learning-history td { font-size: .92rem; }
.certificate-check { text-align: center; }
.certificate-valid-mark { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: #39c96b; color: #fff; font-size: 2rem; font-weight: 900; }
.certificate-check dl { text-align: left; border-top: 1px solid #dce5e9; margin-top: 25px; padding-top: 12px; }
.certificate-check dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.certificate-check dt { font-weight: 800; }

/* Panel profesional del alumno */
.account-dashboard-page { overflow-x: hidden; background: #f2f6f7; }
.account-dashboard-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 42px 0 72px; }
.account-welcome { display: block; margin-bottom: 22px; padding: clamp(24px,4vw,38px); border-radius: 22px; background: linear-gradient(125deg,#002c43,#005f8f); color: #fff; box-shadow: 0 18px 45px rgba(0,40,61,.15); }
.account-welcome-copy .detail-kicker { color: #6fe08a; }
.account-welcome-copy h1 { margin: 3px 0 5px; color: #fff; font-size: clamp(2rem,5vw,3.7rem); line-height: 1; }
.account-welcome-copy p:last-child { margin: 0; color: #d4e4eb; }
.overall-progress { --size: 110px; width: var(--size); height: var(--size); display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#62d77b calc(var(--account-progress) * 1%),rgba(255,255,255,.16) 0); }
.overall-progress::before { content: ""; grid-area: 1/1; width: 88px; height: 88px; border-radius: 50%; background: #063951; }
.overall-progress > div { position: relative; grid-area: 1/1; text-align: center; }
.overall-progress strong, .overall-progress span { display: block; }
.overall-progress strong { color: #70e18a; font-size: 1.35rem; }
.overall-progress span { color: #c9dce4; font-size: .65rem; }
.account-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 18px 0 28px; }
.account-metrics article { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; padding: 18px 20px; border: 1px solid #d6e2e6; border-radius: 15px; background: #fff; }
.account-metrics span { color: #536b77; font-size: .84rem; font-weight: 700; }
.account-metrics strong { grid-row: span 2; color: #00334a; font-size: 2rem; line-height: 1; }
.account-metrics small { color: #80929a; }
.account-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 5px; border: 1px solid #d7e2e6; border-radius: 14px; background: #fff; scrollbar-width: none; }
.account-tabs button { flex: 1 0 auto; min-width: 130px; padding: 13px 18px; border: 0; border-radius: 10px; background: transparent; color: #526973; font: inherit; font-weight: 800; cursor: pointer; }
.account-tabs button[aria-selected="true"] { background: #e4f2f7; color: #005d8e; }
.account-tabs button span { display: inline-grid; min-width: 22px; height: 22px; margin-left: 5px; place-items: center; border-radius: 999px; background: #d6e8ef; font-size: .72rem; }
.account-panel { margin-top: 18px; padding: clamp(22px,4vw,34px); border: 1px solid #d7e2e6; border-radius: 20px; background: #fff; }
.account-panel[hidden] { display: none; }
.account-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.account-panel-heading h2 { margin: 2px 0 0; font-size: clamp(1.9rem,4vw,3rem); }
.account-panel-heading p:last-child { margin: 5px 0 0; color: #667b85; }
.course-filters { display: flex; gap: 5px; padding: 4px; border-radius: 10px; background: #eef3f5; }
.course-filters button { padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: #58707b; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; }
.course-filters button.active { background: #fff; color: #005f91; box-shadow: 0 2px 8px rgba(0,45,65,.08); }
.account-course-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.account-course-card { display: grid; grid-template-columns: minmax(190px, 36%) minmax(0,1fr); overflow: hidden; min-height: 290px; border: 1px solid #d8e3e7; border-radius: 17px; background: #fff; transition: transform .2s ease,box-shadow .2s ease; }
.account-course-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0,45,65,.09); }
.account-course-image { position: relative; display: grid; min-width: 0; min-height: 100%; place-items: center; padding: 14px; background: linear-gradient(145deg,#edf3f5,#dfe9ed); }
.account-course-image img { display: block; width: 100%; height: 100%; max-height: 270px; object-fit: contain; object-position: center; }
.course-state { position: absolute; left: 12px; top: 12px; padding: 6px 9px; border-radius: 999px; background: #fff; color: #00618f; font-size: .7rem; font-weight: 900; text-transform: uppercase; box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.course-state-completed { background: #dff7e5; color: #167331; }
.account-course-body { display: flex; min-width: 0; flex-direction: column; padding: 24px; }
.account-course-kicker { margin: 0; color: #00618f; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.account-course-body h3 { margin: 7px 0; font-size: clamp(1.3rem,2vw,1.65rem); line-height: 1.1; overflow-wrap: anywhere; }
.account-course-body > p:not(.account-course-kicker) { margin: 0; color: #677c85; }
.account-course-progress-label { display: flex; justify-content: space-between; color: #59707a; font-size: .8rem; }
.account-course-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.account-course-actions .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; margin: 0; }
.account-certificate-link { color: #08723a; font-size: .82rem; font-weight: 900; }
.certificate-list { display: grid; gap: 12px; }
.certificate-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid #d9e4e7; border-radius: 14px; }
.certificate-list h3 { margin: 3px 0; }
.certificate-list p,.certificate-list span { margin: 0; color: #647983; font-size: .82rem; }
.certificate-icon,.activity-mark { display: grid; place-items: center; border-radius: 50%; background: #dff7e5; color: #1a853b; font-weight: 900; }
.certificate-icon { width: 48px; height: 48px; font-size: 1.3rem; }
.history-search { color: #536c77; font-size: .76rem; font-weight: 800; }
.history-search input { display: block; width: min(320px,70vw); margin-top: 5px; padding: 11px 13px; border: 1px solid #c9d8de; border-radius: 9px; font: inherit; }
.activity-timeline { display: grid; }
.activity-timeline article { display: grid; grid-template-columns: auto 1fr auto; gap: 15px; align-items: start; padding: 17px 4px; border-bottom: 1px solid #e0e8eb; }
.activity-mark { width: 34px; height: 34px; }
.activity-timeline h3 { margin: 3px 0; font-size: 1rem; }
.activity-timeline p,.activity-timeline time { margin: 0; color: #667b85; font-size: .8rem; }
.activity-timeline > article > span { color: #00618f; font-size: .8rem; font-weight: 800; }
.profile-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.profile-details div { min-width: 0; padding: 18px; border: 1px solid #dbe5e8; border-radius: 12px; background: #f8fafb; }
.profile-details span,.profile-details strong { display: block; overflow-wrap: anywhere; }
.profile-details span { margin-bottom: 6px; color: #697e87; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.account-empty-state { padding: 45px 20px; border: 1px dashed #c8d8de; border-radius: 14px; background: #f8fafb; text-align: center; }
.account-empty-state strong { font-size: 1.3rem; }
.account-filter-empty { padding: 30px; color: #687d86; text-align: center; }
.admin-page .account-dashboard-shell { width: min(1240px,calc(100% - 40px)); }
@media (max-width: 1050px) { .account-course-grid { grid-template-columns: 1fr; } .account-metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) { .account-dashboard-shell, .admin-page .account-dashboard-shell { width: calc(100% - 20px); padding: 16px 0 44px; } .account-welcome { border-radius: 17px; } .account-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; overflow: visible; } .account-tabs button { min-width: 0; width: 100%; } .account-panel { min-width: 0; padding: 22px; border-radius: 16px; } .account-panel-heading { min-width: 0; align-items: stretch; flex-direction: column; } .course-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; overflow: visible; } .course-filters button { min-width: 0; padding-inline: 6px; } .account-course-card { grid-template-columns: minmax(0,1fr); min-width: 0; min-height: 0; } .account-course-image { min-height: 0; aspect-ratio: 16/9; } .account-course-image img { max-height: 210px; } .certificate-list article { grid-template-columns: auto minmax(0,1fr); } .certificate-list .button { grid-column: 1/-1; text-align: center; } .profile-details { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) { .account-dashboard-shell, .admin-page .account-dashboard-shell { width: calc(100% - 14px); } .account-welcome { padding: 20px; } .account-welcome-copy h1 { font-size: 2rem; } .account-welcome-copy p:last-child { font-size: .92rem; } .account-tabs { padding: 4px; } .account-tabs button { padding: 11px 6px; font-size: .8rem; } .account-panel { margin-top: 10px; padding: 16px; } .account-panel-heading { gap: 14px; margin-bottom: 18px; } .account-panel-heading h2 { font-size: 2rem; } .account-course-grid { gap: 14px; } .account-course-image img { max-height: 175px; } .account-course-body { padding: 17px; } .account-course-actions { align-items: stretch; flex-direction: column; } .account-course-actions .button, .account-certificate-link, .course-availability-message { box-sizing: border-box; width: 100%; text-align: center; } .history-search input { max-width: 100%; width: 100%; } .activity-timeline article { grid-template-columns: auto minmax(0,1fr); } .activity-timeline > article > span { grid-column: 2; } .certificate-list article { gap: 12px; padding: 14px; } }

/* Responsive integral v53 */
img, video, iframe { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
h1, h2, h3, p, a, td, th, dd { overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .original-header .header-inner { min-height: 0; padding: .75rem 0; grid-template-columns: minmax(0,1fr) auto; gap: .65rem 1rem; }
  .original-header .original-nav { grid-column: 1 / -1; display: flex; width: 100%; gap: .45rem; overflow-x: auto; padding: .2rem 0 .15rem; scrollbar-width: thin; }
  .original-header .original-nav a { flex: 0 0 auto; padding: .45rem .6rem; border-radius: .35rem; background: rgba(255,255,255,.07); }
  .original-header .header-actions { gap: 1rem; }
  .original-header .login-link { display: inline-flex; font-size: .82rem; }
  .original-hero, .original-hero-content { min-height: min(620px, calc(100svh - 120px)); }
  .course-hero { padding-top: 3rem; padding-bottom: 3rem; }
  .course-hero-image { height: auto; max-height: 430px; aspect-ratio: 16 / 10; margin-top: 0; }
  .purchase-card { padding: 1.35rem; }
  .section, .course-details-section { padding-left: max(1rem,env(safe-area-inset-left)); padding-right: max(1rem,env(safe-area-inset-right)); }
  .experience-section { overflow: hidden; }
  .admin-page .original-header .header-inner { width: 100%; display: flex; padding: .65rem .8rem; }
  .admin-page .original-header .original-nav { display: flex; width: auto; padding: 0; }
  .admin-page .admin-main, .admin-page .admin-form-main { width: calc(100% - 1.25rem); padding-top: 1.5rem; }
  .admin-table-wrap, .history-table-wrap { margin-inline: -.5rem; padding-inline: .5rem; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 760px; }
  .admin-course-card-content { min-width: 0; }
  .content-create-panel > form, .resource-upload-form, .multi-resource-form, .create-lesson form, .lesson-edit-form { grid-template-columns: minmax(0,1fr); }
  .resource-upload-form input, .resource-upload-form select, .resource-upload-form button { width: 100%; }
  .embedded-payment-card, .embedded-order-summary { min-width: 0; }
}

@media (max-width: 600px) {
  body { min-width: 0; }
  .original-brand { min-width: 0; font-size: .95rem; }
  .original-header .header-actions { justify-self: end; }
  .original-header .login-link { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .original-hero-content { width: calc(100% - 2rem); padding-block: 2.5rem; }
  .original-hero-content h1 { margin-bottom: 1.2rem; font-size: clamp(2.1rem,11vw,3rem); }
  .original-hero-content .lead { font-size: 1rem; line-height: 1.55; }
  .hero-actions { align-items: stretch; flex-direction: column; width: 100%; gap: .7rem; }
  .hero-actions .button { width: 100%; }
  .course-grid { gap: 1.2rem; margin-top: 2rem; }
  .course-card-body { padding: 1.1rem; }
  .course-card-footer { align-items: stretch; flex-direction: column; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .card-actions a, .card-actions form, .card-actions button { width: 100%; text-align: center; }
  .detail-two-columns { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .course-about { margin-bottom: 2.5rem; }
  .course-facts { margin-bottom: 3rem; padding: 1rem; }
  .pack-public-grid article { grid-template-columns: minmax(0,1fr); }
  .pack-public-grid img { width: 100%; min-height: 180px; max-height: 240px; }
  .auth-main { min-height: auto; padding: 1rem .7rem 2rem; }
  .auth-card { padding: 1.2rem; border-radius: .75rem; }
  .auth-card form { margin-top: 1.25rem; }
  .admin-heading h1, .admin-form-heading h1 { font-size: clamp(2rem,12vw,3rem); }
  .admin-heading-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .admin-heading-actions .button { width: 100%; }
  .admin-search > div { flex-direction: column; }
  .admin-search input, .admin-search button { width: 100%; }
  .admin-course-card { padding: .85rem; }
  .admin-course-image { width: 100%; max-width: 280px; }
  .admin-course-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  .admin-course-actions .button, .admin-course-actions > a:not(.button) { width: 100%; min-height: 44px; text-align: center; }
  .admin-course-form fieldset { padding: 1rem; }
  .admin-course-form legend { font-size: 1.1rem; }
  .image-upload-field { min-width: 0; }
  .image-upload-field input[type="file"] { font-size: .82rem; }
  .commerce-grid, .coupon-admin-grid { gap: 1rem; }
  .commerce-form h2 { font-size: 2rem; }
  .coupon-list { padding: 1rem; }
  .coupon-list h2 { font-size: 2rem; }
  .coupon-card { align-items: stretch; }
  .delete-confirm-card dl { grid-template-columns: minmax(0,1fr); }
  .delete-confirm-card form { align-items: stretch; flex-direction: column; }
  .delete-confirm-card form .button, .delete-confirm-card form button { width: 100%; }
  .cart-main, .checkout-main { width: calc(100% - 1rem); padding-top: 1.5rem; }
  .cart-layout, .checkout-layout { gap: 1rem; margin-top: 1rem; }
  .cart-item { grid-template-columns: 76px minmax(0,1fr); gap: .8rem; padding: .85rem; }
  .cart-item img { width: 76px; height: 76px; }
  .cart-item > strong { grid-column: 1 / -1; justify-self: end; }
  .cart-summary, .checkout-form, .checkout-summary { padding: 1rem; }
  .drawer-coupon { grid-template-columns: minmax(0,1fr); }
  .drawer-coupon button { width: 100%; }
  .cart-drawer > header, .drawer-items, .cart-drawer > footer { padding: 1rem; }
  .embedded-payment-page { padding: .5rem; gap: .75rem; }
  .embedded-order-summary, .embedded-payment-card { padding: 1rem; border-radius: .7rem; }
  #paymentBrick_container { min-height: 360px; }
  .learning-history { margin-top: 24px; padding: 1rem; }
  .certificate-check dl div { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .account-metrics { grid-template-columns: minmax(0,1fr); }
  .account-tabs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .account-panel { overflow: hidden; }
  .course-filters { grid-template-columns: minmax(0,1fr); }
  .account-course-image { aspect-ratio: 4 / 3; }
  .account-course-image img { max-height: 230px; }
  .classroom-layout, .classroom-stage, .classroom-sidebar { min-width: 0; }
  .stage-heading h1 { font-size: 1.45rem; }
  .program-module h2 { grid-template-columns: auto minmax(0,1fr) auto; }
}

@media (max-width: 380px) {
  .header-inner { width: calc(100% - 1rem); }
  .original-header .login-link { display: none; }
  .proof-strip { padding-inline: .5rem; }
  .proof-strip div { padding: 1rem; }
  .admin-page .original-brand { display: none; }
  .admin-page .original-header .header-inner { justify-content: flex-start; }
  .account-tabs { grid-template-columns: minmax(0,1fr); }
  .cart-item { grid-template-columns: minmax(0,1fr); }
  .cart-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .cart-item > strong { grid-column: 1; }
}

/* Menú hamburguesa responsive v54 */
.menu-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid rgba(255,255,255,.32); border-radius: .45rem; background: rgba(255,255,255,.08); color: white; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 99px; background: currentColor; transition: transform .2s ease,opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .original-header .header-inner { grid-template-columns: minmax(0,1fr) auto auto; }
  .original-header .menu-toggle { grid-column: 3; grid-row: 1; display: block; }
  .original-header .header-actions { grid-column: 2; grid-row: 1; }
  .original-header .original-nav { grid-column: 1 / -1; display: none; overflow: visible; flex-direction: column; align-items: stretch; gap: .35rem; padding: .5rem 0 0; }
  .original-header.menu-open .original-nav { display: flex; }
  .original-header .original-nav a { width: 100%; padding: .7rem .8rem; }
  .admin-page .original-header .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; overflow: visible; }
  .admin-page .original-header .menu-toggle { grid-column: 2; }
  .admin-page .original-header .original-nav { grid-column: 1 / -1; display: none; width: 100%; }
  .admin-page .original-header.menu-open .original-nav { display: flex; }
  .admin-page .original-header .logout-form { grid-column: 1 / -1; display: none; width: 100%; }
  .admin-page .original-header.menu-open .logout-form { display: block; }
  .admin-page .logout-form button { width: 100%; padding: .7rem .8rem; border-radius: .35rem; background: rgba(255,255,255,.08); text-align: left; }
}

@media (max-width: 480px) {
  .original-header .header-inner { width: calc(100% - 1rem); grid-template-columns: minmax(0,1fr) auto auto; }
  .original-header .original-brand { display: block; font-size: .88rem; }
  .original-header .login-link { display: none; }
  .original-header .header-actions { gap: .5rem; }
  .admin-page .original-header .header-inner { width: 100%; grid-template-columns: minmax(0,1fr) auto; }
  .admin-page .original-header .original-brand { display: block; }
}

/* Filtros de cursos en una sola fila v55 */
@media (max-width: 600px) {
  .course-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 4px; padding: 4px; }
  .course-filters button { min-width: 0; width: 100%; padding: 9px 4px; white-space: nowrap; font-size: .78rem; }
}

/* Acceso al perfil mediante avatar v56 */
.profile-link { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; gap: .55rem; }
.profile-link svg { width: 38px; height: 38px; padding: 7px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-link-text { white-space: nowrap; }

@media (max-width: 820px) {
  .original-header .profile-link { display: inline-flex; }
  .original-header .profile-link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}

/* Navegación y datos móviles en un solo renglón v57 */
@media (max-width: 720px) {
  .account-tabs { display: grid; grid-template-columns: repeat(4,minmax(90px,1fr)); gap: 4px; width: 100%; overflow-x: auto; padding: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .account-tabs button { min-width: 90px; width: 100%; padding: 10px 4px; font-size: .72rem; white-space: nowrap; }
  .account-tabs button span { min-width: 18px; height: 18px; margin-left: 2px; }
  .admin-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px,1fr); grid-template-columns: none; gap: .75rem; width: 100%; overflow-x: auto; margin: 1.5rem 0; padding-bottom: .55rem; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .admin-stats article { min-width: 180px; padding: 1.15rem; scroll-snap-align: start; }
  .admin-users { min-width: 0; padding: 1rem; }
  .admin-table-wrap { display: block; width: 100%; max-width: 100%; overflow-x: scroll; overflow-y: hidden; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scrollbar-width: auto; }
  .admin-table { width: max-content; min-width: 760px; }
}

/* Materiales por cápsula y pantalla completa v58 */
.custom-player-bar { grid-template-columns: auto minmax(0,1fr) auto; }
.player-fullscreen { position: relative; z-index: 4; width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(0,22,35,.72); color: white; font: inherit; font-size: 1.25rem; cursor: pointer; }
.classroom-player:fullscreen { width: 100vw; height: 100vh; max-height: none; aspect-ratio: auto; background: #000; }
.classroom-player:fullscreen iframe { width: 100%; height: 100%; }
.program-lesson-resources { display: grid !important; min-height: 0 !important; gap: .35rem !important; padding: .35rem 1rem .85rem 3.75rem !important; border-left: 3px solid transparent !important; background: #092d43 !important; }
.program-lesson-resources a { min-height: 0 !important; display: flex !important; grid-template-columns: none !important; gap: .45rem !important; padding: .5rem .65rem !important; border: 1px solid rgba(255,255,255,.12) !important; border-radius: .4rem; background: rgba(255,255,255,.06); color: #d7e6ec !important; font-size: .78rem; line-height: 1.3; }
.program-lesson-resources a:hover { border-color: #61ce70 !important; color: #fff !important; }
.program-lesson-resources a span { color: #61ce70; font-weight: 900; }
@media (max-width: 600px) { .custom-player-bar { grid-template-columns: auto minmax(0,1fr) auto; } .player-fullscreen { width: 38px; height: 38px; } .program-lesson-resources { padding-left: 3.25rem !important; } }

/* Corrección visual de materiales v59 */
.program-module nav > .program-lesson-resources { display: grid !important; grid-template-columns: minmax(0,1fr) !important; width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; align-items: stretch !important; gap: .45rem !important; }
.program-resources-title { display: block; width: 100%; color: #8bdc9a; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.program-module nav > .program-lesson-resources > a { box-sizing: border-box; width: 100% !important; min-width: 0 !important; max-width: 100% !important; align-items: center; overflow-wrap: break-word; word-break: normal; white-space: normal; }

/* Filtros comerciales v61 */
.order-filter-form { display: grid; grid-template-columns: minmax(260px,1.5fr) repeat(3,minmax(145px,.65fr)); align-items: end; gap: .85rem; margin: 2rem 0 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; background: white; }
.order-filter-form label { display: grid; min-width: 0; gap: .35rem; font-size: .82rem; font-weight: 850; }
.order-filter-form input, .order-filter-form select { width: 100%; min-width: 0; min-height: 46px; padding: .7rem .75rem; border: 1px solid #afbec5; border-radius: .4rem; background: white; font: inherit; }
.order-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .7rem; }
.order-filter-actions .button { min-width: 150px; border: 0; cursor: pointer; }
.order-stats { margin-top: 1rem; }
@media (max-width: 1100px) { .order-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); } .order-search-field { grid-column: 1 / -1; } }
@media (max-width: 600px) { .order-filter-form { grid-template-columns: minmax(0,1fr); padding: 1rem; } .order-search-field, .order-filter-actions { grid-column: auto; } .order-filter-actions { display: grid; } .order-filter-actions .button { width: 100%; } }

/* Recuperación de carritos v62 */
.abandoned-filter-form { grid-template-columns: minmax(260px,1.5fr) repeat(2,minmax(170px,.7fr)); }
.abandoned-cart-table td:last-child { min-width: 190px; }
.recovery-button { width: 100%; min-width: 165px; border: 0; cursor: pointer; }
.status-recovery_sent { background: #fff3cf; color: #705200; }
@media (max-width: 900px) { .abandoned-filter-form { grid-template-columns: repeat(2,minmax(0,1fr)); } .abandoned-filter-form .order-search-field { grid-column: 1 / -1; } }
@media (max-width: 600px) { .abandoned-filter-form { grid-template-columns: minmax(0,1fr); } .abandoned-filter-form .order-search-field { grid-column: auto; } }

.whatsapp-floating { position: fixed; right: 24px; bottom: 24px; z-index: 35; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s ease,box-shadow .2s ease; }
.whatsapp-floating:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.whatsapp-floating svg { width: 34px; height: 34px; fill: currentColor; }
@media (max-width: 600px) { .whatsapp-floating { right: 15px; bottom: 15px; width: 54px; height: 54px; } .whatsapp-floating svg { width: 31px; height: 31px; } }

/* Detalle público de cursos v75 */
.course-detail-page { background: #f6f8f9; }
.course-detail-page .original-header { position: sticky; top: 0; z-index: 40; }
.course-breadcrumbs { width: min(1152px,calc(100% - 40px)); min-height: 50px; margin: 0 auto; display: flex; align-items: center; gap: .65rem; color: #526875; font-size: .83rem; }
.course-breadcrumbs a { color: #005484; }
.course-breadcrumbs strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-detail-page .course-banner { padding: .72rem max(1rem,calc((100% - 1152px)/2)); background: #005484; font-size: .92rem; }
.course-overview { width: min(1152px,calc(100% - 40px)); margin: 0 auto; padding: 2.5rem 0 3.5rem; display: grid; grid-template-columns: minmax(300px,370px) minmax(280px,1fr) minmax(280px,315px); align-items: start; gap: clamp(1.5rem,3vw,2rem); }
.course-cover-column { min-width: 0; }
.course-overview-image { display: block; width: 100%; height: 370px !important; aspect-ratio: auto; object-fit: contain; border-radius: 11px; background: #005b8e; box-shadow: 0 14px 34px rgba(0,37,59,.11); }
.course-overview-copy { min-width: 0; padding-top: .15rem; }
.course-overview-copy .eyebrow { margin: 0 0 .7rem; }
.course-overview-copy h1 { margin: 0 0 .55rem; color: #005484; font-size: clamp(2rem,2.7vw,2.45rem); letter-spacing: -.025em; text-transform: uppercase; overflow-wrap: anywhere; }
.course-overview-copy .lead { margin: 0 0 1.4rem; color: #526875; font-size: 1.02rem; }
.course-overview-description { margin: 0; color: #425966; font-size: .94rem; line-height: 1.72; white-space: pre-line; }
.course-purchase-card { overflow: hidden; padding: 0 1.35rem 1.35rem; border: 1px solid #dce5e9; border-radius: 11px; box-shadow: 0 16px 36px rgba(0,37,59,.11); }
.course-purchase-card .purchase-price { margin: 0 -1.35rem; padding: 1.25rem; background: #032f43; color: #fff; text-align: center; }
.course-purchase-card .purchase-price strong { color: #fff; font-size: clamp(2rem,3vw,2.65rem); }
.course-purchase-card .purchase-price del { color: #c3d2d8; }
.course-purchase-card .purchase-benefits { margin-top: 0; padding: 1.35rem 0 .4rem; border-top: 0; }
.course-purchase-card .purchase-benefits li { margin: .55rem 0; }
.course-purchase-card .original-primary { width: 100%; min-height: 54px; margin: .65rem 0; border: 0; border-radius: 7px; color: #073147; cursor: pointer; text-transform: uppercase; }
.course-back-button { width: 100%; margin: .2rem 0 .8rem; border: 1px solid #dce5e9; background: #fff; color: #005484; }
.course-program-link { display: block; padding: .45rem; color: #005484; font-size: .86rem; font-weight: 850; text-align: center; }
.course-community { display: grid; gap: .45rem; margin-top: 1rem; padding: 1.1rem; border-radius: 9px; background: #f0f3f4; color: #233f4e; text-decoration: none; }
.course-community strong { color: #233f4e; font-size: .95rem; }
.course-community span { color: #647984; font-size: .82rem; line-height: 1.5; }
.course-detail-page .course-details-section { padding-top: 3rem; background: #fff; }
.course-detail-page .course-details-inner { width: min(1152px,100%); }
.course-detail-page .detail-block { max-width: 900px; }
.course-detail-page .detail-block > h2 { color: #005484; font-size: .9rem; letter-spacing: .1em; }
.course-detail-page .course-facts { max-width: 900px; }
.course-detail-page .faq-block { max-width: 900px; }

@media (max-width: 1000px) {
  .course-overview { grid-template-columns: minmax(240px,.85fr) minmax(0,1.15fr); }
  .course-purchase-card { grid-column: 1/-1; width: min(100%,560px); justify-self: center; }
}
@media (max-width: 680px) {
  .course-breadcrumbs,.course-overview { width: calc(100% - 24px); }
  .course-overview { grid-template-columns: minmax(0,1fr); padding-top: 1.5rem; }
  .course-overview-image { width: min(100%,430px); margin: 0 auto; }
  .course-overview-image { height: auto !important; aspect-ratio: 1/1; }
  .course-overview-copy h1 { font-size: clamp(2rem,11vw,2.8rem); }
  .course-purchase-card { grid-column: auto; width: 100%; }
  .course-detail-page .course-details-section { padding-inline: 12px; }
}

/* Checkout profesional v87 */
.checkout-page { min-height: 100vh; display: flex; flex-direction: column; background: #f6f8f9; color: #082f42; }
.checkout-header { background: #032f43; color: #fff; }
.checkout-header-inner { width: min(1180px,calc(100% - 40px)); min-height: 66px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.checkout-brand,.checkout-back { color: #fff; text-decoration: none; }
.checkout-brand { font-size: 1rem; letter-spacing: .02em; }
.checkout-brand strong { color: #00699f; }
.checkout-back { font-size: .88rem; font-weight: 800; }
.checkout-page .checkout-main { width: min(1180px,calc(100% - 40px)); flex: 1 0 auto; margin: 0 auto; padding: 2rem 0 4rem; }
.checkout-stepper { max-width: 650px; margin: 0 auto 2.6rem; display: grid; grid-template-columns: repeat(3,1fr); }
.checkout-step { position: relative; display: grid; justify-items: center; gap: .45rem; color: #78909a; font-size: .78rem; }
.checkout-step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 17px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px; background: #d6e1e5; }
.checkout-step span { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #d6e1e5; border-radius: 50%; background: #f6f8f9; font-weight: 900; }
.checkout-step.is-active { color: #006493; }
.checkout-step.is-active span { border-color: #61ce70; background: #61ce70; color: #073147; }
.checkout-step.is-complete { color: #237c47; }
.checkout-step.is-complete span { border-color: #61ce70; background: #61ce70; color: #073147; }
.checkout-step.is-complete:not(:last-child)::after { background: #61ce70; }
.checkout-heading { margin-bottom: 1.7rem; }
.checkout-heading .eyebrow { margin: 0 0 .4rem; color: #006493; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.checkout-heading h1 { margin: 0; font-size: clamp(2rem,3.4vw,3rem); line-height: 1.06; letter-spacing: -.035em; }
.checkout-heading > p:last-child { margin: .65rem 0 0; color: #607680; }
.checkout-page .checkout-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(300px,.85fr); gap: 1.5rem; align-items: start; }
.checkout-page .checkout-form,.checkout-page .checkout-summary { border: 1px solid #d6e2e7; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0,43,64,.055); }
.checkout-page .checkout-form { padding: clamp(1.25rem,3vw,2rem); }
.checkout-form-section + .checkout-form-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e4ecef; }
.checkout-section-heading { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1.25rem; }
.checkout-section-heading > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #e7f4f8; color: #006493; font-size: .77rem; font-weight: 900; }
.checkout-page .checkout-form h2 { margin: 0; color: #082f42; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.015em; }
.checkout-section-heading p { margin: .25rem 0 0; color: #6a7f88; font-size: .78rem; }
.checkout-fields { display: grid; gap: 1rem .85rem; }
.checkout-fields.two-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.checkout-fields .field-full { grid-column: 1/-1; }
.checkout-page .checkout-form label { min-width: 0; display: grid; gap: .42rem; color: #173d4f; font-size: .82rem; font-weight: 800; }
.checkout-page .checkout-form label small { color: #71858e; font-weight: 600; }
.checkout-page .checkout-form input { box-sizing: border-box; width: 100%; min-height: 50px; padding: .72rem .85rem; border: 1px solid #b9cbd3; border-radius: 6px; background: #fff; color: #082f42; font: 600 .92rem/1.4 "Nunito Sans",sans-serif; }
.checkout-page .checkout-form input:focus { border-color: #0074aa; outline: 3px solid rgba(0,116,170,.14); }
.checkout-coupon { margin: 1.7rem 0 1.25rem; border: 1px solid #d6e2e7; border-radius: 8px; background: #f2f7f9; }
.checkout-coupon summary { padding: .9rem 1rem; color: #006493; font-size: .82rem; font-weight: 850; cursor: pointer; }
.checkout-coupon-content { padding: 0 1rem 1rem; }
.checkout-coupon .coupon-input { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .55rem; }
.checkout-coupon .button { min-height: 50px; margin: 0; padding: .65rem 1rem; }
.checkout-continue { width: 100%; min-height: 54px; margin: 0; border: 0; border-radius: 6px; background: #61ce70; color: #073147; font-size: .95rem; }
.checkout-continue:hover { background: #76dc84; }
.checkout-security { margin: .8rem 0 0; color: #637983; font-size: .7rem; text-align: center; }
.checkout-page .checkout-summary { position: sticky; top: 1rem; padding: 1.5rem; background: #f0f6f8; }
.checkout-page .checkout-summary h2 { margin: 0 0 1.25rem; color: #082f42; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.checkout-products { display: grid; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid #c9d9df; }
.checkout-product { min-width: 0; display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: .8rem; }
.checkout-product img { width: 64px; height: 64px; padding: 3px; border-radius: 6px; object-fit: contain; background: #e2edf1; }
.checkout-product > div { min-width: 0; display: grid; gap: .2rem; }
.checkout-product > div strong { overflow: hidden; color: #173d4f; font-size: .85rem; text-overflow: ellipsis; }
.checkout-product small { color: #6b8089; font-size: .68rem; }
.checkout-product > strong { color: #082f42; font-size: .82rem; white-space: nowrap; }
.checkout-price-line { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; color: #425f6d; font-size: .85rem; }
.checkout-price-line.cart-total { margin-top: .1rem; padding-top: 1rem; border-top: 1px solid #9fb7c1; color: #082f42; font-size: 1.08rem; }
.checkout-summary-note { margin: .75rem 0 0; color: #6b8089; font-size: .7rem; line-height: 1.45; }
.checkout-page .form-errors { margin-bottom: 1rem; border-radius: 8px; }

@media (max-width: 860px) {
  .checkout-page .checkout-layout { grid-template-columns: minmax(0,1fr); }
  .checkout-page .checkout-summary { position: static; grid-row: 1; }
}
@media (max-width: 560px) {
  .checkout-header-inner,.checkout-page .checkout-main { width: calc(100% - 24px); }
  .checkout-header-inner { min-height: 60px; }
  .checkout-brand { font-size: .85rem; }
  .checkout-back { font-size: .76rem; }
  .checkout-page .checkout-main { padding-top: 1.35rem; }
  .checkout-stepper { margin-bottom: 1.8rem; }
  .checkout-step strong { font-size: .68rem; }
  .checkout-heading h1 { font-size: 2rem; }
  .checkout-fields.two-columns { grid-template-columns: minmax(0,1fr); }
  .checkout-fields .field-full { grid-column: auto; }
  .checkout-page .checkout-form,.checkout-page .checkout-summary { padding: 1rem; }
  .checkout-product { grid-template-columns: 54px minmax(0,1fr); }
  .checkout-product img { width: 54px; height: 54px; }
  .checkout-product > strong { grid-column: 2; }
}

/* Progreso real del pago v88 */
.payment-page,.payment-result-page { min-height: 100vh; display: flex; flex-direction: column; background: #edf3f5; }
.payment-stepper { width: min(650px,calc(100% - 40px)); margin: 1.7rem auto 0; }
.payment-page .embedded-payment-page { width: min(1180px,calc(100% - 40px)); min-height: 0; flex: 1 0 auto; margin: 0 auto; padding: 2.3rem 0 4rem; }
.payment-result-page .order-result { flex: 1 0 auto; }
.payment-status-detail { padding: .75rem 1rem; border-radius: 7px; background: #fff4d8; color: #795800; font-size: .82rem; }
@media (max-width: 850px) { .payment-page .embedded-payment-page { width: calc(100% - 24px); padding: 1.6rem 0 3rem; } }
@media (max-width: 560px) { .payment-stepper { width: calc(100% - 24px); margin-top: 1.25rem; } }

/* Detalle de curso inmersivo v77 */
.course-detail-page .course-overview {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3rem,6vw,5.5rem) max(1.25rem,calc((100% - 1320px)/2));
  grid-template-columns: minmax(280px,.92fr) minmax(310px,1.08fr) minmax(285px,.82fr);
  align-items: center;
  gap: clamp(1.5rem,3vw,3.2rem);
  background: radial-gradient(circle at 54% 45%,#064f76 0%,#053d5c 29%,#032f47 58%,#01283c 100%);
  color: #fff;
}
.course-detail-page .course-overview-copy { padding: 0; }
.course-detail-page .course-type-label { margin: 0 0 1rem; color: #62dc74; font-size: .77rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.course-detail-page .course-overview-copy h1 { max-width: 540px; margin: 0 0 .8rem; color: #fff; font-size: clamp(2.65rem,4.2vw,4.7rem); line-height: .98; letter-spacing: -.045em; }
.course-detail-page .course-overview-copy .lead { margin: 0 0 1.6rem; color: #fff; font-size: 1.03rem; line-height: 1.5; }
.course-detail-page .course-overview-description { display: -webkit-box; max-width: 520px; overflow: hidden; color: #d9e6eb; font-size: .91rem; line-height: 1.75; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.course-detail-page .course-cover-column { align-self: center; }
.course-detail-page .course-overview-image { width: 100%; height: auto !important; aspect-ratio: 4/5; object-fit: cover; object-position: center; border-radius: 17px; background: #09618e; box-shadow: 0 24px 55px rgba(0,0,0,.3); }
.course-quick-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; margin-top: 1.8rem; }
.course-quick-benefits div { min-width: 0; display: flex; align-items: center; gap: .55rem; color: #fff; }
.course-quick-benefits span { box-sizing: border-box; width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1.5px solid #62dc74; border-radius: 7px; color: #62dc74; }
.course-quick-benefits svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.course-quick-benefits strong { font-size: .69rem; line-height: 1.25; }
.course-main-cta { margin-top: 2rem; }
.course-detail-page .course-main-cta .original-primary { min-width: 230px; min-height: 54px; margin: 0; border: 0; color: #073147; text-transform: uppercase; }
.course-main-cta .original-primary span { margin-left: .65rem; font-size: 1.25rem; }
.secure-payment-note,.secure-card-note { margin: .75rem 0 0; color: #c9d8de; font-size: .7rem; text-align: center; }
.secure-payment-note { width: 230px; }
.course-detail-page .course-purchase-card { align-self: center; overflow: visible; padding: 1.15rem 1.35rem 1.25rem; border: 0; border-radius: 17px; background: #fff; color: #183b4c; box-shadow: 0 24px 55px rgba(0,0,0,.27); }
.course-purchase-card .promotion-label { margin: 0 0 .65rem; padding: .6rem .8rem; border-radius: 5px; background: #032f43; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.course-detail-page .course-purchase-card .purchase-price { margin: 0; padding: .2rem 0 1rem; border-bottom: 1px solid #dce5e9; background: transparent; color: #073147; }
.course-detail-page .course-purchase-card .purchase-price del { color: #778a93; font-size: 1.05rem; }
.course-detail-page .course-purchase-card .purchase-price strong { color: #073147; font-size: clamp(2.15rem,3vw,3rem); line-height: 1.1; }
.course-detail-page .course-purchase-card .purchase-price small { display: block; margin-top: .45rem; color: #35a84b; font-size: .75rem; font-weight: 800; }
.course-detail-page .course-purchase-card .purchase-benefits { padding: 1rem 0 .55rem; }
.course-detail-page .course-purchase-card .purchase-benefits li { margin: .55rem 0; color: #294856; font-size: .78rem; }
.course-detail-page .course-purchase-card .original-primary { min-height: 52px; }
.course-detail-page .secure-card-note { color: #657b85; font-size: .65rem; }

@media (max-width: 1050px) {
  .course-detail-page .course-overview { grid-template-columns: minmax(280px,1fr) minmax(280px,1fr); }
  .course-detail-page .course-purchase-card { grid-column: 1/-1; width: min(100%,430px); justify-self: center; }
}
@media (max-width: 700px) {
  .course-detail-page .course-overview { grid-template-columns: minmax(0,1fr); padding: 2.4rem 16px 3rem; }
  .course-detail-page .course-overview-copy { text-align: left; }
  .course-detail-page .course-overview-copy h1 { font-size: clamp(2.55rem,13vw,3.65rem); }
  .course-detail-page .course-cover-column { grid-row: 2; }
  .course-detail-page .course-overview-image { width: min(100%,440px); margin: 0 auto; }
  .course-detail-page .course-purchase-card { grid-column: auto; width: 100%; }
  .course-quick-benefits { gap: .45rem; }
  .course-quick-benefits div { align-items: flex-start; flex-direction: column; }
  .course-detail-page .course-main-cta .original-primary,.secure-payment-note { width: 100%; }
}

/* Inicio institucional v64 */
.home-page { background: #fff; }
.home-page .original-header { position: sticky; top: 0; z-index: 40; box-shadow: 0 8px 24px rgba(0,28,42,.13); }
.home-page .original-nav a { position: relative; }
.home-page .original-nav a::after { content: ""; position: absolute; right: 0; bottom: -.55rem; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.home-page .original-nav a:hover::after { transform: scaleX(1); }
.home-page .original-hero { min-height: 620px; background-position: center 24%; }
.home-page .original-hero-overlay { background: linear-gradient(90deg,rgba(0,40,61,.96) 0%,rgba(0,75,116,.9) 45%,rgba(0,84,132,.62) 100%); }
.home-page .original-hero-content { max-width: none; min-height: 620px; }
.home-page .hero-eyebrow { margin: 0 0 1.15rem; color: #7be38a; font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.home-page .original-hero-content h1 { max-width: 720px; margin-bottom: 2rem; font-family: "Nunito Sans","Segoe UI",Arial,sans-serif; font-size: clamp(2.7rem,3.7vw,3.6rem); font-weight: 850; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.home-page .original-hero-content .lead { max-width: 650px; margin: 0; color: rgba(255,255,255,.94); font-size: 1.08rem; line-height: 1.65; }
.home-page .hero-actions { margin-top: 2.2rem; }
.home-page .original-primary,.home-page .original-secondary { min-height: 52px; padding-inline: 1.7rem; border-radius: .45rem; }
.home-page .original-primary { color: #073147; box-shadow: 0 12px 30px rgba(18,112,55,.25); }
.home-page .proof-strip { position: relative; z-index: 2; max-width: none; margin: 0; padding: 64px clamp(1.25rem,7vw,7rem); border: 0; border-radius: 0; box-shadow: none; overflow: hidden; }
.home-page .proof-strip div { min-height: 82px; display: flex; flex-direction: column; justify-content: center; padding: 0; border: 0; }
.home-page .proof-strip strong { color: #004e78; font-size: 1.05rem; }
.home-page .home-counters { background: #fff; }
.home-page .home-counters div { align-items: center; text-align: center; }
.home-page .home-counters .counter-number { margin: 0 0 12px; color: #005484; font-family: "Nunito Sans",sans-serif; font-size: 48px; font-weight: 800; line-height: 48px; letter-spacing: normal; font-variant-numeric: tabular-nums; }
.home-page .home-counters span { margin: 0; color: #233f4e; font-family: "Nunito Sans",sans-serif; font-size: 14px; font-weight: 700; line-height: 22.4px; letter-spacing: .7px; text-transform: uppercase; }
.home-page .methodologies-section { padding: clamp(4.5rem,8vw,7rem) clamp(1.25rem,7vw,7rem); background: #f5f7f8; }
.home-page .methodologies-heading { width: min(1180px,100%); margin: 0 auto 3.5rem; text-align: center; }
.home-page .methodologies-heading h2 { max-width: none; margin-bottom: .7rem; font-size: clamp(2rem,3.2vw,2.7rem); }
.home-page .methodologies-heading p { margin: 0; color: #526875; }
.home-page .methodologies-grid { width: min(1180px,100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.home-page .methodology-card { position: relative; min-height: 320px; display: grid; place-items: center; overflow: hidden; border-radius: 2px; background-position: center; background-size: cover; color: #fff; isolation: isolate; cursor: default; box-shadow: 0 12px 30px rgba(0,37,59,.1); }
.home-page .methodology-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,84,132,.66); transition: background .28s ease; }
.home-page .methodology-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,transparent 20%,rgba(0,40,61,.78) 100%); opacity: 0; transition: opacity .28s ease; }
.home-page .methodology-card > div { width: 100%; padding: 1.6rem; text-align: center; transform: translateY(28px); transition: transform .28s ease; }
.home-page .methodology-card h3 { margin: 0; color: #fff; font-size: 2.1rem; font-weight: 900; letter-spacing: .02em; }
.home-page .methodology-card p { max-height: 0; margin: .9rem auto 0; overflow: hidden; opacity: 0; color: rgba(255,255,255,.94); font-size: .92rem; line-height: 1.55; transition: max-height .28s ease,opacity .2s ease; }
.home-page .methodology-card:hover::before,.home-page .methodology-card:focus::before { background: rgba(0,84,132,.5); }
.home-page .methodology-card:hover::after,.home-page .methodology-card:focus::after { opacity: 1; }
.home-page .methodology-card:hover > div,.home-page .methodology-card:focus > div { transform: translateY(0); }
.home-page .methodology-card:hover p,.home-page .methodology-card:focus p { max-height: 130px; opacity: 1; }
.home-page .methodology-ia { background-image: url('/images/metodologia-ia.jpg'); }
.home-page .methodology-bim { background-image: url('/images/metodologia-bim.jpg'); }
.home-page .methodology-lean { background-image: url('/images/metodologia-lean.jpg'); }
.home-page .methodology-agile { background-image: url('/images/metodologia-agile.jpg'); }
.home-page .about-edilizia { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: clamp(5rem,9vw,8rem) 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(420px,1fr); align-items: center; gap: clamp(3rem,7vw,7rem); border-bottom: 1px solid #dce5e9; }
.home-page .about-copy .eyebrow { margin-bottom: 1.2rem; }
.home-page .about-copy h2 { margin-bottom: 1.35rem; font-size: clamp(2rem,3.4vw,2.9rem); }
.home-page .about-copy > p:not(.eyebrow) { color: #415a67; font-size: .98rem; line-height: 1.65; }
.home-page .about-carousel { position: relative; min-width: 0; }
.home-page .about-slides { position: relative; overflow: hidden; aspect-ratio: 3/2; border-radius: 14px; background: #e9f1f4; box-shadow: 0 18px 42px rgba(0,37,59,.14); }
.home-page .about-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .45s ease,transform 5s ease; }
.home-page .about-slides img.is-active { opacity: 1; transform: scale(1); }
.home-page .carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(0,40,61,.56); color: #fff; font: 700 2rem/1 Arial,sans-serif; cursor: pointer; }
.home-page .carousel-prev { left: 12px; }
.home-page .carousel-next { right: 12px; }
.home-page .carousel-dots { position: absolute; right: 0; bottom: 16px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 7px; }
.home-page .carousel-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .2s ease,background .2s ease; }
.home-page .carousel-dots button.is-active { width: 24px; background: #fff; }
.home-page .section > * { width: min(1180px,100%); margin-left: auto; margin-right: auto; }
.home-page #cursos { padding-top: clamp(5.5rem,9vw,8rem); }
.home-page #cursos > h2 { max-width: 760px; }
.home-page .catalog-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid #dce5e9; }
.home-page .catalog-heading::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 120px; height: 4px; background: #16853a; }
.home-page .catalog-heading h2 { max-width: none; margin: 0; color: #005484; font-size: clamp(1.65rem,2.7vw,2.15rem); font-weight: 850; letter-spacing: -.025em; text-transform: uppercase; }
.home-page .catalog-heading a { padding-bottom: .25rem; color: #005484; font-size: .82rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.home-page .catalog-heading a:hover { color: #16853a; }
.home-page .course-grid { gap: 1.5rem; }
.home-page .course-card { display: flex; flex-direction: column; border-radius: 3px; box-shadow: 0 12px 34px rgba(0,37,59,.08); transition: transform .2s ease,box-shadow .2s ease; }
.home-page .course-card:hover { transform: translateY(-5px); box-shadow: 0 20px 46px rgba(0,37,59,.14); }
.home-page .course-card-image { aspect-ratio: 1/1; background-color: #005b8e; }
.home-page .course-card-body { flex: 1; display: flex; flex-direction: column; }
.home-page .course-card-body h3 { color: #005484; font-size: 1.2rem; text-transform: uppercase; }
.home-page .course-card-footer { margin-top: auto; }
.home-page .course-card-price { display: grid; justify-items: start; line-height: 1.1; }
.home-page .course-card-price .installment-label { margin-bottom: .2rem; color: #6c7f88; font-size: .78rem; font-weight: 700; }
.home-page .course-card-price strong { color: #061f2b; font-size: clamp(1.6rem,2.4vw,2rem); line-height: 1; white-space: nowrap; }
.home-page .course-card-price small { margin-top: .38rem; color: #6c7f88; font-size: .72rem; }
.home-page .course-card-price del { margin-top: .25rem; font-size: .7rem; }
.home-page .experience-section { padding-top: clamp(5rem,8vw,7rem); padding-bottom: clamp(5rem,8vw,7rem); background: linear-gradient(135deg,#062d40 0%,#004d73 100%); }
.home-page .experience-gallery img { border-radius: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.home-page .steps article { position: relative; overflow: hidden; min-height: 220px; border-radius: 16px; box-shadow: 0 10px 28px rgba(0,37,59,.06); }
.home-page .steps article::after { content: ""; position: absolute; right: -32px; bottom: -32px; width: 105px; height: 105px; border-radius: 50%; background: rgba(0,84,132,.06); }
.home-page .home-contact { margin: 0; width: 100%; padding: clamp(4rem,8vw,7rem) clamp(1.25rem,7vw,7rem); border-radius: 0; background: linear-gradient(120deg,#032f43,#006394); color: white; box-shadow: none; }
.home-page .home-contact .eyebrow,.home-page .home-contact h2,.home-page .home-contact > p { color: white; }
.home-page .home-contact .button { background: var(--accent); color: #073147; box-shadow: none; }
.home-page .contact-inner { width: min(1152px,100%); display: grid; grid-template-columns: minmax(0,.95fr) minmax(420px,1.05fr); align-items: start; gap: clamp(3rem,8vw,8rem); }
.home-page .contact-copy h2 { margin-bottom: 1rem; font-size: clamp(2rem,3.5vw,2.8rem); }
.home-page .contact-copy > p:not(.eyebrow) { max-width: 560px; color: #d4e2e8; }
.home-page .contact-links { display: grid; gap: 1rem; margin-top: 2.5rem; }
.home-page .contact-links a { display: flex; align-items: center; gap: .8rem; color: #fff; font-weight: 750; text-decoration: none; }
.home-page .contact-links a:hover { color: #76df86; }
.home-page .contact-form { display: grid; gap: 1.15rem; padding: clamp(1.5rem,4vw,2.5rem); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.09); }
.home-page .contact-form label { display: grid; gap: .45rem; color: #fff; font-size: .77rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-page .contact-form input,.home-page .contact-form textarea { width: 100%; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; background: rgba(235,244,247,.95); color: #062d40; font: 500 1rem/1.5 "Nunito Sans",sans-serif; text-transform: none; }
.home-page .contact-form input { min-height: 54px; padding: .75rem 1rem; }
.home-page .contact-form textarea { min-height: 120px; padding: .9rem 1rem; resize: vertical; }
.home-page .contact-name-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.home-page .contact-form button { min-height: 54px; border: 0; border-radius: 4px; background: #61ce70; color: #073147; font: 850 1rem "Nunito Sans",sans-serif; cursor: pointer; }
.home-page .contact-form button:hover { background: #76df86; }
.home-page .contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.home-page .contact-feedback { margin: 0; padding: .8rem 1rem; border-radius: 5px; font-size: .9rem; }
.home-page .contact-feedback.is-success { background: rgba(97,206,112,.18); color: #dfffe4; }
.home-page .contact-feedback.is-error { background: rgba(255,115,115,.18); color: #ffe2e2; }
.home-page footer { text-align: center; }

@media (max-width: 820px) {
  .home-page .original-hero,.home-page .original-hero-content { min-height: 610px; }
  .home-page .original-hero { background-position: 58% 24%; }
  .home-page .original-hero-overlay { background: linear-gradient(90deg,rgba(0,40,61,.94),rgba(0,73,112,.78)); }
  .home-page .proof-strip { width: 100%; margin-top: 0; padding: 48px 12px; }
  .home-page .proof-strip div { min-height: 96px; }
  .home-page .experience-section { padding-inline: 1.25rem; }
  .home-page .methodologies-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .methodology-card { min-height: 290px; }
  .home-page .methodology-card > div { transform: none; }
  .home-page .methodology-card::after { opacity: 1; }
  .home-page .methodology-card p { max-height: 130px; opacity: 1; }
  .home-page .catalog-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .home-page .about-edilizia { grid-template-columns: minmax(0,1fr); }
  .home-page .contact-inner { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 520px) {
  .home-page .original-hero,.home-page .original-hero-content { min-height: calc(100svh - 70px); }
  .home-page .original-hero-content h1 { font-size: clamp(2.3rem,10vw,2.85rem); }
  .home-page .proof-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-page .proof-strip div { min-height: 100px; padding: 1rem; border: 0; border-bottom: 1px solid var(--line); }
  .home-page .home-counters .counter-number { font-size: 40px; line-height: 40px; }
  .home-page .proof-strip div:nth-child(odd) { border-right: 1px solid var(--line); }
  .home-page .proof-strip span { font-size: .78rem; line-height: 1.35; }
  .home-page .course-card-image { aspect-ratio: 1/1; }
  .home-page .home-contact { width: 100%; margin: 0; padding-inline: 12px; }
  .home-page .contact-name-grid { grid-template-columns: minmax(0,1fr); }
  .home-page .methodologies-section { padding-inline: 12px; }
  .home-page .methodologies-heading { margin-bottom: 2rem; }
  .home-page .methodologies-grid { grid-template-columns: minmax(0,1fr); }
  .home-page .methodology-card { min-height: 260px; }
  .home-page .about-edilizia { width: calc(100% - 24px); padding-block: 4rem; gap: 2rem; }
  .home-page .about-slides { border-radius: 10px; }
}

/* Detalle de cursos fiel a la web original v79 */
.course-detail-page { background: #f5f7f8; }
.course-detail-page .course-breadcrumbs { width: min(1152px,calc(100% - 40px)); min-height: 56px; margin: 0 auto; display: flex; align-items: center; gap: .65rem; color: #526875; font-size: .83rem; }
.course-detail-page .course-breadcrumbs a { color: #005484; text-decoration: none; }
.course-detail-page .course-banner { padding: .9rem max(1rem,calc((100% - 1152px)/2)); background: #005484; color: #fff; font-size: .95rem; font-weight: 750; text-align: center; }
.course-detail-page .course-overview {
  width: min(1152px,calc(100% - 40px));
  max-width: 1152px;
  margin: 0 auto;
  padding: 3.25rem 0 4rem;
  display: grid;
  grid-template-columns: minmax(280px,370px) minmax(300px,1fr) minmax(270px,310px);
  align-items: start;
  gap: clamp(1.8rem,3.4vw,3.2rem);
  background: transparent;
  color: #233f4e;
}
.course-detail-page .course-cover-column { align-self: start; }
.course-detail-page .course-overview-image { display: block; width: 100%; height: auto !important; aspect-ratio: 1/1; padding: 0; object-fit: contain; object-position: center; border-radius: 11px; background: #eaf1f4; box-shadow: 0 15px 38px rgba(0,37,59,.11); }
.course-detail-page .course-overview-copy { min-width: 0; padding: .1rem 0 0; text-align: left; }
.course-detail-page .course-overview-copy h1 { max-width: none; margin: 0 0 .65rem; color: #005484; font-size: clamp(2rem,3.1vw,2.75rem); font-weight: 850; line-height: 1.06; letter-spacing: -.035em; text-transform: uppercase; }
.course-detail-page .course-overview-copy .lead { margin: 0 0 1.65rem; color: #526875; font-size: 1rem; line-height: 1.55; }
.course-detail-page .course-overview-description { display: block; max-width: none; overflow: visible; color: #425966; font-size: .92rem; line-height: 1.78; white-space: pre-line; -webkit-line-clamp: unset; }
.course-detail-page .course-purchase-card { position: sticky; top: 90px; align-self: start; overflow: hidden; width: 100%; padding: 0 1.25rem 1.25rem; border: 1px solid #dce5e9; border-radius: 11px; background: #fff; color: #233f4e; box-shadow: 0 16px 36px rgba(0,37,59,.11); }
.course-detail-page .course-purchase-card .purchase-price { margin: 0 -1.25rem; padding: 1.25rem; border: 0; background: #032f43; color: #fff; text-align: center; }
.course-detail-page .course-purchase-card .purchase-price del { color: #c3d2d8; font-size: .95rem; }
.course-detail-page .course-purchase-card .purchase-price strong { color: #fff; font-size: clamp(2rem,3vw,2.6rem); line-height: 1.12; }
.course-detail-page .course-purchase-card .purchase-benefits { margin: 0; padding: 1.25rem 0 .45rem; border: 0; }
.course-detail-page .course-purchase-card .purchase-benefits li { margin: .65rem 0; color: #425966; font-size: .84rem; }
.course-detail-page .course-purchase-card .original-primary { width: 100%; min-height: 52px; margin: .55rem 0; border: 0; border-radius: 6px; color: #073147; text-transform: uppercase; }
.course-detail-page .course-back-button { width: 100%; margin: .25rem 0 .7rem; border: 1px solid #dce5e9; background: #fff; color: #005484; }
.course-detail-page .course-program-link { display: block; padding: .4rem; color: #005484; font-size: .8rem; font-weight: 850; text-align: center; }
.course-detail-page .course-community { display: grid; gap: .45rem; margin-top: 1rem; padding: 1rem; border-radius: 8px; background: #f0f3f4; color: #233f4e; text-decoration: none; }
.course-detail-page .course-community strong { color: #233f4e; font-size: .9rem; }
.course-detail-page .course-community span { color: #647984; font-size: .78rem; line-height: 1.5; }
.course-detail-page .course-details-section { padding: 4rem max(1.25rem,calc((100% - 1152px)/2)); background: #fff; }
.course-detail-page .course-details-inner { width: min(1152px,100%); }
.course-detail-page .detail-block,.course-detail-page .course-facts,.course-detail-page .faq-block { max-width: 920px; }
.course-detail-page .detail-block > h2 { color: #005484; font-size: .92rem; letter-spacing: .09em; }
.course-testimonials { max-width: 1152px; margin: 3.5rem 0; }
.course-testimonials > h2 { margin-bottom: 1.5rem; color: #005484; font-size: 1.35rem; text-transform: uppercase; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.testimonial-grid article { padding: 1.35rem; border: 1px solid #dce5e9; border-radius: 10px; background: #f8fafb; }
.testimonial-grid article > span { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: .7rem; border-radius: 50%; background: #005484; color: #fff; font-weight: 900; }
.testimonial-grid strong { color: #e1a500; letter-spacing: .08em; }
.testimonial-grid p { color: #425966; font-size: .88rem; line-height: 1.55; }
.testimonial-grid small { color: #005484; font-weight: 850; }
.public-syllabus { max-width: 920px; margin: 3.5rem 0; }
.public-syllabus > .detail-kicker { margin-bottom: 1rem; }
.public-syllabus details { border: 1px solid #dce5e9; border-radius: 7px; background: #fff; }
.public-syllabus details + details { margin-top: .7rem; }
.public-syllabus summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: 1rem 1.15rem; color: #005484; font-weight: 850; cursor: pointer; }
.public-syllabus summary > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #005484; color: #fff; font-size: .75rem; }
.public-syllabus summary small { color: #6b7f88; font-weight: 650; }
.public-syllabus ul { margin: 0; padding: 0 1.15rem 1rem; list-style: none; }
.public-syllabus li { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; padding: .7rem 0; border-top: 1px solid #edf1f3; color: #425966; font-size: .85rem; }
.public-syllabus li > span { color: #61ce70; }
.public-syllabus li small { color: #6b7f88; }

@media (max-width: 1000px) {
  .course-detail-page .course-overview { grid-template-columns: minmax(260px,.85fr) minmax(0,1.15fr); }
  .course-detail-page .course-purchase-card { position: static; grid-column: 1/-1; width: min(100%,520px); justify-self: center; }
}
@media (max-width: 700px) {
  .course-detail-page .course-breadcrumbs,.course-detail-page .course-overview { width: calc(100% - 24px); }
  .course-detail-page .course-breadcrumbs { overflow: hidden; font-size: .76rem; }
  .course-detail-page .course-overview { grid-template-columns: minmax(0,1fr); padding: 1.6rem 0 3rem; }
  .course-detail-page .course-overview-image { width: min(100%,430px); margin: 0 auto; }
  .course-detail-page .course-overview-copy h1 { font-size: clamp(2rem,10vw,2.7rem); }
  .course-detail-page .course-purchase-card { grid-column: auto; width: 100%; }
  .course-detail-page .course-details-section { padding: 3rem 12px; }
  .course-detail-page .detail-two-columns,.testimonial-grid { grid-template-columns: minmax(0,1fr); }
  .public-syllabus summary { grid-template-columns: auto minmax(0,1fr); }
  .public-syllabus summary small { grid-column: 2; }
}

/* Escala tipográfica compacta para páginas internas v81 */
.cart-main .cart-heading h1,
.checkout-main .cart-heading h1,
.admin-page .admin-heading h1,
.admin-page .admin-form-heading h1 {
  margin-bottom: .8rem;
  font-size: clamp(2.15rem,3.6vw,3.25rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.checkout-form h2,.checkout-summary h2,.cart-summary h2,.admin-users .section-title h2,.commerce-form h2,.coupon-list h2 { font-size: clamp(1.65rem,2.6vw,2.2rem); line-height: 1.12; letter-spacing: -.025em; }
.auth-card h1 { font-size: clamp(1.9rem,4vw,2.55rem); line-height: 1.08; letter-spacing: -.035em; }
.account-welcome-copy h1 { font-size: clamp(2rem,3.6vw,3rem); }
.account-panel-heading h2 { font-size: clamp(1.75rem,3vw,2.4rem); }
.order-result h1,.embedded-order-summary h1 { font-size: clamp(2.15rem,4vw,3.35rem); line-height: 1.06; }
.delete-confirm-card h1 { font-size: clamp(2rem,3.5vw,2.8rem); }
.admin-course-card h2,.module-title h2 { font-size: clamp(1.45rem,2.3vw,2rem); }

@media (max-width: 600px) {
  .cart-main .cart-heading h1,.checkout-main .cart-heading h1,.admin-page .admin-heading h1,.admin-page .admin-form-heading h1 { font-size: clamp(1.9rem,9vw,2.5rem); }
  .checkout-form h2,.checkout-summary h2,.cart-summary h2,.admin-users .section-title h2,.commerce-form h2,.coupon-list h2 { font-size: clamp(1.5rem,7vw,1.95rem); }
  .auth-card h1 { font-size: clamp(1.75rem,8vw,2.25rem); }
  .account-welcome-copy h1 { font-size: clamp(1.9rem,8vw,2.45rem); }
  .account-panel-heading h2 { font-size: clamp(1.65rem,7vw,2rem); }
}

/* Resumen de compra v82 */
.checkout-summary { background: #f1f7f9; border-color: #cfdee4; }
.checkout-summary .cart-total { margin-top: .25rem; padding-top: 1rem; border-top: 1px solid #b9cdd5; color: #003b59; }

/* Carrito público v83 */
.cart-heading h1 { display: flex; align-items: center; gap: .8rem; }
.cart-title-icon { width: 42px; height: 42px; flex: 0 0 42px; fill: none; stroke: #005484; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-item img { width: 150px; height: 150px; padding: 8px; object-fit: contain; object-position: center; background: #eaf2f5; }
@media (max-width: 650px) { .cart-title-icon { width: 34px; height: 34px; flex-basis: 34px; } .cart-item img { width: 96px; height: 96px; padding: 5px; } }

/* Carrito comercial v84 */
.cart-page { background: #f6f8fa; }
.cart-page .original-header { box-shadow: 0 5px 18px rgba(0,37,59,.1); }
.cart-page .cart-main { width: min(1180px,calc(100% - 40px)); padding: 2.7rem 0 3rem; }
.cart-page .cart-heading h1 { margin: .25rem 0 .35rem; font-size: clamp(2.15rem,3.6vw,3.2rem); }
.cart-page .cart-heading > p:last-child { margin: 0; color: #61757e; }
.cart-page .cart-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 1.5rem; margin-top: 1.8rem; }
.cart-products-column { min-width: 0; display: grid; gap: 1rem; }
.cart-page .cart-items { border-radius: 11px; box-shadow: 0 10px 28px rgba(0,37,59,.06); }
.cart-page .cart-item { grid-template-columns: 190px minmax(0,1fr) auto; min-height: 205px; gap: 1.35rem; padding: 1.25rem; }
.cart-page .cart-item img { box-sizing: border-box; width: 190px; height: 170px; padding: 7px; border-radius: 7px; object-fit: contain; background: #e9f1f4; }
.cart-item-copy { min-width: 0; }
.cart-page .cart-item-copy > p:not(.course-type):not(.cart-pack-items) { margin: .3rem 0; color: #61757e; font-size: .84rem; }
.cart-page .cart-item h2 { margin: .2rem 0; font-size: 1.25rem; }
.cart-page .cart-item > strong { align-self: center; color: #062f43; font-size: 1.05rem; }
.cart-item-perks { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; margin: .9rem 0; }
.cart-item-perks span { color: #335362; font-size: .7rem; font-weight: 750; }
.cart-page .remove-cart-item { color: #cf2731; font-size: .75rem; text-decoration: none; }
.cart-trust-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); overflow: hidden; border: 1px solid #d7e2e6; border-radius: 10px; background: #fff; }
.cart-trust-grid article { min-width: 0; display: flex; align-items: center; gap: .7rem; padding: 1.15rem .85rem; }
.cart-trust-grid article + article { border-left: 1px solid #e1e8eb; }
.cart-trust-grid article > span { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #0068a0; font-size: 1.25rem; }
.cart-trust-grid strong,.cart-trust-grid small { display: block; }
.cart-trust-grid strong { color: #173d4f; font-size: .75rem; }
.cart-trust-grid small { margin-top: .2rem; color: #667b84; font-size: .61rem; line-height: 1.35; }
.cart-page .cart-summary { top: 1rem; padding: 1.4rem; border-color: #d7e2e6; border-radius: 11px; box-shadow: 0 10px 28px rgba(0,37,59,.06); }
.cart-page .cart-summary h2 { font-size: 1.65rem; }
.cart-page .cart-summary > div { font-size: .85rem; }
.cart-page .cart-summary .cart-total { border-top: 1px solid #9fb4bd; font-size: 1.08rem; }
.cart-page .drawer-checkout { min-height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 5px; }
.cart-secure-copy { margin: .65rem 0 1rem; color: #526f7d; font-size: .67rem; text-align: center; }
.cart-coupon { padding: .8rem; border-radius: 7px; background: #edf5f8; }
.cart-coupon summary { color: #005484; font-size: .76rem; font-weight: 850; cursor: pointer; }
.cart-coupon form { margin-top: .75rem; }
.cart-coupon label { display: block; margin-bottom: .35rem; color: #526f7d; font-size: .67rem; }
.cart-coupon form > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .4rem; }
.cart-coupon input { min-width: 0; padding: .6rem; border: 1px solid #c5d5dc; border-radius: 4px; font: inherit; font-size: .75rem; }
.cart-coupon .button { margin: 0; padding: .55rem .75rem; font-size: .72rem; }
.cart-help { margin-top: 1.5rem; padding: .9rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 1px solid #d5e1e6; border-radius: 9px; background: #f4f8fa; }
.cart-help > div { display: flex; align-items: center; gap: .8rem; }
.cart-help > div > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #00659a; color: #fff; font-weight: 900; }
.cart-help p,.cart-help strong,.cart-help small { margin: 0; display: block; }
.cart-help strong { color: #005484; font-size: .8rem; }
.cart-help small { margin-top: .2rem; color: #667b84; font-size: .68rem; }
.cart-help .button { padding: .65rem 1rem; font-size: .75rem; }
.cart-footer-security { margin: 1rem 0 0; color: #607680; font-size: .65rem; text-align: center; }

@media (max-width: 980px) {
  .cart-page .cart-layout { grid-template-columns: minmax(0,1fr); }
  .cart-page .cart-summary { position: static; }
}
@media (max-width: 720px) {
  .cart-page .cart-main { width: calc(100% - 20px); padding-top: 1.5rem; }
  .cart-page .cart-item { grid-template-columns: 115px minmax(0,1fr); min-height: 0; gap: .9rem; padding: .9rem; }
  .cart-page .cart-item img { width: 115px; height: 115px; padding: 4px; }
  .cart-page .cart-item > strong { grid-column: 2; justify-self: start; }
  .cart-trust-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cart-trust-grid article:nth-child(3) { border-left: 0; border-top: 1px solid #e1e8eb; }
  .cart-trust-grid article:nth-child(4) { border-top: 1px solid #e1e8eb; }
}
@media (max-width: 480px) {
  .cart-page .cart-heading h1 { align-items: flex-start; font-size: 2rem; }
  .cart-page .cart-title-icon { margin-top: .1rem; }
  .cart-page .cart-item { grid-template-columns: minmax(0,1fr); }
  .cart-page .cart-item img { width: 100%; height: auto; aspect-ratio: 1/1; }
  .cart-page .cart-item > strong { grid-column: auto; }
  .cart-trust-grid { grid-template-columns: minmax(0,1fr); }
  .cart-trust-grid article + article { border-left: 0; border-top: 1px solid #e1e8eb; }
  .cart-help { align-items: stretch; flex-direction: column; }
  .cart-help .button { width: 100%; text-align: center; }
}

/* Zócalo institucional global v85 */
.institutional-footer { width: 100%; margin-top: auto; padding: 2rem max(1.25rem,calc((100% - 1120px)/2)); background: #032f43; color: #fff; }
.institutional-footer-inner { width: min(1120px,100%); margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 2.5rem; }
.footer-social { display: grid; gap: .65rem; padding-right: 2.5rem; border-right: 1px solid rgba(255,255,255,.28); }
.footer-social > span { font-size: .82rem; }
.footer-social nav { display: flex; align-items: center; gap: .8rem; }
.footer-social a { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; text-decoration: none; }
.footer-social a strong { font: 900 1.45rem/1 Arial,sans-serif; }
.footer-social svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact { display: grid; gap: .55rem; }
.footer-contact a,.footer-contact span { color: #fff; font-size: .82rem; text-decoration: none; }
.footer-contact span { color: #c9d9e0; }
.footer-wordmark { justify-self: end; color: #fff; font-size: 1.45rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; }
.admin-page .institutional-footer { width: calc(100% - 250px); margin-left: 250px; }
.admin-page .institutional-footer { display: none; }
.auth-page,.cart-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-page > main,.cart-page > main { flex: 1 0 auto; }

@media (max-width: 980px) { .admin-page .institutional-footer { width: 100%; margin-left: 0; } }
@media (max-width: 680px) {
  .institutional-footer { padding: 1.6rem 1rem; }
  .institutional-footer-inner { grid-template-columns: minmax(0,1fr) auto; gap: 1.35rem; }
  .footer-social { padding-right: 0; border-right: 0; }
  .footer-contact { justify-self: end; text-align: right; }
  .footer-wordmark { grid-column: 1/-1; justify-self: start; padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,.2); width: 100%; }
}
/* El zócalo público no forma parte de ninguna pantalla administrativa. */
.admin-page .site-footer {
  display: none !important;
}
.youtube-import-panel { margin: 1.5rem 0; padding: 1.5rem; border: 1px solid #cbdde5; border-radius: 14px; background: #fff; }
.youtube-import-panel h2,.youtube-import-panel p { margin-top: 0; }
.youtube-import-panel > form:first-of-type { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .8rem; }
.youtube-import-panel label { display: grid; gap: .35rem; font-weight: 750; }
.youtube-import-panel input,.youtube-import-panel select { min-height: 46px; padding: .7rem; border: 1px solid #b9ccd5; border-radius: 7px; font: inherit; }
.youtube-preview-form { margin-top: 1.25rem; }
.youtube-import-options { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; padding: 1rem; border-radius: 9px; background: #edf5f8; }
.youtube-import-options .preview-check { display: flex; align-items: center; gap: .45rem; }
.youtube-import-options .preview-check input { min-height: 0; }
.youtube-video-list { margin-top: 1rem; display: grid; gap: .5rem; max-height: 520px; overflow: auto; }
.youtube-video-item { grid-template-columns: auto 32px minmax(0,1fr); align-items: center; gap: .7rem; padding: .75rem; border: 1px solid #d7e3e8; border-radius: 8px; }
.youtube-video-item input { min-height: 0; }
.youtube-video-item strong,.youtube-video-item small { display: block; }
.youtube-video-item small { margin-top: .2rem; color: #607985; font-weight: 500; }
.youtube-video-item.is-unavailable { opacity: .55; }
.youtube-video-number { color: #06709f; font-weight: 900; text-align: center; }
.lesson-module-form { display: flex; align-items: end; gap: .5rem; padding: .65rem; border-radius: 8px; background: #edf5f8; }
.lesson-module-form label { display: grid; gap: .25rem; font-size: .75rem; font-weight: 800; }
.lesson-module-form select,.lesson-module-form button { min-height: 38px; }
@media (max-width:720px) { .youtube-import-panel > form:first-of-type { grid-template-columns: minmax(0,1fr); } .youtube-import-options { align-items: stretch; flex-direction: column; } }

.admin-delete-action { position: relative; }
.admin-delete-action > summary { color: #a72720; font-weight: 800; cursor: pointer; list-style: none; text-decoration: underline; }
.admin-delete-action > summary::-webkit-details-marker { display: none; }
.admin-delete-action form { display: grid; gap: .65rem; width: min(330px,90vw); margin-top: .65rem; padding: .9rem; border: 1px solid #efc7c4; border-radius: 8px; background: #fff4f3; color: #63201c; }
.admin-delete-action form p { margin: 0; font-size: .82rem; line-height: 1.45; }
.admin-delete-action form label { display: flex; align-items: center; gap: .45rem; font-size: .78rem; }
.button-danger { border: 1px solid #b42318; background: #b42318; color: #fff; }
.admin-delete-action.compact form { position: absolute; z-index: 5; right: 0; width: 230px; box-shadow: 0 12px 30px rgba(0,0,0,.14); }

/* Popup de captación administrable */
.marketing-popup-open { overflow: hidden; }
.marketing-popup-backdrop { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1.25rem; background: rgba(0,25,38,.84); backdrop-filter: blur(4px); }
.marketing-popup-backdrop[hidden] { display: none; }
.marketing-popup { position: relative; width: min(460px,100%); max-height: calc(100vh - 2.5rem); overflow: auto; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.marketing-popup-close { position: absolute; z-index: 2; top: .65rem; right: .65rem; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #002c41; font-size: 1.65rem; line-height: 1; cursor: pointer; }
.marketing-popup-cover { height: 180px; background: linear-gradient(135deg,#005c8d,#002c41); background-position: center; background-size: cover; }
.marketing-popup-content { padding: 2rem 2.15rem 2.2rem; text-align: center; }
.marketing-popup-kicker { margin: 0 0 .35rem; color: #005f8f; font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.marketing-popup-content h2 { margin: 0; color: #eb9216; font-size: clamp(2.4rem,8vw,3.25rem); line-height: 1; }
.marketing-popup-content > p:not(.marketing-popup-kicker):not(.marketing-popup-error) { color: #647681; }
.marketing-popup-content form { display: grid; gap: .85rem; margin-top: 1.5rem; text-align: left; }
.marketing-popup-content label { display: grid; gap: .3rem; color: #263b45; font-size: .82rem; }
.marketing-popup-content input { width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #ccd7dc; border-radius: 9px; font: inherit; }
.marketing-popup-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.marketing-popup-content button[type="submit"] { min-height: 52px; margin-top: .35rem; border: 0; border-radius: 9px; background: #00364e; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.marketing-popup-error { margin: .7rem 0 0; padding: .65rem; border-left: 3px solid #b42318; background: #fff0ef; color: #8a1d17; font-size: .82rem; text-align: left; }
.popup-captured-toast { position: fixed; z-index: 3100; right: 1.25rem; bottom: 1.25rem; max-width: 360px; padding: 1rem 1.25rem; border-radius: 10px; background: #e5f7e9; color: #116329; box-shadow: 0 12px 35px rgba(0,0,0,.18); font-weight: 800; }
.popup-admin-layout { display: grid; grid-template-columns: minmax(300px,420px) minmax(0,1fr); align-items: start; gap: 1.25rem; }
.popup-status-control { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: 10px; background: #eef5f7; }
.popup-status-control strong,.popup-status-control small { display: block; }
.admin-switch input { position: absolute; opacity: 0; }
.admin-switch span { display: block; width: 52px; height: 29px; padding: 3px; border-radius: 20px; background: #9aadb5; cursor: pointer; transition: .2s; }
.admin-switch span::after { content: ""; display: block; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: .2s; }
.admin-switch input:checked + span { background: #38bc62; }
.admin-switch input:checked + span::after { transform: translateX(23px); }
.popup-admin-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; }
.popup-leads-panel { min-width: 0; }
.popup-email-editor { display:grid; gap:.9rem; margin:0; padding:1rem; border:1px solid #d4e0e5; border-radius:10px; }
.popup-email-editor legend { padding:0 .4rem; color:#002f43; font-weight:900; }
.popup-email-editor textarea { width:100%; resize:vertical; }
.popup-mail-status { display:inline-block; padding:.28rem .55rem; border-radius:999px; font-size:.76rem; font-weight:900; }
.popup-mail-status.sent { background:#dff5e4; color:#17652c; }
.popup-mail-status.failed { background:#fee7e5; color:#9a2119; }
.popup-mail-status.pending { background:#edf2f4; color:#58707b; }
@media (max-width:900px) { .popup-admin-layout { grid-template-columns: 1fr; } }
@media (max-width:520px) { .marketing-popup-backdrop { padding: .5rem; } .marketing-popup { max-height: calc(100vh - 1rem); border-radius: 15px; } .marketing-popup-cover { height: 130px; } .marketing-popup-content { padding: 1.35rem 1rem 1.5rem; } .marketing-popup-name-row { grid-template-columns: 1fr; } }
