/* ==========================================================================
   Crew91 — sistema de diseño
   --------------------------------------------------------------------------
   Registro visual: aviación privada de gama alta. Blanco cálido, tinta casi
   negra, un azul de cielo muy contenido y ámbar de luces de pista para lo
   que está vivo. Tipografía neo-grotesca enorme, mucho aire, reglas finas,
   esquinas suaves y cristal translúcido sólo donde aporta (la navegación).

   Este archivo lo comparten todas las páginas. La portada cinematográfica
   añade encima assets/css/home.css.
   ========================================================================== */

/* ---------- tipografía autoalojada (SIL OFL, ver assets/fonts) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  /* --- superficies claras --- */
  --paper:   #f5f4f0;
  --paper-2: #edebe5;
  --paper-3: #e2dfd7;
  --white:   #ffffff;

  /* --- tinta --- */
  --ink:    #0b0d10;
  --ink-2:  #2c3137;
  --muted:  #5c636b;
  --faint:  #7c838b;

  /* --- reglas --- */
  --line:        rgba(11, 13, 16, .12);
  --line-soft:   rgba(11, 13, 16, .07);
  --line-strong: rgba(11, 13, 16, .24);

  /* --- acentos --- */
  --sky:   #dbe7f2;
  --sky-2: #b9cfe3;
  --accent:      #2d5d8c;
  --accent-soft: rgba(45, 93, 140, .08);
  --accent-line: rgba(45, 93, 140, .28);

  --signal:      #a86d16;           /* ámbar: avisos, lo que está pasando */
  --signal-soft: rgba(184, 122, 30, .11);
  --signal-line: rgba(184, 122, 30, .32);

  --green:      #237050;
  --green-soft: rgba(35, 112, 80, .09);
  --green-line: rgba(35, 112, 80, .28);
  --red:        #b2403a;
  --red-soft:   rgba(178, 64, 58, .08);

  --alt:      #5f6a76;
  --alt-soft: rgba(95, 106, 118, .09);
  --alt-line: rgba(95, 106, 118, .26);

  /* --- noche: escenas oscuras y pie --- */
  --night:       #06080b;
  --night-2:     #0c1015;
  --night-3:     #151a21;
  --night-line:  rgba(255, 255, 255, .1);
  --night-text:  #f2f4f6;
  --night-muted: #9aa3ad;
  --ice:   #a9c9e8;
  --amber: #f2b24c;
  --mint:  #6fd3a0;

  /* --- geometría --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 13, 16, .05), 0 2px 10px rgba(11, 13, 16, .04);
  --shadow:    0 1px 2px rgba(11, 13, 16, .04), 0 14px 36px rgba(11, 13, 16, .08);
  --shadow-lg: 0 2px 6px rgba(11, 13, 16, .05), 0 34px 90px rgba(11, 13, 16, .14);

  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --serif: var(--sans);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 62px;
  --header-top: 14px;
  --header-space: calc(var(--header-h) + var(--header-top) * 2);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-space) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg, picture, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul[class], ol[class] { list-style: none; padding: 0; }

::selection { background: var(--ink); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- utilidades ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hide { display: none !important; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: .9rem;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- tipografía ---------- */
h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.045em; line-height: .96; }
h2 { font-size: clamp(2.15rem, 4.6vw, 4.4rem); letter-spacing: -.04em; line-height: 1; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); letter-spacing: -.02em; line-height: 1.2; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 450;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .5;
  flex: none;
}

.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 56ch; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }

/* ---------- cabecera: cápsula de cristal flotante ---------- */
.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0; right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: var(--gutter);
  pointer-events: none;
  flex: none;
}
.nav-shell {
  pointer-events: auto;
  position: relative;
  width: min(100%, 1180px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 9px 0 22px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .64);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 34px rgba(11, 13, 16, .08);
  transition:
    width .6s var(--ease), height .45s var(--ease),
    background-color .45s, border-color .45s, box-shadow .45s, color .45s;
}
.site-header.is-compact .nav-shell { width: min(100%, 1010px); height: 54px; }
.site-header.is-dark .nav-shell {
  background: rgba(14, 18, 24, .5);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 34px rgba(0, 0, 0, .3);
  color: var(--night-text);
}

.brand { display: flex; align-items: center; flex: none; position: relative; }
.brand-logo { height: 30px; width: auto; flex: none; transition: opacity .35s; }
.brand-logo--claro { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
.site-header.is-dark .brand-logo--tinta { opacity: 0; }
.site-header.is-dark .brand-logo--claro { opacity: 1; }
.site-footer .brand-logo { height: 40px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px;
  font-size: .9rem;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color .2s, background-color .2s;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(11, 13, 16, .05); }
.nav a.is-active { color: var(--ink); background: rgba(11, 13, 16, .065); }
.nav a.btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--ink); }
.site-header.is-dark .nav a { color: rgba(242, 244, 246, .78); }
.site-header.is-dark .nav a:hover,
.site-header.is-dark .nav a.is-active { color: #fff; background: rgba(255, 255, 255, .08); }
.site-header.is-dark .nav a.btn-primary { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; margin-inline: auto;
  position: relative; transition: transform .3s var(--ease);
}
.nav-toggle span { transform: translateY(-3px); }
.nav-toggle span::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------- selector de idioma ---------- */
.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(11, 13, 16, .05);
}
.lang-switch button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--faint);
  transition: background-color .2s, color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.site-header.is-dark .lang-switch { background: rgba(255, 255, 255, .08); }
.site-header.is-dark .lang-switch button { color: rgba(242, 244, 246, .55); }
.site-header.is-dark .lang-switch button.is-active { background: rgba(255, 255, 255, .92); color: var(--ink); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: -.005em;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform .35s var(--ease), box-shadow .35s var(--ease),
    background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #20252b; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11, 13, 16, .18); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-soft { background: var(--white); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-soft:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.btn-glass {
  background: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-color: rgba(255, 255, 255, .72);
  color: var(--ink);
}
.btn-glass:hover { background: rgba(255, 255, 255, .72); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef1f4; transform: translateY(-1px); }
.btn-line-light { background: transparent; border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-line-light:hover { border-color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .flecha { transition: transform .35s var(--ease); }
.btn:hover .flecha { transform: translateX(3px); }

/* ---------- secciones y cabeceras de página ---------- */
main { flex: 1 0 auto; }

.section { padding: clamp(80px, 11vw, 160px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-top: 20px; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

.page-head {
  padding: calc(var(--header-space) + clamp(36px, 6vw, 84px)) 0 clamp(30px, 4vw, 46px);
  background:
    radial-gradient(1100px 460px at 88% -20%, rgba(185, 207, 227, .55), transparent 62%),
    var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); margin-top: 18px; max-width: 17ch; }
.page-head p { margin-top: 18px; color: var(--muted); max-width: 64ch; font-size: 1.06rem; }

/* ---------- retícula de tarjetas ---------- */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.card .num {
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .16em;
  color: var(--muted);
  display: block; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }

.icon-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--ink);
  margin-bottom: 20px;
}
.icon-box.alt { color: var(--alt); }
.icon-box svg { width: 20px; height: 20px; }

/* ---------- buscador / directorio ---------- */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.search-input { position: relative; flex: 1 1 340px; min-width: 0; max-width: 720px; }
.search-input svg {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--faint); pointer-events: none;
}
.search-input input {
  width: 100%;
  height: 58px;
  padding: 0 20px 0 50px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.search-input input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgba(11, 13, 16, .06); }
.search-input input::placeholder { color: var(--faint); }

.directory {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 44px;
  padding: 36px 0 110px;
  align-items: start;
}

/* filtros */
.filters {
  position: sticky;
  top: calc(var(--header-space) + 10px);
  max-height: calc(100vh - var(--header-space) - 30px);
  overflow-y: auto;
  padding-right: 6px;
}
.filters::-webkit-scrollbar { width: 5px; }
.filters::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: 4px; }

.filters-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.filters-head b {
  font-size: .72rem; font-family: var(--mono);
  letter-spacing: .16em; text-transform: uppercase; font-weight: 450;
  color: var(--muted);
}
.filters-head button {
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: .84rem; padding: 2px 0;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.filters-head button:hover { text-decoration-color: var(--ink); }

.fgroup { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.fgroup:last-child { border-bottom: 0; }
.fgroup-title { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.fopts { display: flex; flex-direction: column; gap: 11px; }

.check { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 17px; height: 17px; flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 5px;
  background: var(--white);
  display: grid; place-items: center;
  transition: background-color .15s, border-color .15s;
}
.check .box::after {
  content: ""; width: 8px; height: 4px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff;
  transform: rotate(-45deg) scale(0); transform-origin: center;
  margin-top: -2px;
  transition: transform .15s;
}
.check input:checked + .box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check:hover { color: var(--ink); }
.check .count { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--faint); }

select, .input {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .9rem;
}
select:focus, .input:focus { border-color: var(--ink); outline: none; }
select { cursor: pointer; }

input[type="range"] {
  width: 100%; height: 3px; -webkit-appearance: none; appearance: none;
  background: var(--paper-3); border-radius: 3px; cursor: pointer; margin: 14px 0 6px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(11, 13, 16, .3); cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff;
  background: var(--ink); box-shadow: 0 1px 4px rgba(11, 13, 16, .3); cursor: pointer;
}
.range-value { font-family: var(--mono); font-size: .8rem; color: var(--ink); }

/* barra de resultados */
.results-bar {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px;
}
.results-count { font-size: .92rem; color: var(--muted); }
.results-count b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.results-bar .sort { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.results-bar .sort label { font-size: .84rem; color: var(--muted); }
.results-bar .sort select { width: auto; padding: 8px 12px; border-radius: var(--r-pill); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: .8rem; color: var(--ink);
}
.chip button {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper-2); border: 0; color: inherit; cursor: pointer;
  font-size: .9rem; line-height: 1; padding: 0;
}
.chip button:hover { background: var(--paper-3); }

.filters-mobile-btn { display: none; }
.filters-apply { display: none; }

/* ---------- lista de resultados ---------- */
.results { display: block; }
.results:has(.pcard) {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.pcard {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 26px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background-color .2s;
}
.pcard:last-child { border-bottom: 0; }
.pcard:hover { background: #fafaf7; }

.avatar {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 500; font-size: .86rem;
  background: var(--paper-2);
  color: var(--ink);
  flex: none;
}
.avatar.alt { background: var(--sky); color: var(--accent); }
.avatar svg { width: 20px; height: 20px; }

.pcard-main { min-width: 0; }
.pcard-name {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em;
}
.pcard-sub { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.pcard-sub .dot { opacity: .45; margin: 0 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .02em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid transparent;
}
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.alt    { background: var(--alt-soft);    color: var(--alt); }
.tag.green  { background: var(--green-soft);  color: var(--green); }

.badge-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.badge-verified svg { width: 10px; height: 10px; }

.badge-urgent {
  display: inline-flex; align-items: center;
  font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--signal);
  background: var(--signal-soft);
  padding: 3px 9px; border-radius: var(--r-pill);
}

.pcard-side {
  text-align: right;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  flex: none;
}
.pcard-hours { font-family: var(--mono); font-size: 1.2rem; font-weight: 500; letter-spacing: -.02em; }
.pcard-hours small {
  font-size: .6rem; color: var(--faint); display: block;
  font-weight: 400; letter-spacing: .16em; margin-top: 2px;
}
.pcard-rate { font-size: .82rem; color: var(--muted); font-family: var(--mono); }

.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.status-dot.on   { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.status-dot.soon { background: var(--signal); }
.status-dot.off  { background: var(--faint); }

/* ---------- vacío ---------- */
.empty {
  text-align: center;
  padding: 90px 24px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.empty svg { width: 42px; height: 42px; margin: 0 auto 20px; color: var(--faint); }
.empty h3 { color: var(--ink); margin-bottom: 8px; font-size: 1.4rem; }

/* ---------- modal de detalle ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(11, 13, 16, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--white);
  border-radius: var(--r-lg);
  width: min(700px, 100%);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.985);
  transition: transform .45s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-box::-webkit-scrollbar { width: 7px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--paper-3); border-radius: 4px; }

.modal-head {
  position: sticky; top: 0;
  display: flex; align-items: flex-start; gap: 18px;
  padding: 28px 30px 22px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  z-index: 2;
}
.modal-head .pcard-name { font-size: 1.4rem; font-weight: 500; letter-spacing: -.025em; }
.modal-close {
  margin-left: auto; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--paper-2); border: 0;
  cursor: pointer; font-size: 1.15rem; line-height: 1;
  color: var(--ink-2);
  transition: background-color .2s;
}
.modal-close:hover { background: var(--paper-3); color: var(--ink); }
/* "Cerrar" del pie es un botón normal: no hereda el círculo de la ×. */
.modal-foot .btn.modal-close { width: auto; height: auto; font-size: .95rem; line-height: 1.1; color: var(--ink); background: transparent; border: 1px solid var(--line-strong); }
.modal-body { padding: 26px 30px 32px; }
.modal-foot {
  position: sticky; bottom: 0;
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 16px 30px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-soft);
}

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 22px; }
.kv > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.kv dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 4px;
}
.kv dd { margin: 0; font-size: .95rem; }

.modal h4 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  font-weight: 450;
  margin: 30px 0 14px;
}
.modal p { color: var(--ink-2); font-size: .96rem; }

/* ---------- formularios ---------- */
.form-shell { max-width: 780px; margin-inline: auto; padding: 52px 0 110px; }

.tabs {
  display: flex;
  padding: 5px;
  gap: 4px;
  background: var(--paper-2);
  border-radius: var(--r-pill);
  margin-bottom: 30px;
}
.tabs button {
  flex: 1; padding: 13px; border: 0; cursor: pointer;
  border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.fieldset { border: 0; padding: 0; margin: 0 0 38px; }
.fieldset:last-of-type { margin-bottom: 26px; }
.fieldset legend {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  font-weight: 450;
  padding: 0 0 14px;
  margin-bottom: 22px;
  width: 100%;
  border-bottom: 1px solid var(--line-soft);
}
.frow { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 18px; margin-bottom: 18px; }
.frow:last-child { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-size: .88rem; color: var(--ink-2); font-weight: 500; }
.field > label .req { color: var(--signal); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .95rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); outline: none; background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 13, 16, .05);
}
.field textarea { resize: vertical; min-height: 116px; }
.field .hint { font-size: .8rem; color: var(--faint); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); background: var(--red-soft); }
.field.invalid .pillbox {
  border: 1px solid var(--red);
  border-radius: var(--r-sm);
  padding: 8px;
}
.field .err { font-size: .8rem; color: var(--red); display: none; }
.field.invalid .err { display: block; }

.pillbox { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative;
  cursor: pointer;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-pill);
  font-size: .88rem; color: var(--ink-2);
  transition: background-color .2s, border-color .2s, color .2s;
}
.pill:hover { border-color: var(--line-strong); }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-note {
  display: flex; gap: 13px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  font-size: .9rem; color: var(--ink-2);
  margin-bottom: 28px;
}
.form-note svg { width: 18px; height: 18px; flex: none; color: var(--muted); margin-top: 3px; }

.form-status { margin-top: 20px; padding: 15px 18px; border-radius: var(--r-sm); font-size: .92rem; display: none; }
.form-status.ok  { display: block; background: var(--green-soft); color: var(--green); }
.form-status.err { display: block; background: var(--red-soft); color: var(--red); }

/* ---------- calendario de disponibilidad ---------- */
.cal {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  padding: 16px 18px 14px;
  max-width: 340px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.cal-month { font-size: .92rem; font-weight: 600; text-transform: capitalize; }
.cal-nav {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 1rem; line-height: 1;
}
.cal-nav:hover:not(:disabled) { background: var(--paper-3); color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  padding: 14px 0 12px;
}
.cal-dow {
  text-align: center;
  font-family: var(--mono);
  font-size: .64rem; letter-spacing: .1em;
  color: var(--faint);
  padding-bottom: 6px;
}
.cal-cell {
  aspect-ratio: 1;
  display: grid; place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: .78rem;
  cursor: pointer;
  padding: 0;
  transition: background-color .15s, border-color .15s, color .15s;
}
button.cal-cell:hover { border-color: var(--line-strong); color: var(--ink); }
.cal-cell.is-empty { cursor: default; }
.cal-cell.is-past { color: var(--paper-3); cursor: default; }
.cal-cell.is-today { border-color: var(--line-strong); }
.cal-cell.is-on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cal-ro .cal-cell { cursor: default; }

.cal-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--muted);
}
.cal-clear {
  background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: .8rem; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.cal-ro { background: var(--paper); padding: 14px 16px 12px; }

/* ---------- aviso de registro ---------- */
.gate-banner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 14px 14px 14px 20px;
  margin-bottom: 22px;
  font-size: .92rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.gate-banner b { color: var(--ink); font-weight: 600; }
.gate-banner .btn { margin-left: auto; }

.gate-box { text-align: center; padding: 8px 4px 4px; }
.gate-box .icon-box { margin: 0 auto 22px; }
.gate-box h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.03em; margin-bottom: 12px; }
.gate-box p { color: var(--muted); font-size: .98rem; max-width: 46ch; margin: 0 auto; }
.gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.gate-note { margin-top: 20px; font-size: .86rem; color: var(--muted); }

.gate-id {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--muted);
}
.gate-id .status-dot { background: var(--green); }
.gate-id button {
  background: none; border: 0; cursor: pointer;
  color: var(--muted); font-size: .8rem; padding: 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.gate-id button:hover { color: var(--ink); }

/* ---------- preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 28px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -.015em;
  line-height: 1.3;
  list-style: none;
  display: flex; align-items: center; gap: 24px;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat,
    var(--paper-2);
  transition: transform .45s var(--ease), background-color .2s;
}
.faq summary:hover::after { background-color: var(--paper-3); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .faq-body { padding: 0 64px 30px 0; color: var(--ink-2); font-size: 1rem; max-width: 72ch; }
.faq .faq-body p + p { margin-top: 12px; }
.faq .faq-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- aviso legal ---------- */
.legal-note {
  display: flex; gap: 22px;
  padding: 34px clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
}
.legal-note svg { width: 22px; height: 22px; color: var(--muted); flex: none; margin-top: 3px; }
.legal-note p { color: var(--ink-2); font-size: .95rem; max-width: 82ch; }
.legal-note p + p { margin-top: 12px; }
.legal-note strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA (páginas interiores) ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(58px, 8vw, 96px) 30px;
  border-radius: var(--r-lg);
  background: var(--night);
  color: var(--night-text);
}
.cta p { margin: 18px auto 0; max-width: 54ch; color: var(--night-muted); }
.cta .hero-cta { justify-content: center; }

/* ---------- pie ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-text);
  padding: clamp(72px, 9vw, 120px) 0 36px;
  flex: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--night-line);
}
.footer-grid p { color: var(--night-muted); font-size: .92rem; margin-top: 22px; max-width: 42ch; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--night-muted);
  font-weight: 450;
  margin-bottom: 18px;
}
.footer-col a { display: block; color: rgba(242, 244, 246, .82); font-size: .94rem; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding-top: 28px;
  font-size: .82rem; color: var(--night-muted);
}
.footer-bottom .socials { margin-left: auto; display: flex; gap: 8px; }
.footer-bottom .socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: rgba(242, 244, 246, .8);
  transition: background-color .2s, color .2s;
}
.footer-bottom .socials a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- promoción de lanzamiento ---------- */
.promo {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px;
  margin-bottom: 26px;
  background: var(--signal-soft);
  border: 1px solid var(--signal-line);
  border-radius: var(--r);
}
.promo-icon svg { width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.promo-tag {
  display: block; margin-bottom: 4px;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--signal);
}
.promo p { font-size: .94rem; color: var(--ink-2); }
.promo p b { color: var(--ink); font-weight: 600; }
.promo-short {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin: 0 0 14px; font-size: .86rem; color: var(--signal);
}
.promo-short svg { width: 16px; height: 16px; flex: none; }

/* ---------- muro de los buscadores (sin cuenta) ---------- */
.dir-bloqueado .searchbar,
.dir-bloqueado .filters,
.dir-bloqueado .filters-apply,
.dir-bloqueado #gate-banner,
.dir-bloqueado .results-bar,
.dir-bloqueado .chips,
.dir-bloqueado [data-demo] { display: none !important; }
.dir-bloqueado .directory { grid-template-columns: minmax(0, 1fr); }
.gate-wall {
  max-width: 640px; margin: 0 auto;
  padding: 48px 36px 36px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.gate-wall .promo { margin: 30px 0 0; text-align: left; }

/* ---------- comparativa ---------- */
.cmp-wrap {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cmp { width: 100%; border-collapse: collapse; font-size: .96rem; }
.cmp th, .cmp td {
  padding: 22px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.cmp thead th, .cmp thead td {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 450;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 20px; padding-bottom: 20px;
}
.cmp tbody th { width: 24%; font-weight: 600; color: var(--ink); }
.cmp td { color: var(--muted); }
.cmp .cmp-us { background: rgba(219, 231, 242, .45); color: var(--ink); }
.cmp thead .cmp-us { color: var(--ink); font-weight: 600; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-col { display: none; }
.cmp-note { margin-top: 16px; font-size: .84rem; color: var(--faint); }

/* El selector de fecha del filtro, con el calendario nativo en tono claro. */
.fgroup input[type="date"] { color-scheme: light; font-family: inherit; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 10px; }
}

@media (max-width: 980px) {
  .directory { grid-template-columns: 1fr; gap: 0; }
  .filters {
    position: fixed; inset: 0; z-index: 90;
    max-height: none;
    background: var(--paper);
    padding: calc(var(--header-space) + 6px) 24px 110px;
    overflow-y: auto;
    display: none;
  }
  .filters.open { display: block; }
  .filters-mobile-btn { display: inline-flex; }
  .filters.open + .filters-apply {
    display: flex;
    position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 91;
  }
}

@media (max-width: 900px) {
  .nav-shell { padding: 0 6px 0 18px; gap: 10px; }
  .nav {
    position: absolute;
    top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: var(--shadow-lg);
    color: var(--ink);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1rem; border-radius: 14px; }
  .nav a.btn { margin: 8px 0 0; }
  .site-header.is-dark .nav { background: rgba(16, 20, 26, .94); border-color: rgba(255, 255, 255, .1); }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; }
  .site-header.is-compact .nav-shell { width: 100%; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .brand-logo { height: 26px; }
  .pcard { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .pcard .avatar { width: 44px; height: 44px; border-radius: 14px; font-size: .8rem; }
  .pcard-side { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 16px; text-align: left; }
  .pcard-hours small { display: inline; margin-left: 6px; }
  .card { padding: 28px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .faq .faq-body { padding-right: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tbody tr { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { width: auto; padding: 20px 20px 6px; border: 0; }
  .cmp td { padding: 8px 20px; border: 0; }
  .cmp td.cmp-us { margin-top: 6px; padding: 12px 20px; }
  .cmp-col {
    display: block;
    margin-bottom: 3px;
    font-family: var(--mono);
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--faint);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .site-footer, .filters, .hero-cta, .modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Mi perfil ---------- */
.mp { max-width: 860px; margin: 0 auto; padding-bottom: 80px; display: grid; gap: 28px; }
.mp > .form-status { margin: 0; }
.mp-cargando, .mp-vacio-chico p { color: var(--muted); }
.mp-vacio { padding: 40px 0; }
.mp-bloque { display: grid; gap: 16px; }
.mp-bloque-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mp-bloque-cab h2 { margin: 0; font-size: 1.35rem; }
.mp-cuenta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border: 1px solid var(--line-soft); border-radius: var(--r-md, 14px); background: var(--surface, #fff); }
.mp-cuenta p { margin: 4px 0 0; overflow-wrap: anywhere; }
.mp-tarjeta { padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--r-md, 14px); background: var(--surface, #fff); display: grid; gap: 14px; }
.mp-tarjeta-cab { display: flex; align-items: center; gap: 14px; }
.mp-tarjeta-cab > div { flex: 1; min-width: 0; }
.mp-meta { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.mp-estado { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 99px; white-space: nowrap; background: var(--line-soft); color: var(--muted); }
.mp-estado.on { background: var(--green-soft); color: var(--green); }
.mp-estado.covered { background: var(--sky); color: var(--accent); }
.mp-nota { margin: 0; font-size: .88rem; color: var(--muted); }
.mp-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-vacio-chico { padding: 18px 22px; border: 1px dashed var(--line-soft); border-radius: var(--r-md, 14px); display: grid; gap: 12px; justify-items: start; }
.mp-vacio-chico p { margin: 0; }
@media (max-width: 560px) { .mp-tarjeta-cab { flex-wrap: wrap; } }

/* ---------- Lista de aviones (tipos-aviones.js) ---------- */
.tp { position: relative; }
.tp-campo {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 48px; padding: 6px 40px 6px 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: text; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.tp.abierto .tp-campo, .tp-campo:focus-within {
  border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(11, 13, 16, .05);
}
.tp-chips { display: contents; }
.field .tp-campo input.tp-buscar {
  flex: 1 1 160px; min-width: 120px; width: auto; padding: 7px 7px; border: 0; background: transparent; box-shadow: none;
}
.tp-unico .tp-campo { padding-left: 8px; }
.tp-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px;
  border-radius: 99px; background: var(--ink); color: var(--white);
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.tp-chip button {
  width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: inherit;
  font-size: .9rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.tp-chip button:hover { background: rgba(255,255,255,.3); }
.tp-abrir {
  position: absolute; right: 8px; top: 24px; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: transform .2s;
}
.tp.abierto .tp-abrir { transform: translateY(-50%) rotate(180deg); }
.tp-lista {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 320px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 18px 40px -12px rgba(11, 13, 16, .22); padding: 6px;
}
.tp-grupo {
  position: sticky; top: -6px; z-index: 1; background: var(--white);
  padding: 10px 10px 6px; font-family: var(--mono, ui-monospace, monospace);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.tp-op {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem;
}
.tp-op strong { font-weight: 500; }
.tp-op:hover, .tp-op.activo { background: var(--paper); }
.tp-op.on strong { font-weight: 650; }
.tp-check { color: var(--green); font-weight: 700; text-align: center; }
.tp-cod { font-family: var(--mono, ui-monospace, monospace); font-size: .78rem; color: var(--muted); white-space: nowrap; }
.tp-libre { grid-template-columns: 1fr; color: var(--accent); font-weight: 500; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.tp-vacio { padding: 14px 10px; color: var(--muted); font-size: .9rem; }

/* ---------- Registro terminado ---------- */
.reg-listo { text-align: left; display: grid; gap: 14px; justify-items: start; padding: clamp(28px, 5vw, 48px); outline: none; }
.reg-listo h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.02em; }
.reg-listo > p { margin: 0; color: var(--ink-2); max-width: 56ch; }
.reg-listo-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--accent); }
.reg-listo-ico.ok { background: var(--green-soft); color: var(--green); }
.reg-listo-pasos { margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 10px; }
.reg-listo-pasos li { counter-increment: paso; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.reg-listo-pasos li::before {
  content: counter(paso); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-size: .8rem; font-weight: 600;
}
.reg-listo-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.reg-listo-nota { margin: 0; font-size: .86rem; color: var(--muted); }
.reg-listo-nota a { color: inherit; text-decoration: underline; }

/* ---------- Aviso "confirma tu correo" en todas las páginas ---------- */
.aviso-confirmar { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; animation: aviso-sube .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes aviso-sube { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .aviso-confirmar { animation: none; } }
.aviso-confirmar-in {
  max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 18px; border-radius: var(--r-md, 14px);
  background: #fff7e6; border: 1px solid #f0d9a8; color: #5a4310; font-size: .9rem;
  box-shadow: 0 10px 30px -18px rgba(90, 67, 16, .5);
}
.aviso-confirmar-in p { margin: 0; flex: 1 1 260px; }
.aviso-confirmar-ico { font-size: 1.1rem; }
.aviso-confirmar-ya { color: inherit; text-decoration: underline; font-size: .85rem; white-space: nowrap; }
.aviso-confirmar-x { border: 0; background: none; font-size: 1.3rem; line-height: 1; color: inherit; cursor: pointer; padding: 4px 6px; opacity: .6; }
.aviso-confirmar-x:hover { opacity: 1; }

/* ---------- Panel de administración ---------- */
.adm { max-width: 980px; }
.adm-filtros { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-filtros .pill { border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 8px 14px; cursor: pointer; font: inherit; font-size: .88rem; }
.adm-filtros .pill.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.adm-filtros .btn { margin-left: auto; }
.adm-tarjeta .kv dd a { color: var(--accent); overflow-wrap: anywhere; }
.adm-tarjeta .kv dd { white-space: pre-line; }
.adm-gestion { grid-template-columns: 1fr 2fr; margin: 0; }
@media (max-width: 640px) { .adm-gestion { grid-template-columns: 1fr; } .adm-gestion .field { grid-column: auto !important; } }
.adm-ok { align-self: center; font-size: .86rem; color: var(--muted); }
.mp-estado.est-nueva { background: #fff1d6; color: #8a5a00; }
.mp-estado.est-en_curso { background: var(--sky); color: var(--accent); }
.mp-estado.est-cerrada { background: var(--green-soft); color: var(--green); }

/* Botón de administrador en el menú */
.nav a.nav-admin { color: var(--accent); font-weight: 600; }

/* Panel de administración: pestañas y búsqueda */
.adm-vistas { margin-bottom: 4px; }
.adm-buscar { flex: 1 1 220px; min-width: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font: inherit; font-size: .9rem; }
.adm-filtros .adm-buscar + .btn, .adm-filtros .btn { margin-left: auto; }
.mp-verif { padding: 16px 18px; border-radius: var(--r-sm); background: var(--paper); display: grid; gap: 10px; }
.mp-verif.ok { background: var(--green-soft); color: var(--green); font-weight: 600; }
.mp-verif p { margin: 0; font-size: .9rem; }
.mp-verif ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--ink-2); display: grid; gap: 4px; }
