/* =========================================================
   BIG3 SPORT — hoja de estilos compartida (v2, fondo claro)
   Mobile-first. Base = 375px. Breakpoints: 768px, 1024px.
   ========================================================= */

/* 1. TOKENS ------------------------------------------------ */
:root {
  --color-bg: #FFFFFF;
  --color-surface: #F7F7F5;
  --color-surface-2: #EFEFEA;
  --color-border: #E5E5E0;
  --color-text: #111111;
  --color-muted: #6B6B65;
  --color-yellow: #FAED12;

  --font-head: 'Bebas Neue', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --tracking-label: 0.16em;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  --container-max: 1320px;
  --gutter: 24px;
  --header-h: 64px;
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 2. RESET / BASE ------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  padding-top: var(--header-h);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

input, select, textarea { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

html.nav-lock, html.nav-lock body { overflow: hidden; }

/* reveal-on-scroll utility (progressive enhancement, see main.js) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* 3. TIPOGRAFÍA --------------------------------------------- */
h1, h2 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.96;
  color: var(--color-text);
}

h1 { font-size: clamp(40px, 8vw, 88px); }
h2 { font-size: clamp(30px, 5vw, 52px); }

h1 mark, h2 mark {
  background: var(--color-yellow);
  color: var(--color-text);
  padding: 0 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

p { color: var(--color-text); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-2);
}

.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--color-yellow); flex-shrink: 0; }

.lead {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 540px;
  line-height: 1.8;
}

.divider { height: 3px; background: var(--color-text); border: none; width: 100%; margin: var(--space-4) 0; }
.divider--yellow { height: 1px; background: var(--color-yellow); }

/* ghost / outline number utility */
.ghost-num {
  font-family: var(--font-head);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-border);
  line-height: 0.8;
  user-select: none;
  pointer-events: none;
}

/* 4. LAYOUT --------------------------------------------------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-3); }

.section { padding: var(--space-6) 0; }

@media (min-width: 1024px) { .section { padding: var(--space-8) 0; } }

.section--alt { background: var(--color-surface); }

.grid { display: grid; grid-template-columns: 1fr; gap: var(--gutter); }

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, 1fr); }
  .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; }
  .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
  .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
}

/* page header band (páginas internas: catálogo/proceso/proyectos/cotiza) */
.page-header { padding-top: var(--space-6); padding-bottom: var(--space-5); border-bottom: 3px solid var(--color-text); }
.page-header h1 { max-width: 820px; margin-bottom: var(--space-2); }
.page-header .lead { margin-top: var(--space-2); }

/* 6. HEADER + NAV --------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--color-bg); border-bottom: 1px solid var(--color-border); z-index: 200;
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-hex {
  width: 20px; height: 20px; background: var(--color-yellow); flex-shrink: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.logo-word { font-weight: 800; font-size: 14px; letter-spacing: 0.04em; color: var(--color-text); }
@media (min-width: 1024px) { .logo-word { font-size: 16px; } }

.hamburger { position: relative; width: 32px; height: 24px; z-index: 210; }
.hamburger__bar { position: absolute; left: 0; right: 0; height: 2px; background: var(--color-text); transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger__bar:nth-child(1) { top: 0; } .hamburger__bar:nth-child(2) { top: 11px; } .hamburger__bar:nth-child(3) { top: 22px; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#site-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--color-bg); transform: translateX(100%); transition: transform 0.25s ease;
  overflow-y: auto; z-index: 199;
}
#site-nav.is-open { transform: translateX(0); }
.nav-list { display: flex; flex-direction: column; padding: var(--space-4) var(--space-3); }
.nav-link { display: block; font-family: var(--font-body); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.nav-link.is-active { color: var(--color-text); border-bottom: 2px solid var(--color-yellow); }

@media (min-width: 1024px) {
  .hamburger { display: none; }
  #site-nav { position: static; transform: none; background: none; height: auto; overflow: visible; }
  .nav-list { flex-direction: row; gap: var(--space-5); padding: 0; }
  .nav-link { font-size: 11px; letter-spacing: var(--tracking-label); padding: 0 0 6px; border-bottom: 2px solid transparent; }
  .nav-link:hover, .nav-link.is-active { border-bottom-color: var(--color-yellow); }
}

/* 7. BOTONES ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1);
  font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 16px 26px; border: 2px solid var(--color-text); background: var(--color-yellow); color: var(--color-text);
  transition: transform 0.15s ease;
}
.btn--dark { background: var(--color-text); color: #fff; }
.btn--outline { background: transparent; color: var(--color-text); }
.btn--block { width: 100%; }
.btn--stamp { transform: rotate(-3deg); }
.btn--stamp:hover { transform: rotate(0deg); }

/* 8. TARJETAS ----------------------------------------------------- */
.card { background: var(--color-surface); border-top: 3px solid var(--color-yellow); padding: var(--space-4); position: relative; overflow: hidden; }
.card__ghost { position: absolute; top: -14px; right: 4px; font-size: 90px; z-index: 0; }
.card__title, .card__body { position: relative; z-index: 1; }
.card__title { margin-bottom: var(--space-2); }
.card__body { color: var(--color-muted); font-size: 14.5px; line-height: 1.7; }

/* sport cards (catálogo) */
.sport-card { background: var(--color-surface); border: 2px solid var(--color-text); display: flex; flex-direction: column; position: relative; }
.sport-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: 2px solid var(--color-text); }
.sport-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sport-card__body { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.sport-card__name { font-family: var(--font-head); text-transform: uppercase; font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.sport-card__includes { list-style: none; color: var(--color-muted); font-size: 14px; line-height: 1.9; }
.sport-card__includes li::before { content: "— "; color: var(--color-yellow); }
.sport-card--other { justify-content: center; align-items: center; text-align: center; border-style: dashed; }

/* 9. SCOREBOARD (franja de datos) ------------------------------------ */
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--color-text); border-bottom: 3px solid var(--color-text); }
.scoreboard__cell { padding: var(--space-4); border-left: 2px solid var(--color-text); }
.scoreboard__cell:first-child { border-left: none; }
.scoreboard__num { font-family: var(--font-head); font-size: clamp(46px, 7vw, 84px); line-height: 1; color: var(--color-text); }
.scoreboard__label { font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); margin-top: var(--space-1); font-weight: 600; }

@media (max-width: 767px) {
  .scoreboard { grid-template-columns: 1fr; }
  .scoreboard__cell { border-left: none; border-top: 2px solid var(--color-text); }
  .scoreboard__cell:first-child { border-top: none; }
}

/* 10. TIMELINE (proceso.html) ---------------------------------------- */
.timeline__step { display: grid; grid-template-columns: 130px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.timeline__step:first-child { border-top: none; padding-top: 0; }
.timeline__ghost { font-size: 96px; }
.timeline__title { margin-bottom: var(--space-2); }
.timeline__body { color: var(--color-muted); font-size: 15px; line-height: 1.75; margin-bottom: var(--space-3); max-width: 520px; }
.timeline__meta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.timeline__meta div { font-size: 12.5px; }
.timeline__meta-label { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--color-text); font-weight: 700; margin-bottom: 5px; font-size: 10px; }
.timeline__meta-label::before { content: ""; width: 14px; height: 2px; background: var(--color-yellow); flex-shrink: 0; }

@media (max-width: 640px) {
  .timeline__step { grid-template-columns: 1fr; gap: var(--space-2); }
  .timeline__ghost { font-size: 64px; }
}

.process-note { background: var(--color-surface); border-left: 3px solid var(--color-yellow); padding: var(--space-3); margin-top: var(--space-6); max-width: 640px; }

/* 11. GALERÍA (proyectos.html) --------------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; gap: var(--space-3); grid-auto-flow: dense; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}
.gallery__item { position: relative; overflow: hidden; background: var(--color-surface); border: 2px solid var(--color-text); aspect-ratio: 1/1; }
@media (min-width: 768px) { .gallery__item { aspect-ratio: auto; } }
.gallery__item img, .gallery__item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery__tag { position: absolute; left: 0; bottom: 0; padding: 6px 14px; background: var(--color-yellow); color: var(--color-text); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; z-index: 1; }
.gallery__tag--top { bottom: auto; top: 0; }
.projects-closing { text-align: center; padding: var(--space-6) 0; }
.projects-closing h2 { margin-bottom: var(--space-3); }

/* 12. FORMULARIO (cotiza.html) ----------------------------------------- */
.form__group { margin-bottom: var(--space-3); }
.form__label { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text); font-weight: 700; margin-bottom: var(--space-1); }
.form__label::before { content: ""; width: 14px; height: 2px; background: var(--color-yellow); flex-shrink: 0; }
.form__input, .form__select, .form__textarea { width: 100%; background: var(--color-bg); border: 2px solid var(--color-text); color: var(--color-text); padding: 14px 16px; font-size: 15px; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--color-yellow); box-shadow: 0 0 0 3px rgba(250,237,18,0.4); }
.form__textarea { min-height: 110px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 0 var(--space-3); }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__row .form__group { margin-bottom: var(--space-3); }
.form__hint { font-size: 12px; color: var(--color-muted); display: block; margin-top: 6px; }

.next-steps { list-style: none; counter-reset: step; }
.next-steps li { counter-increment: step; padding-left: 44px; position: relative; margin-bottom: var(--space-3); color: var(--color-muted); font-size: 14px; line-height: 1.7; }
.next-steps li::before { content: counter(step); font-family: var(--font-head); color: var(--color-text); position: absolute; left: 0; top: -4px; font-size: 24px; }

/* 13. FOOTER --------------------------------------------------------- */
.site-footer { background: var(--color-surface); border-top: 3px solid var(--color-text); padding: var(--space-6) 0 var(--space-4); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); padding-bottom: var(--space-4); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-2); }
.footer__col-title { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text); font-weight: 700; margin-bottom: var(--space-2); }
.footer__col-title::before { content: ""; width: 14px; height: 2px; background: var(--color-yellow); flex-shrink: 0; }
.footer__link { display: block; color: var(--color-muted); font-size: 14px; margin-bottom: var(--space-1); }
.footer__link:hover { color: var(--color-text); }
.footer__bottom { border-top: 1px solid var(--color-border); padding-top: var(--space-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: 12px; color: var(--color-muted); }

/* 14. WHATSAPP FAB ------------------------------------------------------ */
.whatsapp-fab { position: fixed; right: var(--space-2); bottom: var(--space-2); width: 56px; height: 56px; background: var(--color-yellow); border: 2px solid var(--color-text); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 300; }
.whatsapp-fab svg { width: 26px; height: 26px; fill: var(--color-text); }
@media (min-width: 1024px) { .whatsapp-fab { right: var(--space-4); bottom: var(--space-4); width: 64px; height: 64px; } .whatsapp-fab svg { width: 30px; height: 30px; } }

/* =========================================================
   PÁGINA: INDEX — hero + scoreboard
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 0 var(--space-3); display: grid; grid-template-columns: repeat(12, 1fr); min-height: 640px; border-bottom: 3px solid var(--color-text); }
.hero__bignum { grid-column: 6/13; position: absolute; top: -6vw; right: -2vw; font-size: min(56vw, 720px); z-index: 0; }
.hero__content { grid-column: 1/8; position: relative; z-index: 1; padding: var(--space-6) 0; display: flex; flex-direction: column; justify-content: center; }
.hero__title { line-height: 0.94; }
.hero__title .row { font-size: clamp(40px, 7vw, 100px); display: block; }
.hero__title .row--ghost { color: transparent; -webkit-text-stroke: 2px var(--color-text); }
.hero__title .tag { background: var(--color-yellow); display: inline-block; padding: 2px 14px 6px; margin-top: 6px; font-size: clamp(32px, 5.6vw, 74px); }
.hero__sub { font-size: 16px; color: var(--color-muted); max-width: 420px; line-height: 1.75; margin: var(--space-4) 0 0; }
.hero__cta { margin-top: var(--space-5); align-self: flex-start; }

.hero__photo { grid-column: 1/-1; position: relative; z-index: 1; margin: 0 0 var(--space-2); width: 100%; max-width: 320px; border: 3px solid var(--color-text); background: var(--color-bg); }
.hero__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__content { grid-column: 1/-1; padding: var(--space-5) 0 var(--space-6); }
  .hero__bignum { display: none; }
}

@media (min-width: 901px) {
  .hero__photo { position: absolute; right: 5%; bottom: var(--space-6); width: 260px; margin: 0; }
}

.we-do-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) { .we-do-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 768px) { .catalog-preview-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-3); } }
.catalog-preview-item { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--color-surface); border: 2px solid var(--color-text); }
.catalog-preview-item img, .catalog-preview-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.catalog-preview-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-2); background: linear-gradient(to top, rgba(0,0,0,0.88), transparent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #fff; }

.catalog-preview-item .carousel-img, .sport-card__media .carousel-img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; }
.catalog-preview-item .carousel-img--1, .sport-card__media .carousel-img--1 { opacity: 1; }
.catalog-preview-item:hover .carousel-img, .sport-card__media:hover .carousel-img { animation: catalogCarousel 3s infinite; }
.catalog-preview-item:hover .carousel-img--2, .sport-card__media:hover .carousel-img--2 { animation-delay: 1.5s; }
@keyframes catalogCarousel {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.promo-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 408px)); justify-content: center; } }

.process-preview { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 768px) { .process-preview { grid-template-columns: repeat(4, 1fr); } }
.process-preview__step { border-top: 3px solid var(--color-yellow); padding-top: var(--space-2); }
.process-preview__number { font-family: var(--font-head); font-size: 34px; color: var(--color-text); }

.trust-band { text-align: center; }
.trust-band__lead { max-width: 640px; margin: 0 auto var(--space-5); }
.testimonials { display: grid; grid-template-columns: 1fr; gap: var(--space-3); text-align: left; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: var(--color-bg); padding: var(--space-3); border-top: 3px solid var(--color-text); }
.testimonial p { font-size: 15px; color: var(--color-text); margin-bottom: var(--space-2); }
.testimonial cite { font-style: normal; font-size: 12px; color: var(--color-muted); }

.cta-band { background: var(--color-yellow); color: var(--color-text); text-align: center; padding: var(--space-7) 0; border-top: 3px solid var(--color-text); border-bottom: 3px solid var(--color-text); }
.cta-band h2 { margin-bottom: var(--space-4); }

/* =========================================================
   PÁGINA: CATÁLOGO
   ========================================================= */
.catalog-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   PÁGINA: COTIZA
   ========================================================= */
.quote-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 1024px) { .quote-layout { grid-template-columns: 3fr 2fr; } }
.quote-aside { background: var(--color-surface); padding: var(--space-4); border-top: 3px solid var(--color-yellow); height: fit-content; }
.quote-aside__contact { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.quote-aside__contact a { color: var(--color-text); font-weight: 700; }
