/* Company Ford Master Cali — MVP one-pager */

:root {
  --primary: #0b3d91;
  --primary-dark: #082d6b;
  --primary-light: #1e40af;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --whatsapp: #25d366;
  --whatsapp-hover: #1da851;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(11, 61, 145, 0.08);
  --header-h: 72px;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font-body);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--primary-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #061428;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  display: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-desktop a:hover {
  color: #fff;
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.header-cta {
  flex-shrink: 0;
}

.header-cta .btn {
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-mobile a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
}

.site-header.is-open .nav-mobile {
  display: flex;
}

/* Hero */
.hero {
  --hero-bg: url("assets/backgroundHero1.jpeg");
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  color: #fff;
  overflow: hidden;
  background-color: #061c3f;
}

.hero-photo {
  min-height: 280px;
  flex-shrink: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: 67% center;
  background-repeat: no-repeat;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #061c3f;
}

.hero-container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}

.hero-panel > .hero-container {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 1.75rem 1.5rem;
}

.hero-content {
  width: 100%;
  max-width: none;
  text-align: left;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.hero-eyebrow-dash {
  flex-shrink: 0;
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  max-width: 510px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.96);
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.55;
  max-width: 470px;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-hero-primary,
.btn-hero-secondary {
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
  border-radius: 999px;
  width: 100%;
  justify-content: center;
}

.btn-hero-primary {
  min-height: 52px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.hero-location svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-trust {
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 22, 54, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-trust-list {
  list-style: none;
  margin: 0;
  min-height: 64px;
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  align-content: center;
}

.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.3;
}

.hero-trust-list svg {
  flex-shrink: 0;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .hero {
    min-height: 620px;
    height: calc(100vh - var(--header-h));
    max-height: 780px;
    padding-top: var(--header-h);
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .hero-photo {
    display: none;
  }

  .hero-panel {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
  }

  .hero-panel > .hero-container {
    padding-block: clamp(1.5rem, 4vh, 2.5rem);
  }

  .hero-content {
    width: 40%;
    max-width: 520px;
  }

  .hero h1 {
    font-size: clamp(48px, 4vw, 64px);
  }

  .hero-tagline {
    font-size: clamp(22px, 2.2vw, 25px);
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: auto;
    min-width: 11.5rem;
  }

  .btn-hero-primary {
    min-height: 54px;
    padding-inline: 1.5rem;
  }

  .hero-trust-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    min-height: 68px;
    padding: 0.85rem 0;
  }

  .hero-trust-list li {
    justify-content: center;
    text-align: center;
    padding-inline: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-trust-list li:last-child {
    border-right: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    background-position: 55% center;
  }

  .hero-content {
    width: 46%;
    max-width: 520px;
  }
}

/* Sections */
.section {
  padding: 4rem 0;
}

#servicios.section {
  padding-top: 3.75rem;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.section-header .accent-line {
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 1rem;
}

/* Services */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(11, 61, 145, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0;
  color: var(--primary);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
  flex: 1;
}

.services-visual {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  grid-template-columns: 1fr 1fr;
}

.services-visual img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.services-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Brands */
.brands-wrap {
  text-align: center;
}

.brands-text {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  color: var(--muted);
}

.brand-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.brand-tag {
  background: var(--bg);
  border: 1px solid rgba(11, 61, 145, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.brand-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.trust-points {
  display: grid;
  gap: 1rem;
}

.trust-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trust-point svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0.15rem;
}

.trust-point h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
  color: var(--primary);
}

.trust-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

.gallery img {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

.gallery img.wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

/* Reviews */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rating-badge .stars {
  color: #fbbf24;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.rating-badge strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.reviews-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.review-card {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}

.review-card .stars-sm {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-card p {
  margin: 0 0 0.5rem;
  font-style: italic;
  color: var(--text);
}

.review-card cite {
  font-size: 0.875rem;
  color: var(--muted);
  font-style: normal;
}

.reviews-placeholder-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1rem;
}

.reviews-cta {
  text-align: center;
  margin-top: 1.75rem;
}

/* Location */
.location-grid {
  display: grid;
  gap: 2rem;
}

.location-info address {
  font-style: normal;
  line-height: 1.7;
}

.location-info h3 {
  font-family: var(--font-display);
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.hours-note {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(249, 115, 22, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 0.9375rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  background: #e2e8f0;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand img {
  width: 56px;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  max-width: 22rem;
}

.footer-links h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.75rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.footer-legal p {
  margin: 0 0 0.75rem;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* FAB WhatsApp */
.wa-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}

.wa-fab:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Responsive */
@media (min-width: 640px) {
  .brand span {
    display: block;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .header-cta .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9375rem;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .location-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 360px;
  }
}

@media (min-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card.span-2 {
    grid-column: span 1;
  }
}
