:root {
  --navy: #0f2742;
  --navy-2: #173a61;
  --teal: #0d9488;
  --teal-dark: #0b7a70;
  --teal-soft: #e3f5f3;
  --bg: #f4f7fa;
  --card: #ffffff;
  --text: #1c2733;
  --muted: #5b6b7b;
  --line: #dbe3ea;
  --ok: #15803d;
  --info: #1d4ed8;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 39, 66, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Cabecera */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 0; }
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { display: block; height: 64px; width: auto; }

/* Hero y herramienta */
.hero { background: linear-gradient(180deg, var(--navy) 0, var(--navy-2) 100%); color: #fff; padding: 34px 0 120px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.18; letter-spacing: -.01em; }
.hero p { margin: 0; max-width: 760px; color: #d7e6f4; font-size: clamp(1rem, 2.2vw, 1.15rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); padding: 5px 12px; border-radius: 999px; font-size: .86rem; }
.tool { margin-top: -96px; }
.tool-card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(18px, 4vw, 32px); }
.drop { border: 2px dashed #9db4c9; border-radius: var(--radius); padding: clamp(26px, 6vw, 52px) 18px; text-align: center; background: #f9fbfd; transition: .15s; cursor: pointer; }
.drop:hover, .drop.drag { border-color: var(--teal); background: var(--teal-soft); }
.drop:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.drop svg { color: var(--teal); }
.drop h2 { margin: 10px 0 6px; font-size: 1.25rem; }
.drop p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.btn { appearance: none; border: 0; border-radius: 12px; padding: 13px 24px; font: 600 1rem var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: .15s; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 17px 30px; font-size: 1.1rem; }
.hint { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .86rem; }
.hint svg { vertical-align: -3px; margin-right: 4px; color: var(--ok); }

.progress { display: none; padding: 26px 6px 10px; text-align: center; }
.progress.on { display: block; }
.bar { height: 10px; background: #e6edf3; border-radius: 99px; overflow: hidden; margin: 14px auto 0; max-width: 520px; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), #38bdf8); transition: width .3s; }
.status { font-weight: 600; }

.done { display: none; }
.done.on { display: block; }
.done-grid { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 24px; align-items: center; }
.thumb { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: #e6edf3; border: 1px solid var(--line); }
.done h2 { margin: 0 0 6px; font-size: 1.35rem; }
.done .fname { margin: 0 0 12px; color: var(--muted); word-break: break-all; font-size: .92rem; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; margin-bottom: 14px; }
.badge.l0 { background: #dcfce7; color: var(--ok); }
.badge.l1 { background: #dbeafe; color: var(--info); }
.badge.l2 { background: #fef3c7; color: var(--warn); }
.badge.l3 { background: #fee2e2; color: var(--bad); }
.done .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.error { display: none; background: #fee2e2; color: var(--bad); border-radius: 12px; padding: 12px 16px; margin-top: 14px; font-weight: 600; }
.error.on { display: block; }
.popup-help { display: none; margin-top: 12px; font-size: .9rem; color: var(--warn); }
.popup-help.on { display: block; }

/* Secciones de contenido */
section.block { padding: 48px 0 8px; }
section.block h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); line-height: 1.25; margin: 0 0 8px; color: var(--navy); }
section.block > .wrap > p.lead { color: var(--muted); max-width: 760px; margin: 0 0 24px; }
.steps, .uses { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); padding: 0; margin: 0; list-style: none; }
.step, .use { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step .n { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step h3, .use h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--navy); }
.step p, .use p { margin: 0; color: var(--muted); font-size: .96rem; }
.use .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; margin-bottom: 12px; }
.checks { columns: 2; column-gap: 28px; padding-left: 20px; margin: 0; }
.checks li { margin-bottom: 8px; break-inside: avoid; }
.faq details { background: var(--card); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.faq p { margin: 10px 0 0; color: var(--muted); }
.limits { background: #fff8e6; border: 1px solid #f3dca0; border-radius: var(--radius); padding: 16px 20px; color: #6b4e08; }
.limits h3 { margin: 0 0 6px; font-size: 1rem; }
.limits p { margin: 0; font-size: .94rem; }

footer.site-foot .foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
footer.site-foot .foot-text { flex: 1; min-width: 0; }
footer.site-foot .foot-logo { flex: none; display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; line-height: 0; }
footer.site-foot .foot-logo img { height: 48px; width: auto; display: block; }
footer.site-foot { margin-top: 56px; background: var(--navy); color: #b9cde0; padding: 28px 0; font-size: .9rem; }
footer.site-foot a { color: #fff; }
footer.site-foot p { margin: 0 0 8px; }

/* Espacios publicitarios (marcadores) */
.ad-slot { margin: 28px auto; border: 2px dashed #aab8c6; background: repeating-linear-gradient(45deg, #f0f4f8, #f0f4f8 10px, #e8eef4 10px, #e8eef4 20px); color: #6c7d8e; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 10px; font-weight: 700; letter-spacing: .18em; }
.ad-slot small { font-weight: 500; letter-spacing: .04em; margin-top: 4px; font-size: .74rem; }
.ad-banner { width: min(728px, 100%); min-height: 90px; }
.ad-rect { width: min(336px, 100%); min-height: 280px; }

/* Banner junto a los botones: etiqueta "Publicidad" y separación clara para evitar clics accidentales */
.ad-wrap { margin: 36px auto 4px; text-align: center; }
.ad-label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-wrap .ad-slot { margin: 0 auto; }
.ad-compact { width: min(468px, 100%); min-height: 60px; }
.ad-top { margin-top: 16px; }

@media (max-width: 760px) {
  .steps, .uses { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .done-grid { grid-template-columns: 1fr; }
  .thumb { max-width: 220px; margin-inline: auto; }
  .done { text-align: center; }
  .done .actions { justify-content: center; }
  .ad-banner { min-height: 100px; }
  .brand img { height: 52px; }
  footer.site-foot .foot-grid { flex-direction: column; align-items: stretch; }
  footer.site-foot .foot-logo { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

