/*
  ProfeSuite AI public pages — aula contemporánea.
  Sections: tokens, reset/base, themes, shell/header, decoration, hero,
  legal documents, forms, alerts, plan cards, footer, responsive,
  accessibility, reduced motion.
*/

/* tokens */
:root {
  --ink: #152037;
  --muted: #647083;
  --paper: #fffdf8;
  --paper-warm: #fbf4e4;
  --paper-line: rgba(73, 146, 181, .075);
  --board: #0d3236;
  --board-deep: #071f27;
  --board-line: rgba(235, 247, 239, .13);
  --purple: #6d4aff;
  --purple-2: #8b5cf6;
  --cyan: #17c3e6;
  --yellow: #f3c746;
  --pink: #ef8797;
  --green: #29c692;
  --coral: #e25757;
  --white: #ffffff;
  --border: rgba(55, 66, 89, .16);
  --shadow: 0 26px 70px rgba(56, 45, 26, .15);
  --focus: rgba(109, 74, 255, .38);
  --radius: 22px;
}

[data-theme="dark"] {
  --ink: #edf7f3;
  --muted: #b8c7c4;
  --paper: rgba(10, 34, 40, .92);
  --paper-warm: #071f27;
  --paper-line: rgba(220, 245, 239, .06);
  --board: #082b31;
  --board-deep: #051820;
  --board-line: rgba(236, 248, 239, .1);
  --border: rgba(229, 245, 232, .16);
  --shadow: 0 32px 80px rgba(0, 0, 0, .42);
}

/* reset/base */
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper-warm);
  background-image:
    linear-gradient(90deg, transparent 0 7.5%, rgba(225, 115, 117, .1) 7.5% 7.65%, transparent 7.65%),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--paper-line) 31px 32px),
    linear-gradient(180deg, #fffdf8, #f4ead8);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* theme claro y oscuro */
[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 12% 12%, rgba(109, 74, 255, .14), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(23, 195, 230, .12), transparent 32%),
    linear-gradient(145deg, var(--board-deep), var(--board));
}

/* shell y header */
.public-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 46px;
}

.public-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(7, 31, 41, .9);
  box-shadow: 0 16px 40px rgba(6, 16, 29, .18);
  backdrop-filter: blur(18px);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
  font-size: 19px;
  font-weight: 760;
  white-space: nowrap;
}

.public-brand b { color: #a994ff; font-weight: 850; }
.public-brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(243,199,70,.22), rgba(25,195,230,.12));
  box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.public-brand-mark svg {
  width: 31px;
  fill: none;
  stroke: #f7d86c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.public-brand-mark .spark {
  fill: #62d7e7;
  stroke: none;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.public-nav a,
.theme-toggle,
.btn,
.btn-back,
.btn-pay,
.btn-cancel,
.btn-send,
.doc-link,
.auth-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #edf7f3;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.public-nav a:hover,
.theme-toggle:hover,
.btn:hover,
.btn-back:hover,
.btn-pay:hover,
.btn-cancel:hover,
.btn-send:hover,
.doc-link:hover,
.auth-link:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 199, 70, .44);
  background: rgba(255,255,255,.13);
}

.public-nav-cta,
.btn-primary,
.btn-pay,
.btn-send {
  color: #fff !important;
  border-color: rgba(109, 74, 255, .3) !important;
  background: linear-gradient(135deg, var(--purple), var(--purple-2)) !important;
  box-shadow: 0 13px 28px rgba(109, 74, 255, .26);
}

.paper-card .badge {
  margin: 0 0 18px;
}

.btn-premium {
  background: linear-gradient(135deg, var(--purple), var(--cyan)) !important;
}

.btn-cancel {
  color: var(--ink);
  border-color: rgba(226, 87, 87, .44);
  background: rgba(226, 87, 87, .1);
}

/* decoración docente */
.public-main { padding-top: 22px; }
.decor-pencil, .decor-ruler, .decor-eraser, .sticky-note, .chalk-doodle, .tool-strip {
  position: absolute;
  pointer-events: none;
}

.decor-pencil {
  width: 160px;
  height: 15px;
  top: 34px;
  right: -34px;
  border: 1px solid rgba(68,48,10,.25);
  border-radius: 8px 3px 3px 8px;
  background: linear-gradient(90deg, #ef8e9c 0 11%, #d9dde0 11% 16%, #f3c746 16% 84%, #d3a52d 84% 88%, #ead3a5 88% 96%, #303742 96%);
  transform: rotate(-9deg);
}

.decor-ruler {
  width: 160px;
  height: 28px;
  left: -64px;
  bottom: 62px;
  border: 1px solid rgba(102,73,13,.3);
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(83,62,17,.4) 10px 11px), rgba(244,196,73,.82);
  transform: rotate(67deg);
  opacity: .58;
}

.decor-eraser {
  width: 72px;
  height: 36px;
  top: 118px;
  right: 112px;
  border: 3px solid rgba(255,255,255,.18);
  border-radius: 9px;
  background: linear-gradient(90deg, #ef8d9d 0 63%, #ece7dc 63%);
  transform: rotate(10deg);
  opacity: .72;
}

.sticky-note {
  right: 48px;
  bottom: 44px;
  width: 122px;
  min-height: 86px;
  padding: 18px 14px 12px;
  color: #53441d;
  border: 1px solid rgba(108,87,27,.12);
  border-radius: 3px;
  background: #fff0a5;
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
  transform: rotate(4deg);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 11px;
}

.sticky-note::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 12px;
  top: -8px;
  left: 50%;
  background: rgba(234,216,178,.76);
  transform: translateX(-50%) rotate(-2deg);
}

.chalk-doodle {
  color: rgba(229,245,232,.18);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 22px;
}

.chalk-one { left: 34px; top: 102px; transform: rotate(8deg); }
.chalk-two { right: 190px; bottom: 34px; transform: rotate(-7deg); }
.tool-strip {
  left: 32px;
  right: 32px;
  bottom: 18px;
  height: 10px;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(90deg, #eee6d7 0 28%, #f4c94c 28% 63%, #ef94a3 63% 82%, #b6dfef 82%);
  box-shadow: 0 -2px 4px rgba(0,0,0,.22);
}

/* hero */
.public-hero {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 9px solid #a97c4c;
  border-radius: 24px;
  color: #edf7f3;
  background:
    radial-gradient(circle at 80% 10%, rgba(103,181,166,.12), transparent 32%),
    linear-gradient(145deg, #103e3b, #123431);
  box-shadow: inset 0 0 35px rgba(0,0,0,.32), 0 28px 70px rgba(69,53,30,.18);
}

.public-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .15;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.3) 0 1px, transparent 1.5px),
    linear-gradient(105deg, transparent 48%, rgba(255,255,255,.05) 50%, transparent 52%);
  background-size: 38px 38px, 53px 53px, 190px 190px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: 44px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 12px;
  color: #f7d979;
  border: 1px solid rgba(247,217,121,.24);
  border-radius: 999px;
  background: rgba(247,217,121,.08);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3bd0eb;
  box-shadow: 0 0 0 5px rgba(59,208,235,.1);
}

.public-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.public-hero p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 0;
  color: #bdc9c7;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* documentos legales */
.public-section {
  margin-top: 22px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.doc-nav,
.paper-card,
.panel,
.plan,
.cta,
.sub-alert,
.inline-note {
  border: 1px solid var(--border);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent 0 7.5%, rgba(225,115,117,.08) 7.5% 7.65%, transparent 7.65%),
    repeating-linear-gradient(0deg, transparent 0 31px, var(--paper-line) 31px 32px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.doc-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 10px;
  padding: 18px;
}

.doc-nav strong {
  color: var(--ink);
  font-size: 13px;
}

.doc-link {
  min-height: 40px;
  justify-content: flex-start;
  color: var(--ink);
  border-color: var(--border);
  background: rgba(255,255,255,.58);
}

[data-theme="dark"] .doc-link {
  background: rgba(2, 16, 21, .44);
}

.paper-card {
  padding: clamp(22px, 4vw, 42px);
}

.paper-card h2 {
  margin: 24px 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.paper-card h2:first-child { margin-top: 0; }
.paper-card p,
.paper-card li {
  color: var(--muted);
  font-size: 15px;
}

.paper-card p { margin: 0 0 12px; }
.paper-card ul {
  margin: 0 0 14px 22px;
  padding: 0;
}

.section-divider,
.terms-divider,
.privacy-divider {
  height: 1px;
  margin: 18px 0;
  background: rgba(55, 66, 89, .12);
}

.terms-meta,
.privacy-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

/* formulario */
.contact-grid,
.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
}

.panel,
.plan,
.cta {
  padding: 22px;
}

.panel h2,
.panel h3,
.plan h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.board-panel {
  color: #edf7f3;
  background:
    radial-gradient(circle at 80% 10%, rgba(103,181,166,.12), transparent 32%),
    linear-gradient(145deg, #103e3b, #123431);
  box-shadow: inset 0 0 28px rgba(0,0,0,.28), 0 24px 60px rgba(69,53,30,.16);
}

.board-panel h3,
.board-panel .faq strong {
  color: #fff7cf;
}

.board-panel .faq,
.board-panel .help {
  color: #c8d8d3;
}

.panel p,
.plan p,
.cta p {
  color: var(--muted);
}

.ct-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.label,
.field label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}

[data-theme="dark"] .input,
[data-theme="dark"] .textarea,
[data-theme="dark"] .select {
  background: rgba(2, 16, 21, .72);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(109, 74, 255, .48);
  box-shadow: 0 0 0 4px rgba(109, 74, 255, .12);
}

.help {
  color: var(--muted);
  font-size: 13px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mail {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid rgba(23, 195, 230, .35);
  background: rgba(23, 195, 230, .1);
  font-weight: 850;
}

.faq {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.faq li { margin-bottom: 12px; }
.faq strong { color: var(--ink); }

/* alertas */
.inline-note,
.sub-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  padding: 12px 14px;
  box-shadow: none;
  font-size: 14px;
}

.inline-note.ok,
.sub-alert.ok {
  border-color: rgba(41, 198, 146, .42);
  background: rgba(41, 198, 146, .12);
}

.inline-note.err,
.sub-alert.err {
  border-color: rgba(226, 87, 87, .42);
  background: rgba(226, 87, 87, .12);
}

.sub-alert.info {
  border-color: rgba(23, 195, 230, .38);
  background: rgba(23, 195, 230, .1);
}

/* tarjetas de planes */
.sub-header,
.ct-toprow,
.sub-toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sub-right {
  text-align: right;
  color: var(--muted);
  min-width: 240px;
}

.sub-grid,
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plans-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.plan::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  top: 14px;
  right: 16px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 3px 0 #b75868, 0 6px 9px rgba(75,34,41,.2);
}

.plan.pro {
  border-color: rgba(23, 195, 230, .44);
}

.plan.premium {
  border-color: rgba(109, 74, 255, .46);
}

.plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-top: 26px;
}

.plan ul {
  margin: 0 0 16px 20px;
  padding: 0;
  color: var(--muted);
}

.plan strong,
.price strong {
  color: var(--ink);
}

.price {
  margin-top: auto;
  color: var(--ink);
  font-weight: 900;
  font-size: 17px;
}

.plans-grid .price {
  margin-top: 8px;
  font-size: 30px;
}

.price small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.badge,
.tag,
.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--ink);
  background: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 850;
}

[data-theme="dark"] .badge,
[data-theme="dark"] .tag,
[data-theme="dark"] .ribbon {
  background: rgba(2, 16, 21, .48);
}

.ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ribbon.pro,
.tag {
  border-color: rgba(23, 195, 230, .4);
  color: var(--cyan);
}

.ribbon.premium {
  border-color: rgba(109, 74, 255, .42);
  color: #a994ff;
}

.cta {
  margin-top: 18px;
  border-style: dashed;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-form {
  margin: 0;
}

.alert-title,
.plan-active-note {
  color: var(--ink);
  font-weight: 900;
}

.plan-active-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.how {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(55, 66, 89, .12);
}

.how h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.how ol {
  margin: 0 0 0 20px;
  padding: 0;
  color: var(--muted);
}

.plan-comparison-full {
  display: grid;
  gap: 24px;
}

.plan-comparison .price-card,
.plan-comparison-full .plan {
  display: flex;
  flex-direction: column;
}

.plan-comparison .price-card .price,
.plan-comparison-full .plan .price {
  margin-top: 0;
}

.plan-comparison__cta,
.plan-comparison__current {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  opacity: 1;
}

.plan-comparison__cta,
.plan-comparison__cta:visited {
  color: #fff;
}

.plan-comparison__cta--free,
.plan-comparison__cta--free:visited {
  color: #075985 !important;
  border-color: #0284c7 !important;
  background: #f0f9ff !important;
  box-shadow: 0 10px 22px rgba(2, 132, 199, .12);
}

.plan-comparison__cta--free:hover {
  color: #064e7a !important;
  border-color: #0369a1 !important;
  background: #e0f2fe !important;
}

.plan-comparison__cta--pro,
.plan-comparison__cta--pro:visited {
  color: #fff !important;
  border-color: rgba(109, 74, 255, .34) !important;
  background: linear-gradient(135deg, var(--purple), var(--purple-2)) !important;
  box-shadow: 0 13px 28px rgba(109, 74, 255, .26);
}

.plan-comparison__cta--pro:hover {
  background: linear-gradient(135deg, #5d3de0, #7450e8) !important;
}

.plan-comparison__cta--premium,
.plan-comparison__cta--premium:visited {
  color: #fff !important;
  border-color: #6d4aff !important;
  background: linear-gradient(135deg, #6d4aff, #5637d7) !important;
  box-shadow: 0 13px 28px rgba(86, 55, 215, .28);
}

.plan-comparison__cta--premium:hover {
  color: #fff !important;
  border-color: #4f2fc7 !important;
  background: linear-gradient(135deg, #5d3de0, #4529bd) !important;
}

.plan-comparison__current,
.plan-comparison__current:visited,
.plan-comparison__current:hover {
  color: #334155 !important;
  border-color: #94a3b8 !important;
  background: #e2e8f0 !important;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.plan-comparison-full .pricing-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.plan-matrix-section {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(55, 66, 89, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: var(--shadow);
}

.plan-matrix-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--ink);
}

.plan-matrix-table th,
.plan-matrix-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(55, 66, 89, .1);
  text-align: left;
  vertical-align: top;
}

.plan-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #fff;
  background: var(--chalkboard);
}

.plan-matrix-table tbody th {
  font-weight: 850;
}

.plan-matrix-table tr:last-child th,
.plan-matrix-table tr:last-child td {
  border-bottom: 0;
}

.plan-cell {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(55, 66, 89, .12);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .66);
  font-size: 13px;
  font-weight: 800;
}

.plan-cell.included {
  color: #166455;
  border-color: rgba(26, 167, 133, .24);
  background: rgba(26, 167, 133, .12);
}

.plan-cell.not-included {
  color: #9d3c4d;
  border-color: rgba(231, 91, 119, .24);
  background: rgba(231, 91, 119, .1);
}

[data-theme="dark"] .plan-table-wrap {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(10, 20, 32, .72);
}

[data-theme="dark"] .plan-matrix-table th,
[data-theme="dark"] .plan-matrix-table td {
  border-bottom-color: rgba(255, 255, 255, .1);
}

[data-theme="dark"] .plan-cell {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .plan-cell.included {
  color: #8fe7d4;
  border-color: rgba(143, 231, 212, .22);
  background: rgba(143, 231, 212, .1);
}

[data-theme="dark"] .plan-cell.not-included {
  color: #ffb3c0;
  border-color: rgba(255, 179, 192, .22);
  background: rgba(255, 179, 192, .08);
}

/* footer */
.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 34px;
  color: #9ba8b7;
  border-top: 1px solid rgba(255,255,255,.08);
}

.public-brand-footer {
  color: var(--ink);
}

.public-footer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.public-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.public-footer nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.public-footer nav a:hover {
  color: var(--purple);
}

/* responsive */
@media (max-width: 940px) {
  .public-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav {
    justify-content: flex-start;
  }

  .doc-layout,
  .contact-grid,
  .ct-grid {
    grid-template-columns: 1fr;
  }

  .doc-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sub-grid,
  .plans-grid,
  .plans-grid.two {
    grid-template-columns: 1fr;
  }

  .sub-right {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .public-shell,
  .public-footer {
    width: min(100% - 24px, 1180px);
  }

  .public-hero {
    min-height: 240px;
    border-radius: 20px;
  }

  .hero-copy {
    padding: 30px 22px 46px;
  }

  .public-hero h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .sticky-note,
  .decor-ruler,
  .decor-eraser,
  .chalk-doodle {
    display: none;
  }

  .decor-pencil {
    top: 28px;
    right: -70px;
    transform: rotate(-10deg) scale(.86);
  }

  .doc-nav {
    grid-template-columns: 1fr;
  }

  .paper-card,
  .panel,
  .plan,
  .cta {
    padding: 20px;
    border-radius: 18px;
  }

  .public-footer {
    flex-direction: column;
  }

  .public-nav a,
  .theme-toggle {
    min-height: 40px;
    padding: 8px 10px;
  }
}

/* accesibilidad */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--purple);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
