:root {
  --orange: #ff9500;
  --orange-dark: #e08400;
  --orange-light: #fff4e5;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --card: #ffffff;
  --border: #eaeaec;
  --ok: #1a8f4c;
  --ok-bg: #f0faf3;
  --error: #d70015;
  --error-bg: #fff0f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); }

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.container.wide { max-width: 900px; }

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

nav .brand {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: -0.01em;
}

nav a.navlink {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
}

nav a.navlink:hover { color: var(--text); }

h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; }
h2 { font-size: 22px; margin: 56px 0 20px; font-weight: 600; letter-spacing: -0.015em; text-align: center; }
h3 { margin: 0; font-size: 16px; font-weight: 590; letter-spacing: -0.005em; }
p.subtitle { color: var(--muted); margin: 0 0 24px; font-size: 16px; }

/* ---------- Boton de Google ---------- */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #131314;
  color: #e3e3e3;
  border-radius: 980px;
  padding: 14px 28px 14px 22px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.btn-google:active { transform: scale(0.98); }
.btn-google svg { background: #fff; border-radius: 50%; padding: 5px; box-sizing: content-box; width: 20px; height: 20px; }

/* ---------- Cards / general ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.card.connection {
  display: flex;
  align-items: center;
  gap: 16px;
}

.card.connection .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
}
.card.connection .icon svg { width: 20px; height: 20px; }

.card.connection .body { flex: 1; min-width: 0; }
.card.connection .actions { flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: white;
  border: none;
  border-radius: 980px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.82; }
.btn:active { transform: scale(0.98); }

.btn.secondary {
  background: var(--bg-subtle);
  color: var(--text);
}
.btn.secondary:hover { background: #f0f0f0; opacity: 1; }

.btn.danger {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--border);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px;
}
.btn.danger:hover { background: var(--error-bg); opacity: 1; }

.btn.small { padding: 9px 16px; font-size: 13px; }
.btn.full { width: 100%; }

form { margin: 0; }

.field { margin-bottom: 16px; }
.field[hidden] { display: none; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--muted); }
.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: var(--bg-subtle);
  color: var(--text);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--text);
  background: white;
}

.error {
  background: var(--error-bg);
  color: var(--error);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.success {
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}

.hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.hint code {
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* ---------- Auth pages ---------- */

.auth-wrap {
  max-width: 360px;
  margin: 64px auto 0;
}
.auth-wrap .card { padding: 28px; }
.auth-wrap h1 { font-size: 26px; text-align: center; }
.auth-wrap p.subtitle { text-align: center; }
.alt-login { margin-top: 8px; }
.alt-login summary { cursor: pointer; text-align: center; font-size: 14px; color: var(--muted); list-style: none; padding: 8px; }
.alt-login summary::-webkit-details-marker { display: none; }
.alt-login summary:hover { color: var(--text); }
.alt-login .card { margin-top: 12px; }
.auth-wrap .switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
}

/* ---------- Panel ---------- */

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.stepper li {
  flex: 1;
  max-width: 120px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a1a1a6;
  padding-top: 8px;
  border-top: 3px solid #dcdce0;
}
.stepper li.done { color: var(--ok); border-color: #30d158; }
.stepper li.current { color: var(--text); border-color: var(--text); }


.page-head { margin: 8px 0 24px; }
.page-head h1 { font-size: 36px; letter-spacing: -0.03em; margin-bottom: 4px; }
.page-sub { margin: 0; color: var(--muted); font-size: 14px; }

.toast {
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  animation: toast-in 0.35s ease both;
}
.toast.ok { background: var(--ok-bg); color: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 26px;
  padding: 30px 32px;
}
.status-text { min-width: 0; }
.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-title {
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 10px 0 8px;
  text-align: left;
}
.status-sub { margin: 0; font-size: 14px; line-height: 1.55; max-width: 34em; }
.status-action { flex: none; margin: 0; }

.status.is-ready {
  background: linear-gradient(150deg, #1d1d1f 0%, #2c2c2e 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.status.is-ready .status-kicker { color: #30d158; }
.status.is-ready .status-sub { color: rgba(255, 255, 255, 0.66); }

.status.is-setup { background: #f5f5f7; }
.status.is-setup .status-kicker { color: #c77700; }
.status.is-setup .status-sub { color: var(--muted); }

.status.is-error { background: var(--error-bg); }
.status.is-error .status-kicker, .status.is-error .status-title { color: var(--error); }
.status.is-error .status-sub { color: #8a2a2a; word-break: break-word; }

.btn.light { background: #fff; color: var(--text); padding: 12px 22px; font-size: 14px; }
.btn.light:hover { opacity: 0.9; }
.btn:disabled { opacity: 0.6; cursor: default; }

.group-label {
  margin: 34px 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.list-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.row-item:last-child { border-bottom: none; }
.row-item form { margin: 0; }

.row-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f5f5f7;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-body { flex: 1; min-width: 0; }
.row-title .opt { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--muted); background: #f0f0f2; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.row-title { font-size: 15px; font-weight: 590; letter-spacing: -0.005em; }
.row-detail {
  display: block;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-detail.on { color: var(--ok); }
.row-detail .dot { margin-right: 7px; vertical-align: 1px; }

.link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  padding: 6px 4px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.link-btn:hover { color: var(--error); }

.row-item.activity { align-items: flex-start; }
.act-course {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.act-title { font-size: 15px; line-height: 1.4; }
.act-time { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }

.empty {
  text-align: center;
  padding: 38px 28px;
  border: 1px dashed #d8d8dc;
  border-radius: 20px;
  color: var(--muted);
  font-size: 14px;
}
.empty svg { color: #c7c7cc; }
.empty p { margin: 10px auto 0; max-width: 30em; line-height: 1.55; }

@media (max-width: 560px) {
  .page-head h1 { font-size: 30px; }
  .status { flex-direction: column; align-items: flex-start; padding: 24px 22px; border-radius: 22px; }
  .status-action, .status-action .btn { width: 100%; }
  .status-title { font-size: 23px; }
  .row-item { padding: 14px 14px; gap: 12px; }
}

/* Comparativa Aula Virtual / + correos */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { border: 1px solid var(--border); border-radius: 24px; padding: 28px 26px; background: var(--card); display: flex; flex-direction: column; }
.plan-plus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.plan-tag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: #f0f0f2; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.plan-plus .plan-tag { color: var(--orange-dark); background: var(--orange-light); }
.plan h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 4px; }
.plan-for { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-miss { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); line-height: 1.5; }
.plan-note { margin: 18px 0 0; padding: 12px 14px; background: var(--bg-subtle); border-radius: 12px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.plan-note b { color: var(--text); }
.plan-cta { margin-top: 18px; }
.plan-cta .btn { width: 100%; text-align: center; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* =====================================================================
   Web app (alumno con sesion): barra de pestanas, tarjetas, detalle
   ===================================================================== */

nav .brand { display: inline-flex; align-items: center; gap: 8px; }
nav .brand img { border-radius: 6px; }

body.in-app { background: #f5f5f7; }
body.in-app nav:not(.tabbar) { background: rgba(245, 245, 247, 0.82); border-bottom-color: transparent; padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 12px; }
body.in-app .container { padding-bottom: calc(110px + env(safe-area-inset-bottom)); padding-top: 8px; }
body.in-app .list-group, body.in-app .empty { background: #fff; }
body.in-app .empty { border-style: solid; border-color: var(--border); }

.tabbar {
  position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 20; align-items: stretch; border-bottom: 0;
  display: flex; justify-content: center; gap: 0;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}
.tabbar a {
  flex: 1; max-width: 120px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0; text-decoration: none; color: #8e8e93; font-size: 10.5px; font-weight: 500;
}
.tabbar a svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--orange); }
.tabbar a.on svg { stroke-width: 2.1; }

.page-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.back { margin: 0 0 10px; font-size: 15px; }
.back a { color: var(--orange-dark); text-decoration: none; font-weight: 500; }
.h1-course { font-size: 30px !important; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.see-all { font-size: 14px; color: var(--orange-dark); text-decoration: none; font-weight: 500; }
.small-note { margin: 8px 4px 0; }
.empty.slim { padding: 20px 22px; }
.empty.slim p { margin: 0 auto; }

/* Tarjetas de avisos */
.cards { display: grid; gap: 10px; }
.icard {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border-radius: 18px; padding: 14px 14px 14px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.icard.leaving { opacity: 0; transform: translateX(24px); }
.icard.is-new { box-shadow: 0 0 0 1.5px var(--orange), 0 4px 14px rgba(255, 149, 0, 0.12); }
.icard-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
.icard-link::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.icard-course { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.01em; }
.icard-title { font-size: 16px; font-weight: 590; line-height: 1.3; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.icard.is-done .icard-title { text-decoration: line-through; color: var(--muted); }
.icard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.icard-ask { margin-top: 6px; font-size: 13.5px; color: #3a3a3c; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chev { flex: none; width: 18px; height: 18px; margin-top: 12px; fill: none; stroke: #c7c7cc; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.new-pill { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 1px; }

.tag, .dif, .due {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: #f0f0f2; color: #48484a;
}
.dif-baja { background: #e8f8ee; color: #1a8f4c; }
.dif-media { background: #fff4e5; color: #c46a00; }
.dif-alta { background: #ffeceb; color: #d70015; }
.dif.big { height: 30px; padding: 0 14px; font-size: 15px; }
.due-urgent { background: #ffeceb; color: #d70015; }
.due-soon { background: #fff4e5; color: #c46a00; }
.due-later { background: #eef4ff; color: #0a60d0; }
.due-past { background: #f0f0f2; color: #8e8e93; }

.kind-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f0f0f2; color: #48484a; }
.kind-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.k-task { background: #fff4e5; color: #e08400; }
.k-video { background: #f3ecff; color: #8944ab; }
.k-image { background: #e8f8ee; color: #1a8f4c; }
.k-mail { background: #eef4ff; color: #0a60d0; }
.k-doc { background: #ffeceb; color: #d1453b; }
.k-link, .k-folder { background: #eef6f8; color: #2b7a8c; }

.check-form { position: relative; z-index: 2; flex: none; }
.check {
  width: 30px; height: 30px; margin: 5px; border-radius: 50%; border: 2px solid #c7c7cc; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.check svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.check:hover { border-color: #30d158; }
.is-done .check { background: #30d158; border-color: #30d158; }
.is-done .check svg { opacity: 1; }

/* Selector Pendientes/Hechas y chips de filtro */
.segmented { display: flex; background: #e9e9ec; border-radius: 12px; padding: 3px; margin-bottom: 4px; }
.segmented a { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-size: 14px; font-weight: 500; text-decoration: none; color: #48484a; }
.segmented a.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); font-weight: 600; }
.segmented .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.08); font-size: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 14px; text-decoration: none; color: #48484a; }
.chips a.on { background: var(--text); color: #fff; border-color: var(--text); }

/* Asignaturas */
a.course-row { text-decoration: none; color: inherit; }
.course-badge {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 75% 58%), hsl(calc(var(--h) + 30) 70% 48%));
}
.course-row .chev { margin-top: 0; }
.row-detail .warn { color: #c46a00; font-weight: 500; }
.row-detail .fresh { color: #1a8f4c; font-weight: 500; }

/* Detalle de un aviso */
.detail { background: #fff; border-radius: 22px; padding: 22px 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-head .kind-ico { width: 48px; height: 48px; border-radius: 14px; }
.detail-course { font-size: 13px; font-weight: 600; color: var(--orange-dark); text-decoration: none; }
.detail-title { font-size: 24px !important; margin: 2px 0 4px !important; line-height: 1.2 !important; overflow-wrap: anywhere; }
.detail-sub { margin: 0; font-size: 13px; color: var(--muted); }
.deadline-box { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #f5f5f7; }
.deadline-box svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.deadline-box b { display: block; font-size: 16px; }
.deadline-box span { font-size: 13px; opacity: 0.85; }
.deadline-box.due-urgent { background: #ffeceb; color: #b3000f; }
.deadline-box.due-soon { background: #fff4e5; color: #a35800; }
.deadline-box.due-later { background: #eef4ff; color: #0a52b3; }
.analysis { margin-top: 18px; }
.analysis-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: #f5f5f7; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }
.sub-label { margin: 20px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.analysis-text { margin: 0; font-size: 15.5px; line-height: 1.55; }
.needs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.needs li { position: relative; padding-left: 22px; font-size: 15px; }
.needs li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.ai-note { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.summary { margin: 0; font-size: 14.5px; line-height: 1.6; color: #3a3a3c; white-space: pre-line; overflow-wrap: anywhere; }
.detail-actions { display: grid; gap: 10px; margin-top: 24px; }
.btn.light-ok { background: #e8f8ee; color: #1a8f4c; }

/* Notificaciones / instalar */
.push-card, .install-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 18px; padding: 16px; margin: 0 0 8px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.push-card[hidden], .install-card[hidden] { display: none; }
.push-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; }
.push-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-body { flex: 1; min-width: 0; font-size: 14px; }
.push-body b { font-size: 15px; }
.push-body p { margin: 4px 0 10px; color: var(--muted); line-height: 1.45; }
.push-msg { color: #1a8f4c !important; font-weight: 500; margin: 6px 0 0 !important; }
.ios-steps { margin: 6px 0 0; padding-left: 20px; color: #3a3a3c; line-height: 1.7; }
.ios-share { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: #0a84ff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-card { justify-content: space-between; align-items: center; }
.install-card p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }

/* Ajustes */
.settings .row-item.column { flex-direction: column; align-items: stretch; gap: 10px; }
.switch-row { cursor: pointer; }
.toggle { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 999px; background: #e9e9ea; position: relative; cursor: pointer; transition: background 0.2s; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.toggle:checked { background: #34c759; }
.toggle:checked::after { transform: translateX(20px); }
.radio-list { display: grid; gap: 8px; }
.radio-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.radio-list label:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.radio-list input { margin-top: 3px; accent-color: var(--orange); }
.radio-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
details.more { margin: 12px 4px 0; }
details.more summary { cursor: pointer; font-size: 14px; color: var(--orange-dark); font-weight: 500; padding: 6px 0 12px; }
.sync-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.settings-foot { display: flex; justify-content: center; gap: 24px; margin-top: 28px; font-size: 14px; }
.settings-foot a { color: var(--muted); }

@media (min-width: 760px) {
  body.in-app .container { max-width: 680px; }
}
body.in-app .row-detail { white-space: normal; overflow: visible; text-overflow: clip; }
.course-badge { font-size: 15px; letter-spacing: -0.02em; }

/* =====================================================================
   Web publica (portada, entrar, privacidad): tono calido, papel y tinta
   ===================================================================== */

body.public {
  --paper: #fbf7f1;
  --paper-2: #f4ede3;
  --ink: #1b1714;
  --ink-2: #5d544b;
  --line: #e9dfd2;
  --accent: #e8700a;
  --accent-ink: #b35200;
  --accent-soft: #fde8d2;
  background: var(--paper);
  color: var(--ink);
}
body.public nav:not(.footer-links) { background: rgba(251, 247, 241, 0.86); border-bottom-color: transparent; }
body.public nav .brand { color: var(--ink); }
body.public nav a.navlink {
  color: var(--ink); font-weight: 500; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
}
body.public .container.bleed { max-width: none; padding: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

.display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600; font-size: clamp(44px, 6.4vw, 78px); line-height: 1.0; letter-spacing: -0.025em;
  margin: 0 0 24px; font-variation-settings: "opsz" 144;
}
.display.small { font-size: clamp(34px, 4.6vw, 56px); }
.underline {
  color: var(--accent); white-space: nowrap; padding-bottom: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12c48-7 103-10 152-8 46 2 92 5 142-1' fill='none' stroke='%23e8700a' stroke-width='5' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E") bottom / 100% 0.28em no-repeat;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 0 0 32px; max-width: 32em; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.cta-row.center { justify-content: center; }
.link-arrow { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 2px; }
.link-arrow::after { content: " →"; color: var(--accent); }
.link-arrow:hover { border-bottom-color: var(--accent); }
.assurances { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.assurances li { display: flex; align-items: center; gap: 7px; }
.assurances svg { width: 17px; height: 17px; fill: none; stroke: #2f7d4f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Portada */
.hero { padding: 48px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-visual::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-45%, -50%); background: radial-gradient(circle, #fde3c6 0%, rgba(253, 227, 198, 0) 68%);
}
.device {
  position: relative; width: 300px; border-radius: 46px; padding: 11px; background: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(70, 40, 10, 0.45), 0 18px 30px -18px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}
.device-screen { position: relative; border-radius: 36px; background: #f5f5f7; padding: 14px 13px 62px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.ds-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 10px 12px; }
.ds-icons { display: flex; gap: 4px; align-items: center; }
.ds-icons i { display: block; width: 14px; height: 8px; border-radius: 2px; background: var(--ink); opacity: 0.8; }
.ds-title { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; padding: 0 4px 10px; }
.ds-seg { display: flex; background: #e6e6e9; border-radius: 10px; padding: 3px; margin: 0 2px 4px; font-size: 12px; }
.ds-seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; color: #555; }
.ds-seg span.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.ds-seg b { font-weight: 600; background: rgba(0, 0, 0, 0.07); border-radius: 99px; padding: 0 6px; }
.ds-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a8e; padding: 12px 6px 6px; }
.ds-card { display: flex; gap: 10px; background: #fff; border-radius: 15px; padding: 11px 11px; margin-bottom: 8px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03); }
.ds-check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c7c7cc; margin-top: 2px; }
.ds-check.on { background: #30d158; border-color: #30d158; }
.ds-card.done .ds-name { text-decoration: line-through; color: #8a8a8e; }
.ds-course { font-size: 10.5px; font-weight: 600; color: #8a8a8e; }
.ds-name { font-size: 13.5px; font-weight: 650; line-height: 1.25; margin: 1px 0 6px; }
.ds-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.ds-pills span { font-size: 10px; font-weight: 650; padding: 2px 7px; border-radius: 99px; background: #efeff1; color: #48484a; }
.p-red { background: #ffeceb !important; color: #d70015 !important; }
.p-orange { background: #fff1e0 !important; color: #c46a00 !important; }
.p-green { background: #e6f6ec !important; color: #1a8f4c !important; }
.p-blue { background: #ebf2ff !important; color: #0a60d0 !important; }
.ds-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; display: flex; justify-content: space-around; align-items: center; background: rgba(255, 255, 255, 0.92); border-top: 1px solid #e8e8ea; }
.ds-tabbar span { width: 22px; height: 22px; border-radius: 7px; background: #d6d6da; }
.ds-tabbar span.on { background: var(--accent); }
.float-notif {
  position: absolute; left: -34px; bottom: 112px; width: 270px; display: flex; gap: 10px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-radius: 20px; box-shadow: 0 20px 40px -18px rgba(70, 40, 10, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: rotate(-3deg); animation: drift 6s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-6px); } }
.fn-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #ffb340, #f27600); color: #fff; display: flex; align-items: center; justify-content: center; }
.fn-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fn-head { display: flex; justify-content: space-between; font-size: 11px; color: #8a8a8e; }
.fn-head b { font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #6c6c70; }
.fn-title { font-size: 13px; font-weight: 650; }
.fn-text { font-size: 13px; color: #3a3a3c; line-height: 1.3; }

/* Bandas */
.band { padding: 96px 0; border-top: 1px solid var(--line); }
.section-title {
  font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06; letter-spacing: -0.02em; text-align: center; margin: 0 0 18px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-title.left, .section-sub.left { text-align: left; }
.section-sub { text-align: center; font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 auto 44px; max-width: 38em; }

.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.vs-card { border-radius: 26px; padding: 32px 30px; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 17px; line-height: 1.5; }
.vs-card li { position: relative; padding-left: 32px; }
.vs-kicker { margin: 0 0 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.vs-before { background: var(--paper-2); color: var(--ink-2); }
.vs-before .vs-kicker { color: #9a8f84; }
.vs-before li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 14px; height: 2px; background: #b9ada0; border-radius: 2px; }
.vs-after { background: #fff; box-shadow: 0 0 0 1.5px var(--accent), 0 30px 60px -36px rgba(232, 112, 10, 0.5); }
.vs-after .vs-kicker { color: var(--accent-ink); }
.vs-after li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%23b35200' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px 28px 26px; display: flex; flex-direction: column; }
.step-num { font-family: "Fraunces", Georgia, serif; font-size: 46px; font-weight: 600; line-height: 1; color: var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 8px; }
.step p { margin: 0 0 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; flex: 1; }
.mini { border-radius: 16px; background: var(--paper); border: 1px solid var(--line); padding: 14px; font-size: 13.5px; }
.mini-google { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.g-dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.mf-row { display: flex; justify-content: space-between; padding: 4px 2px; color: var(--ink-2); }
.mf-row b { color: var(--ink); font-weight: 600; }
.mf-row + .mf-row { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.mini-notif { display: flex; gap: 10px; line-height: 1.35; background: #fff; }
.mn-icon { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(145deg, #ffb340, #f27600); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 48px; }
.feature h3 { font-size: 20px; letter-spacing: -0.015em; margin: 22px 0 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.feature-art { height: 170px; border-radius: 24px; background: #fff; border: 1px solid var(--line); padding: 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.fa-row { display: flex; align-items: center; gap: 10px; }
.fa-c { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cfc6bb; }
.fa-c.on { background: #2f7d4f; border-color: #2f7d4f; }
.fa-line { height: 9px; border-radius: 9px; background: #ece4d9; }
.fa-line.muted { background: #f3eee7; }
.w50 { width: 50%; } .w55 { width: 55%; } .w60 { width: 60%; } .w62 { width: 62%; } .w66 { width: 66%; } .w70 { width: 70%; } .w75 { width: 75%; } .w90 { width: 90%; }
.fa-pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #efe9e1; color: var(--ink-2); }
.fa-pill.red { background: #fde6e4; color: #c8372d; }
.fa-pill.orange { background: var(--accent-soft); color: var(--accent-ink); }
.fd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.fd-stats span { background: var(--paper); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fd-stats small { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a8f84; }
.fd-stats b { font-size: 18px; }
.fd-stats b.orange { color: var(--accent-ink); }
.fs-row { display: flex; align-items: center; gap: 12px; }
.fs-badge { flex: none; width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, hsl(var(--h) 72% 56%), hsl(calc(var(--h) + 30) 66% 46%)); }

body.public .plan { border-color: var(--line); border-radius: 26px; }
body.public .plan-plus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
body.public .plan-tag { background: var(--paper-2); color: var(--ink-2); }
body.public .plan-plus .plan-tag { background: var(--accent-soft); color: var(--accent-ink); }
body.public .plan-note { background: var(--paper); }

.trust { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.trust-list li { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px 20px 58px; position: relative; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.trust-list li b { color: var(--ink); }
.trust-list li::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 24px; height: 24px; border-radius: 8px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='11' width='12' height='9' rx='2' fill='none' stroke='%23b35200' stroke-width='2.2'/%3E%3Cpath d='M9 11V8.5a3 3 0 0 1 6 0V11' fill='none' stroke='%23b35200' stroke-width='2.2'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.note { margin: 0; text-align: center; }
.note blockquote {
  margin: 0 0 28px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500;
  font-size: clamp(22px, 2.6vw, 29px); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink);
}
.note figcaption { display: inline-flex; align-items: center; gap: 12px; text-align: left; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.note figcaption b { color: var(--ink); }
.note-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: "Fraunces", Georgia, serif; font-size: 20px; font-weight: 600; }

.faq { margin-top: 40px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-size: 17px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.closing { background: var(--ink); color: #fff; text-align: center; padding: 104px 0; }
.closing .display { color: #fff; margin-bottom: 14px; }
.closing p { color: rgba(255, 255, 255, 0.7); font-size: 18px; margin: 0 0 34px; }
.closing .btn-google { background: #fff; color: var(--ink); box-shadow: none; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-2); background: var(--paper); }
body:not(.public) .site-footer { background: #fff; border-top-color: var(--border); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: inherit; text-decoration: none; color: var(--ink, #1d1d1f); }
.site-footer .brand img { border-radius: 6px; }
.site-footer p { margin: 8px 0 0; max-width: 34em; }
.footer-links { display: flex; gap: 22px; position: static; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.footer-links a { color: inherit; }

/* Entrar y privacidad con el mismo estilo */
body.public .auth-wrap { padding-top: 48px; }
body.public .auth-wrap h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 40px; }
body.public .card { border-color: var(--line); }

@media (max-width: 900px) {
  .hero { padding: 24px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lead { font-size: 17.5px; }
  .hero-visual { margin-top: 8px; }
  .float-notif { left: 50%; bottom: 96px; margin-left: -175px; width: 250px; }
  .versus, .steps, .features, .trust { grid-template-columns: 1fr; }
  .band { padding: 72px 0; }
  .trust { gap: 28px; }
}
@media (max-width: 420px) {
  .device { width: 272px; }
  .float-notif { margin-left: -150px; width: 236px; }
  .btn-google { padding: 13px 22px 13px 16px; font-size: 15px; }
}
.eyebrow .short { display: none; }
@media (max-width: 520px) { .eyebrow .long { display: none; } .eyebrow .short { display: inline; } }

/* ---------- Acabado premium de la portada ---------- */
body.public::before {
  /* grano de papel muy sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.public > * { position: relative; z-index: 1; }
body.public nav:not(.footer-links) { position: sticky; z-index: 30; }

.section-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-ink);
}
.section-eyebrow::before, .section-eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.4; }
.section-eyebrow.left { justify-content: flex-start; }
.section-eyebrow.left::after { display: none; }

/* movil mas realista */
.device { width: 316px; padding: 10px; border-radius: 52px; background: linear-gradient(150deg, #3a332d 0%, #16120f 40%, #2a241f 100%); }
.device::before { /* boton lateral */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 74px; border-radius: 0 3px 3px 0; background: #2a241f;
}
.device::after { /* reflejo */
  content: ""; position: absolute; inset: 0; border-radius: 52px; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.device-screen { border-radius: 42px; padding-top: 16px; }
.device-screen::before { /* isla */
  content: ""; position: absolute; top: 11px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0d0b09;
}
.ds-status { padding: 2px 18px 18px; }
.ds-name { font-size: 13px; }

/* tarjetas con mas profundidad */
.step, .feature-art, .trust-list li, .faq details, body.public .plan {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -30px rgba(80, 45, 10, 0.28);
}
.step, .feature-art { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.step:hover, .feature-art:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 28px 50px -30px rgba(80, 45, 10, 0.38); }
.fs-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-google { position: relative; overflow: hidden; }
.btn-google::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
}

/* franja de carreras */
.degrees { padding: 8px 0 72px; text-align: center; }
.degrees-title { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span {
  flex: none; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 500; color: var(--ink);
}
.marquee-track span:nth-child(3n+2) { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .float-notif { animation: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
}
@media (max-width: 420px) { .device { width: 290px; } }
.degrees-title { padding: 0 24px; }
@media (max-width: 600px) {
  .marquee-track span { font-size: 15px; padding: 8px 14px; }
  .degrees { padding-bottom: 56px; }
}

/* Tarjetas de "Todo en un solo sitio" con contenido real */
.feature-art { height: auto; min-height: 178px; }
.mt-row { display: flex; align-items: center; gap: 10px; }
.mt-row + .mt-row { padding-top: 10px; border-top: 1px solid var(--line); }
.mt-check { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc6bb; }
.mt-check.on { border-color: #2f7d4f; background: #2f7d4f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mt-text { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.mt-text small { display: block; font-size: 11px; font-weight: 600; color: #9a8f84; }
.mt-row.done .mt-text { color: #9a8f84; text-decoration: line-through; }
.mt-row.done .mt-text small { text-decoration: none; }
.fa-pill.green { background: #e3f3e8; color: #2f7d4f; }
.fd-ask { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.fd-ask small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9a8f84; margin-bottom: 3px; }

/* Como llegan los avisos */
.arrive { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.lock { display: flex; justify-content: center; }
.lock-screen {
  width: 300px; border-radius: 44px; padding: 44px 14px 28px; border: 10px solid var(--ink);
  background: radial-gradient(130% 90% at 30% 0%, #f4a259 0%, #c4583a 38%, #3b2433 78%, #1d1622 100%);
  color: #fff; box-shadow: 0 40px 80px -34px rgba(70, 40, 10, 0.5);
}
.lock-time { text-align: center; font-size: 64px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.lock-date { text-align: center; font-size: 14px; opacity: 0.85; margin: 6px 0 36px; }
.lock-notif { display: flex; gap: 10px; padding: 11px 12px; margin-bottom: 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ln-icon { flex: none; width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(145deg, #ffb340, #f27600); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.ln-head { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.8; }
.ln-head b { letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.ln-title { font-size: 13px; font-weight: 650; }
.ln-text { font-size: 13px; opacity: 0.94; line-height: 1.3; }
.arrive-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.arrive-list li { padding-left: 30px; position: relative; }
.arrive-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 4px var(--accent); }
.arrive-list b { color: var(--ink); }
.arrive-note { margin: 22px 0 0; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) { .arrive { grid-template-columns: 1fr; gap: 36px; } .lock { order: 2; } }
@media (max-width: 420px) { .lock-screen { width: 280px; } }

/* Planes y precios */
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 6px; }
.plan-price b { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
body.public .plan-price b { font-family: "Fraunces", Georgia, serif; font-weight: 600; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-btn { display: block; width: 100%; text-align: center; margin-top: 20px; }
.plan form { margin-top: auto; }
.plan-current { display: block; margin-top: 20px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 11px; }
.plan-seats { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.plan-status { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04); }
.plan-status b { font-size: 17px; }
.plan-status span { color: var(--muted); font-size: 14px; }
.plan-status.is-warn { background: #fff4e5; }
.plan-banner { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; background: #fff; border-radius: 18px; padding: 14px 16px; margin: 0 0 8px; box-shadow: 0 0 0 1.5px var(--orange); }
.plan-banner span { font-size: 14px; color: var(--orange-dark); }
.plan-banner.is-warn { background: #fff4e5; }
.faq-mini { margin: 24px 4px 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.faq-mini b { color: var(--text); }
body.public .plan-btn.secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.navanchor { font-size: 14.5px; font-weight: 500; color: var(--ink-2, #6e6e73); text-decoration: none; }
.navanchor:hover { color: var(--ink, #1d1d1f); }
@media (max-width: 640px) { .navanchor { display: none; } }
html { scroll-padding-top: 80px; }

/* Botones de los planes: misma altura, mismo estilo y mismo efecto */
.plan-cta-area { margin-top: auto; padding-top: 22px; }
.plan .plan-btn, .plan form { margin-top: 0; }
.btn.plan-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 20px;
  border-radius: 999px; font-size: 15.5px; font-weight: 600; border: 0;
  background: #1d1a17; color: #fff; opacity: 1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 18px -10px rgba(30, 20, 10, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn.plan-btn:hover { opacity: 1; background: #2b2622; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 12px 24px -12px rgba(30, 20, 10, 0.6); }
.btn.plan-btn:active { transform: translateY(0); }
.btn.plan-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.plan-current { margin-top: 0; height: 52px; display: flex; align-items: center; justify-content: center; }
.plan-seats { margin-top: 10px; }

/* Fechas de los cuatrimestres */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: -20px auto 32px; max-width: 640px; }
.term { background: #fff; border: 1px solid var(--line, #eaeaec); border-radius: 18px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.term span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink, #b35200); }
.term b { font-size: 17px; }
.term small { font-size: 13px; color: var(--ink-2, #6e6e73); }
@media (max-width: 520px) { .terms { grid-template-columns: 1fr; margin-top: -16px; } }

/* ---------- Movil: mas compacto y proporcionado ---------- */
.mf-row { gap: 12px; }
.mf-row b { text-align: right; }
@media (max-width: 600px) {
  body.public { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 12px 0 56px; }
  .display { font-size: 46px; margin-bottom: 18px; }
  .lead { font-size: 16.5px; line-height: 1.55; margin-bottom: 26px; }
  .cta-row { gap: 14px; }
  .cta-row .btn-google { width: 100%; justify-content: center; }
  .assurances { margin-top: 20px; gap: 6px 16px; font-size: 13.5px; }
  .band { padding: 56px 0; }
  .section-title { font-size: 31px; margin-bottom: 12px; }
  .section-sub { font-size: 16px; margin-bottom: 28px; }
  .section-eyebrow { font-size: 11.5px; margin-bottom: 12px; }
  .versus { margin-top: 28px; gap: 14px; }
  .vs-card { padding: 22px 20px; border-radius: 22px; }
  .vs-card ul { font-size: 15.5px; gap: 12px; }
  .steps { margin-top: 28px; gap: 14px; }
  .step { padding: 20px; border-radius: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .step-num { font-size: 34px; margin: 0; grid-row: span 2; }
  .step h3 { font-size: 18px; margin: 4px 0 4px; }
  .step p { font-size: 15px; margin: 0 0 14px; }
  .step .mini { grid-column: 1 / -1; }
  .features { gap: 26px; margin-top: 28px; }
  .feature h3 { font-size: 18px; margin-top: 16px; }
  .feature p { font-size: 15px; }
  .feature-art { padding: 18px 16px; border-radius: 20px; min-height: 0; }
  .arrive-list { font-size: 15.5px; }
  .trust-list li { padding: 16px 16px 16px 52px; font-size: 15px; }
  .trust-list li::before { left: 16px; top: 17px; }
  .note blockquote { font-size: 21px; }
  .faq summary { font-size: 16px; padding: 16px 30px 16px 0; }
  .faq details { padding: 0 18px; }
  .closing { padding: 72px 0; }
  .plan { padding: 22px 20px; border-radius: 22px; }
  .plan-price b { font-size: 36px; }
  .degrees { padding-bottom: 40px; }
}

/* Tipografia de titulares: Fraunces con aire (la version "display" muy apretada se juntaba) */
.display { letter-spacing: -0.012em; word-spacing: 0.04em; font-variation-settings: "opsz" 72, "SOFT" 50; font-weight: 600; line-height: 1.04; }
.section-title, .display.small, body.public .auth-wrap h1 { letter-spacing: -0.008em; word-spacing: 0.03em; font-variation-settings: "opsz" 48, "SOFT" 50; }
.note blockquote { font-variation-settings: "opsz" 36; letter-spacing: 0; }
.step-num, .marquee-track span, .note-avatar { font-variation-settings: "opsz" 36; }
.underline { padding-bottom: 0.12em; }

@media (max-width: 600px) {
  .display { font-size: 44px; line-height: 1.06; }
  .hero-grid { gap: 28px; }
  .hero-visual { padding: 0; margin: 0 auto; transform: scale(0.86); transform-origin: top center; margin-bottom: -70px; }
  .device { transform: rotate(1.2deg); }
}

/* =====================================================================
   Web publica con el lenguaje de Apple: SF (o Inter fuera de Apple),
   blanco y gris claro, titulares grandes centrados, botones pildora.
   ===================================================================== */
body.apple {
  --ink: #1d1d1f; --ink-2: #6e6e73; --line: #d2d2d7; --paper: #f5f5f7; --paper-2: #f5f5f7;
  --accent: #ff9500; --accent-ink: #c25e00; --accent-soft: #fff1de; --link: #0066cc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  background: #fff; color: var(--ink); letter-spacing: -0.01em;
}
body.apple .container.bleed { max-width: none; padding: 0; }
body.apple nav:not(.footer-links):not(.tabbar) {
  padding: 0 22px; height: 52px; background: rgba(255, 255, 255, 0.78); border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
body.apple nav .brand { font-size: 17px; font-weight: 600; color: var(--ink); }
body.apple .navanchor { font-size: 13px; color: var(--ink); opacity: 0.8; }
body.apple .navanchor:hover { opacity: 1; }
body.apple nav a.navlink {
  font-size: 13px; font-weight: 500; color: #fff; background: var(--ink); border: 0; border-radius: 980px; padding: 6px 14px;
}
body.apple nav a.navlink:hover { background: #000; }

.ap-wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.ap-narrow { max-width: 820px; }
.ap-center { text-align: center; }
.ap-section { padding: 110px 0; }
.ap-gray { background: var(--paper); }

.ap-hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.ap-eyebrow { margin: 0 0 10px; font-size: 21px; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; }
.ap-h1 { margin: 0 auto 18px; font-size: clamp(46px, 8vw, 84px); font-weight: 700; line-height: 1.05; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.ap-h1 span { color: var(--ink-2); }
.ap-lead { margin: 0 auto 30px; max-width: 34em; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.42; color: var(--ink-2); font-weight: 400; letter-spacing: -0.015em; }
.ap-ctas { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; }
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 980px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ap-btn:hover { background: #000; }
.ap-btn:active { transform: scale(0.98); }
.ap-btn:focus-visible, .ap-link:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; }
.ap-btn-light { background: #fff; color: var(--ink); }
.ap-btn-light:hover { background: #f5f5f7; }
.ap-link { font-size: 17px; color: var(--link); text-decoration: none; letter-spacing: -0.015em; }
.ap-link::after { content: " ›"; font-size: 1.15em; line-height: 0; }
.ap-link:hover { text-decoration: underline; }
.ap-link-light { color: #2997ff; }
.ap-fine { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }

.ap-hero-visual { position: relative; display: flex; justify-content: center; margin: 56px auto 0; height: 560px; }
.ap-hero-visual .device { transform: none; width: 340px; height: 690px; border-radius: 58px; }
.ap-hero-visual .device-screen { border-radius: 48px; height: 100%; text-align: left; }
.ap-hero-visual .ds-title { text-align: left; }
.ap-hero-visual::after { /* fundido inferior: el movil "sale" de la pagina */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.ap-notif {
  position: absolute; top: 120px; left: 50%; margin-left: -500px; width: 300px; z-index: 2; text-align: left;
  display: flex; gap: 11px; padding: 13px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.ap-notif-right { top: 300px; margin-left: 200px; }
@media (max-width: 1080px) {
  /* Sin sitio a los lados: el aviso aparece dentro del movil, arriba, como en iOS */
  .ap-notif { top: 50px; margin-left: -150px; width: 300px; }
  .ap-notif-right { display: none; }
}
.ap-notif-icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: url("/static/icons/icon-192.png") center / cover; }
.ap-notif-head { display: flex; justify-content: space-between; font-size: 12px; color: #8a8a8e; }
.ap-notif-head b { font-weight: 600; color: #3a3a3c; text-transform: uppercase; letter-spacing: 0.02em; }
.ap-notif-title { font-size: 14px; font-weight: 600; }
.ap-notif-text { font-size: 14px; color: #3a3a3c; line-height: 1.3; }

.ap-degrees { padding: 40px 0 80px; text-align: center; }
.ap-degrees p { margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.ap-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.ap-marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 70s linear infinite; }
.ap-marquee-track span { font-size: 24px; font-weight: 600; color: #bdbdc2; letter-spacing: -0.02em; white-space: nowrap; }

.ap-h2 { margin: 0 auto 16px; text-align: center; font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -0.03em; text-wrap: balance; }
.ap-accent { color: var(--accent); }
.ap-sub { margin: 0 auto 56px; max-width: 34em; text-align: center; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); }
.ap-section .ap-h2 + .ap-versus, .ap-section .ap-h2 + .ap-steps { margin-top: 56px; }

.ap-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ap-vs { border-radius: 28px; padding: 36px 34px; }
.ap-vs-before { background: #ebebef; color: var(--ink-2); }
.ap-vs-after { background: #fff; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25); }
.ap-vs-label { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ap-vs-after .ap-vs-label { color: var(--accent-ink); }
.ap-vs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; }
.ap-vs-after ul { color: var(--ink); }
.ap-vs li { padding-left: 30px; position: relative; }
.ap-vs-before li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 1.5px; background: #a1a1a6; }
.ap-vs-after li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12 4 4 7-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.ap-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.ap-tile { grid-column: span 3; background: var(--paper); border-radius: 28px; padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.ap-tile-wide { grid-column: span 6; flex-direction: row; align-items: center; gap: 40px; }
.ap-tile-wide .ap-tile-copy { flex: 1; }
.ap-tile-wide .ap-tile-art { flex: 1.1; }
.ap-tile h3 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.ap-tile p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--ink-2); }
.ap-tile-dark { background: #000; color: #f5f5f7; }
.ap-tile-dark p { color: #a1a1a6; }
.ap-tile-art { background: #fff; border-radius: 20px; padding: 18px; }
.ap-tile-dark .ap-tile-art { background: radial-gradient(120% 120% at 20% 0%, #f4a259 0%, #c4583a 40%, #3b2433 80%, #1d1622 100%); padding: 22px 18px; display: grid; gap: 10px; }
.ap-mininotif { display: flex; gap: 10px; padding: 11px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; }
.ap-mininotif .ap-notif-icon { width: 30px; height: 30px; border-radius: 8px; }
.ap-mininotif b { display: block; font-size: 13.5px; }
.ap-mininotif span:not(.ap-notif-icon) { font-size: 13px; opacity: 0.92; line-height: 1.3; }
.ap-list { display: grid; gap: 0; padding: 6px 16px; }
.ap-li { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.ap-li + .ap-li { border-top: 1px solid #ececf0; }
.ap-li > span:nth-child(2) { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.25; }
.ap-li small { display: block; font-size: 12px; font-weight: 500; color: #8a8a8e; }
.ap-li.done > span:nth-child(2) { color: #8a8a8e; text-decoration: line-through; }
.ap-li em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #f2f2f4; }
.ap-ck { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c7c7cc; }
.ap-ck.on { border-color: #34c759; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 12 4 4 7-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.t-red { color: #d70015 !important; background: #ffeceb !important; }
.t-orange { color: #c25e00 !important; }
em.t-orange { background: #fff1de !important; }
.t-green { color: #248a3d !important; background: #e8f7ec !important; }
.ap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-stats > div { background: var(--paper); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.ap-stats small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8a8a8e; }
.ap-stats b { font-size: 22px; letter-spacing: -0.02em; }
.ap-stats p { grid-column: 1 / -1; margin: 4px 2px 0; font-size: 15px; color: var(--ink); line-height: 1.4; }
.ap-stats p small { display: block; margin-bottom: 2px; }
.ap-courses { display: grid; gap: 4px; padding: 10px 18px; }
.ap-course { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ap-course b { flex: 1; font-size: 15px; font-weight: 600; }
.ap-course em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #f2f2f4; color: #6e6e73; }
.ap-course .fs-badge { width: 32px; height: 32px; }

.ap-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ap-steps li { background: #fff; border-radius: 28px; padding: 34px 30px; }
.ap-step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.ap-steps h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.ap-steps p { margin: 0; font-size: 17px; line-height: 1.47; color: var(--ink-2); }

body.apple .plans { gap: 20px; }
body.apple .plan { border: 0; border-radius: 28px; background: var(--paper); padding: 36px 32px 32px; box-shadow: none; }
body.apple .plan-plus { background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 30px 60px -40px rgba(0, 0, 0, 0.3); }
body.apple .plan-tag { background: #fff; color: var(--ink-2); letter-spacing: 0.04em; }
body.apple .plan-plus .plan-tag { background: var(--accent-soft); color: var(--accent-ink); }
body.apple .plan h3 { font-weight: 700; }
body.apple .plan-price b { font-family: inherit; font-weight: 700; font-size: 48px; letter-spacing: -0.04em; }
body.apple .plan-list { font-size: 15.5px; }
body.apple .plan-list svg { stroke: var(--accent); }
body.apple .plan-note { background: var(--paper); }
body.apple .btn.plan-btn { background: var(--ink); height: 48px; font-weight: 500; font-size: 17px; box-shadow: none; letter-spacing: -0.015em; }
body.apple .btn.plan-btn:hover { background: #000; transform: none; box-shadow: none; }

.ap-lock { display: flex; justify-content: center; margin-bottom: 18px; }
.ap-lock svg { width: 54px; height: 54px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.ap-privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.ap-privacy div { background: #fff; border-radius: 24px; padding: 26px 22px; }
.ap-privacy h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ap-privacy p { margin: 0; font-size: 15px; line-height: 1.47; color: var(--ink-2); }

.ap-quote { margin: 0; text-align: center; }
.ap-quote blockquote { margin: 0 0 22px; font-size: clamp(22px, 2.8vw, 30px); font-weight: 600; line-height: 1.32; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ap-quote figcaption { font-size: 15px; color: var(--ink-2); }
.ap-quote figcaption b { color: var(--ink); }

body.apple .faq { margin-top: 48px; gap: 0; }
body.apple .faq details { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 0; box-shadow: none; }
body.apple .faq details:first-child { border-top: 1px solid var(--line); }
body.apple .faq summary { font-size: 19px; font-weight: 600; padding: 22px 36px 22px 0; letter-spacing: -0.015em; }
body.apple .faq summary::after { color: var(--ink-2); font-weight: 300; font-size: 28px; }
body.apple .faq details p { font-size: 17px; line-height: 1.5; color: var(--ink-2); margin: 0 0 22px; }

.ap-closing { background: #000; color: #f5f5f7; text-align: center; padding: 120px 0; }
.ap-closing .ap-h2 { color: #f5f5f7; margin-bottom: 32px; }

body.apple .site-footer { background: var(--paper); border-top: 0; color: var(--ink-2); font-size: 12.5px; padding: 28px 0 40px; }
body.apple .site-footer .brand { color: var(--ink); font-size: 14px; }
body.apple .site-footer .wrap { max-width: 1040px; padding: 0 22px; }
body.apple .footer-links a { color: var(--ink-2); }

/* Entrar y privacidad */
body.apple .auth-wrap { padding-top: 64px; }
body.apple .auth-wrap h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.035em; }
body.apple .card { border-color: var(--line); }

@media (max-width: 900px) {
  .ap-tile, .ap-tile-wide { grid-column: span 6; }
  .ap-tile-wide { flex-direction: column; align-items: stretch; gap: 28px; }
  .ap-privacy { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body.apple nav:not(.footer-links):not(.tabbar) { padding: 0 16px; }
  .ap-wrap { padding: 0 20px; }
  .ap-section { padding: 72px 0; }
  .ap-hero { padding-top: 48px; }
  .ap-eyebrow { font-size: 17px; }
  .ap-h1 { font-size: 46px; }
  .ap-lead { font-size: 18px; margin-bottom: 24px; }
  .ap-btn { min-height: 44px; font-size: 16px; padding: 0 22px; }
  .ap-link { font-size: 16px; }
  .ap-hero-visual { height: 470px; margin-top: 44px; }
  .ap-hero-visual .device { width: 300px; height: 610px; border-radius: 52px; }
  .ap-notif { top: 46px; margin-left: -136px; width: 272px; padding: 11px 12px; border-radius: 20px; }
  .ap-degrees { padding: 28px 0 56px; }
  .ap-marquee-track span { font-size: 19px; }
  .ap-sub { margin-bottom: 36px; }
  .ap-section .ap-h2 + .ap-versus, .ap-section .ap-h2 + .ap-steps { margin-top: 36px; }
  .ap-versus, .ap-steps, .ap-privacy { grid-template-columns: 1fr; gap: 14px; }
  .ap-vs { padding: 26px 22px; border-radius: 24px; }
  .ap-vs ul { font-size: 17px; }
  .ap-tile { padding: 28px 22px 22px; border-radius: 24px; gap: 22px; }
  .ap-tile h3 { font-size: 24px; }
  .ap-steps li { padding: 26px 22px; border-radius: 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .ap-step-n { margin: 0; grid-row: span 2; width: 34px; height: 34px; font-size: 16px; }
  .ap-steps h3 { font-size: 19px; margin-top: 4px; }
  .ap-steps p { font-size: 16px; }
  body.apple .plan { padding: 28px 22px 22px; border-radius: 24px; }
  body.apple .plan-price b { font-size: 42px; }
  body.apple .faq summary { font-size: 17px; }
  body.apple .faq details p { font-size: 16px; }
  .ap-closing { padding: 88px 0; }
}
@media (prefers-reduced-motion: reduce) { .ap-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } }

/* Entrar: el boton de Google con el mismo lenguaje sobrio que la portada */
body.apple .btn-google { background: var(--ink); color: #fff; box-shadow: none; border-radius: 980px; min-height: 50px; padding: 0 26px 0 14px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; transition: background 0.2s ease, transform 0.2s ease; }
body.apple .btn-google::after { display: none; }
body.apple .btn-google:hover { background: #000; transform: none; box-shadow: none; }
body.apple .btn-google:active { transform: scale(0.98); }
body.apple .btn-google svg { padding: 4px; width: 18px; height: 18px; }
body.apple .alt-login summary { color: var(--link); font-size: 15px; }
body.apple > .container > h1 { font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -0.035em; margin-top: 56px; }
body.apple .card { border: 0; background: var(--paper); border-radius: 24px; box-shadow: none; }

/* ═════════════ Portada: movimiento y escena ═════════════ */

/* Aparicion al hacer scroll (solo con JS y si no se pide menos movimiento) */
.motion [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.motion [data-reveal].in { opacity: 1; transform: none; }

/* Portada: entra por partes al cargar */
@keyframes ap-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ap-phone-in { from { opacity: 0; transform: translateY(90px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes ap-banner { 0% { opacity: 0; transform: translateY(-18px) scale(0.92); } 60% { opacity: 1; transform: translateY(3px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes ap-check { 0% { background-color: transparent; border-color: #c7c7cc; transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ap-strike { from { color: var(--ink); text-decoration-color: transparent; } }
@keyframes ap-breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ap-pop { 0% { transform: scale(0.6); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

.motion .ap-hero .ap-eyebrow { animation: ap-rise 0.9s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .ap-hero .ap-h1 { animation: ap-rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .ap-hero .ap-lead { animation: ap-rise 1s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .ap-hero .ap-ctas { animation: ap-rise 1s 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .ap-hero .ap-fine { animation: ap-rise 1s 0.52s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.motion .ap-hero-visual .device { animation: ap-phone-in 1.4s 0.45s cubic-bezier(0.16, 0.8, 0.2, 1) both; }
.motion .ap-hero .ap-notif { animation: ap-banner 0.9s 1.6s cubic-bezier(0.3, 0.9, 0.3, 1) both; }
.motion .ap-hero .ap-notif-right { animation-delay: 2.3s; }
.motion .ap-hero .ds-card.done .ds-check { animation: ap-check 0.5s 3s ease both; }
.motion .ap-hero .ds-card.done .ds-name { animation: ap-strike 0.4s 3.15s ease both; }

/* Brillo calido detras del movil */
.ap-hero-visual .device { z-index: 1; }
.ap-hero-visual::after { z-index: 3; }
.ap-hero-visual::before {
  content: ""; position: absolute; top: 30px; left: 50%; width: 620px; height: 620px; margin-left: -310px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.26) 0%, rgba(255, 94, 58, 0.12) 38%, rgba(255, 255, 255, 0) 68%);
}
.motion .ap-hero-visual::before { animation: ap-breathe 9s ease-in-out infinite; }

/* Bento: el contenido de cada recuadro se anima al aparecer */
.motion .ap-mininotif { transition: opacity 0.6s ease, transform 0.9s cubic-bezier(0.3, 1.4, 0.5, 1); }
.motion .ap-mininotif:nth-child(1) { transition-delay: 0.45s; }
.motion .ap-mininotif:nth-child(2) { transition-delay: 0.95s; }
.motion .ap-tile:not(.in) .ap-mininotif { opacity: 0; transform: translateY(-18px) scale(0.95); }
.motion .ap-li.done .ap-ck { transition: background-color 0.35s 1s, border-color 0.35s 1s; }
.motion .ap-li.done > span:nth-child(2) { transition: color 0.35s 1.1s, text-decoration-color 0.35s 1.1s; }
.motion .ap-tile:not(.in) .ap-li.done .ap-ck { background-color: transparent; border-color: #c7c7cc; }
.motion .ap-tile:not(.in) .ap-li.done > span:nth-child(2) { color: var(--ink); text-decoration-color: transparent; }
.motion .ap-tile.in .ap-course em.t-orange { animation: ap-pop 0.6s 0.9s both; }
.motion .ap-stats > * { transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .ap-stats > :nth-child(2) { transition-delay: 0.15s; }
.motion .ap-stats > :nth-child(3) { transition-delay: 0.3s; }
.motion .ap-tile:not(.in) .ap-stats > * { opacity: 0; transform: translateY(14px); }

/* Antes / despues: en el movil, un interruptor en vez de dos tarjetas apiladas */
.ap-vs-switch { display: none; }
@media (max-width: 680px) {
  .js .ap-vs-switch {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 340px; margin: 28px auto 18px;
    padding: 4px; border-radius: 999px; background: #e3e3e8;
  }
  .ap-vs-switch button {
    position: relative; z-index: 1; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2);
    padding: 10px 0; border-radius: 999px; cursor: pointer; transition: color 0.3s; -webkit-tap-highlight-color: transparent;
  }
  .ap-vs-switch button[aria-selected="true"] { color: var(--ink); }
  .ap-vs-switch button[data-vs="after"][aria-selected="true"] { color: var(--accent-ink); }
  .ap-vs-thumb {
    position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.04); transition: transform 0.45s cubic-bezier(0.3, 1.2, 0.5, 1);
  }
  .ap-vs-switch:has([data-vs="after"][aria-selected="true"]) .ap-vs-thumb { transform: translateX(100%); }
  .js .ap-section .ap-h2 + .ap-vs-switch + .ap-versus { margin-top: 0; }
  .js .ap-versus { display: grid; grid-template-columns: 1fr; touch-action: pan-y; }
  .js .ap-vs { grid-area: 1 / 1; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
  .js .ap-vs .ap-vs-label { display: none; }
  .js .ap-versus[data-show="before"] .ap-vs-after,
  .js .ap-versus[data-show="after"] .ap-vs-before { opacity: 0 !important; visibility: hidden; transition: opacity 0.3s ease, transform 0.6s, visibility 0s 0.6s; }
  .js .ap-versus[data-show="before"] .ap-vs-after { transform: translateX(28px) !important; }
  .js .ap-versus[data-show="after"] .ap-vs-before { transform: translateX(-28px) !important; }
}

/* Escena fija: el movil se queda quieto y cambia mientras bajas */
.ap-scene { position: relative; background: #fff; }
.ap-kicker { margin: 0 0 18px; font-size: 17px; font-weight: 600; color: var(--accent-ink); letter-spacing: -0.01em; }
.ap-stage { max-width: 1040px; margin: 0 auto; padding: 96px 22px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.ap-stage-texts { display: grid; gap: 40px; }
.ap-stage-text h3 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.ap-stage-text p { margin: 0; max-width: 24em; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.45; color: var(--ink-2); }
.ap-stage-dots { display: none; }
.ap-scene-device { width: 300px; flex: none; text-align: left; transform: none; }
.ap-stage-phone { display: flex; justify-content: center; }
.ap-scene-device .device-screen { height: 600px; padding: 0; }
.sc { position: absolute; inset: 0; padding: 16px 14px 20px; }
.sc-aula, .sc-lock { display: none; } /* sin JS se ve solo la ultima pantalla */

.js .ap-scene { height: 330vh; }
.js .ap-stage {
  position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px); padding-top: 0; padding-bottom: 0;
}
.js .ap-stage-texts { display: grid; gap: 0; }
.js .ap-stage-text { grid-area: 1 / 1; opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .ap-stage-text:not(:nth-child(1)) { pointer-events: none; }
.js .ap-stage[data-step="0"] .ap-stage-text:nth-child(1),
.js .ap-stage[data-step="1"] .ap-stage-text:nth-child(2),
.js .ap-stage[data-step="2"] .ap-stage-text:nth-child(3) { opacity: 1; transform: none; }
.js .ap-stage-dots { display: flex; gap: 8px; margin-top: 34px; }
.ap-stage-dots i { width: 8px; height: 8px; border-radius: 99px; background: #d2d2d7; transition: width 0.45s cubic-bezier(0.3, 1.2, 0.5, 1), background 0.3s; }
.ap-stage[data-step="0"] .ap-stage-dots i:nth-child(1),
.ap-stage[data-step="1"] .ap-stage-dots i:nth-child(2),
.ap-stage[data-step="2"] .ap-stage-dots i:nth-child(3) { width: 28px; background: var(--ink); }

.js .sc-aula, .js .sc-lock { display: block; }
.js .sc { opacity: 0; transition: opacity 0.55s ease; }
.js .ap-stage[data-step="0"] .sc-aula, .js .ap-stage[data-step="1"] .sc-lock, .js .ap-stage[data-step="2"] .sc-item { opacity: 1; }

/* pantalla 1: el Aula Virtual */
.sc-aula { background: #fff; }
.sc-url { margin: 0 4px 16px; padding: 7px 0; border-radius: 10px; background: #f0f0f2; text-align: center; font-size: 11.5px; font-weight: 500; color: #6e6e73; }
.sc-course { padding: 0 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.sc-sec { padding: 12px 6px 8px; margin: 10px 0 4px; border-top: 1px solid #ececf0; font-size: 12px; font-weight: 600; color: #6e6e73; }
.sc-file { display: flex; align-items: center; gap: 10px; padding: 10px 6px; font-size: 13px; font-weight: 500; border-radius: 12px; }
.sc-file > span:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }
.sc-file small { display: block; font-size: 11px; font-weight: 500; color: #8a8a8e; }
.sc-fi { flex: none; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; background: #e5484d; }
.sc-fi-vid { background: #7c5cff; font-size: 11px; }
.sc-fi-doc { background: #2b6ee6; font-size: 12px; }
.sc-new { background: #fff4e5; margin-top: 4px; }
.sc-new em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 99px; }
.js .sc-new { opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.5s ease 0.5s, transform 0.7s cubic-bezier(0.3, 1.3, 0.5, 1) 0.5s; }
.js .ap-stage.live .sc-new { opacity: 1; transform: none; }

/* pantalla 2: pantalla de bloqueo */
.sc-lock { color: #fff; background: radial-gradient(130% 90% at 30% 0%, #f4a259 0%, #c4583a 38%, #3b2433 78%, #1d1622 100%); }
.sc-lock .ds-icons i { background: #fff; }
.sc-lock .lock-date { margin: 26px 0 0; font-size: 15px; font-weight: 500; }
.sc-lock .lock-time { font-size: 78px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 40px; }
.sc-banner {
  display: flex; gap: 10px; padding: 12px; border-radius: 20px; text-align: left; color: var(--ink);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.5);
}
.sc-banner .ap-notif-icon { width: 34px; height: 34px; }
.sc-banner .ap-notif-title, .sc-banner .ap-notif-text { font-size: 13px; }
.js .sc-banner { opacity: 0; transform: translateY(-26px) scale(0.92); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .ap-stage[data-step="1"] .sc-banner,
.js .ap-stage[data-step="2"] .sc-banner { opacity: 1; transform: none; transition: opacity 0.5s ease 0.45s, transform 0.8s cubic-bezier(0.3, 1.35, 0.5, 1) 0.45s; }

/* pantalla 3: el detalle de la practica */
.sc-item { background: #f5f5f7; }
.sc-back { padding: 0 4px 14px; font-size: 14px; color: var(--link); }
.sc-item .ds-course { padding: 0 4px; font-size: 12px; }
.sc-title { padding: 2px 4px 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.sc-item .ds-pills { padding: 0 4px; }
.sc-item .ds-pills span { font-size: 11px; padding: 3px 9px; }
.sc-block { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; }
.sc-block small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8a8e; margin-bottom: 4px; }
.sc-block p { margin: 0; font-size: 13.5px; line-height: 1.4; }
.sc-btn { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--ink); color: #fff; text-align: center; font-size: 14px; font-weight: 600; }
.sc-btn-2 { margin-top: 8px; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #e3e3e8; }
.js .sc-item > :nth-child(n+3) { opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s; }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(n+3) { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(4) { transition-delay: 0.08s; }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(5) { transition-delay: 0.16s; }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(6) { transition-delay: 0.26s; }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(7) { transition-delay: 0.36s; }
.js .ap-stage[data-step="2"] .sc-item > :nth-child(n+8) { transition-delay: 0.46s; }

@media (max-width: 680px) {
  .ap-stage { grid-template-columns: 1fr; gap: 16px; text-align: center; padding: 64px 20px; }
  .ap-kicker { margin-bottom: 10px; font-size: 15px; }
  .ap-stage-text h3 { font-size: 27px; margin-bottom: 8px; }
  .ap-stage-text p { font-size: 16px; margin: 0 auto; }
  .ap-stage-phone { --s: 0.74; height: calc(620px * var(--s)); display: flex; justify-content: center; align-items: flex-start; }
  .ap-scene-device { transform: scale(var(--s)); transform-origin: top center; }
  .js .ap-stage { align-content: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
  .js .ap-stage-dots { justify-content: center; margin-top: 16px; }
}
@media (max-width: 680px) and (max-height: 720px) {
  .ap-stage-phone { --s: 0.64; }
  .ap-stage-text p { font-size: 15px; }
}

/* Numeros */
.ap-numbers { background: #000; color: #f5f5f7; padding: 120px 0; text-align: center; }
.ap-numbers .ap-h2 { color: #f5f5f7; margin-bottom: 64px; }
.ap-numbers .ap-h2 span { color: #86868b; }
.ap-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.ap-nums b {
  display: block; font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(100deg, #ffc15e 0%, #ff9500 45%, #ff5e3a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.ap-nums p { margin: 0 auto; max-width: 16em; font-size: 17px; line-height: 1.45; color: #a1a1a6; }
@media (max-width: 680px) {
  .ap-numbers { padding: 80px 0; }
  .ap-numbers .ap-h2 { margin-bottom: 44px; }
  .ap-nums { grid-template-columns: 1fr; gap: 40px; }
}

/* Cita: las palabras se encienden al bajar */
.js [data-words] blockquote .w { color: #d2d2d7; transition: color 0.25s ease; }
.js [data-words] blockquote .w.on { color: var(--ink); }

/* La barra de arriba gana sombra al bajar */
body.apple nav:not(.footer-links):not(.tabbar) { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
body.apple.scrolled nav:not(.footer-links):not(.tabbar) { box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05); }
.ap-scene-device .device-screen::before { z-index: 5; }

/* Isla mas pequeña, como la de los iPhone mas nuevos (con el reflejo de la camara) */
.device-screen::before {
  top: 12px; width: 62px; height: 20px; margin-left: -31px; border-radius: 99px;
  background: radial-gradient(circle at 78% 50%, #26303d 0 2.5px, #0d0b09 3.5px);
}

/* ═════════════ Movil de ejemplo: lo mas parecido a un iPhone ═════════════ */
/* Marco de titanio fino, borde negro de la pantalla, botones laterales y barra de estado de iOS */
body.apple .device {
  padding: 3px; border-radius: 50px;
  background: linear-gradient(140deg, #9a9690 0%, #4a4845 14%, #2b2a28 32%, #6f6c67 52%, #2d2c2a 74%, #4c4a46 88%, #a19d97 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25),
    0 0 0 0.5px rgba(0, 0, 0, 0.5), 0 60px 100px -50px rgba(0, 0, 0, 0.5), 0 28px 44px -26px rgba(0, 0, 0, 0.35);
}
body.apple .device-screen { box-sizing: border-box; border: 9px solid #050505; border-radius: 47px; }
body.apple .ap-hero-visual .device { border-radius: 56px; }
body.apple .ap-hero-visual .device-screen { border-radius: 53px; }
@media (max-width: 680px) {
  body.apple .ap-hero-visual .device { border-radius: 50px; }
  body.apple .ap-hero-visual .device-screen { border-radius: 47px; }
}
/* botones: Accion y volumen a la izquierda; lateral y Control de Camara a la derecha */
body.apple .device::before, body.apple .device::after {
  content: ""; position: absolute; width: 3px; border-radius: 1px; box-shadow: none; inset: auto;
}
body.apple .device::before {
  left: -2.5px; right: auto; top: 17%; height: 25%; border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg,
    #5a5752 0 16%, transparent 16% 31%, #5a5752 31% 62%, transparent 62% 69%, #5a5752 69% 100%);
}
body.apple .device::after {
  right: -2.5px; left: auto; top: 27%; height: 36%; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #5a5752 0 34%, transparent 34% 76%, #34322f 76% 100%);
}

/* Barra de estado: la hora en la oreja izquierda, iconos en la derecha, centrados con la isla */
body.apple .ds-status {
  display: grid; grid-template-columns: 1fr 66px 1fr; align-items: center; height: 44px; padding: 1px 4px 0;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}
body.apple .device-screen > .ds-status { margin: -16px -13px 6px; }
body.apple .sc > .ds-status { margin: -16px -14px 6px; }
body.apple .ds-time { justify-self: center; padding-left: 8px; }
body.apple .ds-icons { grid-column: 3; justify-self: center; display: flex; align-items: center; gap: 5px; padding-right: 6px; }
body.apple .ds-icons svg { display: block; fill: currentColor; }
body.apple .ds-icons .i-cell { width: 15px; height: 10px; }
body.apple .ds-icons .i-wifi { width: 14px; height: 10px; stroke: currentColor; stroke-width: 0.5; stroke-linejoin: round; }
body.apple .ds-icons .i-batt { width: 23px; height: 11px; }
body.apple .sc-lock .ds-status { color: #fff; }

/* ═════════════ App por dentro: revisión con las guías de Apple ═════════════
   - Texto de acento con contraste suficiente (#c25e00 sobre blanco, 4,3:1 en negrita).
   - El naranja vivo solo como relleno; rojo/naranja/azul solo para la urgencia de la fecha.
   - Modo oscuro siguiendo el ajuste del sistema.
   - Sin el logo repetido arriba: el título grande de cada pantalla basta. */
body.in-app {
  color-scheme: light dark;
  --app-bg: #f5f5f7; --surface: #fff; --surface-2: #f0f0f2; --label: #1d1d1f; --label-2: #6e6e73; --label-3: #3a3a3c;
  --sep: rgba(60, 60, 67, 0.12); --chev: #c7c7cc; --tint: #c25e00; --tint-fill: #ff9500;
  --text: var(--label); --muted: var(--label-2); --card: var(--surface); --border: var(--sep); --bg-subtle: var(--surface-2);
  background: var(--app-bg); color: var(--label);
}
body.in-app > nav:not(.tabbar) { display: none; }
body.in-app .container { padding-top: calc(env(safe-area-inset-top) + 18px); }
body.in-app .hint a, body.in-app .empty a:not(.btn), body.in-app .small-note a { color: var(--tint); }

/* Barra de pestañas: etiquetas de 11 px (el mínimo) y con contraste */
.tabbar a { font-size: 11px; color: var(--label-2, #6e6e73); }
.tabbar a.on { color: var(--tint, #c25e00); font-weight: 600; }
.tabbar a:focus-visible { outline: 2px solid var(--tint, #c25e00); outline-offset: -2px; border-radius: 10px; }

/* Volver, como en iOS: chevron + nombre de la pantalla anterior, con zona táctil de 44 px */
.back { margin: -6px 0 6px -8px; font-size: 17px; }
.back a { display: inline-flex; align-items: center; gap: 1px; min-height: 44px; padding: 0 8px 0 2px; color: var(--tint); font-weight: 400; }
.back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
body.in-app .see-all, body.in-app .detail-course, body.in-app .plan-banner span, body.in-app details.more summary, body.in-app .back a { color: var(--tint); }
.see-all { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.status.is-setup .status-kicker { color: var(--tint); }

/* Tarjetas: superficie que cambia con el modo, «nuevo» como un punto (como el correo sin leer) */
.icard { background: var(--surface); box-shadow: 0 0 0 0.5px var(--sep); }
.icard.is-new { box-shadow: 0 0 0 0.5px var(--sep); }
.icard-ask, .summary, .ios-steps { color: var(--label-3); }
.chev { stroke: var(--chev); }
.unread { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: #e66a00; vertical-align: 0; }
.icard-course { display: flex; align-items: center; }
.new-pill { display: none; }

/* Pastillas: gris neutro para tipo y tiempo; la dificultad, con un medidor de 3 barras en vez de color */
.tag, .dif { background: var(--surface-2); color: var(--label-3); }
.dif { gap: 6px; }
.dif .meter { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.dif .meter i { width: 3px; border-radius: 1px; background: currentColor; opacity: 0.25; }
.dif .meter i:nth-child(1) { height: 4px; }
.dif .meter i:nth-child(2) { height: 7px; }
.dif .meter i:nth-child(3) { height: 10px; }
.dif-baja .meter i:nth-child(1),
.dif-media .meter i:nth-child(-n+2),
.dif-alta .meter i { opacity: 1; }
.dif-baja, .dif-media, .dif-alta { background: var(--surface-2); color: var(--label-3); }
.dif.big { gap: 8px; }
.dif.big .meter { height: 14px; gap: 2px; }
.dif.big .meter i { width: 4px; }
.dif.big .meter i:nth-child(1) { height: 6px; }
.dif.big .meter i:nth-child(2) { height: 10px; }
.dif.big .meter i:nth-child(3) { height: 14px; }
.due-past { background: var(--surface-2); color: var(--label-2); }

/* Casilla de «hecha»: el círculo se ve de 30 px pero se toca en 44 x 44 */
.check { position: relative; width: 44px; height: 44px; margin: -2px -4px -2px -6px; border: 0; background: none; }
.check::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--chev); background: var(--surface); transition: background 0.2s, border-color 0.2s; }
.check svg { position: relative; }
.is-done .check { background: none; }
.is-done .check::before { background: #34c759; border-color: #34c759; }
.check:hover::before { border-color: #34c759; }
.check:focus-visible { outline: 2px solid var(--tint); outline-offset: -2px; border-radius: 50%; }

/* Asignaturas: el número de novedades de la semana como insignia */
.row-badge { flex: none; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #e66a00; color: #fff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* Ajustes */
.link-btn.destructive { color: #d70015; min-height: 44px; }
.row-title .opt { display: none; }
body.in-app .list-group, body.in-app .empty, .detail, .push-card, .install-card, .plan-banner, .plan-status { background: var(--surface); }
.row-item { border-bottom-color: var(--sep); }
.row-icon { background: var(--surface-2); color: var(--label-3); }
.segmented { background: var(--surface-2); }
.segmented a { color: var(--label-3); }
.segmented a.on { background: var(--surface); color: var(--label); }
.chips a { background: var(--surface); border-color: var(--sep); color: var(--label-3); }
.chips a.on { background: var(--label); border-color: var(--label); color: var(--app-bg); }
.stat, .deadline-box { background: var(--surface-2); }

@media (prefers-color-scheme: dark) {
  body.in-app {
    --app-bg: #000; --surface: #1c1c1e; --surface-2: #2c2c2e; --label: #f5f5f7; --label-2: #98989d; --label-3: #d1d1d6;
    --sep: rgba(84, 84, 88, 0.65); --chev: #5a5a5e; --tint: #ff9f0a; --tint-fill: #ff9f0a;
    --orange-light: rgba(255, 159, 10, 0.16); --ok: #30d158; --ok-bg: rgba(48, 209, 88, 0.16); --error: #ff6961; --error-bg: rgba(255, 69, 58, 0.16);
  }
  body.in-app .tabbar { background: rgba(22, 22, 24, 0.82); border-top-color: var(--sep); }
  body.in-app .segmented a.on { background: #636366; color: #fff; }
  body.in-app .segmented .count { background: rgba(255, 255, 255, 0.14); }
  body.in-app .btn { background: #f5f5f7; color: #000; }
  body.in-app .btn.secondary { background: var(--surface-2); color: var(--label); }
  body.in-app .btn.light-ok { background: rgba(48, 209, 88, 0.18); color: #30d158; }
  body.in-app .due-urgent, body.in-app .deadline-box.due-urgent { background: rgba(255, 69, 58, 0.18); color: #ff6961; }
  body.in-app .due-soon, body.in-app .deadline-box.due-soon { background: rgba(255, 159, 10, 0.18); color: #ffb340; }
  body.in-app .due-later, body.in-app .deadline-box.due-later { background: rgba(10, 132, 255, 0.2); color: #6cb2ff; }
  body.in-app .k-task { background: rgba(255, 159, 10, 0.16); color: #ffb340; }
  body.in-app .k-video { background: rgba(191, 90, 242, 0.18); color: #d48cff; }
  body.in-app .k-image { background: rgba(48, 209, 88, 0.16); color: #30d158; }
  body.in-app .k-mail { background: rgba(10, 132, 255, 0.18); color: #6cb2ff; }
  body.in-app .k-doc { background: rgba(255, 69, 58, 0.16); color: #ff6961; }
  body.in-app .k-link, body.in-app .k-folder { background: rgba(100, 210, 255, 0.14); color: #64d2ff; }
  body.in-app .kind-ico { background: var(--surface-2); }
  body.in-app .unread, body.in-app .row-badge { background: #ff9f0a; }
  body.in-app .row-badge { color: #000; }
  body.in-app .toggle { background: #39393d; }
  body.in-app .toggle:checked { background: #30d158; }
  body.in-app .status.is-setup, body.in-app .plan-status.is-warn, body.in-app .plan-banner.is-warn { background: var(--surface); }
  body.in-app .status.is-error .status-sub { color: #ffb4ae; }
  body.in-app .radio-list label { border-color: var(--sep); }
  body.in-app .radio-list label:has(input:checked) { background: rgba(255, 159, 10, 0.12); }
  body.in-app .field input, body.in-app .field select { background: var(--surface-2); color: var(--label); border-color: var(--sep); }
  body.in-app .card { background: var(--surface); border-color: var(--sep); }
  body.in-app .plan { background: var(--surface); border-color: var(--sep); }
  body.in-app .plan-tag { background: var(--surface-2); }
  body.in-app .plan-current { background: rgba(48, 209, 88, 0.16); }
  body.in-app .link-btn.destructive { color: #ff6961; }
  body.in-app .empty svg { color: #5a5a5e; }
}


/* ═════════════ Texto que crece con el ajuste del iPhone (Dynamic Type) ═════════════
   En iPhone, «-apple-system-body» toma el tamaño de letra elegido en Ajustes (17 px por defecto),
   y todos los tamaños de la app van en rem sobre esa base. En el resto, la base son 17 px y
   respeta el tamaño de letra del navegador. Los títulos grandes crecen con tope para no romperse.
   La barra de pestañas no cambia de tamaño, igual que en iOS. Generado a partir de los px. */
html:has(body.in-app) { font-size: 106.25%; }
@supports (font: -apple-system-body) {
  html:has(body.in-app) { font: -apple-system-body; }
}
body.in-app { font-size: 1rem; }
body.in-app :is(nav .brand) { font-size: 0.9412rem; }
body.in-app :is(nav a.navlink) { font-size: 0.8235rem; }
body.in-app :is(h1) { font-size: min(1.6471rem, 42px); }
body.in-app :is(h2) { font-size: 1.2941rem; }
body.in-app :is(h3) { font-size: 0.9412rem; }
body.in-app :is(p.subtitle) { font-size: 0.9412rem; }
body.in-app :is(.btn) { font-size: 0.8824rem; }
body.in-app :is(.btn.danger) { font-size: 0.7647rem; }
body.in-app :is(.btn.small) { font-size: 0.7647rem; }
body.in-app :is(.field label) { font-size: 0.7647rem; }
body.in-app :is(.field input, .field select) { font-size: 0.9412rem; }
body.in-app :is(.error) { font-size: 0.8235rem; }
body.in-app :is(.success) { font-size: 0.8235rem; }
body.in-app :is(.hint) { font-size: 0.7647rem; }
body.in-app :is(.hint code) { font-size: 0.7059rem; }
body.in-app :is(.auth-wrap h1) { font-size: 1.5294rem; }
body.in-app :is(.alt-login summary) { font-size: 0.8235rem; }
body.in-app :is(.auth-wrap .switch) { font-size: 0.8235rem; }
body.in-app :is(.stepper li) { font-size: 0.6471rem; }
body.in-app :is(.page-head h1) { font-size: min(2.1176rem, 54px); }
body.in-app :is(.page-sub) { font-size: 0.8235rem; }
body.in-app :is(.toast) { font-size: 0.8235rem; }
body.in-app :is(.status-kicker) { font-size: 0.7059rem; }
body.in-app :is(.status-title) { font-size: 1.5294rem; }
body.in-app :is(.status-sub) { font-size: 0.8235rem; }
body.in-app :is(.btn.light) { font-size: 0.8235rem; }
body.in-app :is(.group-label) { font-size: 0.7059rem; }
body.in-app :is(.row-title .opt) { font-size: 0.6471rem; }
body.in-app :is(.row-title) { font-size: 0.8824rem; }
body.in-app :is(.row-detail) { font-size: 0.7647rem; }
body.in-app :is(.link-btn) { font-size: 0.7647rem; }
body.in-app :is(.act-course) { font-size: 0.6471rem; }
body.in-app :is(.act-title) { font-size: 0.8824rem; }
body.in-app :is(.act-time) { font-size: 0.7059rem; }
body.in-app :is(.empty) { font-size: 0.8235rem; }
body.in-app :is(.plan-tag) { font-size: 0.6471rem; }
body.in-app :is(.plan h3) { font-size: 1.1765rem; }
body.in-app :is(.plan-for) { font-size: 0.8235rem; }
body.in-app :is(.plan-list) { font-size: 0.8529rem; }
body.in-app :is(.plan-miss) { font-size: 0.7647rem; }
body.in-app :is(.plan-note) { font-size: 0.7647rem; }
body.in-app :is(.page-kicker) { font-size: 0.7647rem; }
body.in-app :is(.back) { font-size: 0.8824rem; }
body.in-app :is(.h1-course) { font-size: min(1.7647rem, 45px) !important; }
body.in-app :is(.see-all) { font-size: 0.8235rem; }
body.in-app :is(.icard-course) { font-size: 0.7059rem; }
body.in-app :is(.icard-title) { font-size: 0.9412rem; }
body.in-app :is(.icard-ask) { font-size: 0.7941rem; }
body.in-app :is(.new-pill) { font-size: 0.5882rem; }
body.in-app :is(.tag, .dif, .due) { font-size: 0.7059rem; }
body.in-app :is(.dif.big) { font-size: 0.8824rem; }
body.in-app :is(.segmented a) { font-size: 0.8235rem; }
body.in-app :is(.segmented .count) { font-size: 0.7059rem; }
body.in-app :is(.chips a) { font-size: 0.8235rem; }
body.in-app :is(.course-badge) { font-size: 1.0rem; }
body.in-app :is(.detail-course) { font-size: 0.7647rem; }
body.in-app :is(.detail-title) { font-size: 1.4118rem !important; }
body.in-app :is(.detail-sub) { font-size: 0.7647rem; }
body.in-app :is(.deadline-box b) { font-size: 0.9412rem; }
body.in-app :is(.deadline-box span) { font-size: 0.7647rem; }
body.in-app :is(.stat-label) { font-size: 0.7059rem; }
body.in-app :is(.stat-value) { font-size: 1.1765rem; }
body.in-app :is(.sub-label) { font-size: 0.7647rem; }
body.in-app :is(.analysis-text) { font-size: 0.9118rem; }
body.in-app :is(.needs li) { font-size: 0.8824rem; }
body.in-app :is(.ai-note) { font-size: 0.7059rem; }
body.in-app :is(.summary) { font-size: 0.8529rem; }
body.in-app :is(.push-body) { font-size: 0.8235rem; }
body.in-app :is(.push-body b) { font-size: 0.8824rem; }
body.in-app :is(.install-card p) { font-size: 0.7647rem; }
body.in-app :is(.radio-list label) { font-size: 0.8235rem; }
body.in-app :is(.radio-list small) { font-size: 0.7353rem; }
body.in-app :is(details.more summary) { font-size: 0.8235rem; }
body.in-app :is(.sync-line) { font-size: 0.7647rem; }
body.in-app :is(.settings-foot) { font-size: 0.8235rem; }
body.in-app :is(.course-badge) { font-size: 0.8824rem; }
body.in-app :is(.plan-price b) { font-size: min(2.3529rem, 60px); }
body.in-app :is(.plan-price span) { font-size: 0.8235rem; }
body.in-app :is(.plan-current) { font-size: 0.8235rem; }
body.in-app :is(.plan-seats) { font-size: 0.7647rem; }
body.in-app :is(.plan-status b) { font-size: 1.0rem; }
body.in-app :is(.plan-status span) { font-size: 0.8235rem; }
body.in-app :is(.plan-banner span) { font-size: 0.8235rem; }
body.in-app :is(.btn.plan-btn) { font-size: 0.9118rem; }
body.in-app :is(.back) { font-size: 1.0rem; }
body.in-app :is(.see-all) { font-size: 0.8824rem; }
body.in-app :is(.row-badge) { font-size: 0.7647rem; }
/* Con letra grande: las pastillas crecen con el texto y las filas de Ajustes bajan el botón a otra línea */
body.in-app :is(.tag, .dif, .due) { height: auto; min-height: 1.85em; padding-top: 0.15em; padding-bottom: 0.15em; }
body.in-app .row-item { flex-wrap: wrap; }
body.in-app .row-item .row-body { flex: 1 1 7em; min-width: 0; }

/* ═════════════ Portada sin destellos en Safari (iPhone) ═════════════
   Safari parpadea cuando un elemento con desenfoque de fondo (backdrop-filter) queda
   encima de algo que se anima o se escala. Por eso: el brillo detrás del móvil ya no
   «respira», los avisos de ejemplo usan un fondo sólido en vez de desenfoque, y en
   pantallas táctiles la barra de arriba es sólida. El movimiento que queda va en su
   propia capa (solo transform y opacity). */
.motion .ap-hero-visual::before { animation: none; }
.ap-hero-visual { isolation: isolate; }
.ap-hero-visual .device, .ap-marquee-track { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); }
.motion .ap-hero-visual .device { will-change: transform, opacity; }
.ap-notif { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.97); }
.ap-mininotif { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.2); }
.sc-banner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250, 247, 245, 0.95); }
@media (hover: none) {
  body.apple nav:not(.footer-links):not(.tabbar) {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.97);
  }
}
.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ═════════════ Portada: galería, día y noche, botón fijo y pie de página ═════════════ */
html:has(body.apple) { scroll-padding-top: 60px; }

/* Maquetas al día con la app: dificultad gris con medidor, punto de «nuevo», iconos */
.ds-pills .p-dif { display: inline-flex; align-items: center; gap: 4px; background: #efeff1 !important; color: #3a3a3c !important; }
.mk-meter { display: inline-flex; align-items: flex-end; gap: 1px; height: 8px; }
.mk-meter i { width: 2px; border-radius: 1px; background: currentColor; opacity: 0.28; }
.mk-meter i:nth-child(1) { height: 3px; }
.mk-meter i:nth-child(2) { height: 5.5px; }
.mk-meter i:nth-child(3) { height: 8px; }
.mk-baja i:nth-child(1), .mk-media i:nth-child(-n+2), .mk-alta i { opacity: 1; }
.mk-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #e66a00; vertical-align: 1px; }
.mk-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.mk-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mk-kicker { padding: 0 4px; font-size: 11px; font-weight: 600; color: #8a8a8e; }
.mk-row { display: flex; justify-content: space-between; align-items: baseline; }
.mk-row em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 500; color: #c25e00; }
.mk-list { margin-top: 2px; background: #fff; border-radius: 14px; overflow: hidden; }
.mk-row-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; }
.mk-row-item + .mk-row-item { border-top: 0.5px solid #e5e5ea; }
.mk-row-item .fs-badge { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
.mk-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-row-body b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-row-body small { font-size: 10.5px; color: #8a8a8e; }
.mk-count { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e66a00; color: #fff; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.mk-chev { flex: none; width: 6px; height: 6px; margin-right: 3px; border-right: 1.6px solid #c7c7cc; border-top: 1.6px solid #c7c7cc; transform: rotate(45deg); }
.mk-title-sm { font-size: 22px; }
.mk-chips { display: flex; gap: 6px; padding: 0 2px 10px; }
.mk-chips span { padding: 5px 10px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 0.5px #d8d8dc; font-size: 11px; font-weight: 500; color: #48484a; }
.mk-chips span.on { background: #1d1d1f; color: #fff; box-shadow: none; }
.mk-pad { padding: 0 4px; }
.sc-back { display: block; }

/* Pantalla en modo oscuro */
.ds-dark { background: #000; color: #f5f5f7; }
.ds-dark .ds-status { color: #fff; }
.ds-dark .ds-card { background: #1c1c1e; box-shadow: none; }
.ds-dark .ds-seg { background: #1c1c1e; }
.ds-dark .ds-seg span { color: #98989d; }
.ds-dark .ds-seg span.on { background: #636366; color: #fff; box-shadow: none; }
.ds-dark .ds-seg b { background: rgba(255, 255, 255, 0.16); }
.ds-dark .ds-label, .ds-dark .ds-course { color: #98989d; }
.ds-dark .ds-check { border-color: #5a5a5e; }
.ds-dark .ds-check.on { border-color: #30d158; }
.ds-dark .ds-card.done .ds-name { color: #8e8e93; }
.ds-dark .ds-pills span { background: #2c2c2e !important; color: #d1d1d6 !important; }
.ds-dark .ds-pills .p-red { background: rgba(255, 69, 58, 0.22) !important; color: #ff6961 !important; }
.ds-dark .ds-pills .p-orange { background: rgba(255, 159, 10, 0.2) !important; color: #ffb340 !important; }
.ds-dark .ds-pills .p-blue { background: rgba(10, 132, 255, 0.22) !important; color: #6cb2ff !important; }
.ds-dark .ds-tabbar { background: #121214; border-top-color: #2c2c2e; }
.ds-dark .ds-tabbar span { background: #48484a; }
.ds-dark .ds-tabbar span.on { background: #ff9f0a; }

/* Galería deslizable */
.ap-gallery-section { overflow: hidden; }
.ap-gallery {
  --gal-pad: max(22px, calc((100vw - 1040px) / 2 + 22px));
  display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gal-pad);
  padding: 12px var(--gal-pad) 28px; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.ap-gallery::-webkit-scrollbar { display: none; }
.ap-gallery:focus-visible { box-shadow: inset 0 0 0 3px #0071e3; border-radius: 12px; }
.ap-gal-item { flex: none; width: 282px; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 24px; }
.ap-gal-item .device { width: 300px; transform: none; zoom: 0.94; }
.ap-gal-item .device-screen { height: 610px; }
.ap-gal-item figcaption { font-size: 17px; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.01em; }
.ap-gal-item figcaption b { color: var(--ink); font-weight: 600; }
.mk-detail { background: #f5f5f7; }
.ap-gal-nav { max-width: 1040px; margin: 4px auto 0; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; }
.ap-gal-dots { display: flex; gap: 8px; }
.ap-gal-dots i { width: 8px; height: 8px; border-radius: 99px; background: #d2d2d7; transition: width 0.4s cubic-bezier(0.3, 1.2, 0.5, 1), background 0.3s; }
.ap-gal-dots i.on { width: 24px; background: var(--ink); }
.ap-gal-arrows { display: flex; gap: 12px; }
.ap-gal-arrows button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: #e8e8ed; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.ap-gal-arrows button:hover { background: #dcdce1; }
.ap-gal-arrows button:disabled { opacity: 0.35; cursor: default; }
.ap-gal-arrows button:focus-visible { outline: 3px solid #0071e3; outline-offset: 2px; }
.ap-gal-arrows svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Día y noche: arrastra para comparar */
.ap-compare-wrap { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
.ap-left { text-align: left; margin-left: 0; }
.ap-compare-copy .ap-sub { margin-bottom: 24px; }
.ap-compare-hint { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 15px; color: var(--ink-2); }
.ap-compare-hint svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ap-compare { position: relative; }
.ap-compare .device { width: 300px; transform: none; }
.ap-compare .device-screen.cmp { height: 610px; padding: 0; touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; }
.ap-compare .cmp::before { z-index: 6; }
.cmp-layer { position: absolute; inset: 0; padding: 16px 13px 62px; background: #f5f5f7; }
body.apple .cmp-layer > .ds-status { margin: -16px -13px 6px; }
.cmp-dark { background: #000; -webkit-clip-path: inset(0 0 0 var(--pos)); clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 0; z-index: 5; pointer-events: none; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0 14px rgba(0, 0, 0, 0.3); }
.cmp-handle span {
  position: absolute; top: 50%; left: -21px; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%;
  background: #fff; color: #1d1d1f; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center;
}
.cmp-handle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cmp-range { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ap-compare:has(.cmp-range:focus-visible) .device { outline: 3px solid #0071e3; outline-offset: 6px; border-radius: 52px; }

/* Botón fijo en el móvil (sólido: sin desenfoque, que en Safari parpadea) */
.ap-sticky { display: none; }
@media (max-width: 680px) {
  .ap-sticky:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px;
    border-radius: 22px; background: #fff; box-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
    transform: translateY(calc(100% + 40px)); transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .ap-sticky.show { transform: none; }
  .ap-sticky-text { display: flex; flex-direction: column; line-height: 1.25; }
  .ap-sticky-text b { font-size: 15px; font-weight: 600; }
  .ap-sticky-text small { font-size: 12.5px; color: var(--ink-2); }
  .ap-sticky .ap-btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
}

/* Pie de página al estilo Apple */
body.apple .site-footer { padding: 22px 0 34px; font-size: 12px; }
.footer-note { max-width: none; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 210px)); gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.footer-cols h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer-cols a { display: block; padding: 4px 0; font-size: 12px; color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 14px; font-size: 12px; color: var(--ink-2); }
.footer-bottom img { vertical-align: -4px; margin-right: 6px; border-radius: 4px; }

@media (max-width: 900px) {
  .ap-compare-wrap { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .ap-compare-copy { text-align: center; }
  .ap-compare-copy .ap-left { text-align: center; margin-left: auto; }
  .ap-compare-hint { justify-content: center; }
}
@media (max-width: 680px) {
  .ap-gallery { gap: 20px; }
  .ap-gal-item { width: 246px; gap: 18px; }
  .ap-gal-item .device { zoom: 0.82; }
  .ap-gal-item figcaption { font-size: 15px; }
  .ap-compare .device { zoom: 0.9; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  body.apple .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Ajustes: borrar la cuenta (escondido tras un desplegable, con confirmación escrita) */
.danger-zone { background: var(--surface, #fff); border-radius: 18px; padding: 0 16px; box-shadow: 0 0 0 0.5px var(--sep, rgba(60, 60, 67, 0.12)); }
.danger-zone summary { list-style: none; cursor: pointer; min-height: 48px; display: flex; align-items: center; color: #d70015; font-weight: 500; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone form { padding: 0 0 16px; }
.danger-zone p { margin: 0 0 12px; font-size: 0.82rem; line-height: 1.5; color: var(--label-2, #6e6e73); }
.danger-zone .danger-msg { color: #d70015; font-weight: 500; }
.danger-zone .field span { display: block; margin-bottom: 6px; font-size: 0.8rem; color: var(--label-2, #6e6e73); }
.danger-zone input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--sep, #d2d2d7); background: var(--surface-2, #f5f5f7); color: var(--label, #1d1d1f); font: inherit; font-size: 16px; }
.danger-zone .btn.danger { padding: 13px; font-size: 0.9rem; border-color: rgba(215, 0, 21, 0.35); }
@media (prefers-color-scheme: dark) { body.in-app .danger-zone summary, body.in-app .danger-zone .danger-msg { color: #ff6961; } }
.ap-note { display: inline-block; margin: 0 0 22px; padding: 10px 16px; border-radius: 999px; background: #e8f7ec; color: #1a7a3a; font-size: 15px; }

/* ═════════════ «Así es por dentro»: las 4 pantallas a la vista, centradas, sin deslizar ═════════════ */
.ap-gallery-section { overflow: visible; }
.ap-gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; justify-items: center;
  max-width: 1040px; margin: 0 auto; padding: 8px 22px 0; overflow: visible; scroll-snap-type: none;
}
.ap-gal-item { width: auto; max-width: 240px; align-items: center; text-align: center; gap: 20px; scroll-snap-align: none; }
.ap-gal-item .device { zoom: 0.76; }
.ap-gal-item figcaption { font-size: 15px; line-height: 1.45; }
.ap-gal-nav { display: none; }
@media (max-width: 1000px) {
  .ap-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; max-width: 640px; }
  .ap-gal-item .device { zoom: 0.8; }
}
@media (max-width: 680px) {
  .ap-gallery { gap: 28px 12px; padding: 0 16px; }
  .ap-gal-item { gap: 12px; max-width: none; }
  .ap-gal-item .device { zoom: 0.54; }
  .ap-gal-item figcaption { font-size: 13px; line-height: 1.4; }
}
@media (max-width: 360px) { .ap-gal-item .device { zoom: 0.48; } }

/* ═════════════ Día y noche: sin línea blanca en los bordes ═════════════
   Cada capa se recorta hasta la línea (la clara por la derecha, la oscura por la
   izquierda), así en los extremos no asoma ni un píxel de la otra; el fondo es
   negro como el borde del móvil; y la línea se esconde al llegar al borde. */
.ap-compare .device-screen.cmp { background: #000; }
.cmp-layer:not(.cmp-dark) { -webkit-clip-path: inset(0 calc(100% - var(--pos)) 0 0); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-handle { left: 0; right: 0; width: auto; }
.cmp-handle::before { left: var(--pos); margin-left: -1px; transition: opacity 0.2s; }
.cmp-handle span { left: clamp(23px, var(--pos), calc(100% - 23px)); margin-left: -21px; }
.ap-compare.edge .cmp-handle::before { opacity: 0; }
.ap-gal-item .device { text-align: left; }
.danger-zone .btn.danger { margin-top: 12px; }

/* ═════════════ Portada: confianza (estado en vivo, garantías, detalles, comparativa, carta, novedades) ═════════════ */
.ap-live { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; background: #eef8f1; color: #1a7a3a; font-size: 13px; font-weight: 500; }
.ap-live i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2); }

.ap-trust { padding: 8px 0 8px; }
.ap-trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-trust-row > div { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--paper); }
.ap-trust svg, .ap-details svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--accent-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ap-trust span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.ap-trust b { font-size: 14px; font-weight: 600; color: var(--ink); }

.ap-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.ap-details > div { display: flex; flex-direction: column; gap: 8px; }
.ap-details svg { width: 30px; height: 30px; margin-bottom: 6px; }
.ap-details h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.ap-details p { margin: 0; font-size: 15px; line-height: 1.47; color: var(--ink-2); }

.ap-table-wrap { border-radius: 24px; background: var(--paper); padding: 8px 20px; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ap-table th, .ap-table td { padding: 15px 10px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ap-table tbody tr:last-child th, .ap-table tbody tr:last-child td { border-bottom: 0; }
.ap-table thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.ap-table thead th.us { color: var(--accent-ink); }
.ap-table tbody th { text-align: left; font-weight: 500; color: var(--ink); width: 34%; }
.ap-table td.us { background: #fff; }
.ap-table thead th.us { background: #fff; border-radius: 16px 16px 0 0; }
.ap-table tbody tr:last-child td.us { border-radius: 0 0 16px 16px; }
.ap-table small { display: block; font-size: 12.5px; color: var(--ink-2); }
.cmp-y { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.cmp-n { color: #b8b8be; font-size: 18px; }
.ap-table tr.price b { display: block; font-size: 16px; color: var(--ink); }

.ap-letter { margin: 0; padding: 44px 48px; border-radius: 28px; background: #fffdf8; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 30px 60px -45px rgba(80, 50, 10, 0.4); }
.ap-letter blockquote { margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; line-height: 1.32; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.ap-letter-body p { margin: 0 0 14px; font-size: 17px; line-height: 1.6; color: #3a3a3c; }
.ap-letter-body a { color: var(--link); }
.ap-letter figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.ap-sign { font-family: "Caveat", "Snell Roundhand", cursive; font-size: 38px; line-height: 1; color: var(--ink); transform: rotate(-2deg); transform-origin: left; }

.ap-log { list-style: none; margin: 0; padding: 0; position: relative; }
.ap-log::before { content: ""; position: absolute; left: 62px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.ap-log li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 28px; padding: 12px 0; }
.ap-log li::before { content: ""; position: absolute; left: 57px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--accent); }
.ap-log li:first-child::before { background: var(--accent); }
.ap-log time { font-size: 13px; font-weight: 600; color: var(--ink-2); padding-top: 3px; text-align: right; }
.ap-log div { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.ap-log b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .ap-trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ap-trust-row { gap: 8px; padding: 0 16px; }
  .ap-trust-row > div { padding: 12px; gap: 10px; border-radius: 16px; }
  .ap-trust svg { width: 20px; height: 20px; }
  .ap-trust b { font-size: 13px; }
  .ap-trust span { font-size: 12px; }
  .ap-details { gap: 24px 16px; }
  .ap-details h3 { font-size: 16px; }
  .ap-details p { font-size: 14px; }
  .ap-table-wrap { padding: 4px 8px; border-radius: 20px; }
  .ap-table { font-size: 13px; }
  .ap-table th, .ap-table td { padding: 12px 4px; }
  .ap-table thead th { font-size: 11px; }
  .ap-table tbody th { width: 36%; }
  .ap-table small { font-size: 11px; }
  .ap-table tr.price b { font-size: 14px; }
  .ap-letter { padding: 28px 22px; border-radius: 24px; }
  .ap-letter-body p { font-size: 16px; }
  .ap-log::before { left: 52px; }
  .ap-log li { grid-template-columns: 44px 1fr; gap: 22px; }
  .ap-log li::before { left: 47px; }
  .ap-log div { font-size: 15px; }
}
.ap-table tr.price b { white-space: nowrap; }
@media (max-width: 680px) {
  .ap-log::before { left: 62px; }
  .ap-log li { grid-template-columns: 46px 1fr; gap: 32px; }
  .ap-log li::before { left: 57px; }
}

/* ── Asignatura por bloques, orden elegible y «Cómo y cuándo» ───────────── */
.chip-count { opacity: 0.55; font-weight: 500; margin-left: 2px; }
.sort-bar { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.sort-label { flex: none; font-size: 0.8235rem; color: var(--label-2, #6e6e73); }
.segmented.compact { flex: 1; margin: 0; }
.segmented button {
  flex: 1; min-height: 34px; padding: 6px 4px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-size: 0.8235rem; font-weight: 500; color: var(--label-3, #48484a); cursor: pointer;
}
.segmented button.on { background: var(--surface, #fff); color: var(--label, #1d1d1f); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.segmented button:focus-visible { outline: 2px solid var(--tint, #c25e00); outline-offset: -2px; }
.sort-hint { margin: -4px 0 14px; font-size: 0.8235rem; line-height: 1.45; color: var(--label-2, #6e6e73); }
.sort-hint svg { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drag-handle {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -2px -10px -2px 0;
  border: 0; background: none; color: var(--chev, #c7c7cc); cursor: grab; touch-action: none; border-radius: 10px;
  position: relative; z-index: 2; /* por encima del enlace que cubre toda la tarjeta */
}
.drag-handle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drag-handle:focus-visible { outline: 2px solid var(--tint, #c25e00); }
.icard.dragging { position: relative; z-index: 3; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); cursor: grabbing; transition: box-shadow 0.15s; }
.cards.sortable .icard { user-select: none; -webkit-user-select: none; }

.plan-box { margin: 16px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface-2, #f0f0f2); }
.plan-head { display: flex; gap: 12px; align-items: flex-start; }
.plan-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface, #fff); color: var(--label-3, #3a3a3c); }
.plan-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-aula_virtual .plan-ico { color: var(--tint, #c25e00); }
.plan-en_clase .plan-ico { color: #0a60d0; }
.plan-no_claro .plan-ico { color: #a35800; }
.plan-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-kicker { font-size: 0.7059rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label-2, #6e6e73); }
.plan-headline { font-size: 1.0588rem; font-weight: 600; color: var(--label, #1d1d1f); }
.plan-when { font-size: 0.8824rem; color: var(--label-3, #3a3a3c); }
.plan-head .due { align-self: flex-start; margin-top: 4px; }
.plan-detail { margin: 10px 0 0; font-size: 0.9412rem; line-height: 1.45; color: var(--label, #1d1d1f); }
.plan-source { margin: 8px 0 0; font-size: 0.7647rem; color: var(--label-2, #6e6e73); }
.when-tag.when-en_clase { background: #eef4ff; color: #0a52b3; }
.when-tag.when-no_claro { background: var(--surface-2, #f0f0f2); color: var(--label-2, #6e6e73); }
.done-state { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 6px; font-weight: 600; color: #1a8f4c; }
.done-state svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-color-scheme: dark) {
  body.in-app .segmented button.on { background: #636366; color: #fff; }
  body.in-app .plan-en_clase .plan-ico { color: #6cb2ff; }
  body.in-app .plan-no_claro .plan-ico { color: #ffb340; }
  body.in-app .when-tag.when-en_clase { background: rgba(10, 132, 255, 0.2); color: #6cb2ff; }
  body.in-app .done-state { color: #30d158; }
  body.in-app .icard.dragging { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }
}

/* ── Inicio: saludo, tarjeta «Hoy» con la semana y cifras ──────────────── */
.home-head { margin-bottom: 18px; }
body.in-app .home-date {
  margin: 0 0 4px; font-size: 0.8235rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tint);
}
.today-card {
  position: relative; overflow: hidden; margin: 0 0 22px; padding: 18px 18px 14px; border-radius: 22px;
  background: linear-gradient(160deg, #fff4e3 0%, #ffffff 58%);
  box-shadow: 0 0 0 0.5px var(--sep), 0 10px 30px -18px rgba(194, 94, 0, 0.45);
}
.today-card::before { /* un halo cálido, sin desenfoques que parpadeen en Safari */
  content: ""; position: absolute; top: -70px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.22), rgba(255, 149, 0, 0) 70%); pointer-events: none;
}
.today-kicker { display: block; font-size: 0.7647rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tint); }
.today-title { text-align: left; margin: 2px 0 4px; font-size: 1.4118rem; font-weight: 700; letter-spacing: -0.02em; color: var(--label); }
.today-sub { margin: 0; font-size: 0.9412rem; line-height: 1.4; color: var(--label-3); }
.today-sub a { color: inherit; text-decoration: none; }
.today-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.today-list a {
  display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, 0.75); box-shadow: 0 0 0 0.5px var(--sep);
}
.today-course { font-size: 0.7647rem; font-weight: 600; color: var(--label-2); }
.today-name { font-size: 0.9412rem; font-weight: 600; line-height: 1.3; color: var(--label); }
.today-list .tag { justify-self: start; margin-top: 4px; }

.week-strip { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 16px 0 12px; padding: 0; }
.wday { display: grid; justify-items: center; gap: 3px; padding: 8px 0 7px; border-radius: 14px; }
.wd-l { font-size: 0.6471rem; font-weight: 600; text-transform: uppercase; color: var(--label-2); }
.wd-n { font-size: 1.0588rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--label); }
.wday.is-weekend .wd-n { color: var(--label-2); }
.wday.is-today { background: var(--tint); } /* blanco sobre #c25e00: 4,6:1 */
.wday.is-today .wd-l, .wday.is-today .wd-n { color: #fff; }
.wd-dots { display: flex; gap: 3px; height: 5px; }
.wd-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--tint-fill); }
.wday.is-today .wd-dots i { background: #fff; }

.today-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 0.5px solid var(--sep); padding-top: 12px; }
.today-stats a { display: grid; gap: 1px; min-height: 44px; text-decoration: none; color: inherit; }
.today-stats b { font-size: 1.4118rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--label); }
.today-stats span { font-size: 0.7059rem; color: var(--label-2); }

/* Entrada suave al abrir (una vez; sin bucles ni desenfoques) */
@media (prefers-reduced-motion: no-preference) {
  body.in-app .today-card, body.in-app .home-head, body.in-app .cards .icard { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  body.in-app .home-head { animation-delay: 0s; }
  body.in-app .today-card { animation-delay: 0.06s; }
  body.in-app .cards .icard:nth-child(1) { animation-delay: 0.1s; }
  body.in-app .cards .icard:nth-child(2) { animation-delay: 0.14s; }
  body.in-app .cards .icard:nth-child(3) { animation-delay: 0.18s; }
  body.in-app .cards .icard:nth-child(n+4) { animation-delay: 0.22s; }
  body.in-app .wday.is-today { animation: pop 0.6s 0.25s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
  body.in-app .icard.dragging { animation: none; }
}

@media (prefers-color-scheme: dark) {
  body.in-app .today-card { background: linear-gradient(160deg, #3a2208 0%, #1c1c1e 60%); box-shadow: 0 0 0 0.5px var(--sep); }
  body.in-app .today-card::before { background: radial-gradient(circle, rgba(255, 159, 10, 0.25), rgba(255, 159, 10, 0) 70%); }
  body.in-app .today-list a { background: rgba(255, 255, 255, 0.06); }
  body.in-app .wday.is-today .wd-l, body.in-app .wday.is-today .wd-n { color: #000; } /* negro sobre #ff9f0a */
  body.in-app .wday.is-today .wd-dots i { background: #000; }
}

/* ── Conectar el correo: ilustración del aviso de Google ──────────────── */
.gw-card { margin: 0 0 22px; padding: 14px; border-radius: 20px; background: var(--surface-2, #f0f0f2); }
.gw-caption { display: block; margin: 0 0 10px; font-size: 0.7059rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--label-2, #6e6e73); }
.gw-screen { padding: 18px 16px; border-radius: 14px; background: #fff; color: #202124; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.gw-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: #fce8e6; color: #c5221f; font-weight: 700; }
.gw-title { margin: 0 0 6px; font-size: 1.0588rem; font-weight: 600; color: #202124; }
.gw-text { margin: 0 0 12px; font-size: 0.8235rem; line-height: 1.45; color: #5f6368; }
.gw-after { margin: 14px 0 8px; }
.gw-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.gw-link { display: inline-block; font-size: 0.8235rem; font-weight: 500; color: #1a73e8; text-decoration: underline; }
.gw-btn { padding: 8px 14px; border-radius: 6px; background: #1a73e8; color: #fff; font-size: 0.8235rem; font-weight: 500; }
.gw-link.is-target { padding: 3px 6px; margin: -3px -6px; border-radius: 8px; outline: 2.5px solid #ff9500; outline-offset: 1px; }
.gw-steps { margin: 0 0 22px; padding-left: 1.3em; display: grid; gap: 10px; font-size: 0.9412rem; line-height: 1.45; color: var(--label, #1d1d1f); }
.gw-why { margin: 0 0 22px; padding: 16px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 0 0 0.5px var(--sep); }
.gw-why p { margin: 0 0 10px; font-size: 0.9412rem; line-height: 1.5; color: var(--label, #1d1d1f); }
.gw-why .needs { margin: 6px 0 0; }
.group-note { margin: -4px 4px 10px; font-size: 0.8235rem; line-height: 1.4; color: var(--label-2, #6e6e73); }

/* ── Horario: tarjeta de clases en Inicio y pantalla «Tu horario» ─────── */
.home-grid { display: grid; gap: 14px; margin: 0 0 22px; }
.home-grid .today-card { margin: 0; }
@media (min-width: 760px) { .home-grid { grid-template-columns: 1.15fr 1fr; align-items: stretch; } }
.classes-card { padding: 18px 18px 12px; border-radius: 22px; background: var(--surface, #fff); box-shadow: 0 0 0 0.5px var(--sep); }
.classes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.classes-cta { margin-top: 12px; }
.classes-note { margin: 0 0 6px; }
.class-list { list-style: none; margin: 0; padding: 0; display: grid; }
.class-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 0.5px solid var(--sep); }
.class-list li:first-child { border-top: 0; }
.cl-time { flex: none; display: grid; width: 3.2em; font-size: 0.9412rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--label); }
.cl-time small { font-size: 0.7647rem; font-weight: 500; color: var(--label-2); }
.cl-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.cl-body b { font-size: 0.9412rem; font-weight: 600; line-height: 1.3; color: var(--label); }
.cl-body small { font-size: 0.7647rem; color: var(--label-2); }
.cl-badge { flex: none; padding: 3px 8px; border-radius: 999px; font-size: 0.7059rem; font-style: normal; font-weight: 600; background: var(--surface-2); color: var(--label-3); }
.cl-badge.now { background: var(--tint); color: #fff; }
.class-list li.is-now { margin: 0 -10px; padding: 10px; border-radius: 14px; background: rgba(255, 149, 0, 0.1); border-top-color: transparent; }
.class-list li.is-now + li { border-top-color: transparent; }
.class-list li.is-past { opacity: 0.45; }
.class-list form { flex: none; }

.week-table { display: grid; gap: 4px; margin-bottom: 18px; }
.wt-day .class-list { padding: 4px 16px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 0 0 0.5px var(--sep); }
.wt-free { margin: 0 4px 8px; }
.tt-card { display: grid; gap: 12px; margin: 0 0 22px; padding: 16px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 0 0 0.5px var(--sep); }
.tt-steps { margin: 0; font-size: 0.9412rem; line-height: 1.5; color: var(--label); }
.tt-pdfs { display: grid; gap: 8px; }
.tt-pdf {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 14px;
  background: var(--surface-2); color: var(--label); font: inherit; font-size: 0.9412rem; text-align: left; cursor: pointer;
}
.tt-pdf svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--tint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-pdf:disabled { opacity: 0.6; }
.tt-pdf.is-busy { opacity: 1; outline: 2px solid var(--tint); }
.tt-more summary { cursor: pointer; }
.tt-more form { margin-top: 12px; }
.tt-course { margin-bottom: 14px; }
.tt-list { display: grid; padding: 4px 14px; border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 0 0 0.5px var(--sep); }
.tt-option { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; border-top: 0.5px solid var(--sep); cursor: pointer; }
.tt-option:first-child { border-top: 0; }
.tt-option input { grid-row: span 2; width: 22px; height: 22px; accent-color: var(--tint); }
.tt-when { font-size: 0.9412rem; font-weight: 600; color: var(--label); }
.tt-what { font-size: 0.7647rem; color: var(--label-2); }
.tt-option.is-other-term { opacity: 0.55; }
@media (prefers-color-scheme: dark) {
  body.in-app .cl-badge.now { color: #000; }
  body.in-app .class-list li.is-now { background: rgba(255, 159, 10, 0.16); }
}
.stack { display: grid; gap: 10px; }

/* Formulario del horario: todo del mismo alto y sin salirse del recuadro (Safari da ancho mínimo a los campos de hora) */
.tt-card { gap: 16px; }
.tt-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.tt-label { padding: 0; font-size: 0.8235rem; font-weight: 600; color: var(--label-2, #6e6e73); }
.tt-label small { font-weight: 400; }
.tt-card input:not([type=checkbox]):not([type=radio]):not([type=file]), .tt-card select {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box;
  height: 48px; margin: 0; padding: 0 14px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--sep, #d2d2d7);
  background: var(--surface-2, #f5f5f7); color: var(--label, #1d1d1f); font: inherit; font-size: 17px; line-height: 48px; text-align: left;
}
.tt-card input::-webkit-date-and-time-value { text-align: left; }
.tt-card select {
  padding-right: 38px; background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.tt-card input:focus, .tt-card select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tint, #c25e00); }
.tt-card input[type=file] { font-size: 0.8235rem; color: var(--label-2); }
.tt-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tt-seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface-2, #f0f0f2); }
.tt-seg label { position: relative; flex: 1; min-width: 0; }
.tt-seg input { position: absolute; opacity: 0; pointer-events: none; }
.tt-seg span {
  display: grid; place-items: center; height: 42px; border-radius: 9px; font-size: 0.9412rem; font-weight: 500;
  color: var(--label-3, #3a3a3c); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.tt-seg input:checked + span { background: var(--surface, #fff); color: var(--label, #1d1d1f); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tt-seg input:focus-visible + span { outline: 2px solid var(--tint, #c25e00); outline-offset: -2px; }
.tt-hero { display: grid; justify-items: center; gap: 8px; margin: 0 0 22px; padding: 28px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(160deg, #fff4e3 0%, #ffffff 60%); box-shadow: 0 0 0 0.5px var(--sep); }
.tt-hero h2 { margin: 6px 0 0; font-size: 1.4118rem; font-weight: 700; letter-spacing: -0.02em; color: var(--label); }
.tt-hero p { max-width: 30em; margin: 0; font-size: 0.9412rem; line-height: 1.5; color: var(--label-3); }
.tt-hero-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--tint-fill, #ff9500); color: #fff; }
.tt-hero-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tt-hint { margin: -6px 4px 18px; }
@media (prefers-color-scheme: dark) {
  body.in-app .tt-seg input:checked + span { background: #636366; color: #fff; }
  body.in-app .tt-hero { background: linear-gradient(160deg, #3a2208 0%, #1c1c1e 60%); }
}
.tt-card [hidden] { display: none !important; }
@media (max-width: 460px) { .tt-times.tt-wrap { grid-template-columns: 1fr; } }
.wt-day .group-label { margin-top: 14px; }

/* Avisos del Aula Virtual */
.k-aviso { background: #eef4ff; color: #0a60d0; }
.icard-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 0.8824rem; line-height: 1.4; color: var(--label-2, #6e6e73); }
@media (prefers-color-scheme: dark) { body.in-app .k-aviso { background: rgba(10, 132, 255, 0.2); color: #6cb2ff; } }
.aviso-tag.is-important { background: #fff4e5; color: #8a4b00; }
.cards.notices { margin-bottom: 22px; }
@media (prefers-color-scheme: dark) { body.in-app .aviso-tag.is-important { background: rgba(255, 159, 10, 0.18); color: #ffb340; } }
