/* ===== Magic Garage — Landing estática (Tema Claro: Blanco, Negro y Azul) ===== */
:root {
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-card: #ffffff;
  --foreground: #0f172a;
  --muted: #475569;
  --brand: #1d4ed8;
  --brand-bright: #2563eb;
  --brand-light: #2563eb;
  --brand-deep: #eff6ff;
  --border: #e2e8f0;
  --footer: #0f172a;
  --whatsapp: #22c55e;
  --facebook: #1877f2;
  --instagram: #e1306c;
  --tiktok: #0f172a;
  --shadow-blue: 0 14px 35px -10px rgba(37, 99, 235, 0.35);
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.07);
  --radius: 0.75rem;
  --font-display: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--brand-bright);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  border: 2px solid var(--foreground);
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: #ffffff;
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 3.5rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(29, 78, 216, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.brand-logo {
  height: 5rem;
  width: auto;
  max-width: 13rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: color 0.2s;
}

.nav a:hover {
  color: #60a5fa;
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle.open .icon-menu {
  display: none;
}

.menu-toggle.open .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  padding: 1.25rem;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid #1e293b;
}

.nav-mobile a.btn {
  margin-top: 1.25rem;
  border-bottom: none;
  color: #fff;
}

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

  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .nav-mobile {
    display: none !important;
  }
}

/* ===== Redes flotantes ===== */
.floating-socials {
  position: fixed;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.floating-label {
  display: none;
  background: var(--whatsapp);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.social {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.social:hover {
  transform: scale(1.1);
}

.social .icon {
  width: 1.6rem;
  height: 1.6rem;
}

.social-whatsapp {
  background: var(--whatsapp);
}

.social-facebook {
  background: var(--facebook);
}

.social-instagram {
  background: var(--instagram);
}

.social-tiktok {
  background: var(--tiktok);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .floating-socials {
    right: 1.25rem;
  }

  .floating-label {
    display: block;
  }

  .social {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 6rem 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.01em;
  color: #ffffff;
  -webkit-text-stroke: 2.5px #2563eb;
  text-shadow:
    -2px -2px 0 #2563eb,
    2px -2px 0 #2563eb,
    -2px 2px 0 #2563eb,
    2px 2px 0 #2563eb,
    0 0 25px rgba(37, 99, 235, 0.85);
}

.hero h1 span {
  color: #2563eb;
  -webkit-text-stroke: 2.5px #ffffff;
  text-shadow:
    -2px -2px 0 #ffffff,
    2px -2px 0 #ffffff,
    -2px 2px 0 #ffffff,
    2px 2px 0 #ffffff,
    0 0 25px rgba(37, 99, 235, 0.9);
}

.hero h2 {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  color: #ffffff;
  -webkit-text-stroke: 1.5px #2563eb;
  text-shadow:
    -1.5px -1.5px 0 #2563eb,
    1.5px -1.5px 0 #2563eb,
    -1.5px 1.5px 0 #2563eb,
    1.5px 1.5px 0 #2563eb,
    0 0 15px rgba(37, 99, 235, 0.7);
}

.hero h2 span {
  color: #2563eb;
  -webkit-text-stroke: 1.5px #ffffff;
  text-shadow:
    -1.5px -1.5px 0 #ffffff,
    1.5px -1.5px 0 #ffffff,
    -1.5px 1.5px 0 #ffffff,
    1.5px 1.5px 0 #ffffff,
    0 0 18px rgba(37, 99, 235, 0.8);
}

.hero p {
  margin-top: 1.25rem;
  max-width: 42rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.65;
  color: #ffffff;
  -webkit-text-stroke: 0.75px #2563eb;
  text-shadow: 0 0 10px rgba(37, 99, 235, 0.8), 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-points {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(37, 99, 235, 0.9), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-points span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.85rem;
  border-radius: 0.5rem;
  border: 1.5px solid #2563eb;
}

.hero-points .icon {
  color: #60a5fa;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .hero-overlay {
    background: transparent;
  }
}

/* ===== Encabezados de sección ===== */
.section-heading {
  max-width: 48rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
}

.section-heading h2,
.experience-text h2,
.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--foreground);
}

.divider {
  display: block;
  width: 4rem;
  height: 4px;
  background: var(--brand);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

/* ===== Servicios ===== */
.services {
  background: var(--surface);
  padding: 6rem 0;
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-0.5rem);
  border-color: var(--brand);
  box-shadow: var(--shadow-blue);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius);
  background: rgba(29, 78, 216, 0.06);
  color: var(--brand);
  transition: all 0.3s;
}

.service-icon .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.service-card:hover .service-icon {
  background: var(--brand);
  color: #ffffff;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--foreground);
}

.service-card p {
  margin-top: 0.75rem;
  line-height: 1.65;
  color: var(--muted);
}

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

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

/* ===== Experiencia ===== */
.experience {
  display: grid;
  background: var(--background);
}

.experience-photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.experience-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.65) 0%, transparent 65%);
}

.experience-caption {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  border-left: 4px solid var(--brand);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.experience-caption p {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--foreground);
}

.experience-caption span {
  color: var(--brand);
}

.experience-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 1.25rem;
  max-width: 36rem;
}

.experience-text .lead {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.experience-points {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.experience-points span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #1e293b;
}

.experience-points .icon {
  color: var(--brand);
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 640px) {
  .experience-points {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-text {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .experience {
    grid-template-columns: 1fr 1fr;
  }

  .experience-photo {
    min-height: 620px;
  }

  .experience-text {
    padding: 4rem;
  }

  .experience-caption {
    bottom: 3rem;
    left: 3rem;
  }
}

/* ===== Marcas ===== */
.brands {
  background: var(--brand-deep);
  padding: 5rem 0;
  scroll-margin-top: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(29, 78, 216, 0.15);
  border-bottom: 1px solid rgba(29, 78, 216, 0.15);
  padding: 3rem 0;
  background: rgba(255, 255, 255, 0.6);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.brand-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.brand-img {
  height: 75px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  user-select: none;
}

.brand-img:hover {
  transform: scale(1.12);
}

@media (min-width: 640px) {
  .marquee-track {
    gap: 5.5rem;
  }

  .brand-card {
    height: auto;
    min-width: auto;
    padding: 0;
  }

  .brand-img {
    height: 95px;
    max-width: 220px;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* ===== Contacto ===== */
.contact {
  background: var(--background);
  padding: 6rem 0;
  scroll-margin-top: 5rem;
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact .lead {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.contact-info {
  margin-top: 2.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: color 0.2s;
}

.contact-item:hover {
  color: var(--brand);
}

.contact-item .icon {
  color: var(--brand);
  margin-top: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
}

.contact-item strong {
  display: block;
  color: var(--foreground);
}

.contact-item span span,
.contact-item>span {
  color: var(--muted);
}

.contact-item>span strong {
  color: var(--foreground);
}

.contact-socials {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.contact-socials a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-socials a:hover {
  color: var(--brand);
}

.contact-socials .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
}

.contact-cta {
  margin-top: 2.25rem;
  width: 100%;
  color: #ffffff;
}

.map-card {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.map-card iframe {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

@media (min-width: 640px) {
  .contact-cta {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--footer);
  border-top: 4px solid var(--brand);
  padding: 3.5rem 1.25rem;
  text-align: center;
  color: #ffffff;
}

.footer-logo {
  height: 8rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
  margin: 0 auto 1.75rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.footer-socials a {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: #60a5fa;
}

.footer-socials .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.footer p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* ===== Animaciones de aparición ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}