/* styles.css — Estilos. Las reglas adaptables están al final y en bloques de medios. */

:root {
  --blue: #002CAA;
  --red: #ed0035;
  --body: "Montserrat", Arial, sans-serif;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  color: var(--blue);
  background: #fff;
  font-family: var(--body);
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ed0035;
  outline-offset: 4px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.eyebrow {
  font-family: var(--heading);
  font-weight: 700;
}
header {
  height: 120px;
  border-bottom: 7px solid var(--red);
}
.header-inner {
  max-width: 1320px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 70px;
  position: relative;
}
.logo {
  width: 402px;
  display: block;
}
.top-search {
  display: flex;
  align-items: center;
  gap: 17px;
  flex: 1;
  margin-right: 203px;
  position: relative;
}
.top-search label {
  font-family: var(--heading);
  font-size: 24px;
  line-height: 1;
  color: #151515;
  text-align: center;
  font-weight: 700;
}
.top-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid #666;
  border-radius: 40px;
  height: 56px;
  padding: 0 45px 0 23px;
  font: 700 24px var(--heading);
}
.top-search input::placeholder {
  color: #999;
}
.top-search button {
  position: absolute;
  right: 15px;
  background: transparent;
  color: var(--blue);
  font-size: 30px;
}
.mascot {
  position: absolute;
  right: 0;
  top: 0;
  width: 195px;
  z-index: 2;
}
.menu-toggle {
  display: none;
}
nav {
  background: var(--blue);
  height: 50px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0 max(5%, calc((100% - 1340px) / 2));
  color: white;
}
nav a {
  font: 600 28px var(--heading);
  padding: 7px 12px;
  transition: color 0.2s;
}
nav a:hover {
  color: red;
}
.hero {
  max-width: 1320px;
  margin: 54px auto 50px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  height: 530px;
}
.finder {
  border: 1px solid #777;
  border-radius: 20px;
  padding: 15px 22px 0;
  overflow: hidden;
  position: relative;
  background: white;
}
.finder-title {
  width: 100%;
  height: 99px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}
.tabs {
  display: flex;
  gap: 8px;
}
.tabs button {
  padding: 4px 8px;
  flex: 1;
  border-radius: 24px;
  background: var(--blue);
  color: white;
  font-size: 17px;
  white-space: nowrap;
}
.tabs button[aria-selected="false"] {
  opacity: 0.9;
}
.tabs button[aria-selected="true"] {
  box-shadow: inset 0 -3px 0 #526baa;
}
.finder > p {
  font-size: 11px;
  text-align: center;
  margin: 14px -4px;
  color: #333;
  line-height: 1.4;
}
#finder-form select {
  appearance: none;
  text-align: center;
  display: block;
  border: 1px solid #666;
  border-radius: 24px;
  height: 32px;
  width: 100%;
  margin-bottom: 7px;
  background: white;
  color: #4d4d4d;
  font-size: 14px;
  padding: 0 15px;
  cursor: pointer;
}
.red-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: var(--red);
  color: white;
  padding: 11px 24px;
  font-size: 16px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.red-button:hover {
  background: #c9002c;
  transform: translateY(-1px);
}
#finder-form .red-button {
  height: 32px;
  padding: 0;
  width: 100%;
  font-size: 17px;
}
.finder-tire {
  position: absolute;
  bottom: 0;
  left: 18px;
  width: calc(100% - 36px);
}
.promotions {
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: #e9f1f6;
}
.slide {
  width: 100%;
  height: 100%;
  display: block;
}
.slide[hidden] {
  display: none;
}
.summer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slider-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 20px;
}
.slider-controls button {
  background: #ed0035;
  opacity: 0.55;
  width: 62px;
  height: 5px;
  padding: 0;
  position: relative;
}
.slider-controls button:after {
  content: "";
  position: absolute;
  inset: -12px 0;
}
.slider-controls button[aria-pressed="true"] {
  opacity: 1;
}
.alternate {
  background:
    linear-gradient(90deg, rgba(36, 62, 139, 0.96), rgba(36, 62, 139, 0.7)),
    url("assets/workshop.webp") center/cover;
  color: #fff;
  padding: 7%;
  align-content: center;
}
.alternate h1 {
  font-size: 70px;
  line-height: 1;
  margin: 18px 0;
}
.alternate p {
  margin-bottom: 32px;
}
.white-button {
  display: inline-block;
  background: #fff;
  color: var(--blue);
  border-radius: 30px;
  padding: 13px 24px;
  font-weight: 600;
}
.services {
  position: relative;
  background: var(--blue);
  color: white;
  min-height: 752px;
  overflow: hidden;
}
.service-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: url("assets/workshop.webp") center/cover no-repeat;
}
.service-content {
  position: relative;
  width: 65.5%;
  min-height: 752px;
  padding: 36px 4.3% 22px 5.1%;
  background: var(--blue);
  clip-path: polygon(0 0, 88.5% 0, 100% 100%, 0 100%);
}
.eyebrow {
  font-size: 35px;
}
.service-content h2 {
  font-size: 76px;
  line-height: 0.94;
  color: var(--red);
  margin: 10px 0 8px;
  letter-spacing: -1px;
}
.service-intro {
  font-size: 20px;
  line-height: 1.9;
  color: #e1e5ef;
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px 30px;
  margin: 28px 0 30px -10px;
  max-width: 850px;
}
.service-grid article {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  min-height: 92px;
}
.service-grid h3 {
  color: var(--red);
  font-size: 35px;
  line-height: 1.15;
}
.service-grid p {
  color: #e1e5ef;
  font-size: 16px;
  line-height: 1.7;
}
.icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.availability {
  font-size: 16px;
  text-align: right;
  color: #FFDA00;
  margin-right: -28px;
  margin-top: 8px;
}
.section-pad {
  padding: 66px max(5.1%, calc((100% - 1350px) / 2));
}
.small-label {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--red);
}
.brands {
  text-align: center;
}
.brands h2,
.closing h2,
.location h2 {
  font-size: 44px;
  line-height: 1.05;
  margin: 12px 0 14px;
}
.brands > p {
  color: #606778;
}
.brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 45px;
  flex-wrap: wrap;
}
.brand-row span {
  font: italic 800 27px var(--heading);
  color: var(--blue);
}
.closing {
  padding: 58px max(5.1%, calc((100% - 1350px) / 2));
  background: #f3f5fa;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  border-top: 1px solid #e0e4ef;
}
.closing p {
  font-size: 16px;
  line-height: 1.9;
  color: #535d72;
  margin-bottom: 24px;
  max-width: 570px;
}
.closing .demo-note {
  font-size: 13px;
  line-height: 1.7;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}
.location {
  display: flex;
  gap: 45px;
  justify-content: space-between;
  align-items: center;
}
.location h2 {
  max-width: 540px;
}
.location form label {
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}
.location form > div {
  display: flex;
  gap: 10px;
}
.location select {
  padding: 11px 35px 11px 16px;
  border: 1px solid #a7afc4;
  border-radius: 30px;
  max-width: 100%;
  background: #fff;
  color: var(--blue);
}
footer {
  background: var(--blue);
  color: white;
  padding: 50px max(5.1%, calc((100% - 1350px) / 2)) 0;
  border-top: 6px solid var(--red);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.4fr 1.2fr;
  gap: 40px;
  padding-bottom: 38px;
}
.footer-brand img {
  width: 240px;
  max-width: 100%;
  background: white;
  padding: 8px;
  border-radius: 3px;
}
.footer-brand p {
  font: 600 24px/1.1 var(--heading);
  text-transform: uppercase;
  margin-top: 15px;
}
.footer-top h3 {
  font-size: 23px;
  margin: 0 0 18px;
}
.footer-top a {
  display: block;
  font-size: 14px;
  margin: 12px 0;
}
.footer-top a:hover {
  text-decoration: underline;
}
.footer-top p {
  font-size: 14px;
  line-height: 1.6;
}
.footer-cta {
  border-bottom: 2px solid var(--red);
  width: max-content;
  padding-bottom: 7px;
}
.footer-bottom {
  border-top: 1px solid #ffffff30;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #d9dfef;
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 42px;
  max-width: 670px;
  width: 90%;
  color: var(--blue);
  box-shadow: 0 20px 100px #0004;
}
dialog::backdrop {
  background: #0c184b99;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 40px;
  margin: 12px 0 20px;
}
.close-dialog {
  position: absolute;
  right: 13px;
  top: 8px;
  background: transparent;
  font-size: 32px;
  color: var(--blue);
}
#results-content p {
  line-height: 1.8;
  color: #59637a;
  margin-bottom: 20px;
}
.result-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.result-categories div {
  padding: 18px 12px;
  border: 1px solid #dbe0eb;
  border-radius: 10px;
}
.result-categories strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--heading);
  font-size: 23px;
}
.result-categories span {
  font-size: 13px;
  line-height: 1.5;
  color: #59637a;
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (min-width: 1550px) {
  .service-content {
    padding-left: max(5.1%, calc((100vw - 1350px) / 2));
  }
  .services {
    max-height: 850px;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 1350px) and (min-width: 901px) {
  .header-inner {
    margin: 0 6%;
    gap: 6%;
  }
  .logo {
    width: 31vw;
  }
  .top-search {
    margin-right: 15vw;
  }
  .mascot {
    width: 15vw;
  }
  .hero {
    margin: 45px 6% 42px;
    grid-template-columns: 23.5% 1fr;
    height: 36vw;
    gap: 1.7vw;
  }
  .finder {
    padding: 12px 16px 0;
  }
  .finder-title {
    height: 6.6vw;
    margin-bottom: 5px;
  }
  .tabs button {
    font-size: 13px;
  }
  .finder > p {
    font-size: 10px;
    margin: 10px -7px;
  }
  #finder-form select {
    height: 28px;
    font-size: 12px;
    margin-bottom: 5px;
  }
  #finder-form .red-button {
    height: 28px;
    font-size: 14px;
  }
  .finder-tire {
    width: calc(100% - 28px);
    left: 14px;
  }
  .services,
  .service-content {
    min-height: 50vw;
  }
  .service-content {
    padding-top: 2.5vw;
  }
  .eyebrow {
    font-size: 2.3vw;
  }
  .service-content h2 {
    font-size: 5.05vw;
  }
  .service-intro {
    font-size: 1.33vw;
  }
  .service-grid {
    gap: 2.8vw 2vw;
    margin-top: 1.8vw;
    margin-bottom: 1.5vw;
  }
  .service-grid article {
    gap: 1vw;
    min-height: 6vw;
  }
  .service-grid h3 {
    font-size: 2.32vw;
  }
  .service-grid p {
    font-size: 1.1vw;
  }
  .icon {
    width: 4.8vw;
    height: 4.8vw;
  }
  .availability {
    font-size: 1.08vw;
  }
  .location {
    gap: 20px;
  }
  .location h2 {
    font-size: 36px;
  }
  .location form > div {
    flex-wrap: wrap;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 900px) {
  header {
    height: 90px;
  }
  .header-inner {
    margin: 0 5%;
    gap: 20px;
  }
  .logo {
    width: 285px;
    max-width: 65vw;
  }
  .mascot {
    display: none;
  }
  .top-search {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background: none;
    color: var(--blue);
    font-size: 25px;
  }
  .menu-toggle span {
    font-size: 14px;
  }
  nav {
    height: auto;
    padding: 10px 3%;
    flex-wrap: wrap;
    gap: 5px;
    display: none;
  }
  nav.open {
    display: flex;
  }
  nav a {
    font-size: 22px;
    width: 30%;
    text-align: center;
  }
  .hero {
    margin: 25px 5% 30px;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    height: auto;
  }
  .promotions {
    aspect-ratio: 976/528;
    border-radius: 13px;
  }
  .finder {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 12px 22px;
    min-height: 270px;
  }
  .finder-title {
    height: auto;
    width: 100%;
    max-width: 220px;
    grid-row: 1/3;
    align-self: center;
  }
  .tabs {
    grid-column: 2;
  }
  .tabs button {
    font-size: 14px;
    padding: 8px;
  }
  .finder > p {
    grid-column: 2;
    margin: 0;
    font-size: 11px;
  }
  #finder-form {
    grid-column: 2;
  }
  .finder-tire {
    display: none;
  }
  #finder-form select {
    height: 35px;
    font-size: 14px;
  }
  #finder-form .red-button {
    height: 36px;
    font-size: 15px;
  }
  .services {
    min-height: 0;
    display: flex;
    flex-direction: column-reverse;
  }
  .service-photo {
    position: relative;
    height: 360px;
    width: 100%;
    background-position: center 70%;
  }
  .service-content {
    width: 100%;
    clip-path: none;
    padding: 35px 6%;
    min-height: 0;
  }
  .eyebrow {
    font-size: 25px;
  }
  .service-content h2 {
    font-size: 54px;
  }
  .service-intro {
    font-size: 16px;
    line-height: 1.7;
  }
  .service-grid {
    gap: 25px 20px;
    margin: 28px 0;
  }
  .service-grid article {
    gap: 12px;
    min-height: 85px;
  }
  .service-grid h3 {
    font-size: 28px;
  }
  .service-grid p {
    font-size: 14px;
  }
  .icon {
    width: 53px;
    height: 58px;
  }
  .availability {
    font-size: 12px;
    text-align: left;
    margin: 0;
  }
  .section-pad {
    padding: 42px 6%;
  }
  .brands h2,
  .closing h2,
  .location h2 {
    font-size: 36px;
  }
  .brand-row {
    justify-content: center;
    gap: 25px 35px;
  }
  .closing {
    padding: 38px 6%;
    gap: 35px;
    grid-template-columns: 1fr;
  }
  .location {
    display: block;
  }
  .location form {
    margin-top: 25px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .alternate h1 {
    font-size: 42px;
  }
  .alternate p {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .alternate .white-button {
    font-size: 13px;
    padding: 9px 15px;
  }
  .alternate > div > span:first-child {
    font-size: 12px;
  }
  .slider-controls {
    bottom: 12px;
  }
  .desktop {
    display: none;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 480px) {
  .finder {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .finder-title {
    grid-row: auto;
    width: 225px;
    margin: auto;
  }
  .tabs,
  .finder > p,
  #finder-form {
    grid-column: 1;
  }
  .finder > p {
    font-size: 12px;
  }
  .finder {
    gap: 12px;
  }
  #size-fields,
  #vehicle-fields {
    display: flex;
    gap: 6px;
  }
  #vehicle-fields[hidden],
  #size-fields[hidden] {
    display: none;
  }
  #finder-form select {
    min-width: 0;
    font-size: 13px;
  }
  .promotions {
    margin: 0 -1%;
  }
  .service-content h2 {
    font-size: 44px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-grid article {
    min-height: 70px;
  }
  .service-grid h3 {
    font-size: 29px;
  }
  .service-grid p {
    font-size: 15px;
  }
  .service-photo {
    height: 270px;
  }
  .brands h2,
  .location h2 {
    font-size: 33px;
  }
  .brand-row span {
    font-size: 23px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 25px 15px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-top h3 {
    font-size: 20px;
  }
  .footer-top a {
    font-size: 13px;
  }
  .footer-top > div:last-child {
    grid-column: 1/-1;
  }
  .location form > div {
    flex-direction: column;
  }
  .location select {
    width: 100%;
  }
  .alternate h1 {
    font-size: 32px;
    margin: 8px 0;
  }
  .alternate p {
    display: none;
  }
  .alternate .white-button {
    font-size: 11px;
    padding: 8px 12px;
  }
  .slider-controls {
    bottom: 8px;
  }
  .slider-controls button {
    width: 40px;
  }
  .result-categories {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 32px 22px;
  }
  dialog h2 {
    font-size: 31px;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Shared header: reserve independent space and anchor the mascot to the navigation. */
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (min-width: 901px) {
  .header-inner {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(220px, 402px) minmax(0, 1fr) clamp(125px, 14vw, 195px);
    gap: clamp(18px, 2.4vw, 36px);
  }
  .header-inner > a {
    min-width: 0;
  }
  .header-inner .logo {
    width: 100%;
    max-width: 402px;
  }
  .top-search {
    min-width: 0;
    width: 100%;
    margin: 0;
    gap: clamp(10px, 1.2vw, 17px);
  }
  .top-search label {
    flex: 0 0 auto;
    font-size: clamp(20px, 1.8vw, 24px);
  }
  .top-search input {
    flex: 1 1 0;
    min-width: 0;
    font-size: clamp(18px, 1.8vw, 24px);
    padding-left: clamp(12px, 1.7vw, 23px);
  }
  .header-inner .mascot {
    position: static;
    align-self: end;
    justify-self: end;
    width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
    object-position: right bottom;
    transform: translateY(7px);
  }
  nav a {
    font-size: clamp(22px, 2.1vw, 28px);
    white-space: nowrap;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 900px) {
  .header-inner {
    min-width: 0;
    gap: 12px;
  }
  .header-inner > a {
    min-width: 0;
    flex: 0 1 285px;
  }
  .header-inner .logo {
    width: 100%;
    max-width: 100%;
  }
  .menu-toggle {
    flex: 0 0 auto;
    padding: 8px 0 8px 8px;
  }
  nav.open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  nav a {
    width: auto;
    min-width: 0;
    padding: 9px 4px;
  }
}
/* ADAPTACIÓN DE PANTALLA O PREFERENCIAS */
@media (max-width: 380px) {
  .menu-toggle span {
    display: none;
  }
  nav.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
