/* ============================================================
   VÉLITE — pages.css
   Componentes de páginas interiores. Lenguaje visual pit-lane/F1:
   negro de pista, rojo carreras, Saira Condensed en mayúsculas.
   Usa los tokens de tokens.css. NO redefine header/footer.
   ============================================================ */

/* ---------- Compensación del header fijo en páginas interiores ---------- */
.page {
  padding-top: var(--header-h);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  width: min(var(--maxw), 92vw); margin: 1.4rem auto 0;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.breadcrumb a { color: var(--muted); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:not(:last-child)::after {
  content: "/"; color: var(--line); margin-left: .55rem;
}
.breadcrumb [aria-current="page"] { color: var(--accent-2); }

/* ============================================================
   PAGE HERO — encabezado de página interior
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 78% 0%, #1a0b0c 0%, #0a0a0b 58%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 clamp(2.4rem, 6vw, 4rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(225,6,0,.04) 0 14px, transparent 14px 28px);
}
.page-hero__inner { position: relative; z-index: 1; width: min(var(--maxw), 92vw); margin-inline: auto; }
.page-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  font-size: .82rem; color: var(--accent); margin-bottom: .9rem;
}
.page-hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.page-hero__title {
  font-size: var(--fs-h1); line-height: .95; color: var(--text); max-width: 18ch;
}
.page-hero__title .hl { color: var(--accent); }
.page-hero__title .stroke {
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-2); text-stroke: 1.5px var(--accent-2);
}
.page-hero__lead {
  margin-top: 1.1rem; max-width: 60ch; color: var(--muted); font-size: 1.12rem;
}

/* ============================================================
   PROSE / ARTÍCULO
   ============================================================ */
.prose { max-width: 70ch; color: var(--text); }
.prose > * + * { margin-top: 1.1rem; }
.prose p { color: rgba(245,245,247,.86); }
.prose h2 {
  font-size: var(--fs-h2); margin-top: 2.4rem; color: var(--text);
}
.prose h2 .hl { color: var(--accent); }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.8rem; color: var(--accent-2); }
.prose ul { display: grid; gap: .7rem; }
.prose ul li { position: relative; padding-left: 1.4rem; color: rgba(245,245,247,.86); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  background: var(--accent); transform: rotate(45deg);
}
.prose strong { color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: .6rem 0 .6rem 1.3rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.4rem; line-height: 1.05; color: var(--text);
}

/* ============================================================
   SPEC TABLE
   ============================================================ */
.spec-table {
  width: 100%; border-collapse: collapse;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--surface);
}
.spec-table th, .spec-table td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; font-size: .82rem; color: var(--muted); width: 38%;
  background: var(--surface-2);
}
.spec-table td { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }

/* ============================================================
   GEOMETRY TABLE — tabla de geometría
   ============================================================ */
.geometry-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.geometry-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.geometry-table th, .geometry-table td {
  padding: .75rem .9rem; text-align: center; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.geometry-table thead th {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; font-size: .82rem; color: var(--accent-2);
  background: var(--surface-2); position: sticky; top: 0;
}
.geometry-table tbody th {
  text-align: left; font-family: var(--font-body); font-weight: 600;
  color: var(--muted); font-size: .92rem; white-space: nowrap;
}
.geometry-table tbody td { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.geometry-table tbody tr:hover td, .geometry-table tbody tr:hover th { background: rgba(255,255,255,.02); }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem;
}
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.8rem 1.5rem; transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(225,6,0,.5); }
.feature__icon {
  width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.feature__icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.feature h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: 1rem; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.stat-card { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.4rem) 1.4rem; text-align: center; }
.stat-card .n {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: .9; color: var(--accent);
}
.stat-card .t {
  margin-top: .5rem; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--muted);
}

/* ============================================================
   TEAM GRID — tarjetas de equipo
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(225,6,0,.5); }
.team-card__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: linear-gradient(135deg, #1a1a1e, #0e0e10); }
.team-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.team-card__role {
  position: absolute; top: 0; left: 0; background: var(--grad-accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  font-size: .68rem; padding: .35rem .7rem .35rem 1rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.team-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.team-card__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; line-height: 1; }
.team-card__meta { color: var(--accent-2); font-size: .88rem; margin-top: .35rem; }
.team-card__body p { color: var(--muted); font-size: .96rem; margin-top: .6rem; }

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq { display: grid; gap: .8rem; max-width: 820px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.faq__item[open] { border-color: rgba(225,6,0,.5); }
.faq__q {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: 1.1rem; color: var(--text);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; font-family: var(--font-display); font-weight: 800; color: var(--accent);
  font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ============================================================
   SIZE TABLE — tabla de tallas
   ============================================================ */
.size-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-table table { width: 100%; min-width: 480px; border-collapse: collapse; }
.size-table th, .size-table td {
  padding: .8rem 1rem; text-align: center; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.size-table thead th {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  font-size: .82rem; color: #fff; background: var(--accent);
}
.size-table tbody th { text-align: left; font-family: var(--font-display); font-weight: 800; color: var(--accent-2); }
.size-table tbody td { color: var(--text); }
.size-table tbody tr:nth-child(even) td, .size-table tbody tr:nth-child(even) th { background: var(--surface); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { display: grid; gap: 1.1rem; max-width: 640px; }
.contact-form .field { display: grid; gap: .4rem; }
.contact-form .field--row { grid-template-columns: 1fr 1fr; gap: 1.1rem; display: grid; }
@media (max-width: 560px) { .contact-form .field--row { grid-template-columns: 1fr; } }
.contact-form label {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .8rem; color: var(--accent-2);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text);
  padding: .9rem 1rem; border-radius: var(--r-sm); font-size: 1rem; font-family: var(--font-body);
  transition: border-color .25s ease;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible {
  outline: none; border-color: var(--accent);
}
.contact-form .form-msg { font-weight: 600; min-height: 1.4em; color: var(--accent-2); }

/* ============================================================
   STORE GRID — tarjetas de sucursal
   ============================================================ */
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.store-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.store-card:hover { transform: translateY(-5px); border-color: rgba(225,6,0,.5); }
.store-card__no {
  font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--accent); line-height: 1;
}
.store-card__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; margin: .4rem 0 .3rem; }
.store-card__addr { color: var(--muted); font-size: .96rem; }
.store-card__meta { margin-top: .9rem; color: var(--accent-2); font-size: .9rem; }
.store-card__meta a { color: var(--text); }
.store-card__meta a:hover { color: var(--accent); }

/* ============================================================
   PRODUCT DETAIL — galería + info (2 columnas)
   ============================================================ */
.product-detail {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}
.product-info__cat {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; font-size: .8rem; color: var(--accent);
}
.product-info__name { font-size: var(--fs-h1); line-height: .95; margin: .3rem 0 .8rem; }
.product-info__name .pre { color: var(--accent); }
.product-info__desc { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.4rem; }
.product-info__price { display: flex; align-items: baseline; gap: .5rem; margin: 1.4rem 0; }
.product-info__price .from {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .8rem; color: var(--muted);
}
.product-info__price .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--text); }
.product-info__price .cur { font-size: .9rem; color: var(--muted); }
.product-info__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.4rem; }
.product-info__buy { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.product-info__buy .btn { flex: 1 1 auto; justify-content: center; }

/* PRODUCT GALLERY */
.product-gallery { display: grid; gap: .8rem; }
.product-gallery__main {
  position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: linear-gradient(135deg, #1a1a1e, #0e0e10);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.product-gallery__badge {
  position: absolute; top: 0; left: 0; z-index: 2; background: var(--grad-accent); color: #fff;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .2em; font-size: .68rem;
  padding: .35rem .7rem .35rem 1rem; clip-path: polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%);
  text-transform: uppercase;
}
.product-gallery__thumbs { display: flex; gap: .7rem; flex-wrap: wrap; }
.product-gallery__thumb {
  flex: 0 0 84px; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; padding: 0;
  transition: border-color .25s ease;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb:hover, .product-gallery__thumb[aria-current="true"] { border-color: var(--accent); }

/* COLOR DOTS */
.color-dots { display: flex; align-items: center; gap: .6rem; margin: .4rem 0; }
.color-dots .label {
  font-family: var(--font-display); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; font-size: .78rem; color: var(--muted); margin-right: .3rem;
}
.color-dot {
  width: 28px; height: 28px; border-radius: var(--r-pill); border: 2px solid var(--line);
  cursor: pointer; padding: 0; transition: transform .2s var(--ease), border-color .2s ease;
}
.color-dot:hover { transform: scale(1.1); }
.color-dot[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(225,6,0,.4); }

/* SIZE PILLS */
.size-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0; }
.size-pill {
  min-width: 48px; padding: .55rem .8rem; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text); border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.size-pill:hover { border-color: var(--accent); color: var(--accent); }
.size-pill[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   RELATED GRID — productos relacionados / colección
   ============================================================ */
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.3rem;
}
/* reutiliza .card de styles.css; estos overrides la encajan en grid */
.related-grid .card { flex: initial; scroll-snap-align: none; }

/* ============================================================
   CTA BAND — banda de llamado a la acción
   ============================================================ */
.cta-band {
  background: var(--grad-accent); color: #fff; position: relative; overflow: hidden;
  clip-path: var(--cut-top); margin-top: -2vw;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 14px, transparent 14px 28px);
}
.cta-band__inner {
  position: relative; z-index: 1; width: min(960px, 92vw); margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); text-align: center;
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta-band p { max-width: 52ch; margin: .8rem auto 1.8rem; color: rgba(255,255,255,.92); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ============================================================
   UTILIDADES de sección interior
   ============================================================ */
.section--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.media-frame {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #16161a, #0a0a0b); min-height: 320px;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .product-detail { grid-template-columns: 1fr; }
  .section--split { grid-template-columns: 1fr; }
}

/* ---------- Tap targets táctiles (>=44px) en selectores de producto ----------
   Solo en punteros gruesos; en escritorio el diseño queda igual. */
@media (pointer: coarse) {
  .size-pill { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .color-dot { width: 40px; height: 40px; }
  .filter-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .breadcrumb a { display: inline-block; padding: .35rem 0; }
}
