/* ============================================
   Multiservice - Taller Mecánico
   ============================================ */

:root {
  --red: #c41e24;
  --red-dark: #9a1519;
  --red-light: #e83030;
  --blue: #1a3d8f;
  --blue-light: #2a5fc4;
  --dark: #111318;
  --dark-2: #1a1d24;
  --dark-3: #252830;
  --grey: #6b7280;
  --grey-light: #9ca3af;
  --white: #ffffff;
  --off-white: #f4f5f7;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --font: 'Barlow', sans-serif;
  --font-display: 'Barlow Condensed', sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.2);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 40px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top bar ---- */
.top-bar {
  background: var(--dark);
  color: var(--grey-light);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar__inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.top-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar__item svg {
  color: var(--red-light);
  flex-shrink: 0;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  width: 48px;
  height: auto;
}

.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.5px;
}

.header__brand small {
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__link {
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark-3);
  border-radius: 8px;
}

.nav__link:hover {
  color: var(--red);
  background: rgba(196, 30, 36, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 30, 36, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 36px);
  min-height: calc(100dvh - var(--header-h) - 36px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 19, 24, 0.92) 0%, rgba(26, 61, 143, 0.85) 50%, rgba(17, 19, 24, 0.95) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 24px;
}

.hero__badge {
  display: inline-block;
  background: rgba(196, 30, 36, 0.2);
  color: var(--red-light);
  border: 1px solid rgba(196, 30, 36, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title span {
  color: var(--red-light);
}

.hero__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo {
  width: min(320px, 100%);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Highlights ---- */
.highlights {
  background: var(--off-white);
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.highlight-card {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  transition: background var(--transition);
}

.highlight-card:last-child {
  border-right: none;
}

.highlight-card:hover {
  background: var(--off-white);
}

.highlight-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(196, 30, 36, 0.1);
  color: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-card p {
  font-size: 0.88rem;
  color: var(--grey);
  line-height: 1.5;
}

/* ---- Sections ---- */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--dark);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section__label {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section__label--light {
  color: var(--red-light);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section__title--light {
  color: var(--white);
}

.section__desc {
  color: var(--grey);
  font-size: 1.05rem;
}

/* ---- Services ---- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--red);
  transition: height var(--transition);
}

.service-card:hover {
  background: var(--white);
  border-color: rgba(196, 30, 36, 0.15);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(196, 30, 36, 0.15);
  line-height: 1;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- About ---- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about__text strong {
  color: var(--white);
}

.about__list {
  margin: 28px 0 36px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 0;
  font-weight: 500;
}

.about__list svg {
  color: var(--red-light);
  flex-shrink: 0;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__logo-card {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about__logo-card img {
  width: 220px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.4));
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--grey-light);
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  padding: 60px 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact__item:last-child {
  border-bottom: none;
}

.contact__icon {
  width: 52px;
  height: 52px;
  background: rgba(196, 30, 36, 0.1);
  color: var(--red);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__icon--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: var(--whatsapp);
}

.contact__item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact__item p {
  color: var(--grey);
}

.contact__link {
  color: var(--whatsapp);
  font-weight: 600;
}

.contact__link:hover {
  text-decoration: underline;
}

.contact__note {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--grey-light);
  font-style: italic;
}

.contact__map {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  color: var(--grey-light);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 24px 48px;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  grid-column: 1;
  grid-row: 1;
}

.footer__brand img {
  width: 48px;
}

.footer__brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.footer__brand p {
  font-size: 0.85rem;
  margin-top: 2px;
}

.footer__links {
  display: flex;
  gap: 24px;
  grid-column: 2;
  grid-row: 1;
}

.footer__links a {
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--white);
}

.footer__copy {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.82rem;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 72px;
  background: var(--dark);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Animations on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlight-card:nth-child(2) {
    border-right: none;
  }

  .highlight-card {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .highlight-card:nth-child(3),
  .highlight-card:nth-child(4) {
    border-bottom: none;
  }

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

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 60px 24px;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__logo-wrap {
    order: -1;
  }

  .hero__logo {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 36px);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .nav__cta {
    width: 100%;
    margin-top: 8px;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .highlights {
    margin-top: 0;
  }

  .highlights__grid {
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .highlight-card {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .highlight-card:last-child {
    border-bottom: none;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__map {
    height: 300px;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__links {
    justify-content: center;
    grid-column: 1;
  }

  .section {
    padding: 72px 0;
  }

  .whatsapp-float__tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .top-bar__inner {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
