/* ===== Teleobrero — estilos (amarillo obra + azul marino, mobile-first) ===== */

/* Outfit autoalojada (SIL OFL, ver fonts/OFL-Outfit.txt). CSP font-src 'self'. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F4F2ED;
  --bg-deep: #E9E5DC;
  --card: #FFFFFF;
  --ink: #1B2430;          /* azul marino casi negro */
  --navy: #1B2430;
  --navy-2: #26344A;
  --muted: #56606E;
  --line: #E1DCD1;
  --line-strong: #8A8475;
  --yellow: #FFC21A;       /* amarillo obra (fondo con texto oscuro) */
  --yellow-dark: #F0AE00;
  --yellow-soft: #FFF3CC;
  --orange: #B43F07;       /* naranja óxido: enlaces y acentos de texto (≥4.5:1) */
  --orange-soft: #FDEBDD;
  --blue: #1D4ED8;
  --blue-soft: #E3EBFD;
  --free: #146B3A;
  --free-soft: #E5F4EA;
  --busy: #A61B12;
  --busy-soft: #FDECEA;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 0 0 1px rgba(27, 36, 48, .07), 0 1px 2px -1px rgba(27, 36, 48, .08), 0 8px 20px -12px rgba(27, 36, 48, .2);
  --shadow: 0 0 0 1px rgba(27, 36, 48, .1), 0 2px 4px -2px rgba(27, 36, 48, .1), 0 16px 30px -14px rgba(27, 36, 48, .28);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --stripes: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--navy) 14px 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
body::before { content: ""; display: block; height: 6px; background: var(--stripes); }
img { max-width: 100%; display: block; }
a { color: var(--orange); text-underline-offset: .18em; }
a:hover { color: #8A2F04; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1, h2 { font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
input, select, textarea, details, section, aside, .field { scroll-margin-top: 90px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--yellow-soft); color: var(--ink); }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.req { color: var(--orange); }
.anchor-alias { position: absolute; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 46px; padding: .65rem 1.3rem; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .1s; line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: #0E141C; color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--busy); border-color: #E9B7B1; }
.btn-danger:hover { background: var(--busy); border-color: var(--busy); color: #fff; }
.btn-large { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-small { min-height: 40px; padding: .45rem .95rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: .3rem 0; font: inherit; font-weight: 700; color: var(--orange); text-decoration: underline; cursor: pointer; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.btn[disabled], .btn-link[disabled] { opacity: .65; cursor: progress; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo-icon { width: 38px; height: 38px; flex: none; }
.logo-text { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text span { color: var(--yellow); }
.main-nav { display: flex; align-items: center; gap: .1rem; }
.main-nav a:not(.btn) { color: #E6EAF0; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .75rem; border-radius: 8px; }
.main-nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active:not(.btn) { color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2E4262 0, transparent 60%), var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--stripes); opacity: .95; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; padding: 4rem 0 4rem; }
.eyebrow { display: inline-block; margin: 0 0 1rem; color: var(--ink); background: var(--yellow); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 6px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; }
.highlight { color: var(--yellow); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.hero .lead { color: #C9D2DE; }
.audience-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.6rem 0 1.2rem; }
.audience-btn { display: flex; gap: .8rem; align-items: center; text-decoration: none; background: #fff; color: var(--ink); border-radius: var(--radius); padding: .95rem 1rem; border: 3px solid transparent; transition: border-color .15s, transform .1s; min-height: 76px; }
.audience-btn:hover { border-color: var(--yellow); color: var(--ink); }
.audience-btn:nth-child(2) { background: var(--yellow); }
.audience-btn:nth-child(2):hover { border-color: #fff; }
.audience-btn strong { display: block; font-size: 1.02rem; line-height: 1.2; }
.audience-btn small { display: block; color: #3E4957; font-size: .85rem; margin-top: .15rem; }
.aud-icon { font-size: 1.9rem; line-height: 1; }
.quick-search { display: flex; gap: .5rem; background: #fff; padding: .45rem; border-radius: var(--radius); max-width: 620px; }
.quick-search select { flex: 1; border: 0; background-color: transparent; font: inherit; padding: .5rem .8rem; min-width: 0; color: var(--ink); min-height: 44px; }
.quick-search select + select { border-left: 1px solid var(--line); border-radius: 0; }
.quick-search select:focus { box-shadow: none; }
.hero-pro { margin: 1rem 0 0; color: #C9D2DE; }
.hero-pro a { color: var(--yellow); font-weight: 700; }
.hero-visual { background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem .3rem; }
.preview-title { margin: 0 0 .2rem; font-size: .85rem; font-weight: 700; color: var(--muted); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.preview-card { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.preview-title + .preview-card { border-top: 0; }
.preview-card strong { display: block; line-height: 1.2; }
.preview-card small { color: var(--muted); font-size: .84rem; }
.preview-card .status { margin-left: auto; }

/* ---------- Estado ---------- */
.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .85rem; padding: .25rem .7rem .25rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-on { background: var(--free-soft); color: var(--free); }
.status-on .dot { background: #1F9D55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .2); }
.status-off { background: var(--busy-soft); color: var(--busy); }
.status-off .dot { background: #D62D20; box-shadow: 0 0 0 3px rgba(214, 45, 32, .16); }
.status-dot-inline { display: inline-block; width: .6em; height: .6em; border-radius: 50%; vertical-align: middle; }
.status-dot-inline.on { background: #1F9D55; }
.status-dot-inline.off { background: #D62D20; }

/* ---------- Cifras ---------- */
.stats { list-style: none; padding: 0; margin: 2.5rem 0 3rem; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stats li { padding: 1.4rem 1rem; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: 2.1rem; line-height: 1.1; font-weight: 800; margin-bottom: .25rem; }
.stats strong .status-dot-inline { width: .5em; height: .5em; margin: 0 .1em; }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Públicos ---------- */
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 3rem; }
.aud-card { border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); background: var(--card); border-top: 6px solid var(--navy); }
.aud-obra { border-top-color: var(--yellow); background: linear-gradient(180deg, var(--yellow-soft), #fff 55%); }
.aud-card p { color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1.1rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Oficios ---------- */
.trades { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 3rem; }
.trades-group h3 { font-size: 1.05rem; margin-bottom: .7rem; }
.trades-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .5rem; }
.trade { display: flex; align-items: center; gap: .55rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; min-height: 48px; line-height: 1.2; }
.trade span { font-size: 1.25rem; }
.trade:hover { border-color: var(--ink); color: var(--ink); background: var(--yellow-soft); }

/* ---------- CTA doble ---------- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin: 3rem 0 3.5rem; }
.cta-box { border-radius: var(--radius); padding: 1.9rem; }
.cta-box h3 { font-size: 1.45rem; font-weight: 800; }
.cta-clients { background: var(--card); box-shadow: var(--shadow-sm); }
.cta-clients p { color: var(--muted); }
.cta-pros { background: var(--navy); color: #fff; }
.cta-pros p { color: #C9D2DE; }

/* ---------- Cabecera de página ---------- */
.page-hero { padding: 2.8rem 0 1.8rem; background: var(--card); border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 0; }

/* ---------- Tarjetas ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pro-card { padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; border-top: 5px solid var(--line-strong); }
.pro-card.is-on { border-top-color: #1F9D55; }
.pro-card.is-off { border-top-color: #D62D20; }
.pro-card.is-own { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pro-top { display: flex; gap: .85rem; align-items: center; }
.pro-id { min-width: 0; flex: 1; }
.pro-id h3 { margin: 0; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pro-id p { margin: 0; color: var(--muted); font-size: .92rem; }
.pro-status-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.type-tag { font-size: .75rem; font-weight: 700; color: var(--navy-2); background: var(--blue-soft); padding: .15rem .55rem; border-radius: 999px; }
.example-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6B4E0E; background: var(--yellow-soft); border: 1px dashed #C9A85A; padding: .12rem .5rem; border-radius: 999px; }
.own-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--yellow); padding: .15rem .55rem; border-radius: 999px; }
.pro-meta { margin: 0; display: grid; gap: .3rem; background: var(--bg); border-radius: var(--radius-sm); padding: .65rem .8rem; font-size: .9rem; }
.pro-meta div { display: grid; grid-template-columns: 92px 1fr; gap: .5rem; }
.pro-meta dt { color: var(--muted); font-weight: 600; }
.pro-meta dd { margin: 0; overflow-wrap: anywhere; }
.pro-desc { font-size: .95rem; color: #333D4A; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pro-updated { margin: 0; font-size: .78rem; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge { font-size: .8rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--bg); color: #36404C; border: 1px solid var(--line); }
.badge.b-oficio { background: var(--yellow-soft); border-color: #F1D98A; color: #4A3A06; }
.badge.b-prl { background: var(--free-soft); color: var(--free); border-color: #C7E6D2; }
.contact-box { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: .8rem .9rem; font-size: .98rem; }
.contact-box a { font-weight: 700; color: var(--ink); }
.contact-box ul { list-style: none; margin: 0 0 .3rem; padding: 0; display: grid; gap: .45rem; }
.contact-box p { margin: 0; }
.pro-card .pro-actions, .pro-card > .btn { margin-top: auto; }

.avatar { --av: var(--orange); width: 56px; height: 56px; border-radius: 12px; flex: none; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--av) 14%, #fff); color: var(--av); font-weight: 800; font-size: 1.2rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 44px; height: 44px; font-size: 1.2rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.9rem; }

/* ---------- Cómo funciona ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2.2rem; }
.how-col { background: var(--card); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 1rem 0 1.4rem; }
.steps li { counter-increment: paso; position: relative; padding: 1rem 0 1rem 3.2rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(paso); position: absolute; left: 0; top: .9rem; width: 2.2rem; height: 2.2rem; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.steps h3 { margin-bottom: .2rem; }
.steps p { color: var(--muted); margin: 0; }
.safety { background: var(--card); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 2.5rem; box-shadow: var(--shadow-sm); border-left: 6px solid var(--yellow); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .15rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--free-soft); color: var(--free); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.faq { margin-bottom: 3.5rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; padding: 0 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--orange); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

/* ---------- Listado ---------- */
.listado-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.6rem; align-items: start; padding-bottom: 3.5rem; }
.filters { background: var(--card); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); position: sticky; top: 84px; }
.filters-title { font-size: 1.3rem; margin-bottom: .8rem; }
.filters-toggle { display: none; width: 100%; min-height: 46px; align-items: center; gap: .6rem; background: none; border: 0; font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink); cursor: pointer; padding: .2rem 0; text-align: left; }
.filters-toggle .chev { margin-left: auto; transition: transform .2s; }
.filters-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filters-active { background: var(--yellow); color: var(--ink); font-size: .8rem; font-weight: 800; border-radius: 999px; padding: .05rem .55rem; }
.filters-active:empty { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.count { margin: 0; font-weight: 500; color: var(--muted); }
.count strong { color: var(--ink); }
.empty { text-align: center; background: var(--card); border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 2.2rem 1.4rem; }
.empty h3 { font-size: 1.35rem; font-weight: 800; }
.empty p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.empty .btn-row { justify-content: center; }
.empty-emoji { font-size: 2.4rem; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label, .field .label { font-weight: 700; font-size: .93rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea {
  font: inherit; font-size: 16px; color: var(--ink); background-color: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .65rem .85rem; min-height: 48px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input[readonly] { background: var(--bg); }
::placeholder { color: #6C7178; opacity: 1; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231B2430' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .2); }
textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--busy); background-color: #FFF8F7; }
.field-group.has-error .pick-groups, .field-group.has-error .pick-grid { outline: 2px solid var(--busy); outline-offset: 4px; border-radius: 8px; }
.error-msg { color: var(--busy); font-size: .86rem; font-weight: 700; margin: 0; }
.error-msg:empty { display: none; }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 800; font-size: 1.25rem; margin-bottom: .8rem; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.checks { display: grid; gap: .55rem; margin-bottom: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--navy); margin-top: .15rem; flex: none; }
.check-privacy { font-weight: 400; font-size: .95rem; }
.field.has-error .check-privacy { color: var(--busy); }
.pick-groups { display: grid; gap: .9rem; }
.pick-title { margin: 0 0 .4rem; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .45rem; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: flex; align-items: center; min-height: 46px; padding: .5rem .75rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-size: .92rem; line-height: 1.2; transition: .12s; }
.pick input:checked + span { background: var(--yellow); border-color: var(--ink); }
.pick input:checked + span::after { content: "✓"; margin-left: auto; font-weight: 800; padding-left: .4rem; }
.pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.pick-count { color: var(--orange); font-weight: 700; }
.seg { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .92rem; }
.seg-opt input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field-prl { max-width: 360px; }

.registro-layout { display: grid; grid-template-columns: 1fr 310px; gap: 1.6rem; align-items: start; padding-bottom: 3.5rem; }
.form-card { padding: 1.8rem; }
.form-alert { background: var(--busy-soft); color: var(--busy); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.2rem; font-weight: 700; }
.form-success { padding: 2.3rem; text-align: center; }
.success-emoji { font-size: 2.6rem; }
.form-success .btn-row { justify-content: center; }
.form-actions { flex-direction: column; }
.registro-aside { display: grid; gap: 1.2rem; position: sticky; top: 84px; }
.aside-card { padding: 1.4rem; }
.aside-card h3 { font-size: 1.2rem; font-weight: 800; }
.aside-note { background: var(--yellow-soft); box-shadow: none; border: 1px solid #F1D98A; }
.aside-note p { margin: 0; font-size: .93rem; }
.photo-row { display: flex; gap: 1.2rem; align-items: center; }
.photo-preview { width: 96px; height: 96px; border-radius: 14px; background: var(--bg); border: 2px dashed var(--line-strong); display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; flex: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.btn:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Interruptor */
.switch-row { position: relative; display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 700; margin: .3rem 0 .9rem; user-select: none; min-height: 44px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 48px; height: 28px; background: var(--line-strong); border-radius: 999px; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-input:checked + .switch { background: #1F9D55; }
.switch-input:checked + .switch::after { transform: translateX(20px); }
.switch-input:focus-visible + .switch { outline: 3px solid var(--blue); outline-offset: 2px; }
.switch-row.big .switch { width: 66px; height: 36px; }
.switch-row.big .switch::after { width: 30px; height: 30px; }
.switch-row.big .switch-input:checked + .switch::after { transform: translateX(30px); }
.switch-row.big .switch-input:not(:checked) + .switch { background: #D62D20; }
.switch-row.big { font-size: 1.08rem; margin: 0; }

/* ---------- Mi perfil ---------- */
.access-card, .profile-card { padding: 1.8rem; margin-bottom: 1.5rem; }
.access-title { font-size: 1.45rem; margin: 0 0 1rem; }
.access-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin: .4rem 0 .8rem; }
.info-msg { background: var(--free-soft); color: var(--free); border-radius: var(--radius-sm); padding: .7rem .9rem; font-size: .92rem; font-weight: 700; margin: .4rem 0; }
.form-note { background: var(--yellow-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1.2rem; font-weight: 700; }
.profile-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 180px; }
.profile-id h2, .profile-id p { margin: 0; }
.availability-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--bg); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.4rem 0; flex-wrap: wrap; }
.availability-toggle h3 { margin: 0; font-size: 1.2rem; }
.availability-toggle p { margin: 0; }
.profile-data { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
.profile-data dt { font-weight: 700; color: var(--muted); }
.profile-data dd { margin: 0; overflow-wrap: anywhere; }
.local-profiles { margin-bottom: 3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .95rem; min-height: 40px; font: inherit; font-size: .9rem; cursor: pointer; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: #E6EAF0; padding: 2.8rem 0 1.2rem; margin-top: 2rem; }
.site-footer::before { content: ""; display: block; height: 6px; background: var(--stripes); margin-top: -2.8rem; margin-bottom: 2.8rem; }
.site-footer a { color: #E6EAF0; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer .muted { color: #AEB8C6; }
.site-footer h3 { color: var(--yellow); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.logo-footer { margin-bottom: .6rem; }
.footer-bottom { border-top: 1px solid #34435A; margin-top: 2rem; padding-top: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { margin: 0; }

/* ---------- Varios ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--navy); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow); z-index: 90; font-weight: 700; max-width: calc(100% - 2rem); text-align: center; border-bottom: 4px solid var(--yellow); }
.noscript { background: var(--yellow-soft); padding: 1rem; text-align: center; font-weight: 700; }
.notice-bar { background: var(--yellow-soft); border-bottom: 1px solid #F1D98A; font-size: .92rem; }
.notice-inner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .55rem; padding-bottom: .55rem; flex-wrap: wrap; }
.pin-icon { width: .95em; height: .95em; display: inline-block; vertical-align: -.12em; margin-right: .2rem; }
html[data-modo="demo"] [data-solo="online"], html:not([data-modo="demo"]) [data-solo="demo"], html:not([data-modo]) [data-solo="online"] { display: none !important; }

/* ---------- Páginas de contenido (legal, oficios, 404) ---------- */
.content { padding: 2.2rem 0 3rem; }
.content section, .content .box { background: var(--card); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm); }
.placeholder-note { background: var(--yellow-soft); border: 1px dashed #C9A85A; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.landing-hero { background: var(--navy); color: #fff; padding: 3rem 0 3.2rem; position: relative; }
.landing-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--stripes); }
.landing-hero h1 { color: #fff; }
.landing-hero .lead { color: #C9D2DE; }
.breadcrumb { font-size: .88rem; margin: 0 0 1rem; color: #AEB8C6; }
.breadcrumb a { color: #E6EAF0; }
.prov-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.prov-links a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 600; }
.prov-links a:hover { background: var(--yellow-soft); border-color: var(--ink); }
.notfound { text-align: center; padding: 4rem 0; }
.notfound .big { font-size: 5rem; font-weight: 800; line-height: 1; margin: 0; color: var(--navy); }

/* =====================================================================
   v2 · WhatsApp, favoritos, ofertas, perfil público, PWA
   ===================================================================== */
.btn-wa { background: #1FA855; color: #fff; border-color: #1FA855; }
.btn-wa:hover { background: #178A45; border-color: #178A45; color: #fff; }
.btn-wa .wa-ico { flex: none; }
.btn-sm { min-height: 42px; padding: .4rem .7rem; font-size: .9rem; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-danger-ghost { background: var(--card); color: var(--busy); border-color: #E9B7B1; }
.btn-danger-ghost:hover { background: var(--busy); color: #fff; border-color: var(--busy); }
.danger-link { color: var(--busy); margin-top: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 1rem; }
.nav-count { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding: 0 .3em; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 800; vertical-align: 1px; }
.nav-count:empty { display: none; }

/* Tarjetas: favoritos, acciones, «disponible hoy» */
.pro-link { color: inherit; text-decoration: none; }
.pro-link:hover { text-decoration: underline; color: inherit; }
.fav-btn { flex: none; align-self: flex-start; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: #B4231A; font-size: 1.35rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .1s, background .15s; }
.fav-btn:hover { background: #FFF1F0; border-color: #E9B7B1; }
.fav-btn.on { background: #FFE9E7; border-color: #E9B7B1; }
.fav-btn:active { transform: scale(.92); }
.today-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 800; color: #0F5A30; background: #D2F2DE; border: 1px solid #9ED8B4; padding: .12rem .55rem; border-radius: 999px; }
.today-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1F9D55; animation: to-pulse 1.8s infinite; }
@keyframes to-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.55); } 70% { box-shadow: 0 0 0 6px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }
.pro-actions { display: grid; gap: .5rem; }
.pro-actions-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.pro-actions-row .btn { padding-inline: .4rem; white-space: nowrap; }

/* Filtros rápidos */
.quick-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.chip-check, .chip-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: .4rem .95rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 700; font-size: .92rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.chip-link:hover { border-color: var(--ink); color: var(--ink); }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip-check.on { background: #D2F2DE; border-color: #1F9D55; color: #0F5A30; }
.chip-check.on::after { content: "✓"; font-weight: 800; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: #1F9D55; box-shadow: 0 0 0 3px rgba(31,157,85,.2); }
.avisame { margin: 1.2rem auto 0; display: grid; justify-items: center; gap: .4rem; }
.notice-inline { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: var(--yellow-soft); border: 1px solid #F1D98A; border-radius: var(--radius-sm); padding: .6rem .9rem; margin-bottom: 1rem; font-size: .93rem; }

/* Portada: banda de ofertas y de la app */
.offers-band { display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 1.9rem; margin: 3rem 0 0; position: relative; overflow: hidden; }
.offers-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--stripes); }
.offers-band h2 { color: #fff; }
.offers-band p { color: #C9D2DE; margin: 0; }
.offers-band .btn-row { margin: 0; }
.app-band { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 2px solid var(--yellow); border-radius: var(--radius); padding: 1rem 1.2rem; margin: -1.5rem 0 3.5rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.app-band:hover { color: var(--ink); background: var(--yellow-soft); }
.app-band img { border-radius: 14px; flex: none; }
.app-band strong { display: block; font-size: 1.1rem; }
.app-band small { display: block; color: var(--muted); font-size: .9rem; }
.app-band-cta { margin-left: auto; font-weight: 800; color: var(--orange); white-space: nowrap; }

/* Ofertas */
.page-hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; }
.offer-filters { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 0 1rem; align-items: end; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem .1rem; margin-bottom: 1.2rem; }
.offer-filters .btn { margin-bottom: 1rem; }
.offer-card { padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; border-top: 5px solid var(--yellow); }
.offer-card.is-closed, .offer-card.is-expired { border-top-color: var(--line-strong); opacity: .92; }
.offer-head { display: flex; gap: .6rem; align-items: flex-start; justify-content: space-between; }
.offer-head h3 { margin: 0; font-size: 1.12rem; }
.offer-link { color: var(--ink); text-decoration: none; }
.offer-link:hover { text-decoration: underline; color: var(--ink); }
.offer-state { flex: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .55rem; border-radius: 999px; }
.offer-state-open { background: var(--free-soft); color: var(--free); }
.offer-state-closed { background: var(--bg-deep); color: #4A4F57; }
.offer-state-expired { background: var(--busy-soft); color: var(--busy); }
.offer-card .pro-loc { margin: 0; color: var(--muted); font-size: .92rem; }
.offer-by { margin: 0; font-size: .82rem; color: var(--muted); }
.offer-manage { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; }
.offer-card .pro-actions { margin-top: auto; }
.offers-note { margin: 1.5rem 0 3rem; }
.my-offers { grid-column: 1 / -1; border-top: 2px dashed var(--line-strong); padding-top: 1.6rem; scroll-margin-top: 80px; }
.today-box { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: #EAF7EF; border: 1px solid #BFE3CC; border-radius: var(--radius-sm); padding: .75rem 1rem; margin: -0.6rem 0 1.4rem; }
.today-box p { margin: 0; flex: 1; min-width: 200px; }
.mini-card { padding: 1.3rem 1.5rem; margin-bottom: 2.5rem; }
.mini-card h3 { margin: 0 0 .3rem; }
.mini-card .btn-row { margin-top: .6rem; }

/* Página de perfil / oferta */
.detail { padding: 1.8rem 0 3rem; }
.detail-card { padding: 1.8rem; border-top: 6px solid var(--line-strong); }
.detail-card.is-on { border-top-color: #1F9D55; }
.detail-card.is-off { border-top-color: #D62D20; }
.detail-card.is-offer { border-top-color: var(--yellow); }
.detail-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-head .avatar { width: 104px; height: 104px; border-radius: 18px; font-size: 2.2rem; }
.detail-id { flex: 1; min-width: 200px; }
.detail-id h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .2rem; }
.detail-id p { margin: 0; color: var(--muted); }
.detail .badges { margin: .6rem 0; }
.detail .pro-meta { margin: 1rem 0; font-size: .98rem; }
.detail .pro-meta div { grid-template-columns: 120px 1fr; }
.detail-desc { white-space: pre-line; font-size: 1.02rem; color: #2A3340; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 1.3rem 0 .6rem; }
.detail-actions .btn-wa { grid-column: 1 / -1; min-height: 56px; font-size: 1.08rem; }
.detail-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 1rem; font-size: .88rem; color: var(--muted); }
.detail-state { text-align: center; padding: 3rem 1.4rem; }
.detail-back { display: inline-block; margin-bottom: 1rem; font-weight: 700; text-decoration: none; }
.detail-tips { margin-top: 1.4rem; padding: 1.3rem 1.5rem; }
.detail-tips h2 { font-size: 1.15rem; }
.detail-tips ul { margin: 0; }

/* Compartir, avisos y WhatsApp flotante */
.share-sheet { position: fixed; inset: 0; z-index: 120; background: rgba(15, 20, 28, .55); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.share-sheet-box { background: #fff; border-radius: 18px; padding: 1.4rem; width: min(420px, 100%); display: grid; gap: .6rem; box-shadow: var(--shadow); margin-bottom: env(safe-area-inset-bottom); }
.share-sheet-box h2 { font-size: 1.3rem; margin: 0; }
.share-sheet-sub { margin: 0 0 .3rem; color: var(--muted); font-size: .92rem; }
.link-btn { background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted); padding: .6rem; cursor: pointer; }
@media (min-width: 700px) { .share-sheet { align-items: center; } }
.to-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; padding: .85rem 1.3rem; border-radius: 12px; box-shadow: var(--shadow); z-index: 130; font-weight: 700; max-width: calc(100% - 2rem); text-align: center; border-bottom: 4px solid var(--yellow); transition: opacity .2s, transform .2s; }
.to-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wa-float { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; gap: .45rem; height: 58px; min-width: 58px; padding: 0 1.1rem 0 .95rem; border-radius: 999px; background: #1FA855; color: #fff; text-decoration: none; font-weight: 800; box-shadow: 0 10px 26px -8px rgba(15, 90, 48, .7), 0 0 0 3px #fff; transition: transform .15s, bottom .25s; }
.wa-float:hover { color: #fff; background: #178A45; transform: translateY(-2px); }
.wa-float-txt { font-size: .95rem; }
@media (max-width: 560px) { .wa-float { width: 56px; height: 56px; min-width: 0; padding: 0; justify-content: center; } .wa-float-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
html.has-install-banner .wa-float { bottom: calc(96px + env(safe-area-inset-bottom)); }
html.is-standalone .wa-float { bottom: calc(14px + env(safe-area-inset-bottom)); }
body[data-app-page] .wa-float, body.page-offline .wa-float { display: none; }

/* Aviso de instalación (móvil) */
.install-banner { position: fixed; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 95; display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 12px; border-radius: 16px; background: var(--navy); color: #fff; border: 1px solid #34435A; border-top: 4px solid var(--yellow); box-shadow: 0 12px 34px rgba(0,0,0,.4); animation: to-rise .35s ease-out; max-width: 520px; margin: 0 auto; }
.install-banner img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-banner p { margin: 0; flex: 1; min-width: 0; line-height: 1.2; font-size: .9rem; }
.install-banner p strong { display: block; font-size: .95rem; }
.install-banner p span { color: #AEB8C6; }
.install-banner .btn { flex: none; min-height: 40px; }
.install-banner-close { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: #C9D2DE; cursor: pointer; }
.install-banner-close:hover { background: rgba(255,255,255,.08); color: #fff; }
@keyframes to-rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) { .install-banner { display: none; } }

/* Página /app */
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-hero { background: radial-gradient(900px 420px at 85% -10%, #2E4262 0, transparent 60%), var(--navy); color: #fff; padding: 2rem 0 0; position: relative; overflow: hidden; }
.app-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--stripes); }
.app-hero .breadcrumb { margin-bottom: .9rem; }
.app-hero-grid { display: grid; gap: 2rem; align-items: end; }
.app-title-row { display: flex; align-items: center; gap: 1rem; margin: 0 0 .9rem; }
.app-title-row h1 { margin: 0; color: #fff; font-size: clamp(2.1rem, 7vw, 3.6rem); }
.app-title-row h1 em { font-style: normal; color: var(--yellow); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 30px rgba(255, 194, 26, .25); flex: none; }
.app-hero .lead { color: #C9D2DE; }
.app-install { margin: 1.2rem 0 .4rem; }
.app-install-btn { font-size: 1.15rem; min-height: 60px; padding: .8em 2em; }
.app-install-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; color: #C9D2DE; }
.app-install-done { display: inline-flex; align-items: center; gap: .6rem; margin: 0; padding: .75rem 1rem; border-radius: 12px; background: rgba(31,157,85,.18); border: 1px solid rgba(80,200,130,.5); color: #D2F2DE; font-weight: 700; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: 0; margin: 1.3rem 0 2rem; color: #C9D2DE; font-size: .92rem; }
.hero-facts strong { display: block; font-size: 1.45rem; color: #fff; font-weight: 800; }
.app-phone { display: flex; justify-content: center; max-height: 340px; overflow: hidden; }
.phone { position: relative; width: min(270px, 72vw); border-radius: 40px 40px 0 0; padding: 11px 11px 0; background: linear-gradient(145deg, #3a4046, #15181b); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08); }
.phone img { width: 100%; height: auto; border-radius: 30px 30px 0 0; }
.phone-notch { position: absolute; top: 19px; left: 50%; width: 80px; height: 22px; margin-left: -40px; border-radius: 999px; background: #0a0b0c; z-index: 1; }
.section { padding: 3rem 0; }
.section-tight { padding: 2.2rem 0; }
.section-alt { background: var(--bg-deep); }
.section-lead { color: var(--muted); max-width: 62ch; }
.inapp-note { display: flex; gap: .9rem; align-items: flex-start; margin: 0 0 1.8rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: #3b4248; }
.inapp-note > .ico { width: 28px; height: 28px; color: var(--orange); margin-top: 2px; }
.inapp-note p { margin: 0 0 .7rem; }
.inapp-note.is-alert { background: #FFF8E6; border-color: #F3C96A; box-shadow: 0 0 0 3px rgba(255, 197, 61, .25); }
.steps-grid { display: grid; gap: 1.2rem; }
.steps-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.25rem; }
.steps-card.is-current { border: 2px solid var(--yellow-dark); box-shadow: var(--shadow); }
.steps-card h3 { font-size: 1.45rem; font-weight: 800; margin: 0 0 1.1rem; }
.steps-card h3 small { display: block; font-size: .95rem; font-weight: 600; color: var(--muted); margin-top: .2rem; }
.steps-device { position: absolute; top: -13px; left: 20px; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.install-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 1rem; }
.install-steps li { counter-increment: st; display: flex; gap: 1rem; align-items: flex-start; }
.step-ico { position: relative; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.step-ico .ico { width: 28px; height: 28px; }
.step-ico::after { content: counter(st); position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: .75rem; line-height: 22px; text-align: center; }
.step-body { display: grid; gap: 2px; color: var(--muted); font-size: .97rem; padding-top: 2px; min-width: 0; }
.step-title { color: var(--ink); font-size: 1.06rem; }
.step-title em { font-style: normal; color: var(--orange); }
.app-qr-grid { display: grid; gap: 1.5rem; align-items: center; }
.qr-img { width: 220px; height: 220px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 6px; image-rendering: pixelated; }
.app-qr-note { color: var(--muted); font-size: .95rem; }
html[data-platform="ios"] .app-qr, html[data-platform="android"] .app-qr { display: none; }
.app-features { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.app-features li { display: flex; gap: .9rem; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.app-features .feat-ico { font-size: 1.6rem; line-height: 1; }
.app-features strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.app-features span span { color: var(--muted); font-size: .93rem; }
@media (min-width: 640px) { .app-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .app-qr-grid { grid-template-columns: 220px 1fr; gap: 2.5rem; } }
@media (min-width: 860px) { .steps-grid { grid-template-columns: 1fr 1fr; } .steps-card { padding: 1.9rem; } }
@media (min-width: 900px) {
  .app-hero { padding-top: 3.2rem; }
  .app-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
  .app-icon { width: 88px; height: 88px; border-radius: 22px; }
  .app-phone { max-height: none; overflow: visible; }
  .phone { width: 290px; border-radius: 44px; padding: 11px; margin-bottom: -50px; }
  .phone img { border-radius: 33px; }
  .hero-facts { margin-bottom: 3.4rem; }
}
@media (min-width: 1080px) { .app-features { grid-template-columns: repeat(4, 1fr); } }

/* Página sin conexión */
.offline { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.offline-wrap { max-width: 620px; }
.offline-ico { width: 84px; height: 84px; margin: 0 auto 1rem; }
.offline-lead { color: var(--muted); font-size: 1.08rem; }
.offline-actions { display: grid; gap: .7rem; margin: 1.5rem auto 1rem; max-width: 380px; }
.offline-more { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.support-note { font-size: .82rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.6rem; gap: 2rem; }
  .hero-visual { max-width: 520px; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .listado-layout, .registro-layout { grid-template-columns: 1fr; }
  .filters, .registro-aside { position: static; }
  .filters { padding: .8rem 1.1rem; }
  .filters-title { display: none; }
  .filters-toggle { display: flex; }
  .filters form { display: none; margin-top: 1rem; }
  .filters.open form { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trades { grid-template-columns: 1fr; }
  .offer-filters { grid-template-columns: 1fr 1fr; }
  .offers-band { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: .6rem 1.25rem 1.2rem; box-shadow: 0 16px 24px -18px rgba(0,0,0,.5); display: none; }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .85rem .2rem; border-radius: 0; border-bottom: 1px solid #34435A; }
  .main-nav a.active:not(.btn) { box-shadow: none; }
  .nav-cta { margin: .9rem 0 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 820px) {
  .how-grid, .split-cta, .audiences { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .container.narrow { width: calc(100% - 2rem); }
  .hero-inner { padding: 2rem 0 2.6rem; }
  .hero h1 { font-size: 2.15rem; }
  .lead { font-size: 1.02rem; }
  .audience-ctas { grid-template-columns: 1fr; }
  .quick-search { flex-direction: column; }
  .quick-search select + select { border-left: 0; border-top: 1px solid var(--line); }
  .page-hero { padding: 2rem 0 1.4rem; margin-bottom: 1.2rem; }
  .form-card, .how-col, .access-card, .profile-card, .aud-card, .cta-box, .content section, .content .box { padding: 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats li { padding: 1.1rem .5rem; }
  .stats strong { font-size: 1.7rem; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
  .trades-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .trade { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
  .profile-data { grid-template-columns: 1fr; gap: .1rem; }
  .offers-band { grid-template-columns: 1fr; padding: 1.4rem 1.3rem 1.4rem 1.6rem; }
  .offer-filters { grid-template-columns: 1fr; }
  .app-band { display: grid; grid-template-columns: 56px 1fr; }
  .app-band-cta { margin-left: 0; grid-column: 2; }
  .detail-card { padding: 1.25rem; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail .pro-meta div { grid-template-columns: 96px 1fr; }
  .profile-data dd { margin-bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cabecera de las páginas estáticas */
.static-nav { display: flex; align-items: center; gap: .2rem; }
.static-nav a:not(.btn) { color: #E6EAF0; text-decoration: none; font-weight: 600; padding: .5rem .7rem; border-radius: 8px; }
.static-nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 440px) { .static-nav a:not(.btn) { padding: .5rem .45rem; font-size: .92rem; } .static-nav .btn { padding-inline: .7rem; } .static-nav a[data-nav-buscar] { display: none; } }
