:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --surface-soft: #fbfaf7;
    --text: #1d2430;
    --muted: #667085;
    --line: #e6e2d9;
    --brand: #243b53;
    --brand-strong: #172a3a;
    --brand-soft: #eaf0f5;
    --accent: #b86f52;
    --accent-soft: #f6e9e2;
    --success: #287a54;
    --success-soft: #e8f5ee;
    --warning: #9a6324;
    --warning-soft: #fff4e5;
    --danger: #a63f3f;
    --shadow-sm: 0 8px 24px rgba(34, 34, 34, 0.06);
    --shadow-md: 0 18px 50px rgba(34, 34, 34, 0.10);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
button, input, select, a { font: inherit; }
button, a, input, select { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(36, 59, 83, 0.35);
}
img { max-width: 100%; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(230, 226, 217, 0.9);
}
.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand);
    color: white;
    font-weight: 800;
    font-size: 20px;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -0.01em; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 1px; }
.header-trust { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.header-trust span {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

.page-shell { max-width: 1180px; margin: 0 auto; padding: 48px 24px 80px; }
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: center;
    padding: 18px 0 42px;
}
.eyebrow, .section-kicker {
    display: inline-block;
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.12em;
}
.hero h1 {
    margin: 10px 0 14px;
    max-width: 760px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}
.hero-copy > p { max-width: 720px; color: var(--muted); font-size: 18px; margin: 0; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.hero-pills span {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: #475467;
    font-size: 13px;
}
.hero-note {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--brand);
    color: white;
    box-shadow: var(--shadow-md);
}
.hero-note > strong { display: block; font-size: 14px; margin-bottom: 14px; }
.hero-note ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.hero-note li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.84); font-size: 13px; }
.hero-note li span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.13); color: white; font-weight: 800; }

.upload-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.upload-panel-copy { padding: 18px 10px; display: flex; flex-direction: column; justify-content: center; }
.upload-panel-copy h2 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -0.025em; }
.upload-panel-copy p { margin: 0; color: var(--muted); max-width: 440px; }
.upload-zone {
    min-height: 220px;
    border: 2px dashed #c9c2b7;
    border-radius: 18px;
    background: var(--surface-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 24px;
    text-align: center;
    transition: 0.2s ease;
}
.upload-zone.is-dragging { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.upload-zone strong { font-size: 16px; }
.upload-zone > span, .upload-zone small { color: var(--muted); font-size: 12px; }
.upload-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.upload-button {
    min-height: 44px;
    margin-top: 7px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--brand);
    color: white;
    font-weight: 750;
    cursor: pointer;
}
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.result-shell { margin-top: 30px; }
body .analysis-card {
    max-width: none;
    margin: 0;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: left;
}
body .in-app-nav {
    position: sticky;
    top: 84px;
    z-index: 50;
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    margin: -4px 0 26px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
body .in-app-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    color: #475467;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
body .in-app-nav a:hover { background: var(--brand-soft); color: var(--brand); }
body .image-preview {
    display: block;
    max-width: 220px;
    max-height: 280px;
    margin: 0 auto 18px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: var(--shadow-sm);
}
body .analysis-card > h3 { text-align: center; margin: 12px 0 22px; font-size: 19px; }
body .data-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
body .data-grid > div { padding: 14px 15px; background: var(--surface-soft); border: 1px solid #efede8; border-radius: 12px; min-width: 0; }
body .data-grid span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
body .data-grid strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
body .dpi-note { margin: 14px 0 0; padding: 12px 14px; background: #fff8e9; border: 1px solid #f1e2bd; border-radius: 11px; color: #725526; font-size: 12px; }

body .ratio-section, body .package-area, body .mockup-area { margin-top: 32px; padding-top: 30px; border-top: 1px solid var(--line); }
body .ratio-section h3, body .package-area h3 { margin: 0 0 8px; }
body .ratio-intro, body .mockup-intro { color: var(--muted); font-size: 13px; }
body .selection-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; margin: 18px 0; }
body .selection-button, body .approve-button, body .single-download-button, body .package-button, body .mockup-generate-button, body .package-download-link {
    min-height: 44px;
    border-radius: 11px;
    font-weight: 750;
    transition: 0.15s ease;
}
body .selection-button, body .approve-button, body .package-button, body .mockup-generate-button {
    padding: 10px 16px;
    border: 1px solid transparent;
    background: var(--brand);
    color: white;
    cursor: pointer;
}
body .selection-button.secondary, body .single-download-button {
    background: white;
    color: var(--brand);
    border: 1px solid #cfd7df;
}
body button:disabled { cursor: not-allowed; opacity: .5; }
body .ratio-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
body .ratio-card { padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-soft); }
body .ratio-card.ready { background: var(--success-soft); border-color: #cae9d8; }
body .ratio-card.pending { background: var(--warning-soft); border-color: #f0d7ad; }
body .ratio-card.excluded { opacity: .55; }
body .ratio-selector { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; }
body .ratio-open-button { width: 100%; min-height: 72px; border: 0; background: transparent; cursor: pointer; color: var(--text); }
body .ratio-open-button strong { display: block; font-size: 17px; }
body .ratio-open-button span, body .ratio-open-button small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
body .package-progress { margin-top: 18px; }
body .progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e8e8e6; }
body .progress-bar { height: 100%; background: var(--brand); border-radius: inherit; transition: width .2s ease; }
body #packageProgressText { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }

body .crop-editor { margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); text-align: center; }
body #cropCanvas { display: block; max-width: min(100%, 560px); height: auto; margin: 18px auto; border-radius: 12px; box-shadow: var(--shadow-sm); }
body .crop-control { max-width: 580px; margin: 18px auto; }
body .crop-control label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 13px; }
body .crop-control input[type="range"] { width: 100%; }
body .crop-info, body .exact-message { max-width: 580px; margin: 14px auto; padding: 12px 14px; border-radius: 10px; background: white; border: 1px solid var(--line); }
body .exact-message { background: var(--success-soft); border-color: #cae9d8; }

body .package-area { text-align: center; }
body .package-result { max-width: 760px; margin: 22px auto 0; }
body .package-file-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; margin: 8px 0; border-radius: 11px; background: var(--surface-soft); border: 1px solid var(--line); text-align: left; }
body .package-file-info strong, body .package-file-info span { display: block; }
body .package-file-info span { color: var(--muted); font-size: 11px; margin-top: 3px; }
body .package-download-link { display: inline-flex; align-items: center; padding: 9px 13px; text-decoration: none; background: var(--brand); color: white; }
body .package-success { padding: 14px; border-radius: 11px; background: var(--success-soft); color: var(--success); }

body .mockup-area { background: transparent; padding: 30px 0 0; border-radius: 0; text-align: left; }
body .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
body .section-heading h2 { margin: 5px 0 6px; font-size: 28px; letter-spacing: -.025em; }
body .section-heading p { margin: 0; color: var(--muted); max-width: 760px; }
body .mockup-primary-controls { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 14px; align-items: stretch; margin-bottom: 20px; }
body .mockup-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
body .mockup-field > span { font-size: 12px; font-weight: 750; }
body .mockup-field select, body .mockup-field input[type="file"] { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #cfd7df; border-radius: 11px; background: white; color: var(--text); }
body .privacy-note { padding: 13px 15px; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-radius: 13px; background: var(--success-soft); border: 1px solid #cae9d8; }
body .privacy-note strong { color: var(--success); font-size: 12px; }
body .privacy-note span { color: #4c6b5a; font-size: 11px; }

body .template-library-section { padding: 24px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--line); }
body .library-heading-row h3 { margin: 4px 0 5px; font-size: 23px; }
body .template-catalog-toolbar { display: grid; grid-template-columns: auto minmax(220px,1fr) auto auto; gap: 9px; align-items: center; margin-top: 18px; }
body .template-current-ratio { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
body .template-current-ratio span { font-size: 11px; color: #50667a; }
body .template-current-ratio strong { font-size: 14px; }
body .template-search-input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #cfd7df; border-radius: 11px; background: white; }
body .template-category-chips { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0 10px; }
body .template-category-chip { min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid #d8d6d0; background: white; color: #586273; font-size: 12px; font-weight: 700; cursor: pointer; }
body .template-category-chip.is-active { background: var(--brand); color: white; border-color: var(--brand); }
body .template-results-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 12px; color: var(--muted); font-size: 12px; }
body #templateResultsCount { font-weight: 800; color: #344054; }
body .template-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
body .template-card { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid #dedbd4; background: white; box-shadow: 0 5px 15px rgba(0,0,0,.045); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
body .template-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.09); }
body .template-card.is-selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(36,59,83,.11), 0 12px 26px rgba(0,0,0,.09); }
body .template-card.is-incompatible { opacity: .56; }
body .template-card-image-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eceae6; }
body .template-card-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
body .template-card-select { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--text); }
body .template-card-select:disabled { cursor: not-allowed; }
body .template-card-body { padding: 13px 14px 15px; }
body .template-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 7px; }
body .template-card-meta span { padding: 3px 7px; border-radius: 999px; background: #f2f2ef; color: #6b7280; font-size: 10px; }
body .template-card-body strong { display: block; font-size: 15px; }
body .template-card-body p { min-height: 38px; margin: 5px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
body .template-compatibility-line { font-size: 11px; font-weight: 750; color: var(--success); }
body .template-ratio-badge, body .template-selected-badge { position: absolute; top: 10px; z-index: 3; min-height: 27px; display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
body .template-ratio-badge { left: 10px; background: rgba(255,255,255,.94); color: #344054; }
body .template-selected-badge { right: 44px; background: var(--brand); color: white; }
body .template-favorite-button { position: absolute; top: 8px; right: 8px; z-index: 5; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.94); color: #7b6d5f; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
body .template-favorite-button.is-favorite { color: #b56a4a; background: #fff7f2; }
body .template-library-action { position: sticky; bottom: 14px; z-index: 20; display: flex; justify-content: center; margin-top: 18px; pointer-events: none; }
body .template-library-action .mockup-generate-button { pointer-events: auto; min-width: min(100%, 340px); box-shadow: 0 12px 28px rgba(23,42,58,.2); }
body .template-empty-state { grid-column: 1 / -1; display: grid; gap: 4px; padding: 28px; border: 1px dashed #cfcac1; border-radius: 14px; background: white; text-align: center; color: var(--muted); }
body .template-empty-state strong { color: var(--text); }
body .mockup-status { margin: 12px 0; color: var(--muted); font-size: 12px; }
body .mockup-preview-card { max-width: 860px; margin: 22px auto 0; padding: 14px; border-radius: 16px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-align: center; }
body .mockup-preview-image { display: block; width: 100%; height: auto; border-radius: 11px; }
body .mockup-preview-meta { margin: 12px 0; display: grid; gap: 3px; }
body .mockup-preview-meta span { color: var(--muted); font-size: 11px; }

body .advanced-tools { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; }
body .advanced-tools summary { min-height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 16px; cursor: pointer; font-weight: 800; }
body .advanced-tools summary small { color: var(--muted); font-weight: 500; }
body .advanced-tools-content { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 0 16px 16px; }
body .advanced-tool-card { padding: 18px; border-radius: 13px; background: var(--surface-soft); border: 1px solid var(--line); }
body .advanced-tool-card h3 { margin-top: 0; }
body .photo-mockup-controls { display: grid; gap: 10px; }
body .room-point-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
body .room-canvas-wrap { margin: 14px 0; padding: 8px; border-radius: 12px; background: white; border: 1px solid var(--line); }
body #roomPointCanvas { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; cursor: crosshair; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 26px 24px 46px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; }
.site-footer strong, .site-footer span { display: block; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .hero-note { max-width: 520px; }
    .upload-panel { grid-template-columns: 1fr; }
    body .data-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body .ratio-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    body .template-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body .template-catalog-toolbar { grid-template-columns: 1fr 1fr; }
    body .mockup-primary-controls { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .site-header-inner { min-height: 62px; padding: 0 16px; }
    .header-trust { display: none; }
    .page-shell { padding: 30px 14px 56px; }
    .hero { padding-top: 8px; }
    .hero h1 { font-size: 38px; }
    .hero-copy > p { font-size: 16px; }
    .upload-panel, body .analysis-card { padding: 18px; border-radius: 18px; }
    body .in-app-nav { top: 72px; width: 100%; justify-content: space-between; }
    body .data-grid { grid-template-columns: 1fr 1fr; }
    body .ratio-grid { grid-template-columns: 1fr 1fr; }
    body .template-library-section { padding: 16px; }
    body .template-library-grid { grid-template-columns: 1fr; }
    body .template-catalog-toolbar { grid-template-columns: 1fr; }
    body .template-current-ratio { justify-content: space-between; }
    body .advanced-tools-content { grid-template-columns: 1fr; }
    body .template-results-row { align-items: flex-start; flex-direction: column; }
    .site-footer { flex-direction: column; }
}


/* =========================================================
   V0.6A — PRELANZAMIENTO: SEO, ACCESIBILIDAD Y MÓVIL
========================================================= */

.skip-link {
    position: fixed;
    left: 12px;
    top: 10px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--brand-strong);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); }

.launch-content {
    margin-top: 54px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.launch-content-heading { max-width: 760px; margin-bottom: 24px; }
.launch-content-heading.compact { margin-bottom: 14px; }
.launch-content-heading h2,
.privacy-explainer h2,
.quick-faq h2 {
    margin: 7px 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.launch-content-heading p,
.privacy-explainer p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.feature-card {
    min-width: 0;
    padding: 20px;
    border-radius: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
}
.feature-number { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.feature-card h3 { margin: 0 0 7px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 13px; }

.privacy-explainer {
    margin-top: 18px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr);
    gap: 30px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: var(--success-soft);
    border: 1px solid #cae9d8;
}
.privacy-explainer p { color: #496657; }

.quick-faq {
    margin-top: 18px;
    padding: 30px 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.quick-faq details { border-top: 1px solid var(--line); }
.quick-faq details:last-child { border-bottom: 1px solid var(--line); }
.quick-faq summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 2px;
    cursor: pointer;
    font-weight: 800;
}
.quick-faq p { margin: -2px 0 15px; max-width: 820px; color: var(--muted); font-size: 13px; }

/* Los controles de uso frecuente reciben objetivos táctiles cómodos. */
body .template-category-chip,
body .in-app-nav a,
body .template-favorite-button { min-width: 40px; min-height: 40px; }
body .template-card-select:focus-visible,
body .template-favorite-button:focus-visible,
body .template-category-chip:focus-visible { outline: 3px solid rgba(36,59,83,.42); outline-offset: 2px; }

@media (max-width: 980px) {
    .feature-grid { grid-template-columns: 1fr; }
    .privacy-explainer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 76px; }
    body { overflow-x: hidden; }
    .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
    .brand strong { font-size: 14px; }
    .brand small { font-size: 10px; }
    .hero { gap: 20px; padding-bottom: 28px; }
    .hero h1 { font-size: clamp(32px, 10vw, 42px); }
    .hero-note { padding: 18px; border-radius: 18px; }
    .hero-pills { gap: 7px; }
    .hero-pills span { font-size: 12px; padding: 7px 10px; }
    .upload-zone { min-height: 205px; padding: 20px 14px; }
    .upload-button { width: min(100%, 280px); }

    body .analysis-card { padding-left: 14px; padding-right: 14px; }
    body .in-app-nav {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        border-radius: 14px;
        padding: 5px;
    }
    body .in-app-nav::-webkit-scrollbar { display: none; }
    body .in-app-nav a { flex: 0 0 auto; white-space: nowrap; }
    body .data-grid { grid-template-columns: 1fr; }
    body .ratio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    body .ratio-open-button { min-height: 78px; }
    body .selection-actions > * { flex: 1 1 150px; }
    body .package-file-row { align-items: stretch; flex-direction: column; }
    body .package-download-link { justify-content: center; }
    body .section-heading { flex-direction: column; }
    body .section-heading h2 { font-size: 25px; }
    body .template-library-action { bottom: max(10px, env(safe-area-inset-bottom)); }
    body .template-library-action .mockup-generate-button { width: 100%; min-width: 0; }
    body .advanced-tool-card { padding: 14px; }
    body .room-point-buttons > button { flex: 1 1 130px; }
    body #roomPointCanvas { touch-action: none; }

    .launch-content, .quick-faq { margin-top: 28px; padding: 22px 18px; border-radius: 18px; }
    .privacy-explainer { padding: 22px 18px; border-radius: 18px; }
    .feature-card { padding: 17px; }
    .site-footer { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 390px) {
    .page-shell { padding-left: 10px; padding-right: 10px; }
    .site-header-inner { padding-left: 12px; padding-right: 12px; }
    body .ratio-grid { grid-template-columns: 1fr; }
    body .template-library-section { padding: 12px; }
}

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


/* V0.6A1 — Tu propia habitación como función principal */
body .own-room-section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #f7f9fb 0%, #f4f1eb 100%);
}
body .own-room-heading { max-width: 760px; margin: 0 auto 18px; text-align: center; }
body .own-room-heading .eyebrow { display: inline-block; margin-bottom: 7px; color: var(--brand); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
body .own-room-heading h3 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.02em; }
body .own-room-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
body .own-room-card { max-width: 980px; margin: 0 auto; padding: 24px; background: white; box-shadow: var(--shadow-sm); }
body .own-room-card > h3 { margin-bottom: 6px; font-size: 20px; }
@media (max-width: 720px) {
    body .own-room-section { padding: 15px; border-radius: 15px; }
    body .own-room-card { padding: 16px; }
    body .own-room-heading h3 { font-size: 22px; }
}


/* =========================================================
   V0.6B — ACABADO PÚBLICO + EXPERIENCIA MÓVIL REAL
   Solo presentación. No modifica el motor de exportación/mockups.
========================================================= */

.site-header-inner { position: relative; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    color: #475467;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.primary-cta, .secondary-cta {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}
.primary-cta { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(23,42,58,.15); }
.primary-cta:hover { background: var(--brand-strong); }
.secondary-cta { background: rgba(255,255,255,.7); color: var(--brand); border: 1px solid var(--line); }
.secondary-cta:hover { background: #fff; }
.hero-reassurance { margin-top: 10px !important; font-size: 12px !important; color: #7a8492 !important; }

/* Evita zoom automático en iPhone al enfocar campos. */
@supports (-webkit-touch-callout: none) {
    input, select, textarea { font-size: 16px; }
}

@media (max-width: 1080px) {
    .site-nav { display: none; }
}

@media (max-width: 680px) {
    /* Cabecera más compacta para dejar espacio real a la herramienta. */
    .site-header-inner { min-height: 60px; }
    .brand { gap: 9px; }
    .page-shell { padding-top: 22px; }

    /* Hero breve: el usuario llega antes al cargador. */
    .hero { padding-top: 4px; padding-bottom: 22px; gap: 16px; }
    .hero h1 { margin-top: 8px; margin-bottom: 10px; line-height: 1.02; }
    .hero-copy > p { line-height: 1.5; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
    .primary-cta, .secondary-cta { width: 100%; padding-left: 10px; padding-right: 10px; }
    .hero-reassurance { text-align: center; }
    .hero-pills { margin-top: 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .hero-pills::-webkit-scrollbar { display: none; }
    .hero-pills span { flex: 0 0 auto; white-space: nowrap; }

    /* Flujo en tres pasos ocupa menos alto en teléfono. */
    .hero-note { padding: 14px; }
    .hero-note > strong { margin-bottom: 9px; }
    .hero-note ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
    .hero-note li { min-width: 0; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 11px; line-height: 1.25; }
    .hero-note li span { width: 25px; height: 25px; border-radius: 8px; }

    /* Zona de carga más directa y táctil. */
    .upload-panel { gap: 12px; }
    .upload-panel-copy { padding: 3px 2px 8px; }
    .upload-panel-copy h2 { font-size: 23px; }
    .upload-zone { min-height: 185px; }

    /* La navegación interna se comporta como tabs desplazables. */
    body .in-app-nav { top: 68px; max-width: calc(100vw - 28px); }

    /* Catálogo: menos altura perdida en filtros. */
    body .template-catalog-toolbar {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 8px !important;
    }
    body .template-current-ratio,
    body .template-search-wrap { grid-column: 1 / -1; }
    body #toggleFavoritesButton,
    body #toggleAllTemplatesButton { width: 100%; min-width: 0; }

    /* Chips en una sola línea deslizable, como una app. */
    body .template-category-chips {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-right: -4px;
    }
    body .template-category-chips::-webkit-scrollbar { display: none; }
    body .template-category-chip { flex: 0 0 auto; white-space: nowrap; }
    body .template-helper-copy { display: none; }

    /* En móvil las plantillas se exploran deslizando horizontalmente. */
    body .template-library-grid {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 4px 2px 14px;
        margin-left: -2px;
        margin-right: -2px;
    }
    body .template-library-grid::-webkit-scrollbar { display: none; }
    body .template-card {
        flex: 0 0 min(84vw, 330px);
        scroll-snap-align: start;
    }
    body .template-card:hover:not(:disabled) { transform: none !important; }
    body .template-card-body p { min-height: 0; }
    body .template-library-action { margin-top: 8px !important; }

    /* Resultado de mockup aprovecha casi todo el ancho. */
    body .mockup-preview-card { padding: 8px; margin-top: 14px; }
    body .mockup-preview-image { border-radius: 9px; }

    /* Tu propia habitación: controles simples y grandes. */
    body .own-room-section { margin-top: 18px; }
    body .own-room-heading { margin-bottom: 12px; }
    body .photo-mockup-controls {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        width: 100%;
        gap: 10px !important;
    }
    body .photo-mockup-controls .mockup-field { width: 100%; }
    body .mockup-field input[type="file"] { width: 100% !important; max-width: none !important; }
    body .room-guide-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
        width: 100%;
    }
    body .room-guide-buttons > button { width: 100%; min-width: 0; }
    body .room-frame-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        padding: 10px !important;
    }
    body .room-frame-controls .mockup-field { min-width: 0 !important; }
    body .photo-generate-button { width: 100%; min-height: 48px; }
    body .placement-mode-button { min-height: 74px; }
    body .room-canvas-wrap { padding: 6px; margin-top: 12px; }

    /* Contenido editorial final compacto para quien solo quiere usar la app. */
    .launch-content, .quick-faq { margin-top: 22px; }
}

@media (max-width: 430px) {
    .hero-actions { grid-template-columns: 1fr; }
    .secondary-cta { min-height: 42px; }
    .hero-note ol { gap: 5px; }
    body .template-card { flex-basis: 88vw; }
    body .room-frame-controls { grid-template-columns: 1fr; }
    body .room-guide-buttons { grid-template-columns: 1fr 1fr; }
}


/* =========================================================
   V0.7.1 — PÁGINAS PÚBLICAS, CONFIANZA Y LEGAL
========================================================= */
.site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
}
.footer-brand { min-width: 220px; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}
.footer-links a {
    color: #475467;
    text-decoration: none;
    font-weight: 700;
}
.footer-links a:hover { color: var(--brand); text-decoration: underline; }
.footer-note { max-width: 420px; }

.content-page .site-header { position: sticky; }
.content-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 56px 24px 86px;
}
.content-hero {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.content-hero .eyebrow { margin-bottom: 8px; }
.content-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 6vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.content-hero p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}
.content-updated {
    display: inline-block;
    margin-top: 16px;
    color: #7a8492;
    font-size: 12px;
}
.content-card {
    padding: 30px 34px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.content-card + .content-card { margin-top: 18px; }
.content-card h2 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.content-card h3 { margin: 24px 0 8px; font-size: 17px; }
.content-card p, .content-card li { color: #4f5d6d; }
.content-card p { margin: 0 0 12px; }
.content-card ul, .content-card ol { margin: 10px 0 16px; padding-left: 22px; }
.content-card li + li { margin-top: 7px; }
.content-card a { color: var(--brand); font-weight: 700; }
.content-callout {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #d8e3ec;
    background: #f4f8fb;
    color: #43576a;
}
.content-warning {
    border-color: #f0d7ad;
    background: var(--warning-soft);
    color: #725526;
}
.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.page-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: #475467;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}
.page-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.contact-box {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
}
.contact-box strong { display: block; margin-bottom: 6px; }
.contact-box p { margin: 0; font-size: 13px; }
.contact-email {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 11px;
    background: var(--brand);
    color: #fff !important;
    text-decoration: none;
}
.full-faq details {
    border-top: 1px solid var(--line);
}
.full-faq details:last-child { border-bottom: 1px solid var(--line); }
.full-faq summary {
    cursor: pointer;
    padding: 16px 2px;
    font-weight: 800;
    color: #303a47;
}
.full-faq details p { margin: -2px 2px 16px; max-width: 800px; }
.legal-small { font-size: 12px; color: #7a8492 !important; }

@media (max-width: 700px) {
    .content-shell { padding: 28px 14px 60px; }
    .content-hero { padding: 24px 20px; border-radius: 18px; }
    .content-hero h1 { font-size: clamp(31px, 11vw, 42px); }
    .content-card { padding: 22px 18px; border-radius: 18px; }
    .contact-grid { grid-template-columns: 1fr; }
    .site-footer { gap: 14px; }
    .footer-links { order: 2; width: 100%; }
    .footer-note { order: 3; }
}


/* Analytics consent V0.7.2 */
.footer-privacy-button,
.inline-privacy-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-privacy-button {
    padding: 0;
    color: #536273;
    font-size: 12px;
}
.inline-privacy-button {
    padding: 0;
    color: var(--brand);
    font-weight: 700;
}
.consent-banner {
    position: fixed;
    z-index: 99999;
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(36, 59, 83, 0.18);
    backdrop-filter: blur(12px);
}
.consent-banner[hidden] { display: none !important; }
.consent-copy { max-width: 660px; }
.consent-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 15px;
}
.consent-copy p {
    margin: 0;
    color: #5f6b78;
    font-size: 13px;
    line-height: 1.5;
}
.consent-copy a {
    display: inline-block;
    margin-top: 6px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
}
.consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}
.consent-primary,
.consent-secondary {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.consent-primary {
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
}
.consent-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: #465668;
}
@media (max-width: 720px) {
    .consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }
    .consent-actions { width: 100%; }
    .consent-primary,
    .consent-secondary { flex: 1 1 0; }
}


/* =========================================================
   V0.8 — SEO TRAFFIC LANDING PAGES
========================================================= */
.seo-page .site-header { position: sticky; }
.seo-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 24px 86px;
}
.seo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: center;
    padding: 24px 0 32px;
}
.seo-hero h1 {
    margin: 9px 0 14px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}
.seo-hero p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}
.seo-hero-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.seo-hero-card strong { display: block; margin-bottom: 9px; font-size: 16px; }
.seo-hero-card p { color: rgba(255,255,255,.8); font-size: 13px; }
.seo-hero-card ul { margin: 14px 0 0; padding-left: 18px; color: rgba(255,255,255,.9); font-size: 13px; }
.seo-hero-card li + li { margin-top: 7px; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.seo-primary,
.seo-secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}
.seo-primary { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.seo-secondary { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.seo-tool-card,
.seo-content-card,
.seo-related {
    margin-top: 22px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.seo-tool-card h2,
.seo-content-card h2,
.seo-related h2 { margin: 0 0 9px; font-size: 26px; letter-spacing: -0.025em; }
.seo-tool-card > p,
.seo-content-card > p,
.seo-related > p { color: var(--muted); margin: 0 0 18px; }
.seo-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
}
.seo-field { display: grid; gap: 6px; }
.seo-field label { font-size: 12px; color: #475467; font-weight: 800; }
.seo-field input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d7dce2;
    border-radius: 11px;
    background: #fff;
    color: var(--text);
}
.seo-upload-row {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    border: 1px dashed #c9c2b7;
}
.seo-upload-row label { display: block; margin-bottom: 7px; font-weight: 800; font-size: 13px; }
.seo-upload-row input { max-width: 100%; }
.seo-calc-button {
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 17px;
    border: 0;
    border-radius: 11px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.seo-result {
    margin-top: 18px;
    padding: 18px;
    border-radius: 15px;
    border: 1px solid #d8e3ec;
    background: #f4f8fb;
    color: #31485d;
}
.seo-result[hidden] { display: none; }
.seo-result strong { display: block; color: #1f3448; font-size: 19px; margin-bottom: 7px; }
.seo-result p { margin: 4px 0; }
.seo-table-wrap { overflow-x: auto; margin-top: 16px; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.seo-table th,
.seo-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.seo-table th { color: #344054; background: var(--surface-soft); }
.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.seo-mini-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}
.seo-mini-card h3 { margin: 0 0 7px; font-size: 16px; }
.seo-mini-card p { margin: 0; color: var(--muted); font-size: 13px; }
.seo-steps { margin: 14px 0 0; padding-left: 22px; color: #4f5d6d; }
.seo-steps li + li { margin-top: 8px; }
.seo-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--warning-soft);
    color: #725526;
    border: 1px solid #f0d7ad;
    font-size: 13px;
}
.seo-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.seo-related a,
.resource-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    color: inherit;
    text-decoration: none;
}
.seo-related a:hover,
.resource-card:hover { border-color: #bfc9d4; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.seo-related strong,
.resource-card strong { display: block; color: var(--text); margin-bottom: 5px; }
.seo-related span,
.resource-card span { color: var(--muted); font-size: 13px; }
.resource-card span { display: block; }
.seo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.seo-gallery figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}
.seo-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.seo-gallery figcaption { padding: 10px 12px; color: #596779; font-size: 12px; }
.seo-faq details { border-top: 1px solid var(--line); }
.seo-faq details:last-child { border-bottom: 1px solid var(--line); }
.seo-faq summary { cursor: pointer; padding: 15px 0; font-weight: 800; }
.seo-faq details p { margin: -2px 0 15px; color: var(--muted); }
.seo-resources {
    margin-top: 26px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.seo-resources-heading h2 { margin: 7px 0 8px; font-size: 27px; letter-spacing: -0.025em; }
.seo-resources-heading p { margin: 0; color: var(--muted); max-width: 760px; }
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.resource-card small { display: block; margin-top: 12px; color: var(--accent); font-weight: 800; }
@media (max-width: 820px) {
    .seo-hero { grid-template-columns: 1fr; }
    .seo-hero-card { max-width: 620px; }
    .seo-related-grid, .resource-grid, .seo-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
    .seo-shell { padding: 30px 14px 62px; }
    .seo-hero h1 { font-size: clamp(36px, 12vw, 48px); }
    .seo-tool-card, .seo-content-card, .seo-related, .seo-resources { padding: 21px 18px; border-radius: 18px; }
    .seo-input-grid, .seo-content-grid { grid-template-columns: 1fr; }
}
