/* Vinculador ABP — mismo lenguaje visual que Task Reminder UV ("planner de estudiante"):
   papel crema, tinta calida, azul del logo, Fraunces + Instrument Sans + Caveat, sombras solidas. */
:root {
  --paper: #faf6ee;
  --paper-2: #f3edde;
  --card: #fffdf7;
  --ink: #221d16;
  --ink-soft: #4d463c;
  --ink-faint: #7a7264;
  --line: rgba(34, 29, 22, 0.14);
  --blue: #0171f3;
  --blue-deep: #014cc1;
  --blue-soft: rgba(1, 113, 243, 0.1);
  --marker: #ffd84d;
  --note-yellow: #fff3a8;
  --red: #d9482b;
  --red-soft: rgba(217, 72, 43, 0.09);
  --green-ok: #1f8a4c;
  --green-soft: rgba(31, 138, 76, 0.1);
  --amber: #8a5a00;
  --shadow-ink: 4px 4px 0 var(--ink);
  --shadow-card: 5px 5px 0 rgba(34, 29, 22, 0.12);
  --shadow-card-sm: 3px 3px 0 rgba(34, 29, 22, 0.1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", cursive;
  --mono: Consolas, "Cascadia Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); min-height: 100vh;
       -webkit-font-smoothing: antialiased; }
/* grano de papel */
body::after { content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .4;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.06'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
a { color: var(--blue-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 700; }
h1 em { font-style: italic; font-weight: 600; }
h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; }
p { margin: 0 0 14px; }
code { font: 0.88em var(--mono); background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
[hidden] { display: none !important; }
.ancho { max-width: 1140px; margin: 0 auto; padding-left: clamp(16px, 4vw, 36px); padding-right: clamp(16px, 4vw, 36px); }
.oculto-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mano { font-family: var(--hand); }
.demo { background: var(--note-yellow); color: var(--ink); border-bottom: 1.5px solid var(--ink); padding: 8px 16px; margin: 0;
        text-align: center; font-weight: 600; font-size: 14px; position: relative; z-index: 201; }

/* subrayador */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::before { content: ""; position: absolute; left: -0.12em; right: -0.12em; top: 0.2em; bottom: 0.02em; background: var(--marker);
                z-index: -1; transform: skewX(-8deg) rotate(-0.6deg); border-radius: 0.18em 0.32em 0.22em 0.4em; }

/* barra */
.barra { position: sticky; top: 0; z-index: 200; height: 62px; display: flex; align-items: center; justify-content: space-between;
         background: rgba(250, 246, 238, 0.9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
         border-bottom: 1.5px solid var(--ink); }
.barra-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.marca img { width: 34px; height: 34px; object-fit: contain; }
.marca b { font: 700 17px var(--serif); letter-spacing: -0.01em; display: block; line-height: 1.1; }
.marca small { display: block; font-size: 12px; color: var(--ink-faint); font-weight: 500; }
.barra nav { display: flex; align-items: center; gap: 6px; }
.btn-ghost { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px;
             transition: color .15s, background .15s; }
.btn-ghost:hover { color: var(--ink); background: rgba(34, 29, 22, 0.05); }

/* botones */
.btn, .btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--sans);
                 letter-spacing: -0.01em; text-decoration: none; padding: 14px 28px; border: 1.5px solid var(--ink); border-radius: 12px;
                 cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn { background: var(--blue); color: #fff; box-shadow: var(--shadow-ink); }
.btn:hover { background: var(--blue-deep); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-ink); background: var(--blue); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-sec { background: var(--card); color: var(--ink); padding: 11px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-sec:hover { background: var(--paper-2); transform: translate(1.5px, 1.5px); box-shadow: 1.5px 1.5px 0 var(--ink); }
.btn-sec:disabled, .enlace:disabled { opacity: .5; cursor: not-allowed; }
.btn-ancho { width: 100%; margin-top: 12px; }
.enlace { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--blue-deep); text-decoration: underline;
          text-underline-offset: 3px; cursor: pointer; }
.aviso-error { background: #fbeae5; color: #93331d; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-card-sm);
               padding: 12px 16px; margin-top: 14px; font-size: 14.5px; }

/* portada */
.portada { display: grid; grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.portada > * { min-width: 0; }
.entrada { font-size: 18.5px; color: var(--ink-soft); max-width: 33em; margin-bottom: 26px; }
.garabato { font: 600 clamp(22px, 2.3vw, 27px) var(--hand); color: var(--red); transform: rotate(-1.5deg); display: inline-block; margin-top: 22px; }

.subida { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-card); max-width: 540px; }
.zona { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 128px; padding: 20px 22px;
        background: var(--paper); border: 1.5px dashed var(--ink-faint); border-radius: 12px; cursor: pointer;
        transition: border-color .15s, background .15s; }
.zona:hover, .zona.encima { border-color: var(--blue); background: var(--blue-soft); }
.zona.lista { border-style: solid; border-color: var(--blue-deep); background: var(--blue-soft); }
.zona strong { font-size: 17.5px; font-weight: 600; overflow-wrap: anywhere; }
.zona span { color: var(--ink-soft); font-size: 14.5px; }
.otra-opcion { font-size: 14.5px; color: var(--ink-soft); margin: 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 14.5px; cursor: pointer; margin-bottom: 18px; }
.check input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
#btn-subir { width: 100%; }
.ts { margin: 0 0 14px; min-height: 65px; }
.comp-acciones .ts { flex-basis: 100%; margin: 0; }
.precio-linea { font-size: 14.5px; color: var(--ink-faint); margin: 14px 0 0; }
.precio-linea b { color: var(--ink); font-size: 16px; }

/* diapositiva de ejemplo, pegada con cinta */
.muestra { margin: 0; position: relative; }
.escena { position: relative; transform: rotate(1.6deg); }
.cinta { position: absolute; width: 92px; height: 28px; background: rgba(244, 227, 166, 0.78); border-left: 1px dashed rgba(34, 29, 22, .18);
         border-right: 1px dashed rgba(34, 29, 22, .18); box-shadow: 0 1px 3px rgba(34, 29, 22, .12); z-index: 3; }
.cinta-a { top: -14px; left: -26px; transform: rotate(-38deg); }
.cinta-b { bottom: -12px; right: -28px; transform: rotate(-34deg); }
.diapo { aspect-ratio: 16 / 10; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 8px 10px 0 rgba(34, 29, 22, .18);
         padding: 7% 8% 6%; position: relative; display: flex; flex-direction: column; }
.diapo-titulo { font: 700 clamp(15px, 1.9vw, 21px) var(--sans); letter-spacing: .14em; margin: 0 0 6%; }
.diapo-conceptos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5% 8%; }
.diapo-conceptos li, .diapo-boton { font-size: clamp(13px, 1.4vw, 16px); }
.diapo a { color: var(--blue-deep); text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
           background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px;
           animation: vincular .5s ease-out forwards; }
.diapo-conceptos li:nth-child(1) a { animation-delay: .4s; }
.diapo-conceptos li:nth-child(2) a { animation-delay: .55s; }
.diapo-conceptos li:nth-child(3) a { animation-delay: .7s; }
.diapo-conceptos li:nth-child(4) a { animation-delay: .85s; }
.diapo-conceptos li:nth-child(5) a { animation-delay: 1s; background-color: var(--note-yellow); }
.diapo-conceptos li:nth-child(6) a { animation-delay: 1.15s; }
.diapo-conceptos li:nth-child(7) a { animation-delay: 1.3s; }
.diapo-conceptos li:nth-child(8) a { animation-delay: 1.45s; }
.diapo-boton { position: absolute; right: 6%; bottom: 7%; }
.diapo-boton a { animation-delay: 1.7s; }
@keyframes vincular { to { background-size: 100% 1.5px; } }
.nota-pegada { background: var(--note-yellow); border: 1.5px solid var(--ink); border-radius: 4px; box-shadow: var(--shadow-card-sm);
               padding: 14px 18px; margin: 30px 0 0 auto; max-width: 400px; transform: rotate(-1.2deg); font-size: 13.5px; line-height: 1.75; }
.nota-pegada ol { list-style: none; margin: 0; padding: 0; font-family: var(--mono); }
.nota-pegada span { font-weight: 700; }
.nota-pegada i { font: 600 18px var(--hand); color: var(--red); margin-left: 4px; }
.muestra figcaption { font: 600 21px var(--hand); color: var(--ink-soft); margin-top: 14px; transform: rotate(-1deg); }

/* entrada animada */
/* visible por defecto: si la animacion no corre, el contenido igual se ve */
.sube { animation: sube .7s cubic-bezier(.2, .7, .3, 1) backwards; }
.sube-1 { animation-delay: .05s; } .sube-2 { animation-delay: .15s; } .sube-3 { animation-delay: .25s; } .sube-4 { animation-delay: .4s; }
@keyframes sube { from { transform: translateY(16px); } }

/* secciones */
.bloque { padding-top: 72px; padding-bottom: 72px; border-top: 1.5px dashed var(--line); }
.regresa, .carpeta, .comprimir { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.regresa > *, .carpeta > *, .comprimir > * { min-width: 0; }
.regresa p, .carpeta p, .comprimir p { color: var(--ink-soft); max-width: 36em; }
.foto { position: relative; transform: rotate(-1deg); }
.foto img { display: block; width: 100%; height: auto; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 8px 10px 0 rgba(34, 29, 22, .16); }
.foto .cinta { top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.arbol { background: #1d2a22; color: #e8f0e6; border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-card);
         padding: 24px 26px; font: 14px/1.65 var(--mono); overflow-x: auto; margin: 0; }
.dudas-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 20px; }
.dudas-lista > div { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-card-sm); padding: 18px 20px; }
.dudas-lista h3 { font: 700 18px var(--serif); margin: 0 0 6px; }
.dudas-lista p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.comprimir { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-card);
             padding: 30px 32px; grid-template-columns: 1.4fr 1fr; }
.seccion-comprimir { border-top: 1.5px dashed var(--line); padding-top: 72px; padding-bottom: 72px; }
.comp-acciones { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.comp-acciones p { flex-basis: 100%; margin: 0; min-height: 1.6em; color: var(--ink-soft); }

/* trabajo */
.trabajo { padding-top: 40px; padding-bottom: 72px; min-height: 62vh; }
.estado-linea { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.paso { font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-faint); }
.paso.hecho { border-color: var(--green-ok); background: var(--green-soft); color: var(--green-ok); }
.paso.actual { border-color: var(--ink); background: var(--marker); color: var(--ink); }
.tenue { color: var(--ink-soft); }
.progreso { height: 12px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin: 22px 0 12px; max-width: 620px; }
.progreso > div { height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.progreso.indeterminado > div { width: 32%; animation: ir 1.3s ease-in-out infinite; }
@keyframes ir { from { transform: translateX(-100%); } to { transform: translateX(320%); } }
.trabajo h1 { font-size: clamp(34px, 4.6vw, 52px); overflow-wrap: anywhere; }
.cifras { font-size: 17px; color: var(--ink-soft); margin: 0; }
.cifras b { color: var(--ink); }
.cifras .alerta { color: var(--red); }
.dos-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: start; margin-top: 36px; }
.dos-col > * { min-width: 0; }
.trabajo h2 { font-size: 28px; }
.grupo { margin-bottom: 24px; }
.grupo h3 { font: 700 15px var(--sans); display: flex; align-items: center; gap: 8px; margin: 0 0 10px; letter-spacing: 0; }
.etq { font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.t-falta { background: var(--red-soft); color: var(--red); }
.t-confirmar { background: var(--note-yellow); color: var(--amber); }
.t-duplicado { background: #ecebff; color: #3b3a9e; }
.t-sin_usar { background: var(--blue-soft); color: var(--blue-deep); }
.t-aviso { background: var(--paper-2); color: var(--ink-soft); }
.item { background: var(--card); border: 1.5px solid var(--ink); border-left-width: 5px; border-radius: 10px; box-shadow: var(--shadow-card-sm);
        padding: 10px 14px; margin-bottom: 10px; }
.item.falta { border-left-color: var(--red); }
.item.confirmar { border-left-color: #e0a800; }
.item .cab { font-weight: 700; overflow-wrap: anywhere; }
.item .cab small { font-size: 12px; color: var(--ink-faint); margin-right: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.item .que { font-size: 15px; overflow-wrap: anywhere; }
.item .accion { color: var(--ink-faint); font-size: 14px; }
.ver-mas { background: none; border: 0; color: var(--blue-deep); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.ok-caja { background: #eaf6ec; color: #145c33; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow-card-sm); padding: 14px 16px; }
.caja-pago { background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px; padding: 26px; box-shadow: var(--shadow-card); position: sticky; top: 86px; }
.caja-pago h2 { font-size: 26px; overflow-wrap: anywhere; }
.caja-pago.pagado { background: #eaf6ec; }
.caja-pago.pagado h2 { color: #145c33; }
.precio { margin: 16px 0 4px; font-size: 15px; color: var(--ink-faint); }
.precio b { font: 700 46px var(--serif); color: var(--ink); letter-spacing: -0.03em; }
.precio small { display: block; font-size: 13.5px; }
#expira { margin-top: 14px; }
.letra-chica { font-size: 12.5px; color: var(--ink-faint); margin: 12px 0 0; line-height: 1.65; }
.guardar { display: inline-block; margin-top: 36px; background: var(--note-yellow); border: 1.5px solid var(--ink); border-radius: 4px;
           box-shadow: var(--shadow-card-sm); padding: 10px 16px; font-size: 14px; transform: rotate(-0.6deg); }

/* legal */
.legal { padding-top: 40px; padding-bottom: 72px; max-width: 780px; }
.legal h2 { margin-top: 30px; font-size: 24px; }
.legal p { color: var(--ink-soft); }

/* pie */
.pie { border-top: 1.5px solid var(--ink); padding-top: 26px; padding-bottom: 34px; color: var(--ink-faint); font-size: 13.5px; }
.pie-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pie p { max-width: 44em; margin: 0; }
.pie nav { display: flex; gap: 18px; }
.pie a { color: var(--ink-soft); }

@media (max-width: 900px) {
  .portada, .regresa, .carpeta, .comprimir, .dos-col { grid-template-columns: 1fr; gap: 36px; }
  .portada { padding-top: 28px; }
  .dudas-lista { grid-template-columns: 1fr; }
  .caja-pago { position: static; }
  .barra nav .btn-ghost { display: none; }
  .bloque, .seccion-comprimir { padding-top: 52px; padding-bottom: 52px; }
  .escena { transform: rotate(1deg); margin: 0 10px; }
  .comprimir { padding: 22px; }
  .nota-pegada { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { transition: none !important; animation: none !important; }
  .diapo a { background-size: 100% 1.5px; }
}
