/* ============================================
   PRECIADO TIRES — Car Culture, Family Roots
   ============================================ */

:root {
  --asphalt: #1A1A1A;
  --racing-red: #D4213D;
  --chrome: #B8B8B8;
  --rubber: #2D2D2D;
  --safety-yellow: #F5C518;
  --white: #FFFFFF;
  --off-white: #F0F0F0;
  --dark-overlay: rgba(26, 26, 26, 0.85);
  --red-glow: rgba(212, 33, 61, 0.3);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--asphalt);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Teko', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* ---- CHECKERED PATTERN UTILITY ---- */
.checkered-border {
  background-image:
    linear-gradient(45deg, var(--rubber) 25%, transparent 25%),
    linear-gradient(-45deg, var(--rubber) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--rubber) 75%),
    linear-gradient(-45deg, transparent 75%, var(--rubber) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  height: 16px;
  width: 100%;
}

/* ---- DIAGONAL CUT SVG DIVIDERS ---- */
.diagonal-cut {
  position: relative;
  width: 100%;
  height: 60px;
  overflow: hidden;
}
.diagonal-cut svg {
  position: absolute;
  width: 100%;
  height: 100%;
}
.diagonal-cut--red svg { fill: var(--racing-red); }
.diagonal-cut--dark svg { fill: var(--asphalt); }
.diagonal-cut--rubber svg { fill: var(--rubber); }

/* ---- LANGUAGE TOGGLE ---- */
.lang-toggle {
  position: fixed;
  top: 74px;
  left: 16px;
  z-index: 1000;
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--racing-red);
  background: var(--asphalt);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.lang-toggle button {
  padding: 8px 16px;
  font-family: 'Teko', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--chrome);
}
.lang-toggle button.active {
  background: var(--racing-red);
  color: var(--white);
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--racing-red);
  transition: transform 0.3s;
}
.site-header.hidden { transform: translateY(-100%); }
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo {
  height: 44px;
  width: auto;
  border-radius: 4px;
}
.header-brand {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1;
  display: none;
}
.header-brand span { color: var(--racing-red); }
@media (min-width: 600px) { .header-brand { display: block; } }
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-family: 'Teko', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--chrome);
  padding: 6px 10px;
  transition: color 0.2s;
  text-transform: uppercase;
}
.header-nav a:hover { color: var(--racing-red); }
/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 767px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 2px solid var(--racing-red);
  }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 10px 0; font-size: 1.2rem; }
  .menu-toggle { display: block; }
}
.header-phone {
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--asphalt);
  background: var(--safety-yellow);
  padding: 6px 16px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  transition: all 0.2s;
}
.header-phone:hover { background: #e0b315; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: var(--asphalt);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.7) 0%, rgba(26,26,26,0.3) 40%, rgba(26,26,26,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: heroFadeUp 1s ease-out both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  font-family: 'Teko', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--safety-yellow);
  background: rgba(245, 197, 24, 0.1);
  border: 1px solid var(--safety-yellow);
  padding: 6px 20px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero h1 span { color: var(--racing-red); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--off-white);
  margin-bottom: 32px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  background: var(--racing-red);
  padding: 14px 36px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  box-shadow: 0 6px 30px var(--red-glow);
}
.hero-phone:hover {
  background: #b81a30;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--red-glow);
}
.hero-phone svg { width: 24px; height: 24px; fill: currentColor; }

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--racing-red);
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 48px;
  text-align: center;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-number {
  font-family: 'Teko', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  text-align: left;
  line-height: 1.2;
}

/* ---- SECTIONS GENERAL ---- */
.section {
  padding: 80px 20px;
}
.section--dark { background: var(--asphalt); }
.section--rubber { background: var(--rubber); }
.section--red { background: var(--racing-red); }
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--chrome), var(--safety-yellow), var(--chrome));
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-header h2 span { color: var(--racing-red); }
.section--red .section-header h2 span { color: var(--safety-yellow); }
.section-header p {
  color: var(--chrome);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.section--red .section-header p { color: rgba(255,255,255,0.85); }

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--asphalt);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 36px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--racing-red);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  border-color: var(--racing-red);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  fill: var(--racing-red);
}
.service-card h3 {
  margin-bottom: 8px;
  color: var(--white);
}
.service-card p {
  color: var(--chrome);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.service-price {
  font-family: 'Teko', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--safety-yellow);
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 2px solid rgba(184, 184, 184, 0.2);
  transition: border-color 0.3s;
}
.gallery-item:hover { border-color: var(--chrome); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(26,26,26,0.9));
  color: var(--white);
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}
.gallery-hero {
  grid-column: 1 / -1;
  aspect-ratio: 21/9;
}

/* ---- WAITING LOUNGE ---- */
.lounge-section {
  position: relative;
  overflow: hidden;
}
.lounge-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, var(--white) 25%, transparent 25%),
    linear-gradient(-45deg, var(--white) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--white) 75%),
    linear-gradient(-45deg, transparent 75%, var(--white) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}
.lounge-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.lounge-text h2 { margin-bottom: 16px; }
.lounge-text h2 span { color: var(--safety-yellow); }
.lounge-text p {
  color: var(--chrome);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.lounge-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.lounge-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--chrome);
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
}
.lounge-feature svg { width: 18px; height: 18px; fill: var(--racing-red); flex-shrink: 0; }
.lounge-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lounge-images img {
  border-radius: 6px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.testimonial-card {
  background: var(--rubber);
  border-radius: 6px;
  padding: 32px 28px;
  border-left: 4px solid var(--racing-red);
  position: relative;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.testimonial-stars svg { width: 18px; height: 18px; fill: var(--safety-yellow); }
.testimonial-card blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--off-white);
  line-height: 1.6;
  margin-bottom: 16px;
}
.testimonial-author {
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  color: var(--chrome);
  letter-spacing: 0.03em;
}

/* ---- PRICE MENU ---- */
.price-menu {
  max-width: 700px;
  margin: 0 auto;
}
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.price-item:last-child { border-bottom: none; }
.price-name {
  font-family: 'Teko', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
}
.price-desc {
  font-size: 0.85rem;
  color: var(--chrome);
  margin-top: 2px;
}
.price-value {
  font-family: 'Teko', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--safety-yellow);
  white-space: nowrap;
}

/* ---- CONTACT / MAP ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-item svg {
  width: 24px;
  height: 24px;
  fill: var(--racing-red);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item strong {
  display: block;
  font-family: 'Teko', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.contact-info-item span, .contact-info-item a {
  color: var(--chrome);
  font-size: 0.95rem;
}
.contact-info-item a:hover { color: var(--racing-red); }
.map-container {
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Teko', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}
.cta-btn--red {
  background: var(--racing-red);
  color: var(--white);
  box-shadow: 0 6px 30px var(--red-glow);
}
.cta-btn--red:hover {
  background: #b81a30;
  transform: translateY(-2px);
}
.cta-btn--yellow {
  background: var(--safety-yellow);
  color: var(--asphalt);
}
.cta-btn--yellow:hover {
  background: #e0b315;
  transform: translateY(-2px);
}

/* ---- FLOATING CTA ---- */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--racing-red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 30px var(--red-glow);
  transition: all 0.25s;
}
.floating-cta:hover {
  transform: scale(1.1);
  background: #b81a30;
}
.floating-cta svg { width: 28px; height: 28px; fill: currentColor; }

/* ---- FOOTER ---- */
.site-footer {
  background: #111;
  padding: 40px 20px 24px;
  text-align: center;
  border-top: 3px solid var(--racing-red);
}
.footer-logo {
  height: 50px;
  margin: 0 auto 16px;
  border-radius: 4px;
}
.footer-tagline {
  font-family: 'Teko', sans-serif;
  font-size: 1.2rem;
  color: var(--chrome);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--chrome);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--racing-red); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- BILINGUAL TOGGLE ---- */
[data-lang="es"] { display: none; }
body.lang-es [data-lang="es"] { display: block; }
body.lang-es [data-lang="en"] { display: none; }
/* For inline elements */
span[data-lang="es"], a[data-lang="es"] { display: none; }
body.lang-es span[data-lang="es"], body.lang-es a[data-lang="es"] { display: inline; }
body.lang-es span[data-lang="en"], body.lang-es a[data-lang="en"] { display: none; }

/* ---- RESPONSIVE ---- */
@media (min-width: 600px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lounge-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .section { padding: 100px 40px; }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-hero {
    grid-column: 1 / 3;
  }
  .lounge-images img { height: 240px; }
}

@media (max-width: 599px) {
  .hero { min-height: 100svh; padding: 80px 16px 40px; }
  .hero-phone { font-size: 1.5rem; padding: 12px 28px; }
  .stat-number { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-hero { aspect-ratio: 16/9; }
  .lounge-images { grid-template-columns: 1fr; }
  .lounge-images img { height: 180px; }
  .price-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lang-toggle { top: 66px; left: 12px; }
  .lang-toggle button { padding: 6px 12px; font-size: 0.95rem; }
}
