/* finPre · Servicio postventa TAILG */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');

:root {
  --negro: #0B0B0B;
  --carbon: #1A1A1A;
  --blanco: #FFFFFF;
  --gris-fondo: #F2F2F2;
  --linea: #E2E2E2;
  --texto: #111111;
  --gris: #6E6E6E;
  --wa: #25D366;
  --alerta: #B3261E;
  --menta: #C9DCC6;
  --beige: #D9C8A9;
  --fuente: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ancho: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--blanco); color: var(--texto);
  font: 400 17px/1.55 var(--fuente);
  padding-bottom: 64px; /* barra de contacto */
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--fuente); margin: 0; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-weight: 500; font-size: clamp(34px, 8vw, 64px); }
h2 { font-weight: 500; font-size: clamp(24px, 4.5vw, 34px); }
h3 { font-weight: 500; font-size: 20px; }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }

/* ---------- Encabezado negro ---------- */
.top { background: var(--negro); color: var(--blanco); position: sticky; top: 0; z-index: 30; }
.top__in {
  max-width: var(--ancho); margin: 0 auto; padding: 0 20px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.marca img { height: 28px; width: auto; }
.menu { display: none; gap: 28px; font-size: 15px; }
.menu a { text-decoration: none; color: #D6D6D6; padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a:hover, .menu a[aria-current] { color: var(--blanco); border-bottom-color: var(--blanco); }
.top__tag { font-size: 14px; color: #BDBDBD; }
@media (min-width: 820px) { .menu { display: flex; } .top__tag { display: none; } }

/* ---------- Portada ---------- */
.portada {
  position: relative; background: var(--negro); color: var(--blanco);
  min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden;
}
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
@media (min-aspect-ratio: 4/3) { .portada__foto { object-position: 50% 22%; } }
.portada::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,0) 65%);
}
.portada__texto { position: relative; z-index: 1; width: 100%; padding-top: 40px; padding-bottom: 44px; }
.portada h1 { max-width: 15ch; }
.portada p { color: #D2D2D2; font-size: 18px; margin: 16px 0 0; max-width: 40ch; }

.opciones { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.opciones li { border-bottom: 1px solid var(--linea); }
.opcion {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 26px 0; text-decoration: none;
}
.opcion__t { font-size: clamp(21px, 4.2vw, 28px); font-weight: 500; line-height: 1.15; }
.opcion__d { color: var(--gris); font-size: 15.5px; margin-top: 4px; }
.opcion__f { font-size: 24px; transition: transform .2s; }
.opcion:hover .opcion__f { transform: translateX(6px); }
.opcion:hover .opcion__t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.seccion { padding: 48px 0; }
.etiqueta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 0 0 10px; }

/* ---------- Bloque del modelo GR52 ---------- */
.modelo { background: var(--gris-fondo); padding: 56px 0 48px; text-align: center; overflow: hidden; }
.modelo__escena { position: relative; margin: 8px auto 0; max-width: 820px; }
.modelo__fondo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  font-size: clamp(120px, 34vw, 300px); font-weight: 600; line-height: 1; letter-spacing: -.04em;
  color: #E4E4E4; white-space: nowrap; pointer-events: none; user-select: none;
}
.modelo__foto { position: relative; height: clamp(320px, 62vw, 480px); display: flex; justify-content: center; align-items: center; margin: 0; }
.modelo__foto img { height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.modelo__foto.sin-foto img { display: none; }
.colores { display: flex; justify-content: center; gap: 28px; margin-top: 18px; }
.color {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 2px;
  font: 500 16px/1 var(--fuente); color: var(--gris);
}
.color i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.color[aria-pressed="true"] { color: var(--texto); border-bottom-color: var(--texto); }
.modelo__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; font-size: 15px; }
.modelo__links a { color: var(--texto); text-underline-offset: 4px; }
.modelo__links span { color: var(--gris); }

/* ---------- Bloque de contacto ---------- */
.hablar { background: var(--negro); color: var(--blanco); padding: 52px 0; }
.hablar p { color: #A8A8A8; margin: 10px 0 0; }
.hablar__btns { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 720px) { .hablar__btns { grid-template-columns: repeat(3, 1fr); } }
.hablar__btns a {
  display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; text-decoration: none;
  border: 1px solid #3A3A3A; border-radius: 4px; transition: border-color .2s, background .2s;
}
.hablar__btns a:hover { border-color: var(--blanco); background: #151515; }
.hablar__btns b { font-weight: 500; font-size: 17px; }
.hablar__btns small { color: #A8A8A8; font-size: 14px; }

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: #8A8A8A; font-size: 13px; padding: 22px 20px 26px; border-top: 1px solid #222; }
.pie div { max-width: var(--ancho); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Barra de contacto fija ---------- */
.contacto {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--negro); color: var(--blanco); border-top: 1px solid #262626;
  padding-bottom: env(safe-area-inset-bottom);
}
.contacto__in { max-width: var(--ancho); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contacto a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 6px; text-decoration: none; font-size: 15px; font-weight: 500;
}
.contacto a + a { border-left: 1px solid #262626; }
.contacto a:hover { background: #161616; }
.contacto small { display: none; color: #9A9A9A; font-size: 13px; font-weight: 400; }
@media (min-width: 720px) { .contacto small { display: inline; } }
.contacto svg { width: 18px; height: 18px; flex: none; }
.contacto .wa svg { color: var(--wa); }

/* ---------- Páginas interiores ---------- */
main { max-width: var(--ancho); margin: 0 auto; padding: 0 20px 48px; }
main > :not(.cabeza) { max-width: 760px; }
.cabeza {
  background: var(--negro); color: var(--blanco);
  box-shadow: 0 0 0 100vmax var(--negro); clip-path: inset(0 -100vmax);
  padding: 18px 0 44px; margin-bottom: 32px;
}
.cabeza h1 { font-size: clamp(32px, 7vw, 52px); }
.volver { display: inline-block; color: #BDBDBD; font-size: 15px; text-decoration: none; padding: 8px 0; margin-bottom: 18px; }
.volver:hover { color: var(--blanco); }
.lead { color: #A8A8A8; font-size: 18px; margin: 16px 0 0; max-width: 46ch; }
main h2 { font-size: 26px; margin-top: 44px; }

.tarjeta { border: 1px solid var(--linea); border-radius: 4px; padding: 22px; margin-top: 16px; background: var(--blanco); }
.nota { margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--linea); color: var(--gris); font-size: 15.5px; }
.nota strong { color: var(--texto); font-weight: 500; }
.pendiente { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); border: 1px solid var(--linea); padding: 5px 9px; border-radius: 2px; }

.pasos { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: p; border-top: 1px solid var(--linea); }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.pasos li::before { content: counter(p, decimal-leading-zero); font-size: 15px; color: var(--gris); padding-top: 1px; }
.pasos strong { display: block; font-weight: 500; }
.pasos span { color: var(--gris); font-size: 15.5px; grid-column: 2; }

.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--linea); }
.check li:last-child { border-bottom: 0; }
.check li::before { content: "\2014"; position: absolute; left: 0; color: var(--gris); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 4px; cursor: pointer;
  font: 500 16px/1 var(--fuente); text-decoration: none;
  background: var(--negro); color: var(--blanco); border: 1px solid var(--negro);
  transition: background .2s, color .2s;
}
.btn:hover { background: #2A2A2A; }
.btn--sec { background: transparent; color: var(--texto); border-color: var(--texto); }
.btn--sec:hover { background: var(--texto); color: var(--blanco); }
.btn--wa { background: var(--negro); }
.btn--full { width: 100%; }
.acciones { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 620px) { .acciones--fila { grid-template-columns: 1fr 1fr; } }

/* ---------- Asistente ---------- */
.sintomas { border-top: 1px solid var(--linea); }
.sintoma {
  display: flex; align-items: center; width: 100%; min-height: 64px; padding: 14px 0;
  background: none; border: 0; border-bottom: 1px solid var(--linea); cursor: pointer; text-align: left;
  font: 500 18px/1.25 var(--fuente); color: var(--texto);
}
.sintoma::after { content: "\2192"; margin-left: auto; padding-left: 16px; font-size: 20px; transition: transform .2s; }
.sintoma:hover::after { transform: translateX(5px); }
.chat { margin-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.burbuja { max-width: 88%; padding: 14px 16px; border-radius: 4px; background: var(--gris-fondo); animation: entra .25s ease-out; }
.burbuja--yo { align-self: flex-end; background: var(--negro); color: var(--blanco); }
.burbuja--alerta { background: #FBEDEC; border-left: 3px solid var(--alerta); }
.burbuja p { margin: 0; }
.burbuja p + p { margin-top: 8px; }
.respuestas { display: flex; flex-wrap: wrap; gap: 8px; animation: entra .25s ease-out; }
.resp {
  min-height: 46px; padding: 0 18px; border-radius: 4px; cursor: pointer;
  background: var(--blanco); border: 1px solid var(--texto); color: var(--texto);
  font: 500 15px/1 var(--fuente); display: inline-flex; align-items: center; gap: 8px;
}
.resp:hover { background: var(--texto); color: var(--blanco); }
.led { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Formulario ---------- */
.campo { display: block; margin-top: 18px; }
.campo > span { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.campo > span i { font-style: normal; font-weight: 400; color: var(--gris); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CFCFCF; border-radius: 4px;
  background: var(--blanco); font: 400 16px/1.4 var(--fuente); color: var(--texto);
}
.campo textarea { min-height: 120px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--texto); box-shadow: 0 0 0 1px var(--texto); }
.campo small { display: block; color: var(--gris); font-size: 13.5px; margin-top: 5px; }
.dos { display: grid; gap: 0 14px; }
@media (min-width: 620px) { .dos { grid-template-columns: 1fr 1fr; } }

.folio { margin-top: 4px; padding: 26px 22px; background: var(--negro); color: var(--blanco); border-radius: 4px; }
.folio small { color: #A8A8A8; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.folio b { display: block; font-size: 40px; font-weight: 500; margin-top: 6px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* ---------- Talleres ---------- */
.taller { display: grid; gap: 4px; }
.taller .dist { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.taller p { margin: 0; color: var(--gris); font-size: 15.5px; }
.taller .acciones { margin-top: 12px; grid-template-columns: 1fr 1fr; }
.taller .btn { min-height: 44px; font-size: 15px; padding: 0 12px; }

/* ---------- Preguntas frecuentes ---------- */
details { border-bottom: 1px solid var(--linea); }
details:first-of-type { border-top: 1px solid var(--linea); }
summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 500; font-size: 17px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 18px; color: #3A3A3A; }

/* ---------- Guía de primeros pasos ---------- */
.indice ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); columns: 1; }
@media (min-width: 620px) { .indice ol { columns: 2; column-gap: 32px; } }
.indice li { break-inside: avoid; border-bottom: 1px solid var(--linea); }
.indice a { display: flex; justify-content: space-between; padding: 12px 0; text-decoration: none; font-size: 16px; }
.indice a::after { content: "\2193"; color: var(--gris); }
.indice a:hover { text-decoration: underline; text-underline-offset: 4px; }
.guia { scroll-margin-top: 80px; padding-top: 8px; }
.guia h2 { margin-top: 48px; }
.tabla { margin: 16px 0 0; border-top: 1px solid var(--linea); }
.tabla > div { display: grid; gap: 2px 20px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
@media (min-width: 620px) { .tabla > div { grid-template-columns: 200px 1fr; } }
.tabla dt { font-weight: 500; }
.tabla dd { margin: 0; color: #3A3A3A; }
.tabla--compacta { border-top: 0; font-size: 15.5px; }
.aviso { margin: 20px 0 6px; padding: 14px 16px; background: #FBEDEC; border-left: 3px solid var(--alerta); font-size: 15.5px; }
.aviso strong { font-weight: 600; }
.guia .check { margin-top: 14px; }
.cierre { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--texto); }
.cierre h2 { margin-top: 24px; }
details + h2, .tabla + .nota { margin-top: 20px; }
main > details:first-of-type { margin-top: 28px; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
