/* ==========================================================================
   Universo Celular · Reparación a domicilio en CABA
   Una sola hoja para todas las páginas. Minimalista y al grano (pedido del dueño):
   fondo de color suave y quieto, tarjetas con las fotos de los equipos (como uni-cel.com)
   y el botón de Llamar siempre a mano. Letra Outfit y violeta #5c5cff, los de uni-cel.com.
   Solo modo claro: el dueño sacó el oscuro el 15/10/2026.
   ========================================================================== */

/* Outfit: fuente variable alojada en la web (un archivo cubre todos los pesos). */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fuentes/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: 100 900;
  font-display: swap;
  src: url('fuentes/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;
}

/* ---------- Colores ----------
   Solo claro: «only light» también le pide al navegador del celu que no la oscurezca por su cuenta. */
:root {
  color-scheme: only light;

  --marca: #5c5cff;
  --marca-fuerte: #4343e0;
  --marca-tinte: #efefff;
  --marca-borde: #d4d4ff;
  --marca-relleno: #5c5cff;       /* fondos llenos con texto blanco */
  --marca-relleno-hover: #4747e6;

  --tinta: #0f172a;
  --tinta-2: #334155;
  --suave: #5b677a;
  --borde: #e3e7ef;
  --pagina: #f4f3ff;              /* se ve solo si el fondo animado no carga */
  --tarjeta: #ffffff;
  --panel: rgb(255 255 255 / 0.84);
  --panel-borde: rgb(255 255 255 / 0.95);
  --noche: #0e1328;

  --verde: #15803d;
  --verde-fuerte: #166534;
  --verde-texto: #166534;
  --verde-tinte: #e8f7ee;
  --verde-borde: rgb(22 163 74 / 0.45);
  --verde-whatsapp: #16a34a; /* el del borde, entero: el dueño prefiere este al verde oscuro (16/10/2026) */

  --ambar: #92400e;
  --ambar-tinte: #fff7e6;
  --ambar-borde: #fde3b0;

  --cabecera-fondo: rgb(255 255 255 / 0.72);
  --cabecera-borde: rgb(15 23 42 / 0.06);
  --barra-fondo: rgb(255 255 255 / 0.9);

  /* Portada, directo sobre el fondo animado */
  --portada-texto: #0f172a;
  --portada-texto-2: #334155;
  --portada-sombra: none;

  /* Fondo: un degradé suave y quieto (el dueño sacó las burbujas animadas el 16/10/2026). */
  --fondo-1: #f6f4ff;
  --fondo-2: #eaf1ff;

  --caso-borde: #bbf7d0;
  --caso-tinte: #f0fdf4;
  --caso-etiqueta: #dcfce7;

  --r: 18px;
  --r-l: 28px;
  --sombra: 0 1px 2px rgb(15 23 42 / 0.04), 0 14px 32px -16px rgb(15 23 42 / 0.22);
  --sombra-l: 0 2px 6px rgb(15 23 42 / 0.04), 0 30px 70px -30px rgb(40 40 140 / 0.35);

  --ancho: 1100px;
  --margen: 14px;
  --alto-cabecera: 62px;
  --alto-barra: 72px;
}
@media (min-width: 640px) {
  :root { --margen: 24px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + 16px);
  background: var(--pagina);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--marca-fuerte); text-underline-offset: 3px; }
a:hover { color: var(--marca); }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 600; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.sin-corte { white-space: nowrap; } /* el teléfono nunca se parte en dos renglones */

.saltar {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--marca-relleno); color: #fff; font-weight: 600;
}
.saltar:focus { top: 12px; color: #fff; }

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding-inline: var(--margen);
}

/* ---------- Fondo ----------
   Un degradé suave, quieto y fijo detrás de todo (hasta el 16/10/2026 eran burbujas animadas; el dueño las sacó). */

body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(40deg, var(--fondo-1), var(--fondo-2));
}

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: var(--cabecera-fondo);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid var(--cabecera-borde);
}
.cabecera__fila { display: flex; align-items: center; gap: 12px; min-height: var(--alto-cabecera); }

.logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--tinta); text-decoration: none; border-radius: 12px;
}
.logo:hover { color: var(--tinta); }
/* El logo: un celular con una llave violeta (hecho en el ChatGPT del dueño, 16/10/2026). */
.logo__img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.logo__texto { display: flex; flex-direction: column; line-height: 1.12; }
.logo__nombre { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.logo__bajada { font-size: 0.75rem; font-weight: 500; color: var(--suave); }

.menu { display: none; gap: 2px; }
.menu a {
  padding: 8px 12px; border-radius: 10px;
  color: var(--tinta-2); font-weight: 500; font-size: 0.96875rem; text-decoration: none;
}
.menu a:hover, .menu a[aria-current='page'] { background: var(--marca-tinte); color: var(--marca-fuerte); }

.cabecera__tel {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 14px; border-radius: 999px;
  background: var(--marca-relleno); color: #fff; box-shadow: 0 6px 16px -8px rgb(92 92 255 / 0.8);
  font-weight: 600; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s;
}
.cabecera__tel:hover { background: var(--marca-relleno-hover); color: #fff; }
.cabecera__tel .ico { width: 17px; height: 17px; }

@media (min-width: 960px) {
  .menu { display: flex; }
}

/* Menú del celu: el botón de las tres rayitas despliega las secciones debajo de la cabecera. Necesita JavaScript (sin
   JavaScript no aparece, y las secciones siguen en el pie). */
.cabecera__menu { display: none; }
@media (max-width: 959px) {
  .cabecera__fila { gap: 8px; }
  .js .cabecera__menu {
    display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0;
    border: 1px solid var(--borde); border-radius: 12px; background: var(--tarjeta); color: var(--tinta);
    cursor: pointer;
  }
  .cabecera__menu .ico { width: 22px; height: 22px; }
  .cabecera__menu .ico--cerrar, .cabecera--abierta .cabecera__menu .ico--menu { display: none; }
  .cabecera--abierta .cabecera__menu .ico--cerrar { display: block; }
  .cabecera--abierta .menu {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px 16px 16px; background: var(--tarjeta);
    border-bottom: 1px solid var(--borde); box-shadow: var(--sombra);
  }
  .cabecera--abierta .menu a { padding: 13px 14px; font-size: 1.0625rem; font-weight: 600; color: var(--tinta); }
}
/* Para que entren logo, número y menú en un renglón: en celus angostos todo un poco más chico, y en los más angostos
   el teléfono queda solo con el ícono (el número sigue a la vista en el botón «Llamar» de arriba). */
@media (max-width: 411px) {
  .logo { gap: 8px; }
  .logo__nombre { font-size: 1rem; }
  .cabecera__tel { gap: 6px; padding: 9px 12px; font-size: 0.875rem; }
}
@media (max-width: 389px) {
  .cabecera__tel { padding: 12px; }
  .cabecera__tel span { display: none; }
}
@media (max-width: 374px) {
  .logo__bajada { display: none; }
}

/* ---------- Botones ---------- */

.botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 22px; border: 0; border-radius: 16px;
  font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, color 0.15s;
}
.boton .ico { width: 22px; height: 22px; }
.boton:active { transform: translateY(1px); }

/* Llamar es el botón principal (la web está para que llamen): violeta y lleno. */
.boton--llamar { background: var(--marca-relleno); color: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25), 0 14px 30px -14px rgb(92 92 255 / 0.95); }
.boton--llamar:hover { background: var(--marca-relleno-hover); color: #fff; }

/* WhatsApp es la segunda opción: con borde verde. */
.boton--whatsapp { background: var(--tarjeta); color: var(--verde-whatsapp); box-shadow: inset 0 0 0 2px var(--verde-borde); }
.boton--whatsapp:hover { color: var(--verde-whatsapp); box-shadow: inset 0 0 0 2px var(--verde-whatsapp); }

/* Botón secundario violeta (en la 404: «Ir al inicio»). */
.boton--contorno { background: var(--tarjeta); color: var(--marca-fuerte); box-shadow: inset 0 0 0 2px var(--marca-borde); }
.boton--contorno:hover { color: var(--marca-fuerte); box-shadow: inset 0 0 0 2px var(--marca); }

@media (max-width: 559px) {
  .botones .boton { flex: 1 1 100%; }
}
@media (hover: hover) {
  .boton--llamar:hover, .boton--whatsapp:hover, .boton--contorno:hover { transform: translateY(-1px); }
}

/* Horario: lo actualiza web.js con la hora de Buenos Aires. Sin JavaScript queda el texto fijo. El reloj (o el puntito
   verde) va pegado al texto, como una letra más: si no entra en un renglón, queda al principio del primero y los dos
   renglones salen parejos (no suelto al costado). */
.estado { margin-top: 14px; font-size: 0.9375rem; color: var(--suave); text-wrap: balance; }
.estado .ico { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; }
.estado__punto { display: none; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: #16a34a; }
.estado[data-abierto='si'] { color: var(--verde-texto); font-weight: 500; }
.estado[data-abierto='si'] .ico { display: none; }
.estado[data-abierto='si'] .estado__punto { display: inline-block; box-shadow: 0 0 0 4px rgb(22 163 74 / 0.2); }
@media (prefers-reduced-motion: no-preference) {
  .estado[data-abierto='si'] .estado__punto { animation: latido 2.2s ease-in-out infinite; }
}
@keyframes latido {
  50% { box-shadow: 0 0 0 7px rgb(22 163 74 / 0); }
}

/* ---------- Portada: directo al grano ---------- */

.portada { padding-block: clamp(28px, 6vw, 72px) clamp(24px, 4vw, 44px); text-align: center; }
.portada--interna { padding-block: clamp(20px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.portada h1 {
  max-width: 860px; margin: 0 auto;
  font-size: clamp(2rem, 1.15rem + 3.7vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04;
  color: var(--portada-texto); text-shadow: var(--portada-sombra);
}
.resalte { color: var(--marca); }
.portada__bajada {
  max-width: 34em; margin: 16px auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem); color: var(--portada-texto-2); text-shadow: var(--portada-sombra);
}
.portada .botones { justify-content: center; }
.portada .estado { color: var(--portada-texto-2); }
.portada .estado[data-abierto='si'] { color: var(--verde-texto); }
@media (min-width: 560px) {
  .portada .boton { min-width: 250px; }
}


/* ---------- Paneles (las cajas de cada sección) ---------- */

.seccion { padding-block: 0 clamp(14px, 3vw, 28px); }
.panel {
  padding: clamp(20px, 4vw, 40px) clamp(14px, 3.5vw, 40px);
  border-radius: var(--r-l);
  background: var(--panel); border: 1px solid var(--panel-borde); box-shadow: var(--sombra-l);
}
.panel__titulo { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem); letter-spacing: -0.03em; text-align: center; }
.panel__bajada { max-width: 36em; margin: 8px auto 0; text-align: center; color: var(--suave); }
.panel__pie { margin-top: 22px; text-align: center; }

.enlace-flecha {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none; color: var(--marca-fuerte);
}
.enlace-flecha .ico { width: 18px; height: 18px; transition: transform 0.15s; }
.enlace-flecha:hover .ico { transform: translateX(3px); }

/* ---------- Tarjetas con foto (como en uni-cel.com) ----------
   En la principal, los 4 equipos; en la página de cada equipo, sus fallas. En el celu, 2 por fila (si sobra una, va
   centrada). En la compu, todas en una fila si son 4 o 5; si son 6, dos filas de 3. */

.tarjetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tarjetas li { flex: 0 0 calc((100% - 10px) / 2); max-width: 240px; }
@media (min-width: 760px) {
  .tarjetas { gap: 14px; }
  .tarjetas li { flex-basis: calc((100% - 42px) / 4); }
  .tarjetas li:first-child:nth-last-child(5), .tarjetas li:first-child:nth-last-child(5) ~ li { flex-basis: calc((100% - 56px) / 5); }
  .tarjetas li:first-child:nth-last-child(6), .tarjetas li:first-child:nth-last-child(6) ~ li,
  .tarjetas li:first-child:nth-last-child(9), .tarjetas li:first-child:nth-last-child(9) ~ li { flex-basis: calc((100% - 28px) / 3); }
  /* Las tarjetas no pasan de 240 px: con 6 o 9, la lista se angosta para que no entren 4 por fila. */
  .tarjetas:has(> li:nth-child(6):last-child), .tarjetas:has(> li:nth-child(9):last-child) { max-width: calc(3 * 240px + 2 * 14px); margin-inline: auto; }
}
.tarjeta {
  display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%;
  padding: 8px 6px 12px; border-radius: var(--r);
  background: var(--tarjeta); border: 1px solid var(--borde);
  color: var(--tinta); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
/* La foto ocupa siempre el mismo cuadrado, sea un celular parado o una notebook acostada. */
.tarjeta img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 6%; }
.tarjeta__nombre {
  margin-top: auto; text-align: center;
  font-size: 0.875rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; text-transform: uppercase;
}
.tarjetas--equipos .tarjeta__nombre { font-size: 0.9375rem; }
a.tarjeta:hover { color: var(--tinta); border-color: var(--marca-borde); box-shadow: var(--sombra); }
@media (hover: hover) {
  a.tarjeta:hover { transform: translateY(-3px); }
}

/* ---------- Condiciones (precio) ---------- */

.condiciones { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 10px; }
.condicion { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--marca-tinte); }
.condicion .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--marca); }
.condicion strong { display: block; font-size: 1rem; line-height: 1.3; color: var(--tinta); }
.condicion span { display: block; margin-top: 2px; font-size: 0.9rem; line-height: 1.4; color: var(--suave); }
@media (max-width: 559px) {
  .condiciones { grid-template-columns: 1fr 1fr; }
  .condicion { flex-direction: column; gap: 6px; padding: 12px; }
  .condicion strong { font-size: 0.9375rem; }
  .condicion span { font-size: 0.8125rem; }
}

/* ---------- Marcas y barrios ---------- */

.etiquetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.etiquetas li {
  padding: 6px 12px; border-radius: 999px;
  background: var(--tarjeta); border: 1px solid var(--borde);
  font-size: 0.9375rem; font-weight: 500; color: var(--tinta-2);
}
.aclaracion { max-width: 40em; margin: 14px auto 0; text-align: center; font-size: 0.8125rem; color: var(--suave); }

/* Mapa de los 48 barrios: dibujado en la página con los datos oficiales de la Ciudad (lo arma
   herramientas/mapa/generar.py). Al pasar el mouse, el barrio se resalta; tocándolo, web.js lo abre en grande y ahí
   tocando un barrio se ve su nombre. */
.mapa {
  display: block; width: 100%; max-width: 620px; margin: 22px auto 0; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; cursor: zoom-in;
}
.mapa__svg { display: block; width: 100%; height: auto; }
.mapa__barrios path { stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; transition: fill 0.15s; }
.mapa__barrios path.mapa--activo { fill: #8f89ff; }
@media (hover: hover) {
  .mapa__barrios path:hover { fill: #8f89ff; }
}
.mapa__nombres { fill: #2b2783; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-opacity: 0.85; stroke-linejoin: round; pointer-events: none; }
.mapa__fuente { fill: #64748b; font-size: 13px; }
.mapa-grande {
  width: min(96vw, 980px); max-width: none; max-height: 94vh; padding: 14px 14px 8px;
  border: 0; border-radius: var(--r); background: var(--tarjeta); box-shadow: var(--sombra);
}
.mapa-grande::backdrop { background: rgb(15 23 42 / 0.6); }
.mapa-grande .mapa__svg { max-height: calc(94vh - 90px); }
.mapa-grande__cerrar {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 12px; background: var(--marca-tinte); color: var(--tinta); cursor: pointer;
}
.mapa-grande__cerrar .ico { width: 22px; height: 22px; }
.mapa-grande__nombre { margin: 6px 0 2px; text-align: center; font-weight: 700; color: var(--tinta); }

/* ---------- Preguntas frecuentes ---------- */

.preguntas { display: grid; gap: 10px; max-width: 800px; margin: 22px auto 0; }
.pregunta { border-radius: var(--r); background: var(--tarjeta); border: 1px solid var(--borde); transition: border-color 0.2s; }
.pregunta[open] { border-color: var(--marca-borde); }
.pregunta summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.35;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary .ico { width: 22px; height: 22px; color: var(--marca); transition: transform 0.2s; }
.pregunta[open] summary .ico { transform: rotate(45deg); }
.pregunta__respuesta { padding: 0 18px 18px; color: var(--tinta-2); }
.pregunta__respuesta p + p { margin-top: 10px; }

/* ---------- Llamado final ---------- */

.llamado {
  display: grid; gap: 24px; align-items: center;
  padding: clamp(26px, 5vw, 52px); border-radius: var(--r-l);
  color: #fff; text-align: center;
  background:
    radial-gradient(600px 300px at 100% 0%, rgb(140 120 255 / 0.5) 0%, rgb(140 120 255 / 0) 65%),
    radial-gradient(500px 260px at 0% 100%, rgb(221 74 255 / 0.25) 0%, rgb(221 74 255 / 0) 70%),
    var(--noche);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), var(--sombra-l);
}
.llamado h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); letter-spacing: -0.03em; }
.llamado p { max-width: 32em; margin: 10px auto 0; font-size: 1.125rem; color: #cbd5e1; }
.llamado .botones { justify-content: center; margin-top: 0; }
.llamado .boton--whatsapp { background: rgb(255 255 255 / 0.06); color: #86efac; box-shadow: inset 0 0 0 2px rgb(134 239 172 / 0.5); }
.llamado .boton--whatsapp:hover { color: #bbf7d0; box-shadow: inset 0 0 0 2px #86efac; }
.llamado .estado { color: #b8c2d6; margin-top: 0; }
.llamado .estado[data-abierto='si'] { color: #86efac; }
@media (min-width: 560px) {
  .llamado .boton { min-width: 240px; }
}

/* ---------- Páginas internas ---------- */

/* Hoja de cada falla: al tocar la tarjeta se abre desde abajo (en la compu, en el medio) con «Llamar» y «WhatsApp»,
   sin explicaciones: solo el nombre (el dueño quiere que se lea lo menos posible). La abre web.js sin mover la página; sin JavaScript,
   el #id del link (:target). */
.hoja { display: none; }
.hoja--abierta, html:not(.js) .hoja:target {
  display: grid; align-items: end; justify-items: center;
  position: fixed; inset: 0; z-index: 100;
}
.hoja__fondo { position: absolute; inset: 0; background: rgb(15 23 42 / 0.5); }
.hoja__caja {
  position: relative; width: 100%; max-width: 520px;
  padding: 24px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--tarjeta); box-shadow: var(--sombra);
  text-align: center;
}
.hoja h3 { padding: 0 40px; font-size: 1.3125rem; }
.hoja .botones { justify-content: center; margin-top: 18px; }
.hoja .botones .boton { flex: 1 1 100%; }
.hoja__cerrar {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--tinta-2);
}
.hoja__cerrar:hover { background: var(--marca-tinte); color: var(--tinta); }
.hoja__cerrar .ico { width: 22px; height: 22px; }
@media (min-width: 560px) {
  .hoja--abierta, html:not(.js) .hoja:target { align-items: center; padding: 16px; }
  .hoja__caja { padding: 28px 24px 24px; border-radius: var(--r); }
}
@media (prefers-reduced-motion: no-preference) {
  .hoja--abierta .hoja__caja { animation: hoja-sube 0.22s ease-out; }
  @keyframes hoja-sube { from { transform: translateY(28px); opacity: 0; } }
}

/* Precios: si reparás / si no reparás */
.comparacion { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 24px; }
.caso { padding: 24px; border-radius: var(--r); background: var(--tarjeta); border: 1px solid var(--borde); }
.caso--repara { border-color: var(--caso-borde); background: linear-gradient(180deg, var(--caso-tinte) 0%, var(--tarjeta) 75%); }
.caso__etiqueta {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 600;
  background: var(--marca-tinte); color: var(--tinta-2);
}
.caso--repara .caso__etiqueta { background: var(--caso-etiqueta); color: var(--verde-texto); }
.caso h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.caso p { margin-top: 8px; color: var(--tinta-2); }

/* Página 404 */
.error { padding-block: clamp(56px, 10vw, 110px); text-align: center; }
.error h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--portada-texto); }
.error p { max-width: 32em; margin: 16px auto 0; font-size: 1.125rem; color: var(--portada-texto-2); }
.error .botones { justify-content: center; }

/* ---------- Pie ---------- */

.pie { margin-top: clamp(14px, 3vw, 28px); padding-block: 44px 28px; background: var(--noche); color: #cbd5e1; }
.pie__grilla { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pie .logo { color: #fff; }
.pie .logo__bajada { color: #94a3b8; }
.pie__texto { margin-top: 14px; max-width: 30em; font-size: 0.9375rem; color: #a7b2c6; }
.pie h2 { margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #fff; }
.pie li + li { margin-top: 9px; }
.pie li { display: flex; align-items: center; gap: 10px; font-size: 0.96875rem; }
.pie li .ico { width: 18px; height: 18px; color: #9b9bff; }
.pie a { color: #e2e8f0; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.875rem; color: #94a3b8;
}

/* ---------- Barra de contacto fija (solo en el celu) ---------- */

.barra-movil {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px var(--margen) calc(10px + env(safe-area-inset-bottom));
  background: var(--barra-fondo);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--cabecera-borde);
  box-shadow: 0 -10px 30px -14px rgb(15 23 42 / 0.3);
  transition: transform 0.25s ease, visibility 0.25s;
}
.barra-movil .boton { min-height: 50px; padding: 10px 12px; font-size: 1rem; }
.barra-movil .boton .ico { width: 20px; height: 20px; }
/* Con JavaScript, la barra aparece cuando los botones de arriba ya no se ven (web.js). */
.js .barra-movil:not(.barra-movil--visible) { transform: translateY(110%); visibility: hidden; }

@media (max-width: 767px) {
  .pie { padding-bottom: calc(28px + var(--alto-barra) + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .barra-movil { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* PC: armado a medida (foto y botones centrados) */
.a-medida__foto { display: block; width: 100%; max-width: 520px; height: auto; margin: 16px auto 0; }
.a-medida .botones { justify-content: center; margin-top: 18px; }

/* ---------- Chat de la web (assets/chat.js) ----------
   Globito abajo a la derecha (en el celu, arriba de la barra de Llamar y WhatsApp) y la ventanita del chat: en la compu,
   una caja chica; en el celu, toda la pantalla. Aparece solo si el dueño lo activó en el panel. */
.chat-globo {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  border: 0; border-radius: 999px; background: var(--marca-relleno); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgb(92 92 255 / 0.75); transition: bottom 0.25s;
}
.chat-globo[hidden] { display: none; }
.chat-globo .ico { width: 22px; height: 22px; }
.chat-globo__punto { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.chat-globo--en-linea .chat-globo__punto { background: #4ade80; box-shadow: 0 0 0 3px rgb(74 222 128 / 0.3); }
.chat-globo--nuevo::after {
  content: ''; position: absolute; top: -3px; right: -3px; width: 14px; height: 14px;
  border: 2px solid #fff; border-radius: 50%; background: #ef4444;
}
.chat {
  position: fixed; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 90;
  display: flex; flex-direction: column; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px));
  overflow: hidden; border: 1px solid var(--borde); border-radius: var(--r); background: var(--tarjeta); box-shadow: var(--sombra-l);
}
.chat[hidden] { display: none; }
.chat__cabeza { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px; background: var(--marca-relleno); color: #fff; }
.chat__titulo { display: flex; flex-direction: column; margin-right: auto; line-height: 1.25; }
.chat__titulo strong { font-size: 1.0625rem; }
.chat__estado { font-size: 0.8125rem; opacity: 0.92; }
.chat__llamar, .chat__cerrar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 12px; background: rgb(255 255 255 / 0.16); color: #fff; cursor: pointer;
}
.chat__llamar:hover { color: #fff; background: rgb(255 255 255 / 0.26); }
.chat__llamar .ico, .chat__cerrar .ico { width: 20px; height: 20px; }
.chat__mensajes { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto; background: #f7f6ff; }
.chat__msj {
  max-width: 85%; margin: 0; padding: 9px 12px; border-radius: 16px;
  font-size: 0.96875rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat__msj--dueno { align-self: flex-start; border: 1px solid var(--borde); border-bottom-left-radius: 6px; background: #fff; color: var(--tinta); }
.chat__msj--visita { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--marca-relleno); color: #fff; }
.chat__error { margin: 0; padding: 8px 14px; background: #fef2f2; color: #991b1b; font-size: 0.875rem; }
.chat__error[hidden] { display: none; }
.chat__form { display: grid; gap: 8px; padding: 10px; border-top: 1px solid var(--borde); background: var(--tarjeta); }
.chat__contacto, .chat__form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--borde); border-radius: 12px;
  background: #fff; color: var(--tinta); font: inherit; font-size: 1rem;
}
.chat__contacto[hidden] { display: none; }
.chat__form textarea { max-height: 120px; resize: none; }
.chat__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat__fila { display: flex; gap: 8px; align-items: flex-end; }
.chat__enviar {
  display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border: 0; border-radius: 12px; background: var(--marca-relleno); color: #fff; cursor: pointer;
}
.chat__enviar:disabled { opacity: 0.6; }
.chat__enviar .ico { width: 22px; height: 22px; }
@media (max-width: 767px) {
  body:has(.barra-movil--visible) .chat-globo { bottom: calc(var(--alto-barra) + 12px + env(safe-area-inset-bottom)); }
  .chat { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .chat-abierto .chat-globo { display: none; }
  .chat-abierto body { overflow: hidden; }
}
