/* JC Informática — hoja de estilos única. Sin dependencias externas. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  unicode-range: U+0000-002F, U+003A-FFFF;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  unicode-range: U+0000-002F, U+003A-FFFF;
  font-display: swap;
}

:root {
  --mat: #1f3b4d;        /* azul alfombrilla antiestática */
  --mat-deep: #16303f;
  --paper: #f5f7f8;
  --ink: #14212b;
  --muted: #55636e;
  --line: #d5dde2;
  --tag: #f2c230;        /* amarillo etiqueta de taller */
  --tag-ink: #2a2206;
  --open: #1f7a4c;
  --closed: #a33a2c;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4vw + 1rem, 3.25rem);
  --step-4: clamp(2.6rem, 5vw + 1rem, 4.4rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--tag); color: var(--tag-ink); padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--step-3); font-stretch: 112%; font-weight: 750; max-width: 20ch; }
h3 { font-size: var(--step-1); font-weight: 650; font-stretch: 100%; }
p { margin: 0; max-width: 62ch; }

/* ---------- Cabecera ---------- */
.top {
  background: var(--mat);
  color: #fff;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 1.15rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: .8rem; opacity: .75; margin-top: .25rem; }
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; opacity: .85; font-size: .98rem; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--tag); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .top .wrap { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .nav { gap: .95rem; overflow-x: auto; width: 100%; padding-bottom: .25rem; scrollbar-width: none; }
  .nav a { white-space: nowrap; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero { background: var(--mat); color: #fff; padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); position: relative; overflow: hidden; }
.hero::before { /* trama de la alfombrilla */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px);
  background-size: 18px 18px;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 118%;
  line-height: .98;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.hero .lede { font-size: var(--step-1); line-height: 1.45; margin-top: 1.4rem; color: #dbe5eb; max-width: 34ch; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.3rem; border-radius: 6px;
  font-weight: 700; text-decoration: none; font-size: 1.02rem;
  border: 2px solid transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--tag); color: var(--tag-ink); }
.btn-primary:hover { background: #ffd34a; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* La etiqueta de taller: el elemento memorable */
.tag-card {
  position: relative;
  background: var(--tag);
  color: var(--tag-ink);
  border-radius: 10px 10px 10px 10px;
  padding: 2.4rem 1.6rem 1.6rem 1.6rem;
  transform: rotate(-2.2deg);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
  max-width: 24rem;
  justify-self: end;
  width: 100%;
}
@media (max-width: 860px) { .tag-card { justify-self: start; transform: rotate(-1.2deg); margin-top: 3.5rem; } }
.tag-card::before { /* ojal */
  content: ""; position: absolute; top: 14px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--mat); box-shadow: inset 0 0 0 3px rgba(0,0,0,.18);
}
.tag-card::after { /* cordel */
  content: ""; position: absolute; top: -60px; left: 50%; width: 2px; height: 82px; margin-left: -1px;
  background: rgba(255,255,255,.55); transform: rotate(8deg); transform-origin: bottom;
}
.tag-status { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-stretch: 115%; font-size: 1.7rem; line-height: 1.1; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: none; }
.is-open .dot { background: var(--open); box-shadow: 0 0 0 4px rgba(31,122,76,.22); }
.is-closed .dot { background: var(--closed); }
.tag-next { margin-top: .35rem; font-size: 1rem; }
.tag-rule { border: 0; border-top: 2px dashed rgba(42,34,6,.35); margin: 1.2rem 0; }
.tag-dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .98rem; }
.tag-dl dt { font-weight: 700; }
.tag-dl dd { margin: 0; }
.tag-dl a { text-underline-offset: 3px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.45; max-width: 46ch; }

/* Lista de reparaciones: filas, no tarjetas */
.fix-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); border-top: 2px solid var(--ink); }
@media (max-width: 720px) { .fix-list { grid-template-columns: 1fr; } }
.fix-list li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding-block: 1.35rem; border-bottom: 1px solid var(--line); }
.fix-list svg { width: 36px; height: 36px; color: var(--mat); margin-top: 2px; }
.fix-list p { color: var(--muted); margin-top: .3rem; }

/* Empresas: banda oscura */
.band { background: var(--mat-deep); color: #fff; }
.band .section-head p { color: #b9c8d1; }
.biz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.25); }
@media (max-width: 900px) { .biz { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .biz { grid-template-columns: 1fr; } }
.biz > div { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.biz p { color: #c9d6dd; margin-top: .5rem; font-size: 1rem; }
.biz-cta { margin-top: 2.5rem; }

/* Proceso: es una secuencia real, así que va numerado */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: paso; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: paso; border-left: 3px solid var(--tag); padding: .2rem 0 .2rem 1.1rem; }
.steps li::before { content: counter(paso); display: block; font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 2.4rem; line-height: 1; color: var(--mat); margin-bottom: .6rem; }
.steps p { color: var(--muted); margin-top: .4rem; }

.promise { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.promise strong { font-family: var(--display); font-stretch: 110%; font-size: 1.15rem; }
.promise span { color: var(--muted); display: block; }

/* Visítanos */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .visit { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: .75rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; width: 42%; }
.hours tr.today th, .hours tr.today td { background: linear-gradient(90deg, rgba(242,194,48,.35), rgba(242,194,48,0)); }
.hours tr.today th { padding-left: .6rem; }
.note { color: var(--muted); margin-top: 1rem; font-size: .98rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 700; text-underline-offset: 3px; }
.address { font-family: var(--display); font-stretch: 108%; font-size: var(--step-2); font-weight: 650; line-height: 1.2; margin-top: 1rem; }

/* Pie */
.foot { background: var(--ink); color: #b8c3ca; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { color: #e5ecf0; text-underline-offset: 3px; }

/* Páginas legales */
.legal { padding-block: 3rem 5rem; }
.legal h1 { font-size: var(--step-3); font-stretch: 112%; font-weight: 750; margin-bottom: 1.5rem; }
.legal h2 { font-size: var(--step-1); font-stretch: 100%; margin: 2rem 0 .6rem; max-width: none; }
.legal p, .legal li { max-width: 68ch; }
.legal p + p { margin-top: .8rem; }
.fill { background: #fff3c4; padding: 0 .25rem; border-radius: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.white { background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Páginas de servicio ---------- */
.page-head { background: var(--mat); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 6vw, 4rem); }
.page-head h1 { font-size: var(--step-3); font-weight: 800; font-stretch: 115%; max-width: 22ch; margin-top: .9rem; }
.page-head .lede { font-size: var(--step-1); line-height: 1.45; color: #dbe5eb; margin-top: 1rem; max-width: 46ch; }
.crumbs { font-size: .92rem; color: #b9c8d1; }
.crumbs a { color: #fff; text-underline-offset: 3px; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3.5rem, 8vw, 5rem); align-items: start; }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } }
.prose > section + section { margin-top: 2.5rem; }
.prose h2 { font-size: var(--step-2); font-stretch: 108%; font-weight: 750; max-width: none; margin-bottom: .8rem; }
.prose p + p { margin-top: .8rem; }
.prose ul { padding-left: 1.2rem; margin: 0; max-width: 62ch; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--mat); }
.price { background: #fff; border-left: 4px solid var(--tag); padding: 1.4rem 1.5rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { font-weight: 700; cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: .6rem; color: var(--muted); }
.cta-box { position: sticky; top: 1.5rem; background: var(--tag); color: var(--tag-ink); padding: 1.6rem; border-radius: 10px; }
.cta-box h2 { font-size: var(--step-1); font-stretch: 110%; font-weight: 800; }
.cta-box p { margin-top: .6rem; font-size: 1rem; }
.cta-box .actions { flex-direction: column; margin-top: 1.2rem; }
.cta-box .btn { justify-content: center; }
.cta-box .btn-primary { background: var(--ink); color: #fff; }
.cta-box .btn-primary:hover { background: var(--mat); }
.btn-line { border-color: var(--tag-ink); color: var(--tag-ink); }
.btn-line:hover { background: rgba(0,0,0,.06); }
.cta-meta { font-size: .92rem !important; }
@media (max-width: 900px) { .cta-box { position: static; } }

/* Enlaces a páginas de servicio en la portada */
.fix-list h3 a { text-decoration: none; }
.fix-list h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.more { display: inline-block; margin-top: .5rem; font-weight: 700; color: var(--mat); text-underline-offset: 3px; }
.band .more { color: var(--tag); }
.rate { margin-top: 1.25rem; font-size: 1.05rem; color: #fff; }
.rate strong { color: var(--tag); }

/* Soporte remoto */
.warn { background: #fff; border: 2px solid var(--closed); border-radius: 8px; padding: 1.3rem 1.5rem; }
.warn h2 { color: var(--closed); }
.howto { list-style: none; padding: 0; margin: 0; counter-reset: paso; }
.howto > li { counter-increment: paso; position: relative; padding: 0 0 1.4rem 3.2rem; }
.howto > li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--tag); color: var(--tag-ink); font-family: var(--display); font-weight: 800; display: grid; place-items: center; }
.howto p { margin-top: .4rem; }
.howto .btn { margin-bottom: .2rem; }
.btn-dark { background: var(--mat); color: #fff; }
.btn-dark:hover { background: var(--ink); }
.cfg { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: .9rem 0 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.1rem; align-items: center; }
.cfg dt { font-weight: 700; }
.cfg dd { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; min-width: 0; }
.cfg code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; background: var(--paper); padding: .2rem .45rem; border-radius: 4px; word-break: break-all; }
@media (max-width: 520px) { .cfg { grid-template-columns: 1fr; } .cfg dt { margin-top: .4rem; } }
.copy { font: inherit; font-size: .88rem; font-weight: 700; padding: .3rem .7rem; border-radius: 5px; border: 1.5px solid var(--mat); background: transparent; color: var(--mat); cursor: pointer; }
.copy:hover { background: var(--mat); color: #fff; }
.copy.done { background: var(--open); border-color: var(--open); color: #fff; }
