/* ======================================================
   Gasyplomeria24hs — Design tokens
   ====================================================== */
:root {
  /* Color */
  --azul-gas: #0F3D5C;
  --azul-gas-deep: #0A2638;
  --naranja-llama: #E8632C;
  --naranja-llama-deep: #C94E1C;
  --crema-tibio: #FBF4EC;
  --crema-tibio-card: #FFFFFF;
  --blanco-hueso: #FFFCF8;
  --verde-wa: #25D366;
  --verde-wa-deep: #1DA851;
  --tinta: #1B2A33;
  --tinta-suave: #4C5C66;
  --linea: rgba(15, 61, 92, 0.12);
  --linea-noche: rgba(255, 252, 248, 0.14);

  /* Type */
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Inter", -apple-system, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", monospace;

  /* Layout */
  --maxw: 1180px;
  --pad: 1.25rem;
  --radius: 18px;
  --radius-sm: 10px;
}

@media (min-width: 640px) {
  :root { --pad: 2rem; }
}
@media (min-width: 1024px) {
  :root { --pad: 3rem; }
}

/* ======================================================
   Reset
   ====================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font: inherit; }
svg { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

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

:focus-visible {
  outline: 3px solid var(--naranja-llama);
  outline-offset: 2px;
  border-radius: 4px;
}

body {
  font-family: var(--f-body);
  color: var(--tinta);
  background: var(--blanco-hueso);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.section {
  padding: 4rem var(--pad);
}
@media (min-width: 1024px) {
  .section { padding: 6rem var(--pad); }
}

.section-warm { background: var(--crema-tibio); color: var(--tinta); }
.section-night { background: var(--azul-gas-deep); color: var(--blanco-hueso); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja-llama);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  line-height: 1.2;
}

/* ======================================================
   WhatsApp button (color reservado solo para esto)
   ====================================================== */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--verde-wa);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.55);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-wa svg { width: 1.35em; height: 1.35em; }
.btn-wa:hover, .btn-wa:focus-visible {
  background: var(--verde-wa-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -6px rgba(37, 211, 102, 0.6);
}

.float-wa {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  background: var(--verde-wa);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa span { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }
.float-wa:hover { transform: scale(1.07); }
@media (min-width: 1024px) {
  .float-wa { right: 1.75rem; bottom: 1.75rem; }
}

/* ======================================================
   1. HERO
   ====================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--blanco-hueso);
  overflow: hidden;
  padding: 6rem var(--pad) 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,38,56,0.86) 0%, rgba(10,38,56,0.72) 38%, rgba(10,38,56,0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  max-width: 640px;
}

.brand { display: flex; flex-direction: column; align-items: center; }

.brand-flame {
  width: 46px;
  height: 46px;
  color: var(--naranja-llama);
  margin-bottom: 0.9rem;
  animation: flicker 3.2s ease-in-out infinite;
}
.brand-flame svg { width: 100%; height: 100%; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  50% { transform: scale(1.06) rotate(1deg); }
}

.brand h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-suffix { color: var(--naranja-llama); }

.slogan {
  margin-top: 0.85rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: rgba(255,252,248,0.88);
  max-width: 30ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-mono);
  font-size: clamp(1.3rem, 5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blanco-hueso);
  border-bottom: 2px solid var(--naranja-llama);
  padding-bottom: 0.2rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.phone-link svg { width: 0.85em; height: 0.85em; color: var(--naranja-llama); }
.phone-link:hover, .phone-link:focus-visible { color: var(--naranja-llama); }

.hero-trust {
  font-size: 0.92rem;
  color: rgba(255,252,248,0.78);
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,252,248,0.55);
  border-radius: 999px;
  z-index: 1;
}
.hero-scroll span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--naranja-llama);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
  0% { opacity: 1; top: 6px; }
  60% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}
@media (max-height: 700px) {
  .hero-scroll { display: none; }
}

/* ======================================================
   2. FRASE
   ====================================================== */
.quote-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.quote {
  max-width: 760px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.2vw, 1.9rem);
  line-height: 1.4;
  color: var(--blanco-hueso);
}
.quote span {
  color: var(--naranja-llama);
  display: block;
  margin-bottom: 0.5rem;
}

/* ======================================================
   3. SERVICIOS
   ====================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  background: var(--crema-tibio-card);
  border: 1px solid var(--linea);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 1px 2px rgba(15,61,92,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(15,61,92,0.18);
  border-color: rgba(232,99,44,0.35);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232,99,44,0.1);
  color: var(--naranja-llama-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--azul-gas);
}
.card p {
  font-size: 0.95rem;
  color: var(--tinta-suave);
}

/* ======================================================
   4 / 7 / 9. SECCIONES DE IMAGEN
   ====================================================== */
.image-section {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.image-section img {
  width: 100%;
  object-fit: cover;
}
.image-wide img { height: 52vh; min-height: 280px; max-height: 520px; }
.image-tall img { height: 62vh; min-height: 340px; max-height: 640px; }

.image-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,38,56,0) 50%, rgba(10,38,56,0.75) 100%);
}

.image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem var(--pad) 1.75rem;
  z-index: 1;
}
.image-caption p {
  color: var(--blanco-hueso);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  max-width: 540px;
}

@media (min-width: 1024px) {
  .image-wide img { height: 60vh; }
  .image-tall img { height: 78vh; max-height: 760px; }
}

/* ======================================================
   5. HORARIO
   ====================================================== */
.schedule-section {
  display: flex;
  justify-content: center;
}
.schedule-box {
  max-width: 680px;
  text-align: center;
}
.schedule-display {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  color: var(--azul-gas);
  line-height: 1;
  margin: 0.2rem 0 1.3rem;
  letter-spacing: -0.02em;
}
.schedule-display small {
  font-size: 0.32em;
  font-weight: 500;
  color: var(--naranja-llama-deep);
  margin-left: 0.15em;
  text-transform: uppercase;
}
.schedule-display .sep {
  color: var(--linea);
  margin: 0 0.25em;
  font-weight: 400;
}
.schedule-box h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  margin-bottom: 1rem;
  color: var(--tinta);
}
.schedule-text {
  color: var(--tinta-suave);
  font-size: 1.02rem;
  max-width: 56ch;
  margin: 0 auto;
}

/* ======================================================
   6. RECOMENDACIONES
   ====================================================== */
.reviews-section .section-head h2 { color: var(--blanco-hueso); }
.reviews-section .eyebrow { color: var(--naranja-llama); }

.reviews-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: 0.5rem var(--pad) 1.25rem;
  margin: 0 calc(var(--pad) * -1);
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--naranja-llama) transparent;
}
.reviews-track:active { cursor: grabbing; }
.reviews-track::-webkit-scrollbar { height: 6px; }
.reviews-track::-webkit-scrollbar-thumb { background: var(--naranja-llama); border-radius: 99px; }
.reviews-track::-webkit-scrollbar-track { background: transparent; }

.review-card {
  flex: 0 0 auto;
  width: min(78vw, 360px);
  scroll-snap-align: start;
  background: rgba(255,252,248,0.06);
  border: 1px solid var(--linea-noche);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: space-between;
}
.review-card p {
  font-size: 0.97rem;
  line-height: 1.6;
  color: rgba(255,252,248,0.92);
}
.review-name {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--naranja-llama);
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .review-card { width: 320px; }
}

/* ======================================================
   8. ZONAS
   ====================================================== */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .zones-grid { grid-template-columns: repeat(4, 1fr); }
}

.zone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: var(--crema-tibio-card);
  border: 1px solid var(--linea);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1rem;
  font-weight: 700;
  font-family: var(--f-body);
  color: var(--azul-gas);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.zone-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(15,61,92,0.18);
}
.zone-item svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--naranja-llama-deep);
  stroke-width: 1.7;
}
.zone-item span { font-size: 0.95rem; text-align: center; }

/* ======================================================
   10. FOOTER
   ====================================================== */
.footer {
  background: var(--azul-gas-deep);
  color: var(--blanco-hueso);
  padding: 4rem var(--pad) 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-flame {
  width: 34px;
  height: 34px;
  color: var(--naranja-llama);
}

.footer-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 5vw, 2rem);
}
.footer-name span { color: var(--naranja-llama); }

.footer-line {
  color: rgba(255,252,248,0.82);
  font-size: 1rem;
  max-width: 32ch;
  margin-bottom: 0.5rem;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
}
.footer-phone { border-bottom-color: var(--naranja-llama); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,252,248,0.5);
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: column; }
  .footer-actions { flex-direction: row; }
}
