/* ================================================================
   DON LUIS TRANSPORTE — Hoja de estilos principal
   Archivo: styles.css
   Autor: generado con asistencia de Claude (Anthropic)
   ================================================================

   ÍNDICE
   ──────
   1. Variables globales (design tokens)
   2. Reset y base
   3. Utilidades / helpers
   4. Componentes reutilizables
      4.1 Botones
      4.2 Logo
      4.3 Encabezado de sección
   5. Navbar
   6. Hero
   7. Servicios
   8. Sección QR
   9. Footer
   10. Animaciones
   11. Media queries (responsive)
       - Mobile first: 320 px → 480 px → 768 px → 1024 px → 1280 px
================================================================ */


/* ────────────────────────────────────────────────────────────────
   1. VARIABLES GLOBALES — Design tokens centralizados
   Modifica aquí para cambiar toda la paleta, tipografía y
   espaciado del sitio sin tocar el resto del código.
──────────────────────────────────────────────────────────────── */
:root {

  /* --- Paleta de colores ---------------------------------------- */
  --color-bg-primary:     #0d0d0d;    /* Fondo oscuro principal      */
  --color-bg-secondary:   #1a1a1a;    /* Fondo de tarjetas / secciones */
  --color-bg-card:        #222222;    /* Fondo de tarjetas de servicio  */
  --color-bg-footer:      #111111;    /* Fondo del footer             */

  --color-gold:           #f0b429;    /* Dorado/ámbar — acento primario */
  --color-gold-dark:      #c8931a;    /* Dorado oscuro — hover states   */
  --color-gold-light:     #ffd166;    /* Dorado claro — textos ligeros  */

  --color-white:          #ffffff;    /* Blanco puro                  */
  --color-gray-light:     #cccccc;    /* Texto secundario claro        */
  --color-gray-mid:       #888888;    /* Separadores, textos terciarios */
  --color-gray-dark:      #444444;    /* Bordes sutiles               */

  --color-whatsapp:       #25d366;    /* Verde WhatsApp oficial        */
  --color-whatsapp-dark:  #1da851;    /* Verde WhatsApp — hover        */

  /* --- Tipografía ----------------------------------------------- */
  --font-display:         'Bebas Neue', cursive;       /* Títulos grandes  */
  --font-body:            'Mulish', sans-serif;        /* Cuerpo de texto  */

  --font-size-xs:         0.75rem;    /* 12 px */
  --font-size-sm:         0.875rem;   /* 14 px */
  --font-size-base:       1rem;       /* 16 px */
  --font-size-md:         1.125rem;   /* 18 px */
  --font-size-lg:         1.25rem;    /* 20 px */
  --font-size-xl:         1.5rem;     /* 24 px */
  --font-size-2xl:        2rem;       /* 32 px */
  --font-size-3xl:        3rem;       /* 48 px */
  --font-size-4xl:        4rem;       /* 64 px */
  --font-size-hero:       5rem;       /* 80 px — solo desktop  */

  --font-weight-regular:  400;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold:800;

  --line-height-tight:    1.1;
  --line-height-base:     1.5;
  --line-height-relaxed:  1.7;

  /* --- Espaciado (escala 8 px) ---------------------------------- */
  --space-1:   0.25rem;   /*  4 px */
  --space-2:   0.5rem;    /*  8 px */
  --space-3:   0.75rem;   /* 12 px */
  --space-4:   1rem;      /* 16 px */
  --space-5:   1.25rem;   /* 20 px */
  --space-6:   1.5rem;    /* 24 px */
  --space-8:   2rem;      /* 32 px */
  --space-10:  2.5rem;    /* 40 px */
  --space-12:  3rem;      /* 48 px */
  --space-16:  4rem;      /* 64 px */
  --space-20:  5rem;      /* 80 px */

  /* --- Bordes --------------------------------------------------- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* --- Sombras -------------------------------------------------- */
  --shadow-card:    0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-btn:     0 4px 16px rgba(37, 211, 102, 0.35);
  --shadow-gold:    0 4px 16px rgba(240, 180, 41, 0.3);

  /* --- Transiciones globales ----------------------------------- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* --- Layout -------------------------------------------------- */
  --container-max:  1200px;   /* Ancho máximo del contenedor */
  --container-px:   var(--space-6); /* Padding horizontal del contenedor */

  /* --- Navbar -------------------------------------------------- */
  --navbar-height: 64px;
}


/* ────────────────────────────────────────────────────────────────
   2. RESET Y BASE
──────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  min-height: 100vh;
  overflow-x: hidden;          /* Evita scroll horizontal en mobile */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imágenes responsivas por defecto */
img,
svg {
  max-width: 100%;
  display: block;
}

/* Links sin subrayado por defecto */
a {
  color: inherit;
  text-decoration: none;
}

/* Listas sin estilos por defecto */
ul, ol {
  list-style: none;
}

/* Botones sin estilos del navegador */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}


/* ────────────────────────────────────────────────────────────────
   3. UTILIDADES / HELPERS
──────────────────────────────────────────────────────────────── */

/* Contenedor centrado con max-width */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ────────────────────────────────────────────────────────────────
   4. COMPONENTES REUTILIZABLES
──────────────────────────────────────────────────────────────── */

/* 4.1 — Botones
   ─────────────────────────────────────────────────────────────  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  white-space: nowrap;
  border: none;
  outline: none;
  text-decoration: none;
}

/* Botón WhatsApp verde */
.btn--whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

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

.btn--whatsapp:active {
  transform: translateY(0);
}

/* Tamaño pequeño (navbar) */
.btn--sm {
  font-size: var(--font-size-xs);
  padding: var(--space-2) var(--space-4);
  height: 38px;
}

/* Tamaño grande (hero CTA) */
.btn--lg {
  font-size: var(--font-size-sm);
  padding: var(--space-4) var(--space-8);
  height: 54px;
}

/* Ícono WhatsApp dentro del botón */
.btn .icon-whatsapp {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* 4.2 — Logo
   ─────────────────────────────────────────────────────────────  */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-white);
}

/* Círculo con la D inicial */
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-gold);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--color-gold);
  flex-shrink: 0;
  line-height: 1;
}

/* Textos del logo */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text__name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--color-white);
  letter-spacing: 0.05em;
}

.logo-text__sub {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.15em;
  color: var(--color-gray-light);
  text-transform: uppercase;
}


/* 4.3 — Encabezado de sección con líneas laterales
   ─────────────────────────────────────────────────────────────  */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.section-header__title {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  white-space: nowrap;
  text-align: center;
}

.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-gold),
    transparent
  );
}


/* ────────────────────────────────────────────────────────────────
   5. NAVBAR
──────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;          /* Queda fija al hacer scroll */
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--navbar-height);
  background-color: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);            /* Efecto glass */
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--container-px);
  gap: var(--space-4);
}


/* ────────────────────────────────────────────────────────────────
   6. HERO
──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(80vh - var(--navbar-height));
  display: flex;
  align-items: center;

  /* Imagen de fondo — reemplaza con foto real del vehículo */
  background-image: url('images/logo.png');
  background-size: 1024px auto; /* Ajusta el tamaño de la imagen de fondo */
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-bg-secondary); /* Fallback sin imagen */
}

/* Overlay oscuro degradado para legibilidad */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.65) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
  z-index: 0;
}

/* Contenido del hero encima del overlay */
.hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16);
  max-width: 600px;         /* Limita el ancho del bloque de texto */
}

/* Título principal H1 */
.hero__title {
  font-family: var(--font-display);
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
}

.hero__title--white {
  font-size: var(--font-size-4xl);
  color: var(--color-white);
}

.hero__title--gold {
  font-size: var(--font-size-4xl);
  color: var(--color-gold);
  /* Línea decorativa bajo el título dorado */
  padding-bottom: var(--space-4);
  border-bottom: 3px solid var(--color-gold);
  width: fit-content;
  margin-bottom: var(--space-4);
}

/* Slogan / tagline */
.hero__tagline {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

.hero__tagline strong {
  color: var(--color-gold);
  font-weight: var(--font-weight-bold);
}

/* Descripción */
.hero__desc {
  font-size: var(--font-size-base);
  color: var(--color-gray-light);
  margin-bottom: var(--space-8);
  line-height: var(--line-height-relaxed);
}

/* Teléfono en el hero */
.hero__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-base);
}

.hero__phone:hover {
  color: var(--color-gold);
}

.hero__phone .icon-phone {
  width: 36px;
  height: 36px;
  padding: var(--space-2);
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.hero__phone small {
  display: block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  color: var(--color-gray-light);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.hero__phone strong {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.02em;
}


/* ────────────────────────────────────────────────────────────────
   7. SERVICIOS
──────────────────────────────────────────────────────────────── */
.services {
  background-color: var(--color-bg-secondary);
  padding-block: var(--space-16);
}

/* Grid de 3 columnas en desktop, 1 en mobile */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Tarjeta individual */
.service-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-gray-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

/* Ícono de la tarjeta */
.service-card__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  color: var(--color-gold);          /* Colorea el SVG vía currentColor */
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Título de la tarjeta */
.service-card__title {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

/* Descripción de la tarjeta */
.service-card__desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray-light);
  line-height: var(--line-height-relaxed);
}


/* ────────────────────────────────────────────────────────────────
   8. SECCIÓN QR
──────────────────────────────────────────────────────────────── */
.qr-section {
  background-color: var(--color-bg-card);
  padding-block: var(--space-12);
  border-top: 1px solid var(--color-gray-dark);
  border-bottom: 1px solid var(--color-gray-dark);
}

/* Layout horizontal: copy a la izquierda, QR a la derecha */
.qr-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* Bloque de copy (ícono + texto) */
.qr-section__copy {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  min-width: 220px;
}

/* Ícono de celular circular */
.qr-section__phone-icon {
  width: 80px;
  height: 80px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  flex-shrink: 0;
}

.qr-section__phone-icon svg {
  width: 40px;
  height: 40px;
}

/* Título de la sección QR */
.qr-section__title {
  font-family: var(--font-body);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  line-height: var(--line-height-tight);
}

/* Descripción */
.qr-section__desc {
  font-size: var(--font-size-sm);
  color: var(--color-gray-light);
  line-height: var(--line-height-relaxed);
}

/* Contenedor del QR + flecha */
.qr-section__qr-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

/* Flecha decorativa */
.qr-section__arrow {
  font-size: var(--font-size-3xl);
  color: var(--color-gold);
  line-height: 1;
}

/* Contenedor relativo para el ícono encima del QR */
.qr-section__qr-wrap a {
  position: relative;
  display: inline-block;
}

/* Imagen QR */
.qr-section__img {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-md);
  background-color: var(--color-white); /* Fondo blanco para el QR */
  object-fit: contain;
  padding: var(--space-2);
}

/* Ícono WhatsApp pequeño sobre el centro del QR */
.qr-section__qr-overlay {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.qr-section__qr-overlay svg {
  width: 18px;
  height: 18px;
}


/* ────────────────────────────────────────────────────────────────
   9. FOOTER
──────────────────────────────────────────────────────────────── */
.footer {
  background-color: var(--color-bg-footer);
  border-top: 1px solid var(--color-gray-dark);
  padding-block: var(--space-6);
}

/* Layout del footer: logo a la izquierda, valores a la derecha */
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Ajuste de logo en footer */
.footer__logo .logo-icon {
  width: 34px;
  height: 34px;
  font-size: var(--font-size-base);
}

.footer__logo .logo-text__name {
  font-size: var(--font-size-base);
}

/* Lista de valores del footer */
.footer__values {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

/* Cada valor: ícono + texto */
.footer__value {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-light);
  letter-spacing: 0.04em;
}

.footer__value svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}


/* ────────────────────────────────────────────────────────────────
   10. ANIMACIONES
──────────────────────────────────────────────────────────────── */

/* Entrada con fade + slide-up (aplicada por JS con .is-visible) */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos animables: ocultos por defecto, visibles con JS */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retardos escalonados para los servicios */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 100ms; }
.service-card:nth-child(3) { transition-delay: 200ms; }

/* Animación del hero al cargar la página */
.hero__content {
  animation: fadeSlideUp 0.7s ease both;
}


/* ────────────────────────────────────────────────────────────────
   11. MEDIA QUERIES — Mobile First
   Breakpoints:
     xs:  < 480 px  (teléfonos pequeños)
     sm:  ≥ 480 px  (teléfonos grandes)
     md:  ≥ 768 px  (tablets)
     lg:  ≥ 1024 px (laptops)
     xl:  ≥ 1280 px (desktops)
──────────────────────────────────────────────────────────────── */

/* ─── xs: teléfonos muy pequeños (< 480 px) ─────────────────── */
@media (max-width: 479px) {

  /* Navbar: ocultamos texto del logo en pantallas muy pequeñas */
  .logo-text__sub {
    display: none;
  }

  /* Hero: títulos más pequeños */
  .hero__title--white,
  .hero__title--gold {
    font-size: var(--font-size-3xl); /* 48 px */
  }

  /* Servicios: 1 columna */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Sección QR: apilado verticalmente */
  .qr-section__inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
  }

  .qr-section__copy {
    flex-direction: column;
    text-align: center;
  }

  .qr-section__qr-wrap {
    margin-inline: auto;
  }

  /* Footer: centrado */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__values {
    justify-content: center;
  }
}


/* ─── sm: teléfonos grandes (480 px – 767 px) ───────────────── */
@media (min-width: 480px) and (max-width: 767px) {

  /* Servicios: 1 columna */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Sección QR: apilado verticalmente */
  .qr-section__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .qr-section__qr-wrap {
    margin-inline: auto;
  }

  /* Footer: centrado */
  .footer__inner {
    flex-direction: column;
    align-items: center;
  }

  .footer__values {
    justify-content: center;
  }
}


/* ─── md: tablets (768 px – 1023 px) ────────────────────────── */
@media (min-width: 768px) {

  /* Variables ajustadas para pantallas medianas */
  :root {
    --container-px: var(--space-8);
  }

  /* Servicios: 3 columnas (restauradas) */
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero: títulos más grandes */
  .hero__title--white,
  .hero__title--gold {
    font-size: var(--font-size-4xl);  /* 64 px */
  }

  /* Sección QR: layout horizontal */
  .qr-section__inner {
    flex-direction: row;
  }
}


/* ─── lg: laptops (1024 px – 1279 px) ───────────────────────── */
@media (min-width: 1024px) {

  /* Hero: tamaño máximo de títulos */
  .hero__title--white,
  .hero__title--gold {
    font-size: var(--font-size-hero);  /* 80 px */
  }

  /* Tagline más grande */
  .hero__tagline {
    font-size: var(--font-size-lg);
  }

  /* Sección QR: fija el copy a la izquierda */
  .qr-section__copy {
    flex-direction: row;
  }
}


/* ─── xl: desktops (≥ 1280 px) ──────────────────────────────── */
@media (min-width: 1280px) {

  :root {
    --container-px: var(--space-4);  /* El max-width se encarga del límite */
  }

  /* Espacio extra en hero */
  .hero__content {
    padding-block: var(--space-20);
  }
}


/* ─── Preferencia de movimiento reducido (accesibilidad) ────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}