@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/static/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050506;
  --bg-soft: #08090b;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.048);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.065);
  --border-strong: rgba(255, 255, 255, 0.11);
  --text: #e8eaed;
  --muted: #8b929c;
  --faint: #626973;
  --accent: #4a9fe0;
  --accent-2: #79b8e8;
  --accent-soft: rgba(74, 159, 224, 0.11);
  --accent-line: rgba(74, 159, 224, 0.28);
  --danger: #d97b83;
  --warn: #d3a15f;
  --ok: #58b99a;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 26px 58px -50px rgba(0, 0, 0, 0.9);
  --glass: rgba(255, 255, 255, 0.016);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a2c31 var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI Variable", ui-sans-serif,
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

body.has-dialog { overflow: hidden; }
::selection { background: rgba(74, 159, 224, 0.28); color: #fff; }

a { color: var(--accent-2); text-decoration: none; transition: color 0.16s ease; }
a:hover { color: #b6dbf7; }
p { margin: 0 0 10px; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.25; letter-spacing: -0.018em; font-weight: 600; }
h1 { font-size: 1.72rem; }
h2 { font-size: 1.02rem; }
h3 { font-size: 0.97rem; }
code, .mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84em;
}
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 420px at 12% -12%, rgba(74, 159, 224, 0.095), transparent 62%),
    radial-gradient(700px 380px at 105% 0%, rgba(110, 120, 200, 0.055), transparent 60%),
    radial-gradient(900px 600px at 50% 115%, rgba(74, 159, 224, 0.045), transparent 65%),
    var(--bg);
}

/* ------------------------------------------------------------ carga inicial */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #040405;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-center { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.boot-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #cfe5f7;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.boot-name {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.boot-track {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}
.boot-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(74, 159, 224, 0.55), var(--accent-2));
  box-shadow: 0 0 14px rgba(74, 159, 224, 0.65);
  transition: width 0.28s ease;
}

/* --------------------------------------------------------------- encabezado */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

.starfield { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.starfield .star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--r);
  height: var(--r);
  border-radius: 50%;
  background: var(--tint, rgba(255, 255, 255, 0.9));
  opacity: 0.04;
  animation: star-twinkle var(--dur, 9s) ease-in-out var(--delay, 0s) infinite;
  will-change: opacity;
}
@keyframes star-twinkle {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
  .starfield .star { animation-duration: calc(var(--dur, 9s) * 2); }
}

.topbar-inner {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: #cfe5f7;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-strong);
  flex: none;
}
.brand-text { color: var(--faint); font-size: 0.95rem; white-space: nowrap; }
.brand-text strong { color: var(--text); font-weight: 600; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(88, 185, 154, 0.12);
}

/* ---------------------------------------------------------------- pestañas */
.tabs {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { height: 0; }
.tabs-track {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: max-content;
  min-width: 100%;
  padding-bottom: 8px;
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.16s ease, background 0.16s ease;
}
.tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.tab:hover { color: #c9cdd3; background: rgba(255, 255, 255, 0.035); }
.tab.active {
  color: #eaf4fc;
  background: linear-gradient(180deg, rgba(74, 159, 224, 0.22), rgba(74, 159, 224, 0.1));
  border-color: rgba(74, 159, 224, 0.22);
}
.tab.active svg { color: var(--accent-2); opacity: 1; }
.tab:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }

/* ------------------------------------------------------------------ layout */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 22px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tab-panel { display: flex; flex-direction: column; gap: 22px; animation: panel-in 0.32s ease; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; max-width: 720px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.65rem;
  font-weight: 600;
  color: #6ea6cc;
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.card-grid--services { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }

.card {
  position: relative;
  isolation: isolate;
  background: var(--glass);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  transition: background-color 0.3s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, 50%) var(--my, 0%),
    rgba(126, 193, 244, 0.15),
    rgba(126, 193, 244, 0) 68%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card.is-glowing { background-color: rgba(255, 255, 255, 0.026); }
.card.is-glowing::after { opacity: 1; }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: #d9dde2;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:hover { background: rgba(255, 255, 255, 0.065); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: rgba(74, 159, 224, 0.13);
  border-color: rgba(74, 159, 224, 0.3);
  color: #bcdcf3;
}
.btn-primary:hover {
  background: rgba(74, 159, 224, 0.19);
  border-color: rgba(74, 159, 224, 0.42);
  color: #e2f2fd;
}
.btn-soft { background: rgba(74, 159, 224, 0.1); border-color: rgba(74, 159, 224, 0.24); color: #a9d3ef; }
.btn-soft:hover { background: rgba(74, 159, 224, 0.16); color: #e2f2fd; }
.btn-ghost { background: rgba(255, 255, 255, 0.025); color: #c3c9d0; }
.btn-sm { padding: 6px 11px; font-size: 0.78rem; border-radius: 9px; }
.btn-sm svg { width: 14px; height: 14px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s ease;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ---------------------------------------------------------- tarjeta servicio */
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, background-color 0.3s ease;
}
.service-card:hover { transform: translateY(-2px); }
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c10;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card__media--plain {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(74, 159, 224, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
}
.service-card__media--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(75% 75% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000, transparent);
}
.service-card__mark {
  position: relative;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 2.1rem;
  letter-spacing: 0.06em;
  color: rgba(154, 204, 238, 0.55);
}
.service-card__body { padding: 18px 19px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card__title { margin: 0; font-size: 1rem; }
.service-card__text { margin: 0; font-size: 0.845rem; line-height: 1.6; }
.service-card__link {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8ec6ec;
}
.service-card__link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card__link:hover { color: #c4e4f9; }

/* ---------------------------------------------------------- tarjeta de ficha */
.media-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, background-color 0.3s ease;
}
.media-card:hover { transform: translateY(-2px); }
.media-card__media { position: relative; background: #0a0c10; }
.media-card__body {
  padding: 17px 19px 19px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.media-card__title { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.media-card__text {
  margin: 0;
  font-size: 0.845rem;
  line-height: 1.62;
  color: var(--muted);
}
.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.media-card__footer {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.media-card__footer > .btn { margin-left: auto; }
.media-card__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  max-width: calc(100% - 24px);
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dcecf8;
  background: rgba(7, 12, 18, 0.72);
  border: 1px solid rgba(126, 193, 244, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-sheet__body .tag-badge { position: static; display: inline-block; margin-bottom: 10px; }

.price { display: flex; flex-direction: column; line-height: 1.2; }
.price__label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.price__value { font-size: 0.98rem; font-weight: 600; color: #dfe7ee; }
.price__value.is-free,
.price__value.is-reserved,
.price__value.is-soldout {
  align-self: flex-start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.045em;
}
.price__value.is-free {
  color: #8fd8bd;
  background: rgba(88, 185, 154, 0.1);
  border: 1px solid rgba(88, 185, 154, 0.26);
}
.price__value.is-reserved {
  color: #e8a763;
  background: rgba(232, 145, 60, 0.1);
  border: 1px solid rgba(232, 145, 60, 0.28);
}
.price__value.is-soldout {
  color: #9ba2ac;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
}

/* ---------------------------------------------------------------- carrusel */
.carousel { position: relative; }
.carousel__viewport { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0a0c10; }
.carousel__track { display: flex; height: 100%; transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}
.carousel__placeholder {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(130% 120% at 15% 0%, rgba(74, 159, 224, 0.18), transparent 58%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012));
}
.carousel__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.carousel__letter {
  position: relative;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(154, 204, 238, 0.5);
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 9, 13, 0.66);
  color: #dcecf8;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel__nav svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel__nav--prev { left: 10px; }
.carousel__nav--next { right: 10px; }
.media-card:hover .carousel__nav,
.carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: rgba(74, 159, 224, 0.4); }
.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.carousel__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}
.carousel__dot.active { width: 16px; background: #9fd2f2; }
@media (hover: none) {
  .carousel__nav { opacity: 1; }
}

/* ------------------------------------------------------------------ banda */
.cta-band {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(74, 159, 224, 0.09), transparent 60%),
    var(--glass);
}
.cta-band h2 { margin-bottom: 3px; }
.cta-band p { margin: 0; font-size: 0.86rem; }

/* --------------------------------------------------------------- contactos */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 20px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.22s ease, background-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-2px); color: var(--text); }
.contact-card.is-disabled { opacity: 0.6; pointer-events: none; cursor: default; }
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: #a9d3ef;
  background: rgba(74, 159, 224, 0.1);
  border: 1px solid rgba(74, 159, 224, 0.22);
}
.contact-card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-card__label {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #6ea6cc;
}
.contact-card__value {
  font-size: 0.99rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card__hint { font-size: 0.76rem; color: var(--muted); }
.contact-card__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #8ec6ec;
  white-space: nowrap;
}
.contact-card__action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}
.contact-note__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: #8fb6d2;
}
.contact-note__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.contact-note h2 { margin-bottom: 2px; }
.contact-note p { margin: 0; font-size: 0.84rem; }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.008); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand p { margin: 0; }
.footer-brand strong { font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-left: auto; }
.footer-links a { color: var(--muted); font-size: 0.8rem; }
.footer-links a:hover { color: var(--text); }
.footer-meta { margin: 0; color: var(--faint); font-size: 0.76rem; width: 100%; }
.footer-meta a { color: var(--faint); }
.footer-meta a:hover { color: var(--muted); }

/* ------------------------------------------------------------------ vacío */
.empty {
  grid-column: 1 / -1;
  padding: 44px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.empty__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #7f98aa;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty p { margin: 0; font-size: 0.86rem; }

/* --------------------------------------------------------------- esqueletos */
.skeleton-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton--media { aspect-ratio: 16 / 9; border-radius: 11px; }
.skeleton--line { height: 11px; width: 85%; }
.skeleton--line.short { width: 55%; }
.contact-grid .skeleton-card { padding: 22px; }

/* ------------------------------------------------------------------ modal */
.detail-dialog {
  position: fixed;
  inset: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 920px;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  /* Margen superior real: `dvh` sigue a la barra del navegador y `env()`
     respeta el área segura del móvil, así la cabecera nunca se recorta. */
  padding: max(14px, env(safe-area-inset-top)) 0 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.detail-dialog[open] { display: flex; align-items: flex-end; }
.detail-dialog::backdrop {
  background: rgba(1, 2, 3, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.detail-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #0a0b0e;
  box-shadow: 0 -28px 80px -40px rgba(0, 0, 0, 0.95);
  transform: translateY(104%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.detail-dialog.is-visible .detail-sheet { transform: none; }
.detail-sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.014);
  flex: none;
}
.detail-sheet__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.detail-sheet__hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #7f98aa;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-sheet__scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #2a2c31 transparent; }
.detail-media { position: relative; }
.detail-media .carousel__viewport { aspect-ratio: 16 / 8.4; }
.detail-sheet__body { width: 100%; max-width: 780px; margin: 0 auto; padding: 24px 26px 44px; }
.detail-title { font-size: 1.45rem; margin: 0 0 16px; letter-spacing: -0.022em; }
.detail-price { margin: 0 0 16px; }
.detail-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* --------------------------------------------------------------- markdown */
.markdown { font-size: 0.92rem; line-height: 1.72; color: #c9cfd7; overflow-wrap: break-word; }
.markdown > :first-child { margin-top: 0; }
.markdown p { margin: 0 0 15px; }
.markdown h2 { margin: 26px 0 10px; font-size: 1.12rem; color: #eef2f6; }
.markdown h3 { margin: 22px 0 9px; font-size: 1rem; color: #eef2f6; }
.markdown h4 { margin: 20px 0 8px; font-size: 0.94rem; color: #eef2f6; }
.markdown strong { color: #f2f5f8; font-weight: 650; }
.markdown em { color: #dbe3ea; }
.markdown a { color: #8ec6ec; text-decoration: underline; text-decoration-color: rgba(142, 198, 236, 0.32); text-underline-offset: 2px; }
.markdown ul, .markdown ol { margin: 0 0 15px; padding-left: 22px; }
.markdown li { margin-bottom: 5px; }
.markdown li::marker { color: #6ea6cc; }
.markdown blockquote {
  margin: 18px 0;
  padding: 10px 16px;
  border-left: 2px solid rgba(74, 159, 224, 0.45);
  background: rgba(74, 159, 224, 0.05);
  border-radius: 0 10px 10px 0;
  color: #b9c6d2;
}
.markdown code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(126, 193, 244, 0.09);
  border: 1px solid rgba(126, 193, 244, 0.14);
  color: #b7dcf4;
}
.md-code {
  margin: 18px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.34);
}
.md-code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px 7px 14px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}
.md-code__lang {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7fb6e6;
}
.md-code__copy {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
  transition: 0.16s ease;
}
.md-code__copy:hover { color: #dcecf8; background: rgba(74, 159, 224, 0.12); border-color: var(--accent-line); }
.md-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; scrollbar-width: thin; }
.md-code code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: #cfe3f2;
  font-size: 0.79rem;
  line-height: 1.7;
  white-space: pre;
}

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  transform: translate(-50%, 16px);
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: rgba(12, 13, 15, 0.96);
  color: #dbe3ea;
  font-size: 0.82rem;
  box-shadow: 0 24px 50px -24px #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .status-pill { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .page { padding: 22px 14px 46px; gap: 18px; }
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .brand-text { font-size: 0.88rem; }
  .tabs { padding: 0 8px; }
  .tab { padding: 8px 11px; font-size: 0.8rem; gap: 6px; }
  .tab svg { width: 15px; height: 15px; }
  h1 { font-size: 1.34rem; }
  .page-head { align-items: flex-start; }
  .card-grid, .card-grid--services { grid-template-columns: 1fr; }
  .footer-inner { padding: 18px 16px 24px; gap: 12px; }
  .footer-links { margin-left: 0; width: 100%; }
  .cta-band { padding: 18px; }
  .cta-band .btn { width: 100%; }
  .contact-card { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .contact-card__icon { width: 40px; height: 40px; border-radius: 11px; }
  .contact-card__action { grid-column: 2; font-size: 0.74rem; }
  .contact-note { align-items: flex-start; padding: 18px; }
  .detail-dialog { padding: max(10px, env(safe-area-inset-top)) 0 0; }
  .detail-sheet { border-radius: 16px 16px 0 0; }
  .detail-sheet__body { padding: 18px 18px 34px; }
  .detail-title { font-size: 1.2rem; }
  .markdown { font-size: 0.9rem; }
  .detail-media .carousel__viewport { aspect-ratio: 16 / 10; }
  .carousel__nav { opacity: 1; }
}
