/* =========================================================
   MM AUTO ESTUDIO — Design tokens
   ========================================================= */
:root {
  --navy: #001845;
  --blue: #0A56E8;
  --blue-light: #4E93FF;
  --ink: #0A0A0F;
  --paper: #F5F6F9;
  --white: #FFFFFF;
  --line-dark: rgba(255,255,255,0.16);
  --line-light: rgba(10,10,15,0.12);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.rule {
  height: 1px;
  background: var(--line-light);
  margin: 18px 0 40px;
}
.rule-light { background: var(--line-dark); }

.eyebrow {
  font-size: 0.8rem;
  color: #56616F;
  margin: 0;
}
.eyebrow-onblue { color: rgba(255,255,255,0.75); }

.section-head { padding-top: 4px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-small { padding: 10px 20px; font-size: 0.85rem; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--white);
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue-light);
}
.brand-word {
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.brand-logo { height: 32px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--blue-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(120% 140% at 15% 0%, #0A0A0F 0%, #001845 45%, var(--blue) 78%, var(--blue-light) 100%);
  color: var(--white);
  padding: 90px 0 0;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.hero-text {
  max-width: 620px;
  padding-bottom: 100px;
  flex-shrink: 0;
}
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-media {
  flex-shrink: 0;
  align-self: flex-end;
  max-width: 46%;
  overflow: visible;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 860px;
  object-fit: contain;
  object-position: bottom;
  transform: scale(1.55);
  transform-origin: bottom center;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 90px 0; }
.section-light { background: var(--white); }
.section-paper { background: var(--paper); padding: 60px 0; }
.section-dark { background: var(--ink); color: var(--white); }
.section-blue {
  background: linear-gradient(135deg, var(--navy), var(--blue) 80%);
  color: var(--white);
}
.section-title-light { color: var(--white); }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.intro-grid h2 { max-width: 360px; }
.intro-grid p { font-size: 1.05rem; color: #333A44; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-img {
  height: 160px;
  background-color: #14213D;
  background-size: cover;
  background-position: center;
}
.service-card h3 {
  padding: 18px 20px 0;
  color: var(--white);
}
.service-card ul {
  padding: 10px 20px 22px;
  margin: 0;
  list-style: none;
}
.service-card li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  padding-left: 14px;
  position: relative;
  margin-bottom: 8px;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--blue-light);
}

.other-services-title {
  color: var(--white);
  margin-top: 64px;
  border-top: 1px solid var(--line-dark);
  padding-top: 40px;
}
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.other-service {
  border-left: 2px solid var(--blue-light);
  padding-left: 16px;
}
.other-service h4 { color: var(--white); }
.other-service p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* =========================================================
   POR QUÉ ELEGIRNOS
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.why-item h3 { color: var(--white); }
.why-item p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros-img {
  margin-top: 48px;
  height: 340px;
  background-color: #D8DCE3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
}

/* =========================================================
   CONFIANZA
   ========================================================= */
.trust-label {
  text-align: center;
  font-size: 0.85rem;
  color: #56616F;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust-logo {
  height: 40px;
  width: auto;
  filter: brightness(0);
  opacity: 0.55;
  transition: opacity .2s ease;
}
.trust-logo:hover { opacity: 0.85; }

/* =========================================================
   TESTIMONIOS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.testimonial {
  margin: 0;
  padding: 26px;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue);
}
.testimonial .stars {
  color: var(--blue);
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.testimonial p {
  font-size: 0.98rem;
  color: #2A2F38;
}
.swipe-hint { display: none; }
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.88rem;
}

/* =========================================================
   UBICACIONES
   ========================================================= */
.location-tabs {
  display: flex;
  gap: 8px;
  margin: 40px 0 0;
  border-bottom: 1px solid var(--line-dark);
}
.location-tab {
  background: none;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.location-tab.is-active {
  color: var(--white);
  border-bottom-color: var(--blue-light);
}

.location-panel {
  display: none;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding-top: 32px;
}
.location-panel.is-active { display: grid; }

.location-map {
  height: 340px;
  background: #0F1420;
  border-radius: var(--radius);
  overflow: hidden;
}
.location-info h3 { color: var(--white); }
.location-line {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.82);
}
.location-line a { color: var(--blue-light); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: 70px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 10px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 0.92rem;
}
.footer-col p {
  font-size: 0.88rem;
  margin: 0 0 8px;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-locations p { line-height: 1.4; }

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 60;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-inner { flex-wrap: wrap; }
  .hero-text { padding-bottom: 40px; max-width: 100%; }
  .hero-media { max-width: 60%; margin: 0 auto; align-self: center; }
  .hero-img { transform: scale(1.15); }

  .intro-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .other-services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .location-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-bottom: 0; overflow: hidden; }
  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-text { padding-bottom: 0; }
  .hero-media {
    max-width: 85%;
    width: 100%;
    height: 320px;
    margin: 24px auto 0;
    align-self: center;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: none;
  }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
    gap: 16px;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { width: 100%; text-align: center; }

  .other-services-grid { grid-template-columns: 1fr; }

  /* Servicios principales: carrusel deslizable en vez de lista apilada */
  .services-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 24px -24px 0;
    padding: 0 24px 8px;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .trust-logos { gap: 32px; }

  /* Testimonios: carrusel deslizable en vez de lista apilada */
  .swipe-hint {
    display: block;
    font-size: 0.82rem;
    color: #8A93A0;
    margin: -8px 0 0;
  }
  .swipe-hint-dark { color: rgba(255,255,255,0.5); }
  .testimonials-grid {
    display: flex;
    grid-template-columns: unset;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 32px -24px 0;
    padding: 0 24px 8px;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Foco visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}
