/* ===== Teleniñera — estilos (editorial: papel crema, terracota, serif) ===== */

/* Tipografías autoalojadas (SIL Open Font License, ver assets/fonts/OFL-*.txt).
   Se sirven desde el propio dominio: la CSP (font-src 'self') no necesita cambios. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/fraunces-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: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/fraunces-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;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500 700; font-display: swap;
  src: url("fonts/fraunces-italic-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 700; 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 700; 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 {
  --paper: #F3EEE4;        /* fondo crema */
  --paper-deep: #ECE5D8;
  --card: #FFFDF8;         /* tarjetas */
  --ink: #1C2430;          /* texto principal (13,5:1 sobre papel) */
  --muted: #5E675F;        /* texto secundario (5:1 sobre papel) */
  --line: #E3D8C6;         /* separadores decorativos */
  --line-strong: #948672;  /* bordes de controles (≥3:1) */
  --clay: #9C3418;         /* terracota: acento principal */
  --clay-dark: #7F2A13;
  --clay-soft: #F6E6DC;
  --ember: #C4512C;        /* solo para texto grande */
  --free: #146B3A;         /* verde: disponible */
  --free-soft: #E7F5EC;
  --busy: #9F1D14;         /* rojo: no disponible */
  --busy-soft: #FDECEB;
  --ochre: #6B4E0E;
  --ochre-soft: #F5ECD6;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 0 0 1px rgba(28, 36, 48, .06), 0 1px 2px -1px rgba(28, 36, 48, .06), 0 8px 20px -12px rgba(28, 36, 48, .18);
  --shadow: 0 0 0 1px rgba(28, 36, 48, .10), 0 1px 2px -1px rgba(28, 36, 48, .08), 0 14px 28px -14px rgba(28, 36, 48, .22);
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

*, *::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(--paper);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body::before { content: ""; display: block; height: 6px; background: var(--clay); }
img { max-width: 100%; display: block; }
a { color: var(--clay); text-underline-offset: .18em; }
a:hover { color: var(--clay-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 600; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
input, select, textarea, details, section, aside { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--clay-soft); color: var(--ink); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(760px, 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: var(--card); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.req { color: var(--clay); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 44px; padding: .65rem 1.3rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  line-height: 1.2; white-space: nowrap;
}
.btn-primary { background: var(--clay); color: var(--card); }
.btn-primary:hover { background: var(--clay-dark); color: var(--card); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-dark:hover { background: #0E141C; color: var(--card); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); color: var(--ink); background: #fff; }
.btn-danger { background: var(--card); color: var(--busy); border-color: #E5B4AE; }
.btn-danger:hover { background: var(--busy); border-color: var(--busy); color: var(--card); }
.btn-large { min-height: 50px; padding: .85rem 1.7rem; font-size: 1rem; }
.btn-small { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: .3rem 0; font: inherit; font-weight: 600; color: var(--clay); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.btn-link:hover { color: var(--clay-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(243, 238, 228, .94);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-icon { width: 36px; height: 36px; flex: none; }
.logo-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.logo-text span { color: inherit; }
.main-nav { display: flex; align-items: center; gap: .15rem; }
.main-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .55rem .8rem; border-radius: 999px;
  text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: .45em;
  transition: color .15s, text-decoration-color .15s;
}
.main-nav a:not(.btn):hover { color: var(--clay); }
.main-nav a.active:not(.btn) { color: var(--clay); text-decoration-color: var(--clay); }
.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: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3.5rem; align-items: center; padding: 4.5rem 0 3.5rem; }
.eyebrow { display: block; margin: 0 0 .9rem; color: var(--clay); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); margin-bottom: .45em; }
.highlight { display: inline; font-style: italic; font-weight: 500; color: var(--ember); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.4rem; }
.quick-search { display: flex; gap: .5rem; background: var(--card); padding: .4rem; border-radius: 999px; box-shadow: var(--shadow-sm); max-width: 460px; border: 1px solid var(--line); }
.quick-search select { flex: 1; border: 0; background-color: transparent; font: inherit; padding: .5rem .9rem; min-width: 0; color: var(--ink); }
.quick-search select:focus { outline: none; box-shadow: none; }
.quick-search:focus-within { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(156, 52, 24, .16); }

.hero-visual { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.25rem .35rem; }
.preview-title { margin: 0 0 .2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.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; font-weight: 600; }
.preview-card small { color: var(--muted); font-size: .85rem; }
.preview-card .status { margin-left: auto; }

/* ---------- Estado (verde / rojo) ---------- */
.status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem; padding: .25rem .7rem .25rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status-on { background: var(--free-soft); color: var(--free); }
.status-on .dot { background: var(--free); box-shadow: 0 0 0 3px rgba(20, 107, 58, .16); }
.status-off { background: var(--busy-soft); color: var(--busy); }
.status-off .dot { background: var(--busy); box-shadow: 0 0 0 3px rgba(159, 29, 20, .14); }
.status-dot-inline { display: inline-block; width: .6em; height: .6em; border-radius: 50%; vertical-align: middle; }
.status-dot-inline.on { background: var(--free); }
.status-dot-inline.off { background: var(--busy); }

/* ---------- Cifras ---------- */
.stats { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 1.6rem 1rem; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--font-display); font-size: 2.3rem; line-height: 1.1; font-weight: 600; color: var(--ink); margin-bottom: .3rem; }
.stats li:first-child strong { color: var(--clay); }
.stats strong .status-dot-inline { width: .5em; height: .5em; margin: 0 .1em; }
.stats span { color: var(--muted); font-size: .92rem; }

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

/* ---------- CTA doble ---------- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 3.5rem 0 4rem; }
.cta-box { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); }
.cta-box h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cta-families { background: var(--clay-soft); border-color: #EBD2C3; }
.cta-sitters { background: var(--card); }
.cta-box p { color: var(--muted); }
.cta-families p { color: #4E4A44; }

/* ---------- Cabecera de página ---------- */
.page-hero { padding: 3.5rem 0 2.2rem; }
.page-hero h1 { margin-bottom: .35em; }
.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(290px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 0; }
.sitter-card { padding: 1.25rem 1.25rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .85rem; position: relative; border-left: 4px solid var(--line-strong); transition: box-shadow .18s ease; }
.sitter-card:hover { box-shadow: var(--shadow); }
.sitter-card.is-on { border-left-color: var(--free); }
.sitter-card.is-off { border-left-color: var(--busy); }
.sitter-card.is-off .avatar { filter: grayscale(.3); }
.sitter-card.is-own { outline: 2px solid var(--clay); outline-offset: 3px; }
.sitter-top { display: flex; gap: .85rem; align-items: center; }
.sitter-id { min-width: 0; flex: 1; }
.sitter-id h3 { margin: 0; font-size: 1.08rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sitter-id p { margin: 0; color: var(--muted); font-size: .9rem; }
.sitter-status-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.example-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ochre); background: var(--ochre-soft); border: 1px dashed #C9A85A; padding: .15rem .55rem; border-radius: 999px; }
.own-tag { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--card); background: var(--ink); padding: .15rem .55rem; border-radius: 999px; }
.sitter-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; text-align: center; background: var(--paper); border-radius: var(--radius-sm); padding: .6rem .3rem; }
.sitter-meta strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.sitter-meta span { font-size: .76rem; color: var(--muted); }
.sitter-desc { font-size: .95rem; color: #3A4350; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge { font-size: .76rem; font-weight: 500; padding: .18rem .6rem; border-radius: 999px; background: var(--paper); color: #3D4650; border: 1px solid var(--line); }
.badge.b-lang { background: var(--paper); color: #3D4650; }
.badge.b-cert { background: var(--free-soft); color: var(--free); border-color: #CBE7D5; }
.badge.b-aux { background: var(--clay-soft); color: var(--clay); border-color: #EBD2C3; }
.badge.b-car { background: var(--ochre-soft); color: var(--ochre); border-color: #E8D9B3; }
.contact-box { background: var(--paper); border-radius: var(--radius-sm); padding: .8rem .9rem; font-size: .92rem; }
.contact-box a { font-weight: 600; }
.contact-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.sitter-card .btn { margin-top: auto; }
.sitter-card .btn-primary { background: var(--ink); color: var(--card); }
.sitter-card .btn-primary:hover { background: #0E141C; }

.avatar {
  --av: var(--clay); width: 56px; height: 56px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  background: var(--clay-soft); background: color-mix(in srgb, var(--av) 13%, #FFFDF8); color: var(--av);
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .02em; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 88px; height: 88px; font-size: 1.9rem; }

/* ---------- Cómo funciona ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2.5rem; }
.how-col { background: var(--card); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.how-icon { display: none; }
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 0; }
.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, decimal-leading-zero); position: absolute; left: 0; top: .85rem;
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1.2; color: var(--clay);
}
.steps h3 { margin-bottom: .2rem; }
.steps p { color: var(--muted); margin: 0; }
.steps .status { margin: .1rem .1rem; }

.safety { display: flex; gap: 1.4rem; background: var(--card); border-radius: var(--radius); padding: 2rem 2rem 1.6rem; margin-bottom: 3rem; box-shadow: var(--shadow-sm); border-left: 4px solid var(--clay); }
.safety-icon { display: none; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--free-soft); color: var(--free); font-size: .78rem; font-weight: 700; display: grid; place-items: center; margin-top: .2rem; }

.faq { margin-bottom: 4rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 600; 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-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--clay); 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: 270px 1fr; gap: 1.8rem; align-items: start; padding-bottom: 4rem; }
.filters { background: var(--card); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.filters-title { font-size: 1.35rem; margin-bottom: .8rem; }
.filters-toggle { display: none; width: 100%; min-height: 44px; align-items: center; gap: .6rem; background: none; border: 0; font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink); cursor: pointer; padding: .2rem 0; text-align: left; }
.filters-toggle .chev { margin-left: auto; transition: transform .2s; color: var(--clay); }
.filters-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.filters-active { background: var(--clay); color: var(--card); font-size: .78rem; font-weight: 600; 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); font-weight: 600; }
.empty { text-align: center; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 2.5rem 1.5rem; }
.empty h3 { font-family: var(--font-display); font-size: 1.4rem; }
.empty-emoji { display: none; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea {
  font: inherit; color: var(--ink); background-color: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .65rem .85rem; min-height: 46px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
::placeholder { color: #6B7069; 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='%239C3418' 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; }
.quick-search select { background-position: right .6rem center; min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(156, 52, 24, .18); }
textarea { resize: vertical; min-height: 110px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--busy); background-color: #FFF8F6; }
.error-msg { color: var(--busy); font-size: .85rem; font-weight: 600; margin: 0; min-height: 0; }
.error-msg:empty { display: none; }
.hint { font-size: .83rem; color: var(--muted); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: .8rem; padding: 0; color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.checks { display: grid; gap: .5rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--clay); margin-top: .22rem; flex: none; }
.check-privacy { font-weight: 400; font-size: .95rem; }
.field.has-error .check-privacy { color: var(--busy); }

.registro-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.8rem; align-items: start; padding-bottom: 4rem; }
.form-card { padding: 2rem; }
.form-alert { background: var(--busy-soft); color: var(--busy); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: 1.2rem; font-weight: 600; }
.form-success { padding: 2.5rem; text-align: center; }
.success-emoji { font-size: 2.6rem; }
.form-success h2 { margin-top: .3rem; }
.form-success .btn-row { justify-content: center; }
.registro-aside { display: grid; gap: 1.2rem; position: sticky; top: 88px; }
.aside-card { padding: 1.4rem; }
.aside-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.aside-note { background: var(--clay-soft); box-shadow: none; border: 1px solid #EBD2C3; }
.aside-note p { margin: 0; font-size: .93rem; color: #4E4A44; }

.photo-row { display: flex; gap: 1.2rem; align-items: center; }
.photo-preview { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); border: 1px 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; }
.visually-hidden-file:focus-visible + .btn-link, label.btn:focus-within { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Interruptor */
.switch-row { position: relative; display: flex; align-items: center; gap: .7rem; cursor: pointer; font-weight: 600; margin: .4rem 0 1.1rem; user-select: none; min-height: 44px; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 46px; height: 26px; background: var(--line-strong); border-radius: 999px; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--card); border-radius: 50%; box-shadow: 0 1px 3px rgba(28, 36, 48, .25); transition: transform .2s; }
.switch-input:checked + .switch { background: var(--free); }
.switch-input:checked + .switch::after { transform: translateX(20px); }
.switch-input:focus-visible + .switch { outline: 2px solid var(--clay); outline-offset: 3px; }
.switch-row.big .switch { width: 62px; height: 34px; }
.switch-row.big .switch::after { width: 28px; height: 28px; }
.switch-row.big .switch-input:checked + .switch::after { transform: translateX(28px); }
.switch-row.big .switch-input:not(:checked) + .switch { background: var(--busy); }
.switch-row.big { font-size: 1.05rem; margin: 0; }

/* ---------- Mi perfil ---------- */
.access-card, .profile-card { padding: 1.8rem; margin-bottom: 1.5rem; }
.inline-field { display: flex; gap: .6rem; margin: .5rem 0; }
.profile-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 180px; }
.profile-id h2 { margin: 0; }
.profile-id p { margin: 0; }
.availability-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--paper); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.4rem 0; flex-wrap: wrap; }
.availability-toggle h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.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: 600; 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: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .95rem; min-height: 40px; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--clay); color: var(--clay); }

/* ---------- Pie ---------- */
.site-footer { background: var(--paper-deep); color: var(--ink); padding: 3rem 0 1.2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--clay); text-decoration: underline; }
.site-footer .muted { color: #555E57; }
.site-footer h3 { color: var(--ink); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.logo-footer { color: var(--ink); margin-bottom: .6rem; }
.site-footer .logo-footer:hover { text-decoration: none; color: var(--ink); }
.footer-bottom { border-top: 1px solid #D8CCB8; margin-top: 2rem; padding-top: 1.1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--card); padding: .8rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 90; font-weight: 600; max-width: calc(100% - 2rem); text-align: center; }
.noscript { background: var(--ochre-soft); color: var(--ochre); padding: 1rem; text-align: center; font-weight: 600; }

/* ---------- Legal ---------- */
.legal { padding: 3rem 0 4rem; }
.legal section { background: var(--card); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.legal .placeholder-note { background: var(--ochre-soft); color: var(--ochre); border: 1px dashed #C9A85A; padding: .8rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3rem; 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.2rem; }
  .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; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .1rem;
    background: var(--paper); padding: .8rem 1.25rem 1.3rem; border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -18px rgba(28, 36, 48, .35);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .8rem .2rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin: .8rem 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); }
  .how-grid, .split-cta { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .safety { flex-direction: column; padding: 1.5rem; }
}
@media (max-width: 520px) {
  .container, .container.narrow { width: calc(100% - 2.5rem); }
  .hero-inner { padding: 2.5rem 0 2.5rem; }
  .hero h1 { font-size: 2.55rem; }
  .eyebrow { font-size: .78rem; letter-spacing: .1em; }
  .page-hero { padding: 2.6rem 0 1.8rem; }
  .hero-ctas .btn { flex: 1; }
  .quick-search { border-radius: var(--radius); flex-direction: column; }
  .quick-search select { min-height: 44px; }
  .hero-visual { padding: 1rem 1rem .25rem; }
  .preview-card small { font-size: .8rem; }
  .form-card, .how-col, .access-card, .profile-card { padding: 1.3rem; }
  .sitter-card { padding: 1.1rem 1.1rem 1.1rem 1.15rem; }
  .inline-field { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats li { padding: 1.3rem .6rem; }
  .stats strong { font-size: 1.9rem; }
  .logo-text { font-size: 1.3rem; }
  .cta-box { padding: 1.5rem; }
  .legal section { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Modo demo / Supabase y autenticación ===== */
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; }
.access-title { font-size: 1.5rem; margin: 0 0 1rem; }
.access-card .field input { width: 100%; }
.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: .9rem; font-weight: 600; margin: .4rem 0; }
.form-note { background: var(--clay-soft); color: var(--clay-dark); border-radius: var(--radius-sm); padding: .8rem 1rem; margin: 0 0 1.2rem; font-weight: 600; }
.btn[disabled], .btn-link[disabled] { opacity: .65; cursor: progress; }
.notice-bar { background: var(--ochre-soft); border-bottom: 1px solid #E8D9B3; color: var(--ochre); 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; color: var(--muted); }
