/* Auto Taller Palma - Sabadell */

:root {
  --red: #c8201b;
  --red-dark: #a51914;
  --dark: #1e2023;
  --dark-2: #2a2d31;
  --gray: #f3f3f1;
  --line: #e2e2de;
  --text: #333;
  --muted: #6a6a6a;
  --white: #fff;
  --wa: #25d366;

  --font-title: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;

  --container: 1170px;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(0, 0, 0, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-title); font-weight: 500; line-height: 1.2; color: var(--dark); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--lg { padding: 14px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--outline { border-color: var(--white); color: var(--white); }
.btn--outline:hover { background: var(--white); color: var(--dark); }
.btn--dark-outline { border-color: var(--dark); color: var(--dark); }
.btn--dark-outline:hover { background: var(--dark); color: var(--white); }
.btn .fa-whatsapp { font-size: 1.25em; }

/* ---------- Barra superior ---------- */
.topbar {
  background: var(--dark);
  color: #c9c9c9;
  font-size: 13px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
}
.topbar__info, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar i { color: var(--red); margin-right: 5px; }
.topbar a { color: #e6e6e6; }
.topbar a:hover { color: var(--white); }
.topbar__right .fa-whatsapp { color: var(--wa); }
.topbar__status:empty { display: none; }

.status {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.status--open { background: #1f8a3e; color: var(--white); }
.status--closed { background: #5a5d61; color: var(--white); }

.lang { display: flex; align-items: center; border-left: 1px solid #44474b; padding-left: 18px; }
.lang button {
  background: none;
  border: 0;
  padding: 2px 6px;
  color: #9a9a9a;
  font: 600 12px var(--font-body);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--red); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.is-stuck { box-shadow: 0 2px 12px rgba(0, 0, 0, .1); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 84px;
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.logo:hover { color: var(--dark); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.logo__mark svg { width: 32px; height: 32px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-title); text-transform: uppercase; }
.logo__text small { font-size: 13px; letter-spacing: .18em; color: var(--muted); margin-bottom: 3px; }
.logo__text strong { font-size: 30px; font-weight: 600; letter-spacing: .04em; }

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  position: relative;
  padding: 8px 12px;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--dark);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s;
}
.menu a:hover, .menu a.is-active { color: var(--red); }
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 20px;
  color: var(--dark);
  cursor: pointer;
}

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 80px 0 150px;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 19, 21, .88) 0%, rgba(18, 19, 21, .7) 45%, rgba(18, 19, 21, .3) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__pre {
  display: inline-block;
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e9e9e9;
}
.hero h1 {
  max-width: 640px;
  font-size: 62px;
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--white);
}
.hero__text { max-width: 560px; margin: 22px 0 32px; font-size: 18px; color: #e3e3e3; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Ventajas ---------- */
.features { position: relative; z-index: 5; margin-top: -80px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}
.feature {
  display: flex;
  gap: 18px;
  padding: 32px 28px;
  background: var(--white);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature > i { font-size: 34px; color: var(--red); flex: none; width: 40px; text-align: center; margin-top: 4px; }
.feature h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.feature--red { background: var(--red); border-left-color: var(--red) !important; }
.feature--red > i, .feature--red h3, .feature--red p { color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding: 90px 0; }
.section--gray { background: var(--gray); }

.subtitle {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.subtitle--light { color: #ff8a84; }

.section-title { max-width: 700px; margin: 0 auto 50px; text-align: center; }
.section-title h2, .about h2 {
  font-size: 40px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.section-title h2::after, .about h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--red);
}
.section-title p { margin: 18px 0 0; color: var(--muted); }

/* ---------- El taller ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about h2::after { margin-left: 0; }
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.about__rating {
  position: absolute;
  right: -20px;
  bottom: -20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 26px;
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
  color: var(--dark);
  text-align: center;
}
.about__rating:hover { color: var(--dark); }
.about__rating strong { font-family: var(--font-title); font-size: 42px; font-weight: 600; line-height: 1; }
.about__rating small { font-size: 13px; color: var(--muted); }
.stars { color: #f5a623; font-size: 15px; letter-spacing: 2px; }

.about__text h2 { margin-bottom: 24px; }
.about__text p { color: #555; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 24px 0 30px; }
.checks li { position: relative; padding-left: 28px; font-weight: 600; font-size: 15px; color: var(--dark); }
.checks li::before {
  content: "\f00c";
  position: absolute;
  left: 0;
  top: 1px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--red);
}
.about__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.call { display: flex; align-items: center; gap: 12px; color: var(--dark); }
.call:hover { color: var(--red); }
.call i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
}
.call small { display: block; font-size: 13px; color: var(--muted); line-height: 1.2; }
.call b { font-family: var(--font-title); font-size: 22px; font-weight: 500; letter-spacing: .02em; }

/* ---------- Servicios ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  padding: 36px 30px;
  background: var(--white);
  border-bottom: 3px solid transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service:hover { border-bottom-color: var(--red); box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-size: 30px;
  transition: background-color .2s;
}
.service:hover .service__icon { background: var(--red); }
.service__icon svg { width: 34px; height: 34px; }
.service h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.service p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Banda ITV ---------- */
.band {
  position: relative;
  padding: 90px 0;
  color: var(--white);
  background: var(--dark);
  overflow: hidden;
}
.band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(20, 21, 23, .8); }
.band__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.band h2 { max-width: 700px; font-size: 40px; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.band p { max-width: 620px; margin: 0; font-size: 17px; color: #ddd; }
.band .btn { flex: none; }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.why__item i {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 26px;
}
.why__item h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 8px; }
.why__item p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Opiniones ---------- */
.rating-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 28px;
  margin-bottom: 30px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.rating-bar__score { display: flex; align-items: center; gap: 16px; }
.rating-bar__score strong { font-family: var(--font-title); font-size: 46px; font-weight: 600; line-height: 1; color: var(--dark); }
.rating-bar__score div { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.rating-bar__links { display: flex; gap: 12px; flex-wrap: wrap; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.review blockquote { flex: 1; margin: 0; font-size: 16px; font-style: italic; color: #444; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--dark); }
.review small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.review small i { color: #4285f4; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--dark-2);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 18px;
}

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .2s;
}
.gallery img:hover { opacity: .85; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact__list { display: grid; gap: 28px; }
.contact__list li { display: flex; gap: 18px; }
.contact__list > li > i {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 20px;
}
.contact__list h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.contact__list p { margin: 0; color: #555; }
.contact__list a { font-weight: 600; }
.contact__hours { flex: 1; }
.contact__hours h3 { display: flex; align-items: center; gap: 10px; }

.hours { width: 100%; max-width: 360px; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 6px 0; border-bottom: 1px dotted #ccc; }
.hours td:last-child { text-align: right; }
.hours tr.is-today td { font-weight: 700; color: var(--red); }
.hours tr.is-closed td:last-child { color: #999; }

.form {
  padding: 36px;
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow);
}
.form h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.form__intro { color: var(--muted); font-size: 15px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; margin-bottom: 16px; }
.form label span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; color: var(--dark); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d3d3cf;
  border-radius: var(--radius);
  background: #fafafa;
  font: 15px var(--font-body);
  color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}
.form textarea { resize: vertical; }
.form .is-invalid input { border-color: var(--red); }
.form__error { color: var(--red); font-size: 14px; font-weight: 600; }
.form__note { margin: 12px 0 0; text-align: center; font-size: 13px; color: #888; }

/* ---------- Mapa ---------- */
.map { position: relative; height: 380px; background: #dcdcd8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background:
    linear-gradient(rgba(220, 220, 216, .85), rgba(220, 220, 216, .85)),
    repeating-linear-gradient(0deg, transparent 0 58px, #c7c7c2 58px 60px),
    repeating-linear-gradient(90deg, transparent 0 78px, #c7c7c2 78px 80px);
}
.map__placeholder > i { font-size: 44px; color: var(--red); }
.map__placeholder p { margin: 0; font-weight: 700; color: var(--dark); }
.map__placeholder small { color: var(--muted); }

/* ---------- Pie ---------- */
.footer { background: var(--dark); color: #b5b5b5; font-size: 15px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 70px 20px 50px;
}
.footer h4 {
  margin-bottom: 20px;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--white);
}
.footer ul { display: grid; gap: 8px; }
.footer a { color: #d6d6d6; }
.footer a:hover { color: var(--white); }
.footer li i { color: var(--red); width: 18px; }
.logo--footer { margin-bottom: 18px; }
.logo--footer .logo__text strong { color: var(--white); }
.logo--footer .logo__text small { color: #9a9a9a; }
.footer__social {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark-2);
  color: var(--white) !important;
}
.footer__social:hover { background: var(--red); }
.footer__bottom { border-top: 1px solid #34373b; font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; }
.footer__bottom nav { display: flex; gap: 18px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.wa-float:hover { color: var(--white); }
.wa-float > i {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  font-size: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover > i { transform: scale(1.07); }
.wa-float__label {
  padding: 7px 14px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .menu a { padding: 8px 8px; font-size: 15px; }
  .menu a::after { left: 8px; right: 8px; }
  .header__inner { gap: 20px; }
}

@media (max-width: 991px) {
  .topbar__info li:nth-child(2) { display: none; }
  .menu-toggle { display: block; }
  .header__cta { display: none; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 16px;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu a::after { display: none; }

  .hero { min-height: 520px; padding-bottom: 120px; }
  .hero h1 { font-size: 46px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__rating { right: 16px; bottom: -24px; }
  .services, .reviews { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .band__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .topbar__info { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__right { gap: 16px; }
  .header__inner { min-height: 70px; }
  .logo__mark { width: 44px; height: 44px; }
  .logo__mark svg { width: 27px; height: 27px; }
  .logo__text strong { font-size: 25px; }
  .logo__text small { font-size: 11px; }

  .hero { min-height: auto; padding: 60px 0 110px; }
  .hero::before { background: linear-gradient(180deg, rgba(18, 19, 21, .75), rgba(18, 19, 21, .85)); }
  .hero h1 { font-size: 36px; }
  .hero__text { font-size: 16px; }
  .hero__buttons .btn { width: 100%; }
  .section { padding: 64px 0; }
  .section-title h2, .about h2, .band h2 { font-size: 30px; }
  .checks { grid-template-columns: 1fr; }
  .services, .reviews { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .why__item h3 { font-size: 17px; }
  .why__item p { font-size: 14px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .rating-bar { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; }
  .footer__bottom-inner { padding-bottom: 90px; }
  .wa-float__label { display: none; }
}
