/* ============================================================
   Gasolineras Grupo Goma — style.css
   Tabla de contenidos
   1. Tokens
   2. Base y resets
   3. Header (.site-header)
   4. Slider (.slider)
   5. Hero (.hero)
   6. Nosotros (.about)
   7. Servicios (.services)
   8. Indicadores (.slider-nav)
   9. Responsivo
   10. Accesibilidad y print
   ============================================================ */

/* 1. Tokens */
:root {
  --font-sans: 'Montech', 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;
  --bg: oklch(0.16 0.015 100);
  --surface: oklch(0.19 0.012 100);
  --text-clear: oklch(0.96 0.005 100);
  --text-mid: oklch(0.85 0.01 100);
  --text-faint: oklch(0.62 0.02 100);
  --accent: oklch(0.82 0.15 95);
  --accent-strong: oklch(0.88 0.15 95);
  --on-accent: oklch(0.14 0.02 100);
  --line: oklch(0.96 0.005 100 / 0.12);
  --line-strong: oklch(0.96 0.005 100 / 0.14);
  --radius: 8px;
  --pad-x: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

@font-face { font-family: 'Montech'; src: url('assets/fonts/montech-v02-light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montech'; src: url('assets/fonts/montech-v02-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

/* 2. Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-clear);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-sans); font-weight: 300; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: -9999px; z-index: 50;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--radius);
}
.skip-link:focus { left: 16px; top: 16px; }

.kicker {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 3. Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: oklch(0.16 0.015 100 / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-clear); }
.site-header__logo { display: block; height: 45px; width: auto; }
.site-header__wordmark { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: oklch(0.72 0.02 100); }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; }
.site-nav__link { color: oklch(0.9 0.005 100); text-decoration: none; }
.site-nav__link:hover { color: var(--accent); }
.site-nav__cta {
  color: var(--on-accent); background: var(--accent);
  text-decoration: none; padding: 10px 20px; border-radius: 6px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav__cta:hover { background: var(--accent-strong); color: var(--on-accent); }

/* 4. Slider — sin JS los paneles fluyen en vertical; JS activa el modo lateral */
.slider { position: relative; }
.slider__track { display: block; }
.panel { position: relative; min-height: 100vh; padding-top: 125px; }
body.is-slider { height: 100vh; overflow: hidden; }
body.is-slider .slider { height: 100vh; overflow: hidden; }
body.is-slider .slider__track {
  display: flex; height: 100%; width: 500vw;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
body.is-slider .panel { width: 100vw; flex: none; height: 100%; overflow-y: auto; overflow-x: hidden; min-height: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.is-slider .slider__track { transition: none; }
}

/* 5. Hero */
.hero { display: flex; flex-direction: column; padding-top: 0; }
.hero__bg {
  position: sticky; top: 0; margin-bottom: -100vh; flex: none;
  width: 100%; height: 100vh; object-fit: cover; object-position: center 65%; z-index: 0;
}
.hero__overlay {
  position: sticky; top: 0; margin-bottom: -100vh; flex: none; height: 100vh; z-index: 1;
  background: linear-gradient(105deg, oklch(0.16 0.015 100 / 0.96) 25%, oklch(0.16 0.015 100 / 0.72) 60%, oklch(0.16 0.015 100 / 0.35));
}
.hero__main {
  position: relative; z-index: 2; flex: 1;
  display: flex; align-items: center;
  padding: clamp(125px, 16vh, 150px) var(--pad-x) clamp(20px, 4vh, 48px);
}
.hero__content { max-width: 860px; }
body.anim-ready .hero__content { animation: ggFade 0.7s ease both; }
@keyframes ggFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__title {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.hero__lead {
  margin: 0 0 28px;
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55;
  max-width: 52ch; color: var(--text-mid);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-station {
  display: inline-flex; flex-direction: column; gap: 2px; justify-content: center;
  text-decoration: none; padding: 14px 26px; border-radius: var(--radius); min-height: 44px;
}
.btn-station__label { font-size: 17px; }
.btn-station__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.btn-station--solid { background: var(--accent); color: var(--on-accent); }
.btn-station--solid:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-station--ghost { border: 1px solid oklch(0.82 0.15 95 / 0.6); color: var(--text-clear); }
.btn-station--ghost:hover { border-color: var(--accent); background: oklch(0.82 0.15 95 / 0.1); color: var(--text-clear); }
.hero__external-note { margin: 14px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

.hero__stations {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  border-top: 1px solid var(--line);
}
.station-card { padding: 20px var(--pad-x); display: flex; flex-direction: column; gap: 4px; }
.station-card:first-child { border-right: 1px solid var(--line); }
.station-card__id { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); }
.station-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; color: oklch(0.8 0.01 100); font-style: normal; }
.station-card__addr { max-width: 42ch; }
.station-card__tel { color: var(--text-clear); white-space: nowrap; }

/* 6. Nosotros */
.about {
  display: flex; background: var(--surface);
  padding: clamp(130px, 18vh, 170px) var(--pad-x) clamp(40px, 6vh, 64px);
}
.about__grid {
  max-width: var(--maxw); margin: auto; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(32px, 4vw, 72px); align-items: center;
}
.about__col { min-width: 0; }
.about__title { margin: 0 0 22px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.about__text { margin: 0 0 16px; font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.7; max-width: 58ch; color: var(--text-mid); }
.about__text--last { margin-bottom: 32px; }
.about__values { display: grid; grid-template-columns: 1fr; gap: 20px; }
.value-block { border-left: 2px solid var(--accent); padding-left: 20px; }
.value-block__title { margin: 0 0 8px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.value-block__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-mid); }
.about__figure { margin: 0; min-width: 0; position: relative; align-self: stretch; display: flex; flex-direction: column; }
.about__photo { display: block; width: 100%; flex: 1; min-height: 0; height: 100%; object-fit: cover; border-radius: 10px; }
.about__caption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-faint); }

/* 7. Servicios */
.services { display: flex; background: var(--bg); padding: clamp(90px, 13vh, 120px) var(--pad-x) clamp(40px, 6vh, 64px); }
.services__inner { max-width: var(--maxw); margin: auto; width: 100%; }
.services__title { margin: 0 0 36px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.services__grid {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.service-card { background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.service-card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.service-card__name { font-size: 18px; }
.service-card__desc { font-size: 14px; line-height: 1.6; color: oklch(0.8 0.01 100); }
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.promise { border-left: 2px solid var(--accent); padding: 10px 20px; display: flex; align-items: center; gap: 14px; }
.promise__icon { flex: none; }
.promise__label { margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.services__note { margin: 20px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }

/* 8. Ubicaciones (.location) */
.location { display: flex; background: var(--surface); padding: clamp(110px, 15vh, 140px) var(--pad-x) clamp(32px, 5vh, 56px); }
.location:nth-of-type(odd) { background: var(--bg); }
.location__inner {
  max-width: var(--maxw); margin: auto; width: 100%;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 4vw, 64px); align-items: stretch;
}
.location__col { min-width: 0; }
.location__title { margin: 0 0 18px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.location__data { font-style: normal; }
.location__addr { margin: 0 0 16px; font-family: var(--font-body); font-weight: 400; font-size: 15px; line-height: 1.6; max-width: 48ch; color: var(--text-mid); }
.location__contacts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 22px; }
.location__contact { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text-clear); font-size: 15px; min-height: 44px; justify-content: center; }
.location__contact:hover { color: var(--accent); }
.location__contact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.location__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.btn-station--wa { flex-direction: row; align-items: center; gap: 10px; }
.location__map { min-height: 320px; display: flex; }
.location__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: 10px; }

/* Formulario de contacto */
.contact-form { max-width: 520px; display: grid; gap: 12px; }
.contact-form__intro { margin: 0; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--text-mid); }
.contact-form__field { display: grid; gap: 5px; }
.contact-form__field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); }
.contact-form__field input,
.contact-form__field textarea {
  background: oklch(0.96 0.005 100 / 0.06); border: 1px solid var(--line-strong);
  border-radius: 6px; padding: 10px 12px; color: var(--text-clear);
  font-family: var(--font-body); font-size: 15px; width: 100%; box-sizing: border-box; resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.contact-form__hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.contact-form__submit {
  justify-self: start; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: 6px;
  padding: 12px 28px; min-height: 44px; font-family: var(--font-sans); font-weight: 300;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-form__submit:hover { background: var(--accent-strong); }
.contact-form__msg { margin: 0; font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* 9. Indicadores del slider (solo con JS) */
.slider-nav { display: none; }
body.is-slider .slider-nav {
  position: fixed; right: clamp(14px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; flex-direction: column; gap: 14px;
}
.slider-nav__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--accent); background: transparent; cursor: pointer; padding: 0;
}
.slider-nav__dot.is-active { background: var(--accent); }
.slide-label { display: none; }
body.is-slider .slide-label {
  display: block; position: fixed; right: clamp(10px, 1.6vw, 22px); top: calc(50% + 74px);
  z-index: 10; margin: 0; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.7 0.02 100);
  writing-mode: vertical-rl;
}

/* 9. Responsivo */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
  .site-header__logo { height: 34px; }
  .site-header__wordmark { display: none; }
  .site-nav { gap: 14px; font-size: 13px; width: 100%; justify-content: space-between; }
  .site-nav__cta { padding: 8px 14px; }
  .slide-label, body.is-slider .slide-label { display: none; }
  body.is-slider .slider-nav { top: auto; bottom: 14px; right: 50%; transform: translateX(50%); flex-direction: row; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .btn-station { width: 100%; }
  .about, .services, .location { padding-top: 110px; }
  .location__map { min-height: 240px; }
}

/* 10. Print */
@media print {
  body { background: #fff; color: #000; overflow: visible; height: auto; }
  .site-header, .slider-nav, .slide-label, .hero__ctas, .site-nav { display: none !important; }
  .hero__bg, .hero__overlay { display: none; }
  .panel { min-height: 0; }
}
