/*
  custom.css
  - Editar variables de color y tipografías para personalización de marca.
  - Los bloques están divididos por sección para cambios rápidos.
*/
:root {
  --brand: #A1221E;
  --ink: #0f172a;
  --muted: #64748b;
  --bg-soft: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', 'Manrope', system-ui, sans-serif;
}

/* Reutilizables */
.section-block {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 5rem;
}

.section-shell {
  width: min(90rem, 100% - 2rem);
  margin-inline: auto;
}

.section-title {
  font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}

.section-subtitle {
  margin-top: 0.85rem;
  max-width: 56ch;
  color: #334155;
}

/* NAV */
#siteHeader {
  transition: box-shadow 180ms ease, background-color 180ms ease;
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(226, 232, 240, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
}

.site-header-inner {
  min-height: 72px;
  gap: 1.25rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 0.85rem;
  padding: 0.24rem 0.45rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px -18px rgba(15, 23, 42, 0.35);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 230px;
  padding: 0.2rem 0.35rem;
}

.header-cta {
  border-radius: 999px;
  padding: 0.66rem 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.38);
  transition: transform 180ms ease, filter 180ms ease;
}

.logo-image {
  max-height: 56px;
  width: auto;
  max-width: 210px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  object-position: left center;
  transition: transform 180ms ease;
}

.nav-link,
.mobile-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 160ms ease;
}

.menu-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: #334155;
  display: inline-block;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--brand);
}

.nav-link {
  position: relative;
}

.header-menu-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.85rem;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 22px -18px rgba(15, 23, 42, 0.45);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0.6rem;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 180ms ease;
}

.nav-link:hover::after {
  width: 1.5rem;
}

.mobile-link {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 88vh;
}

.hero-inner {
  position: relative;
  z-index: 1;
  gap: 0.2rem;
}

.hero-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  padding-inline: 0.95rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(2.2rem, 3.4vw + 1rem, 5rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 0.7vw + 1rem, 1.18rem);
  line-height: 1.75;
  color: #e2e8f0;
}

.hero-actions .btn {
  min-width: 12rem;
  justify-content: center;
  padding-top: 0.87rem;
  padding-bottom: 0.87rem;
}

.hero-btn {
  border-radius: 999px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../img/vehicle-move.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.8) 42%, rgba(15, 23, 42, 0.64) 100%),
    radial-gradient(circle at 17% 16%, rgba(161, 34, 30, 0.27), transparent 44%),
    radial-gradient(circle at 82% 78%, rgba(15, 23, 42, 0.3), transparent 44%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.04));
  z-index: -1;
}

.hero h1,
.hero p {
  text-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
  position: relative;
  z-index: 1;
}

.btn-primary {
  box-shadow: 0 12px 25px -14px rgba(15, 23, 42, 0.45);
}

.btn-secondary {
  backdrop-filter: blur(6px);
}

.badge {
  width: fit-content;
  border: 1px solid rgba(248, 250, 252, 0.35);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f8fafc;
}

.hero-badge-icon {
  display: inline-block;
  margin-right: 0.4rem;
  font-weight: 700;
  color: #f8fafc;
}

.btn {
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(to right, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.16));
}

.metric-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.05rem;
  border-left: 3px solid var(--brand);
  padding: 1.1rem;
  backdrop-filter: blur(4px);
}

.metric-number {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}

.metric-label {
  font-size: 0.92rem;
  color: #475569;
  margin-top: 0.45rem;
}

/* SERVICES */
#services {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 1) 35%);
}

.service-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.2rem;
  padding: 1.45rem;
  background: #fff;
  box-shadow: 0 20px 50px -35px rgba(15, 23, 42, 0.28);
  min-height: 17rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.95));
  z-index: 0;
  pointer-events: none;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(161, 34, 30, 0.25);
  box-shadow: 0 12px 40px -30px rgba(15, 23, 42, 0.35);
}

.service-icon-wrap {
  width: 2.95rem;
  height: 2.95rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  font-size: 1.25rem;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.service-title {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

.service-text {
  margin-top: 0.65rem;
  color: #475569;
  line-height: 1.7;
}

/* ABOUT */
.about-copy {
  width: min(100%, 36rem);
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border-radius: 1.35rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: visible;
}

.about-image {
  width: 100%;
  max-width: 22rem;
  height: auto;
  object-fit: contain;
  border-radius: 1.35rem;
  border: 0;
  margin-inline: auto;
  box-shadow: 0 12px 40px -30px rgba(15, 23, 42, 0.35);
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1.35rem;
  z-index: -1;
  background: linear-gradient(135deg, rgba(161, 34, 30, 0.1), rgba(2, 6, 23, 0.12));
  pointer-events: none;
}

.info-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 8px 25px -22px rgba(15, 23, 42, 0.33);
  transition: transform 180ms ease, border-color 180ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(161, 34, 30, 0.22);
}

/* WHY CHOOSE */
.benefit-card {
  border: 1px solid #e2e8f0;
  border-radius: 1.05rem;
  padding: 1.15rem;
  background: #fff;
  transition: border-color 180ms ease, transform 180ms ease;
}

.benefit-card:hover {
  border-color: rgba(161, 34, 30, 0.25);
  transform: translateY(-2px);
}

.benefit-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.benefit-icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(161, 34, 30, 0.12);
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
}

.benefit-text {
  margin-top: 0.6rem;
  color: #475569;
  line-height: 1.7;
}

/* CONTACT */
.contact-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  background: #fff;
}

.contact-item .label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: #64748b;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-item a,
.contact-item p {
  font-weight: 700;
  color: var(--ink);
}

.contact-card {
  border-radius: 1.3rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--tw-shadow-soft);
}

.field-label {
  margin-top: 0.95rem;
  margin-bottom: 0.35rem;
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.8rem;
  padding: 0.82rem 0.9rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(161, 34, 30, 0.14);
}

#formFeedback {
  color: #166534;
}

#formFeedback.error {
  color: #b91c1c;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .section-block {
    padding-top: 4.75rem;
    padding-bottom: 3.5rem;
  }

  .hero-inner {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  .logo-image {
    max-height: 48px;
    max-width: 188px;
  }

  .section-shell {
    width: min(90rem, 100% - 1.5rem);
  }
}
