/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #131a2a;
  --ink-soft: #52607a;
  --line: #dbe3f0;
  --accent: #2457c9;
  --accent-ink: #ffffff;
  --accent-soft: #dce7fb;
  --cream: #eef3fb;
  --radius: 14px;
  --radius-sm: 8px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Sora", var(--sans);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(13, 22, 45, 0.08);
  --shadow-md: 0 10px 30px rgba(13, 22, 45, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1524;
    --surface: #161d30;
    --ink: #edf1fa;
    --ink-soft: #a3aec6;
    --line: #2a3552;
    --accent: #6d9dfb;
    --accent-ink: #0b1220;
    --accent-soft: #1e2c4d;
    --cream: #1a2338;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.35rem; }
input, select { font: inherit; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--prose { max-width: 760px; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 700;
  font-size: 0.98rem; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-text { font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.field-hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* =============================================================
   4. Header / Footer
   ============================================================= */
.site-header { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.header-nav { display: flex; gap: 1.6rem; font-weight: 600; font-size: 0.94rem; }
.header-nav a { color: var(--ink-soft); }
.header-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .header-row { flex-wrap: wrap; gap: 0.6rem 1rem; } .header-nav { gap: 1rem; font-size: 0.86rem; flex-wrap: wrap; } }
.header-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem; color: var(--ink-soft); }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.footer-row nav { display: flex; gap: 1.2rem; }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { padding: 3rem 0 1.6rem; text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); max-width: 820px; margin: 0 auto; }
.hero-sub { max-width: 620px; margin: 1rem auto 0; color: var(--ink-soft); font-size: 1.08rem; }

/* =============================================================
   6. Tool card
   ============================================================= */
.tool-section { padding-bottom: 1.5rem; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2.2rem); box-shadow: var(--shadow-md);
}
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 960px) { .tool-grid { grid-template-columns: 1fr 1fr; gap: 2.6rem; } }

.field-group { margin-bottom: 1.3rem; }
.field-group.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-group input[type="text"],
.field-group select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink);
}
.field-group input[type="color"] {
  width: 100%; height: 44px; padding: 3px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); cursor: pointer;
}
.field-group input[type="range"] { width: 100%; accent-color: var(--accent); }

.segmented { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.segmented-btn { padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.segmented-btn.is-active { background: var(--accent); color: var(--accent-ink); }

.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.style-grid.three-col { grid-template-columns: 1fr; }
@media (min-width: 540px) { .style-grid.three-col { grid-template-columns: repeat(3, 1fr); } }
.style-opt {
  padding: 0.65rem 0.8rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem; text-align: center; background: var(--bg);
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.style-opt.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

.emoji-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.emoji-btn {
  width: 42px; height: 42px; font-size: 1.3rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.emoji-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
#customEmoji { width: 58px; text-align: center; padding: 0.6rem 0.3rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.upload-btn {
  display: inline-flex; align-items: center; padding: 0.6rem 0.9rem; border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; cursor: pointer; color: var(--ink-soft);
}
.upload-btn:hover { border-color: var(--accent); color: var(--ink); }

.tool-col-preview { display: flex; flex-direction: column; }
.preview-box {
  position: relative; background: var(--cream); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.preview-box canvas { width: 100%; height: 100%; }
.preview-box--3d canvas { cursor: grab; touch-action: none; }
.preview-box--3d canvas:active { cursor: grabbing; }
.preview-label {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.55); color: #fff; font-size: 0.78rem; padding: 0.3rem 0.7rem; border-radius: 999px;
  pointer-events: none;
}
.download-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.privacy-badge { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.9rem; }

/* Estado sin JavaScript: el bloque <noscript> del HTML fuerza su visibilidad */
.no-js-message { display: none; padding: 1.5rem; text-align: center; color: var(--ink-soft); }

/* Sección 3D dentro de la misma tarjeta */
.section-3d { margin-top: 2.4rem; padding-top: 2.2rem; border-top: 1px dashed var(--line); }
.section-3d-title { font-size: 1.5rem; }
.section-3d-sub { color: var(--ink-soft); margin: 0.5rem 0 1.6rem; max-width: 640px; }

.quality-panel { background: var(--cream); border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.88rem; }
.quality-row { padding: 0.25rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.quality-row.is-warn { color: #b3441c; font-weight: 700; }
.quality-row.is-ok { color: #1c7a44; }

/* =============================================================
   7. Ad slots (placeholders)
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 700; letter-spacing: 0.08em; font-size: 0.8rem;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}
/* PEGA AQUÍ TU CÓDIGO DE ADSENSE (o el de tu red publicitaria) en cada .ad-slot */
.ad-slot--inline { margin-top: 1.6rem; min-height: 100px; }
.ad-slot--banner { max-width: 1180px; margin: 2rem auto; min-height: 120px; }
.ad-slot--popup { min-height: 220px; margin-bottom: 1rem; }

.download-dialog {
  border: none; border-radius: var(--radius); padding: 1.4rem; max-width: 380px; width: calc(100% - 2rem);
  box-shadow: var(--shadow-md); background: var(--surface); color: var(--ink);
}
.download-dialog::backdrop { background: rgba(10,8,4,0.5); }
.dialog-close { position: absolute; top: 0.7rem; right: 0.9rem; font-size: 1.1rem; color: var(--ink-soft); }
.dialog-text { text-align: center; margin-bottom: 1rem; font-weight: 600; }
.download-dialog .btn { width: 100%; }

.corner-toast {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 500;
  background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  padding: 0.9rem 2.2rem 0.9rem 1.1rem; box-shadow: var(--shadow-md); font-weight: 700; font-size: 0.8rem;
  color: var(--ink-soft); letter-spacing: 0.08em; min-width: 160px; text-align: center;
}
.corner-toast-close { position: absolute; top: 0.3rem; right: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }

/* =============================================================
   8. Content sections
   ============================================================= */
.content-section { padding: 3.2rem 0; }
.content-section--alt { background: var(--cream); }
.content-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.8rem; text-align: center; }
#seo-text h2 { text-align: left; }
#seo-text p { color: var(--ink-soft); margin-bottom: 1rem; }
#seo-text p:last-child { margin-bottom: 0; }

.steps-grid, .usos-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } .usos-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card, .uso-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.step-card .step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 0.9rem;
}
.step-card h3, .uso-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step-card p, .uso-card p { color: var(--ink-soft); font-size: 0.94rem; }
.uso-card .uso-icon { font-size: 1.6rem; margin-bottom: 0.7rem; display: block; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq-item summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); margin-top: 0.7rem; }

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}


/* =============================================================
   10. Herramientas nuevas: convertidor de documentos y quitar fondo
   ============================================================= */
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-text:disabled { opacity: 0.5; cursor: not-allowed; }
.ad-slot--wide { max-width: 1180px; margin: 2rem auto; min-height: 100px; }
.footer-row nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.conv-panel { max-width: 780px; margin: 0 auto; }
.conv-tabs { display: grid; gap: 0.7rem; margin-bottom: 1.4rem; }
.conv-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.conv-tabs-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); width: 84px; flex-shrink: 0; }
.conv-tab {
  padding: 0.55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: 0.92rem; color: var(--ink-soft); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.conv-tab:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); }
.conv-tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.conv-tab:disabled { opacity: 0.55; cursor: not-allowed; }
@media (max-width: 560px) { .conv-tabs-label { width: 100%; } }

.conv-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; text-align: center;
  min-height: 210px; padding: 1.6rem 1.2rem; border: 2px dashed var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink-soft); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.conv-drop:hover, .conv-drop:focus-visible, .conv-drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.conv-drop svg { color: var(--accent); }
.conv-drop-text { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.conv-drop-hint { font-size: 0.86rem; }
.conv-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.conv-drop[hidden] { display: none; }

.conv-file { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.conv-file svg { color: var(--accent); flex-shrink: 0; }
.conv-file-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.conv-file-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-file-info span { font-size: 0.84rem; color: var(--ink-soft); }

.conv-options { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.conv-options[hidden] { display: none; }
.conv-options-title { font-weight: 700; font-size: 0.92rem; }
.conv-radio { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.75rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg); }
.conv-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.conv-radio input { margin-top: 0.3rem; accent-color: var(--accent); }
.conv-radio span { display: flex; flex-direction: column; gap: 0.15rem; }
.conv-radio small { color: var(--ink-soft); font-size: 0.84rem; }
.conv-check { display: flex; gap: 0.6rem; align-items: center; font-size: 0.92rem; cursor: pointer; }
.conv-check input { accent-color: var(--accent); width: 18px; height: 18px; }

.conv-error { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: var(--radius-sm); background: #fde8e6; color: #8f1d12; font-weight: 600; font-size: 0.92rem; }
@media (prefers-color-scheme: dark) { .conv-error { background: #3a1814; color: #ffb4a8; } }
.conv-error[hidden] { display: none; }

.conv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin-top: 1.4rem; }
.conv-actions [hidden] { display: none; }

.conv-progress { margin-top: 1.3rem; }
.conv-progress[hidden], .conv-result[hidden], .conv-file[hidden], .conv-notes[hidden] { display: none; }
.conv-progress-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.45rem; }
.conv-progress-track { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.conv-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width 0.25s var(--ease-out); }

.conv-result { margin-top: 1.3rem; padding: 1.2rem 1.3rem; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.conv-result-head { display: flex; gap: 0.8rem; align-items: center; color: var(--accent); }
.conv-result-head strong { display: block; color: var(--ink); font-size: 1.05rem; }
.conv-result-head span { display: block; color: var(--ink-soft); font-size: 0.86rem; }
.conv-result-name { margin-top: 0.7rem; font-weight: 700; word-break: break-all; }
.conv-notes { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.86rem; display: grid; gap: 0.3rem; }

.conv-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .conv-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .conv-cards { grid-template-columns: repeat(3, 1fr); } }
.conv-link-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.15s, transform 0.15s; }
.conv-link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.conv-link-card strong { font-family: var(--display); font-size: 1.05rem; }
.conv-link-card span { color: var(--ink-soft); font-size: 0.92rem; }

.conv-expect { display: grid; gap: 0.3rem; margin: 1.4rem 0; }
.conv-expect dt { font-weight: 800; margin-top: 0.9rem; font-family: var(--display); }
.conv-expect dd { margin: 0; color: var(--ink-soft); }
#expectativas p { color: var(--ink-soft); }

/* ===== 11. Quitar fondo ===== */
.bg-editor[hidden], #dropWrap[hidden], .bg-range[hidden], .bg-note[hidden], input[type="color"][hidden] { display: none; }
.bg-editor { display: grid; gap: 0.9rem; }
.bg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; }
.bg-toolbar-sep { width: 1px; height: 24px; background: var(--line); margin: 0 0.3rem; }
.bg-tool, .bg-view {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer;
}
.bg-tool:hover, .bg-view:hover { border-color: var(--accent); color: var(--ink); }
.bg-tool.is-active, .bg-view.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.bg-dot { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.bg-dot--rect { border: 2px dashed var(--accent); border-radius: 3px; }
.bg-dot--keep { background: #12c24f; border-radius: 50%; }
.bg-dot--erase { background: #e5322d; border-radius: 50%; }
.bg-range, .bg-opt { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.bg-range input[type="range"], .bg-opt input[type="range"] { width: 100%; accent-color: var(--accent); }
.bg-opt select { padding: 0.5rem 0.6rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }
.bg-opt-row { display: flex; gap: 0.6rem; align-items: center; }
.bg-opt-row select { flex: 1; }
.bg-opt-row input[type="color"] { width: 42px; height: 38px; padding: 2px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.bg-options { display: grid; grid-template-columns: 1fr; gap: 0.9rem; padding: 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); }
@media (min-width: 720px) { .bg-options { grid-template-columns: repeat(3, 1fr); } .bg-options .conv-check { grid-column: 1 / -1; } }
.bg-stage-wrap { position: relative; display: grid; gap: 0.6rem; justify-items: center; }
.bg-views { display: flex; gap: 0.4rem; }
.bg-stage {
  position: relative; width: 100%; max-width: 760px; line-height: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1.5px solid var(--line); touch-action: none;
  background-color: #fff;
  background-image: linear-gradient(45deg, #d5dae4 25%, transparent 25%, transparent 75%, #d5dae4 75%), linear-gradient(45deg, #d5dae4 25%, transparent 25%, transparent 75%, #d5dae4 75%);
  background-size: 20px 20px; background-position: 0 0, 10px 10px;
}
.bg-stage[data-bg="white"] { background: #fff; }
.bg-stage[data-bg="black"] { background: #000; }
.bg-stage[data-bg="color"] { background-image: none; }
.bg-stage canvas { display: block; width: 100%; height: auto; }
.bg-stage #over { position: absolute; inset: 0; touch-action: none; cursor: crosshair; }
.bg-stage #over[data-tool="keep"], .bg-stage #over[data-tool="erase"] { cursor: cell; }
.bg-hint { font-size: 0.92rem; color: var(--ink-soft); text-align: center; max-width: 60ch; margin-inline: auto; }
.bg-note { list-style: none; padding: 0.7rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); margin: 0; }
.bg-card .conv-drop { margin-top: 0; }

/* ===== 12. Imagen de marca: portada azul, ventajas y más herramientas ===== */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 3.4rem 0 5.6rem;
  background:
    radial-gradient(520px 320px at 12% 0%, rgba(120, 170, 255, 0.34), transparent 70%),
    radial-gradient(480px 300px at 92% 100%, rgba(80, 140, 255, 0.30), transparent 70%),
    linear-gradient(135deg, #0d2563 0%, #1b46aa 55%, #2f6be0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.2px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; text-wrap: balance; }
.hero-sub { color: rgba(255, 255, 255, 0.86); }
.hero-sub strong { color: #fff; }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem 0.7rem; margin: 1.5rem 0 0; padding: 0; }
.trust-chips li {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.85rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.86rem; font-weight: 700; color: #fff; backdrop-filter: blur(4px);
}
.trust-chips svg { flex: none; }
.hero + .tool-section { position: relative; z-index: 2; margin-top: -3.4rem; }
.tool-card { box-shadow: 0 18px 50px rgba(13, 37, 99, 0.22), 0 2px 6px rgba(13, 37, 99, 0.08); }
.nav-badge {
  display: inline-block; margin-left: 0.35rem; padding: 0.08rem 0.4rem; border-radius: 999px; vertical-align: 1px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.header-nav a[aria-current="page"] .nav-badge { display: none; }
.site-header { background: var(--surface); }

.more-tools { display: grid; grid-template-columns: 1fr; gap: 1rem; max-width: 880px; margin: 0 auto; }
@media (min-width: 720px) { .more-tools { grid-template-columns: repeat(2, 1fr); } }
.more-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1.3rem 1.4rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.more-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.more-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.more-card strong { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 0.25rem; }
.more-card span.more-text { color: var(--ink-soft); font-size: 0.92rem; display: block; }
.more-card .more-go { margin-top: 0.6rem; color: var(--accent); font-weight: 800; font-size: 0.9rem; }
.result-more { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.result-more a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .more-card { transition: none; } .more-card:hover { transform: none; } }
@media (max-width: 560px) { .nav-badge { display: none; } .header-nav { gap: 0.9rem; } }
