/* =============================================
   TALLERES PEDRO ROJAS · BOSCH CAR SERVICE
   Colores oficiales: #003523 cabecera · blanco cuerpo · #EFF1F1 footer
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #003523;   /* Bosch Car Service header green */
  --green-dark: #002518;
  --green-mid:  #004d32;
  --red:        #E20015;   /* Bosch red (del logo SVG) */
  --red-dark:   #c0001000;
  --navy:       #00304B;   /* Bosch dark blue (del logo SVG) */
  --blue:       #4C90CD;   /* Bosch light blue (del logo SVG) */
  --footer-bg:  #EFF1F1;
  --white:      #ffffff;
  --text:       #1c2b22;
  --text-muted: #5a6e63;
  --border:     #d9e0db;
  --tint:       #f5f8f6;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(0,53,35,.08);
  --shadow:     0 4px 20px rgba(0,53,35,.12);
  --font:       'Inter', system-ui, sans-serif;
  --hh:         76px;      /* header height */
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--green-dark);
  color: rgba(255,255,255,.65);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar__left span,
.topbar__right a {
  display: flex;
  align-items: center;
  gap: 5px;
}
.topbar__right a {
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.topbar__right a:hover { color: var(--white); }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--green);
  height: var(--hh);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Brand */
.header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header__bcs-logo {
  height: 52px;
  width: auto;
  display: block;
  /* el logo tiene fondo blanco, añadimos borde redondeado sutil */
  border-radius: 6px;
}
.header__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.25);
}
.header__taller { line-height: 1.3; }
.header__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.header__city {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav__link:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

/* CTA in nav (white pill) */
.btn--cta {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
  margin-left: 8px;
  font-size: 14px;
  padding: 8px 18px;
}
.btn--cta:hover {
  background: #e8f0ec;
  border-color: #e8f0ec;
}

/* Red (primary CTA) */
.btn--red {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--red:hover {
  background: #c8001200;
  border-color: #c8001200;
  box-shadow: 0 4px 18px rgba(226,0,21,.35);
}

/* Green */
.btn--green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn--green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: 0 4px 18px rgba(0,53,35,.25);
}

/* Outline (ghost on dark bg) */
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.45);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}

.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--green);
  min-height: calc(100vh - var(--hh) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 95% 50%, rgba(76,144,205,.12) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 5% 80%, rgba(226,0,21,.08) 0%, transparent 60%);
}
.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 96px 24px 96px;
  max-width: 760px;
}
.hero__eyebrow { margin-bottom: 24px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero__accent {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.5);
}
.hero__desc {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.stat__number {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat__label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
}
.stat__sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ============================================
   SECTIONS — base
   ============================================ */
.section { padding: 88px 0; }
.section--tint { background: var(--tint); }
.section--green { background: var(--green); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}
.section__tag {
  display: inline-block;
  background: rgba(0,53,35,.08);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}
.section__desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 28px 28px 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(0,53,35,.1);
  transform: translateY(-4px);
}
.card__icon {
  width: 52px;
  height: 52px;
  background: rgba(0,53,35,.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 18px;
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================
   WHY US
   ============================================ */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.why__left {
  display: flex;
  flex-direction: column;
}
.why__left .section__tag { align-self: flex-start; }
.why__left .section__title { color: var(--text); margin: 0; }
.why__items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: rgba(0,53,35,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.why__item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.why__item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   BOSCH BANNER (green bg)
   ============================================ */
.bosch__wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}
.bosch__left .section__tag {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
}
.bosch__logo {
  height: 72px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 24px;
}
.bosch__left h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}
.bosch__left p {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
  max-width: 520px;
}
.bosch__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.bosch__stat {
  text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px 28px;
}
.bosch__num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.bosch__lbl {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form__group label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font);
  font-size: 15px;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,53,35,.1);
}
.form__group textarea { resize: vertical; }

.contact__card {
  background: var(--tint);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.contact__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.cinfo { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.cinfo li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.cinfo__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: rgba(0,53,35,.07);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.cinfo a { color: var(--text); font-weight: 500; transition: color .2s; }
.cinfo a:hover { color: var(--green); }

.map__box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}
.map__box small { font-size: 12px; color: #9aa89e; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--footer-bg); }

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 24px 44px;
}
.footer__logo-img {
  height: 60px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 12px;
}
.footer__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.footer__tagline {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color .2s;
}
.footer__col a:hover { color: var(--green); }
.footer__col p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}
.footer__col a { font-size: 14px; color: var(--text-muted); }

.footer__bottom {
  border-top: 1px solid #d0d8d3;
  padding: 18px 24px;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; gap: 48px; }
  .bosch__wrap { grid-template-columns: 1fr; }
  .bosch__stats { flex-direction: row; flex-wrap: wrap; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --hh: 68px; }

  .topbar__left span:last-child { display: none; }

  /* Mobile nav */
  .nav {
    display: none;
    position: absolute;
    top: var(--hh);
    left: 0; right: 0;
    background: var(--green);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 16px; border-radius: 8px; }
  .btn--cta { margin: 10px 0 0; text-align: center; border-radius: 8px; }
  .hamburger { display: flex; }

  .hero__content { padding: 72px 24px 72px; }
  .hero__stats { gap: 16px; }
  .stat__sep { display: none; }

  .grid-3 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px 32px; }
  .footer__bottom-inner { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .bosch__stats { flex-direction: column; }
}
