/* Taller Auto Pobla — web pública.
   Design read: landing de negocio local (taller + compraventa) para conductores
   de a pie, lenguaje industrial pero de confianza. CSS nativo, esquinas rectas,
   acento rojo sobre negro y grises fríos (paleta de la marca: rojo + negro).
   Motion contenido, salvo la marquesina de reseñas.
   Dials ~ VARIANCE 6 / MOTION 3 / DENSITY 4. */

/* 0. Tipografías — alojadas en el propio servidor (antes venían de Google
   Fonts; se autoalojan para no enviar la IP del visitante a Google sin
   consentimiento). Archivo para titulares, Inter para texto. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/archivo-500.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/archivo-600.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/archivo-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/archivo-800.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-600.woff2') format('woff2'); }

/* 1. Tokens ------------------------------------------------------------------ */
:root {
  --bg:        #f4f3f1;   /* off-white frío, no crema */
  --bg-tint:   #ebe9e6;
  --surface:   #ffffff;
  --text:      #1c1d1f;
  --text-mut:  #161718;   /* casi negro — el cliente pidió máximo contraste */
  --text-dim:  #333537;
  --border:    #d9d7d3;
  --border-str:#c4c2bd;
  --gray:      #706e67;   /* gris real, para la ficha técnica del coche (aparte del --text-mut casi negro del resto) */

  --accent:    #d8261d;   /* rojo de marca */
  --accent-d:  #b01a13;
  --accent-l:  #ec4b43;

  --dark:      #1c1c1c;   /* negro de marca */
  --dark-2:    #121212;

  --ok:        #2f7d4f;
  --warn:      #d8261d;

  --shadow:    0 1px 2px rgba(28,29,31,.06), 0 8px 24px -12px rgba(28,29,31,.18);
  --ease:      cubic-bezier(.2,.7,.2,1);
  --z-nav: 50; --z-screen: 100; --z-modal: 200;
}

/* 2. Reset y base --------------------------------------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tl-skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--dark); color: #fff; padding: 10px 16px; font-weight: 600;
}
.tl-skip:focus { left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}

@keyframes tl-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes tl-up { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
@keyframes tl-shimmer { to { background-position: -200% 0 } }

/* 3. Tipografía compartida ---------------------------------------------------*/
.tl-display {
  font-family: 'Archivo', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.tl-eyebrow {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.tl-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.tl-eyebrow-dark { color: var(--text-dim); }

.tl-h2 { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 20px; text-wrap: balance; }
.tl-body-text { color: var(--text-mut); font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; max-width: 58ch; }

.tl-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; color: inherit; }

.tl-num { font-variant-numeric: tabular-nums; }

.tl-upper { text-transform: uppercase; }
.tl-btn.tl-upper { letter-spacing: 0.06em; }

/* 4. Botones ---------------------------------------------------------------- */
.tl-btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px;
  letter-spacing: 0.01em;
  padding: var(--pad-y) var(--pad-x);
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .08s var(--ease), color .18s var(--ease);
}
.tl-btn:active { transform: translateY(1px); }
.tl-btn:disabled { opacity: .55; cursor: not-allowed; }

.tl-btn--accent { background: var(--accent); color: #fff; }
.tl-btn--accent:hover:not(:disabled) { background: var(--accent-d); }

.tl-btn--dark { background: var(--dark); color: #fff; }
.tl-btn--dark:hover:not(:disabled) { background: var(--dark-2); }

.tl-btn--ghost { background: transparent; border-color: var(--border-str); color: var(--text); }
.tl-btn--ghost:hover:not(:disabled) { border-color: var(--text); background: var(--surface); }

.tl-btn--lg { --pad-y: 17px; --pad-x: 32px; font-size: 15px; }
.tl-btn--xl { --pad-y: 21px; --pad-x: 44px; font-size: 17px; }
/* Reservar cita de la primera sección — más grande que el resto de botones
   de la web a propósito (es el CTA principal). El del encabezado (.tl-nav-cta)
   se queda con su propio tamaño, no toca este. */
.tl-btn--hero { --pad-y: 26px; --pad-x: 56px; font-size: 19px; }
.tl-btn--block { width: 100%; }

/* 5. Navegación ----------------------------------------------------------- */
.tl-nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.tl-brand {
  display: flex; align-items: center; text-decoration: none;
}
.tl-brand-logo { height: 56px; width: auto; display: block; }
@media (max-width: 480px) { .tl-brand-logo { height: 42px; } }
.tl-nav-links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.tl-nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-mut); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.tl-nav-link:hover { color: var(--text); border-color: var(--accent); }
.tl-nav-cta { white-space: nowrap; --pad-y: 16px; --pad-x: 30px; font-size: 15px; }

/* 6. Hero ---------------------------------------------------------------- */
.tl-hero { position: relative; min-height: 86dvh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--dark); }
.tl-hero-media { position: absolute; inset: 0; }
.tl-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.tl-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(75deg, rgba(20,21,24,.94) 0%, rgba(20,21,24,.78) 38%, rgba(20,21,24,.28) 72%, rgba(20,21,24,.05) 100%);
}
.tl-hero-content {
  position: relative;
  max-width: 640px; padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 48px);
  animation: tl-up .5s var(--ease) both;
}
.tl-hero .tl-eyebrow { color: var(--accent-l); }
.tl-hero-title { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; color: #fff; font-size: clamp(34px, 5.4vw, 62px); margin: 0 0 18px; text-wrap: balance; }
.tl-hero-text { color: #e4e2de; font-size: 18px; line-height: 1.6; margin: 0 0 32px; max-width: 46ch; }
.tl-hero-text.tl-upper { font-family: 'Archivo', sans-serif; font-weight: 600; letter-spacing: 0.04em; font-size: 16px; max-width: 30ch; text-wrap: balance; }
/* Cinta del hero — una sola banda que se desplaza de izquierda a derecha */
.tl-hero-strip {
  position: relative; overflow: hidden;
  background: var(--dark-2); border-top: 1px solid rgba(255,255,255,.08);
}
.tl-hero-strip-track {
  display: flex; width: max-content;
  animation: tl-ticker 34s linear infinite;
}
@keyframes tl-ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tl-hero-strip:hover .tl-hero-strip-track { animation-play-state: paused; }
.tl-ticker-item {
  display: flex; align-items: center;
  padding: 20px 0; white-space: nowrap;
  color: #eceae6; font-size: 15px; text-transform: uppercase; letter-spacing: 0.03em;
}
.tl-ticker-item::after {
  content: "•"; color: var(--accent);
  margin: 0 clamp(28px, 5vw, 60px);
}
.tl-ticker-item b { color: #fff; font-family: 'Archivo', sans-serif; margin-right: .4em; }
@media (prefers-reduced-motion: reduce) {
  .tl-hero-strip { overflow-x: auto; }
  .tl-hero-strip-track { animation: none !important; transform: none !important; }
}

/* 7. Sección genérica ---------------------------------------------------- */
.tl-section { max-width: 1320px; margin: 0 auto; padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 56px) clamp(80px, 11vw, 144px); }
.tl-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: center; }

figure.tl-photo { margin: 0; }
.tl-photo {
  background: var(--bg-tint);
  color: var(--text-dim); font: 12px/1.4 ui-monospace, monospace; text-align: center;
  border-radius: 16px;
}
.tl-photo-fill {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, var(--bg-tint), var(--border)) ,
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.02) 14px 28px);
  display: grid; place-items: center; padding: 24px;
}
.tl-photo--portrait { aspect-ratio: 4/5; }
.tl-photo--wide { aspect-ratio: 16/10; }
.tl-photo--circle,
.tl-photo--circle.tl-zoom { aspect-ratio: 1; border-radius: 50%; }
.tl-photo--circle .tl-zoom-inner { object-position: 33% 40%; }

/* Rectángulo con zoom suave al pasar el ratón: el marco recorta y el contenido escala */
.tl-zoom { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; }
.tl-zoom-inner {
  display: block; width: 100%; height: 100%;
  transition: transform .45s var(--ease);
}
.tl-zoom:hover .tl-zoom-inner,
.tl-zoom:focus-within .tl-zoom-inner { transform: scale(1.06); }
img.tl-zoom-inner { object-fit: cover; }

/* "Cómo trabajamos" — texto en un rectángulo ancho (punto medio) + foto circular grande */
#como-trabajamos {
  max-width: min(1460px, 93vw);
  padding-left: clamp(18px, 3.5vw, 48px);
  padding-right: clamp(18px, 3.5vw, 48px);
}
#como-trabajamos.tl-split {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 430px);
  gap: clamp(32px, 4.5vw, 72px);
}
.tl-historia-card { background: var(--surface); }
.tl-historia-card .tl-zoom-inner {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 3.5vw, 52px);
}
.tl-historia-card .tl-body-text { max-width: none; letter-spacing: 0.01em; }
.tl-historia-card .tl-body-text:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  #como-trabajamos.tl-split { grid-template-columns: 1fr; }
  .tl-photo--circle { max-width: 440px; margin: 0 auto; }
}

/* 8. Reseñas — marquesina infinita derecha → izquierda ------------------- */
.tl-testimonios { background: var(--dark); color: #e9e7e3; padding-bottom: clamp(56px, 8vw, 96px); overflow: hidden; }
.tl-testimonios-head { padding-bottom: 0 !important; }
.tl-testimonios .tl-eyebrow { color: var(--accent-l); }
.tl-testimonios .tl-h2 { color: #fff; }

.tl-marquee {
  margin-top: 36px; padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.tl-marquee-track {
  display: flex; width: max-content;
  animation: tl-marquee 80s linear infinite;
}
.tl-marquee:hover .tl-marquee-track,
.tl-marquee:focus-within .tl-marquee-track { animation-play-state: paused; }
@keyframes tl-marquee { to { transform: translateX(-50%); } }

.tl-review {
  flex: 0 0 340px; width: 340px; margin-right: 20px;
  background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tl-review:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.55);
}
.tl-review-top {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.tl-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; }
.tl-stars-off { color: rgba(28,29,31,.16); }
.tl-review-rating { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px; color: #000; }
.tl-review-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: #000; font-weight: 400; }
.tl-review-name { font-size: 12.5px; color: #000; font-family: 'Archivo', sans-serif; font-weight: 700; }

@media (max-width: 480px) {
  .tl-review { flex-basis: 78vw; width: 78vw; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tl-marquee-track { animation: none !important; transform: none !important; }
}

/* 9. Horario ------------------------------------------------------------- */
.tl-horario .tl-split { align-items: start; grid-template-columns: .85fr 1.15fr; }
.tl-map { padding: 0; overflow: hidden; position: relative; }
.tl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.tl-hours { border-top: 1px solid var(--border-str); }
.tl-hours div { display: flex; justify-content: space-between; padding: 15px 2px; border-bottom: 1px solid var(--border); font-size: 15px; }
.tl-hours b { font-family: 'Archivo', sans-serif; }
.tl-hours .cerrado { color: var(--text-dim); }
.tl-address { font-size: 15px; line-height: 1.7; margin-top: 16px; color: var(--text-mut); }

/* 10. Footer ----------------------------------------------------------- */
.tl-footer { background: var(--dark-2); color: #d6d4d0; }
.tl-footer-inner { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 56px) 32px; }
.tl-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); margin-bottom: 40px; }
.tl-footer-grid--4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.tl-footer-brand { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 12px; color: #fff; }
.tl-footer-logo { height: 46px; width: auto; display: block; margin-bottom: 16px; }
.tl-footer p { font-size: 14px; line-height: 1.7; color: #cdcbc7; max-width: 34ch; margin: 0; }
.tl-footer-h { font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #9a9895; margin-bottom: 14px; }
.tl-footer-list { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.tl-footer-list a, .tl-footer-list button { color: #d8d6d2; text-decoration: none; transition: color .15s; }
.tl-footer-list a:hover, .tl-footer-list button:hover { color: #fff; }
.tl-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; font-size: 12px; color: #a7a5a1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* 11. Catálogo — sección normal de la página (el nav de arriba se queda fijo
   y visible, no se tapa con una pantalla aparte). --------------------- */
.tl-catalog-section {
  padding-top: clamp(40px, 6vw, 64px); min-height: 60vh; animation: tl-fade .18s var(--ease);
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.tl-catalog-head {
  max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 6px;
  display: flex; flex-direction: column; gap: 6px;
}
.tl-catalog-title { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 26px; margin: 0; }
.tl-cars { max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 48px) 96px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 36px); }

/* Tarjeta de coche: el recuadro completo va redondeado, pero la foto de dentro
   va a bordes rectos con un margen alrededor — así queda claramente separada
   del marco, en vez de compartir su radio como el resto del sitio. */
.tl-car {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tl-car:hover, .tl-car:focus-within {
  transform: scale(1.03);
  border-color: var(--border-str);
  box-shadow: 0 20px 44px -18px rgba(28,29,31,.28);
}
.tl-car-photo-wrap { position: relative; margin: 10px 10px 0; overflow: hidden; background: var(--bg-tint); }
.tl-car-photo { display: block; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
div.tl-car-photo.tl-photo { display: grid; place-items: center; padding: 16px; text-align: center; border-radius: 0; }
.tl-oferta-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  background: var(--accent); color: #fff;
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 4px;
}
.tl-car-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tl-car-name { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.3; }
.tl-car-specs { margin: 0; font-size: 13px; color: var(--gray); }
.tl-dot { color: var(--gray); margin: 0 7px; font-size: 8px; vertical-align: middle; }
.tl-car-price {
  margin: 4px 0 0; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 17px; color: var(--accent);
}
.tl-car-price-iva { font-family: 'Inter', sans-serif; font-weight: 500; font-size: .62em; color: var(--gray); margin-left: 4px; text-transform: none; letter-spacing: 0; }
.tl-car-desc { font-size: 13.5px; color: var(--text-mut); line-height: 1.55; }

/* Ficha completa (modal), al entrar en un coche */
.tl-modal--car { max-width: 640px; }
.tl-car-detail-photo-wrap { position: relative; margin: -8px -8px 0; overflow: hidden; }
.tl-car-detail-photo { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
div.tl-car-detail-photo.tl-photo { display: grid; place-items: center; padding: 20px; text-align: center; border-radius: 0; }
.tl-car-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.tl-car-thumb { flex: 0 0 64px; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.tl-car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-car-thumb:hover { opacity: .85; }
.tl-car-thumb.active { opacity: 1; border-color: var(--accent); }

.tl-skeleton { aspect-ratio: 4/3; background: linear-gradient(90deg, var(--bg-tint) 25%, var(--border) 37%, var(--bg-tint) 63%); background-size: 200% 100%; animation: tl-shimmer 1.4s linear infinite; }
.tl-empty { padding: 64px 24px; text-align: center; color: var(--text-mut); font-size: 15px; max-width: 40ch; margin: 0 auto; }

/* 12. Modal de reserva --------------------------------------------- */
.tl-modal-bg { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(20,21,24,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: tl-fade .14s var(--ease); }
.tl-modal { background: var(--bg); width: 100%; max-width: 520px; padding: clamp(24px, 5vw, 40px); position: relative; animation: tl-up .2s var(--ease); max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: var(--shadow); }
.tl-modal-x { position: absolute; top: 14px; right: 14px; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-dim); padding: 6px; }
.tl-modal-x:hover { color: var(--text); }
.tl-modal-title { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: 23px; margin: 0 0 4px; }
.tl-modal-sub { font-size: 14px; color: var(--text-mut); margin: 0 0 22px; }

.tl-form { display: flex; flex-direction: column; gap: 15px; }
.tl-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-mut); }
.tl-field .opt { font-weight: 400; color: var(--text-dim); }
.tl-input {
  padding: 11px 12px; border: 1px solid var(--border-str); background: var(--surface);
  font: 14px/1.4 'Inter', sans-serif; color: var(--text); transition: border-color .15s;
}
.tl-input:hover { border-color: var(--text-dim); }
.tl-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.tl-input[readonly] { background: var(--bg-tint); color: var(--text-mut); }
textarea.tl-input { resize: vertical; min-height: 68px; }
.tl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.tl-note { font-size: 13px; line-height: 1.5; color: var(--text-mut); background: var(--bg-tint); border-left: 2px solid var(--accent); padding: 11px 13px; }
.tl-error { font-size: 13px; color: var(--accent-d); background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 1px solid var(--accent); padding: 10px 12px; }
.tl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tl-confirm { padding: 8px 0 4px; }

/* 13. Selector de idioma (ES / RU) ------------------------------- */
.tl-nav-right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 18px); }
.tl-lang { display: inline-flex; align-items: center; gap: 4px; font-family: 'Archivo', sans-serif; }
.tl-lang-btn {
  background: none; border: 0; padding: 4px 4px; cursor: pointer;
  font: 700 13px 'Archivo', sans-serif; letter-spacing: .04em;
  color: var(--text-dim); transition: color .15s;
}
.tl-lang-btn:hover { color: var(--text); }
.tl-lang-btn.is-active { color: var(--accent); }
.tl-lang-sep { color: var(--border-str); font-size: 12px; }

/* 14. Banner de cookies ---------------------------------------- */
.tl-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal);
  background: var(--dark-2); color: #e7e5e1;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 32px);
  padding: 16px clamp(18px, 4vw, 48px);
  border-top: 2px solid var(--accent);
  animation: tl-up .25s var(--ease);
}
.tl-cookie-text { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1; }
.tl-cookie-text a { color: #fff; }
.tl-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
/* "Rechazar" y "Aceptar" con exactamente el mismo estilo, tamaño y posición
   (requisito AEPD: rechazar debe ser tan fácil y visible como aceptar). */
.tl-cookie-btn {
  font: 700 13px 'Archivo', sans-serif; letter-spacing: .04em;
  padding: 12px 26px; border: 1px solid var(--surface); border-radius: 999px;
  background: var(--surface); color: var(--dark-2); cursor: pointer;
  transition: opacity .15s var(--ease), transform .08s var(--ease);
}
.tl-cookie-btn:hover { opacity: .85; }
.tl-cookie-btn:active { transform: translateY(1px); }
@media (max-width: 640px) {
  .tl-cookie { flex-direction: column; align-items: stretch; text-align: left; }
  .tl-cookie-actions { justify-content: flex-end; }
}

/* 15. Checkbox de consentimiento en el formulario -------------- */
.tl-consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 12.5px; font-weight: 400; color: var(--text-mut); line-height: 1.45;
}
.tl-consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); }
.tl-consent a { color: var(--accent-d); }

/* 16. Mapa bloqueado hasta consentimiento --------------------- */
.tl-map-blocked {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: 24px; background: var(--bg-tint); color: var(--text-mut);
  font-size: 13.5px; line-height: 1.5;
}
.tl-map-blocked p { margin: 0; max-width: 32ch; }

/* 17. Páginas legales ---------------------------------------- */
.tl-legal { max-width: 760px; margin: 0 auto; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 40px) 96px; }
.tl-legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); text-decoration: none; margin-bottom: 28px; }
.tl-legal-back:hover { color: var(--accent); }
.tl-legal h1 { font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; }
.tl-legal .tl-legal-lang { font-size: 12.5px; color: var(--text-dim); margin: 0 0 32px; }
.tl-legal h2 { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; margin: 34px 0 12px; }
.tl-legal p, .tl-legal li { font-size: 15px; line-height: 1.7; color: var(--text-mut); }
.tl-legal ul { padding-left: 22px; }
.tl-legal li { margin-bottom: 6px; }
.tl-legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.tl-legal th, .tl-legal td { border: 1px solid var(--border-str); padding: 8px 10px; text-align: left; vertical-align: top; }
.tl-legal th { background: var(--bg-tint); font-family: 'Archivo', sans-serif; }
.tl-legal .tl-legal-note { background: var(--bg-tint); border-left: 2px solid var(--accent); padding: 10px 14px; font-size: 13.5px; }
.tl-legal a { color: var(--accent-d); }

/* 18. Responsive ------------------------------------------------- */
@media (max-width: 900px) {
  .tl-nav { flex-wrap: wrap; }
  .tl-nav-links { order: 3; width: 100%; justify-content: space-between; }
  .tl-split { grid-template-columns: 1fr; }
  .tl-footer-grid { grid-template-columns: 1fr; }
  .tl-footer-grid--4 { grid-template-columns: 1fr 1fr; }
  .tl-hero-content { max-width: none; }
}
@media (max-width: 560px) {
  .tl-footer-grid--4 { grid-template-columns: 1fr; }
}
