@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@400;600&display=swap');

/* =========================================
   1. RESET Y VARIABLES GLOBALES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Ocultar scrollbar pero mantener funcionalidad */
html::-webkit-scrollbar {
  display: none;
}
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #f9fafb; /* gray-50 */
  color: #1f2937; /* gray-800 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --white: #ffffff;
  --dark: #111827;
  --gray-light: #f3f4f6;
  --gray-text: #4b5563;
  --border-color: #e5e7eb;
}

/* =========================================
   2. UTILIDADES Y BOTONES
   ========================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/* =========================================
   3. HEADER Y NAVEGACIÃ“N
   ========================================= */
.main-header {
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 50;
}



.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none; /* Se activa en desktop */
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}

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

.hamburger {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #4b5563;
}

/* MenÃº MÃ³vil */
.mobile-menu {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  position: absolute;
  width: 100%;
  left: 0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 49;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-menu a:hover {
  background-color: #f9fafb;
  color: var(--primary);
}

/* ==========================================================================
   4. HERO Y BUSCADOR (DISEÑO ELEGANTE)
   ========================================================================== */
.hero {
    /* Fondo Suave (Azul Tech Moderno) */
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    
    /* Altura Reducida */
    padding: 3rem 1rem; /* Antes era 4rem */
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Título Elegante */
.hero h1 {
    font-family: 'Playfair Display', serif; /* Fuente Serif Elegante */
    font-style: italic; /* Cursiva sutil */
    font-size: 2.2rem; /* Un poco más pequeño */
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
    font-family: 'Inter', sans-serif; /* Texto normal limpio */
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* --- BARRA DE BÃšSQUEDA "CÃPSULA" (PREMIUM) --- */
.search-box {
  background: #ffffff;
  border-radius: 50px; /* Bordes totalmente redondos */
  padding: 6px; /* Espacio interno entre el borde blanco y el botÃ³n */
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 550px; /* Ancho mÃ¡ximo controlado (MÃ¡s pequeÃ±o) */
  margin: 0 auto; /* Centrado */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra flotante */
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Efecto al pasar el mouse o escribir */
.search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  border-color: var(--primary);
}

/* El campo de texto */
.search-input {
  flex-grow: 1;
  border: none;
  background: transparent !important; /* Vital para que tome el color del padre */
  padding: 0 20px; /* Espacio a los lados del texto */
  font-size: 0.95rem;
  color: inherit; /* Hereda el color del tema */
  outline: none;
  height: 40px; /* Altura fija para consistencia */
  border-radius: 50px; /* ESTO EVITA EL FONDO CUADRADO AL SELECCIONAR */
}

/* Color del texto de ayuda (placeholder) */
.search-input::placeholder {
    color: #9ca3af; /* Gris claro suave */
    opacity: 1; /* Asegura que se vea */
}

/* Solo si el input tiene fondo transparente sobre azul */
.hero .search-input::placeholder {
    color: rgba(255, 255, 255, 0.8); /* Blanco con un poco de transparencia */
}
.hero .search-input {
    color: white; /* Texto al escribir blanco */
}

/* El botÃ³n azul redondo */
.search-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px; /* BotÃ³n redondo tambiÃ©n */
  padding: 0 24px; /* Ancho del botÃ³n */
  height: 40px; /* Misma altura que el input */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex; align-items: center; gap: 5px;
  
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

/* =========================================
   5. TARJETAS DE SERVICIOS
   ========================================= */
.services-section {
  padding: 4rem 1rem;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #1f2937;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* =========================================
   PAGINACIÓN (SERVICIOS)
   ========================================= */
.pagination-container {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    font-weight: 500;
}

.pagination-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

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

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Hover de imágenes en servicios */
.card-image-wrapper img:hover {
    transform: scale(1.05);
}

/* AJUSTE IMÁGENES DE SERVICIOS */
.card-image-wrapper img {
    transition: transform 0.3s ease;
}
.card:hover .card-image-wrapper img {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

/* =========================================
   6. RASTREO (TRACKING) Y CONSULTA
   ========================================= */
.tracking-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.tracking-title-main {
  text-align: center;
  color: #1e293b;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

/* Tarjeta Principal */
.tracking-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

/* Header de la Tarjeta */
.tracking-header {
  background: #1e293b; /* Slate 800 */
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tracking-body {
  padding: 2.5rem;
}

/* Tabla de Detalles Interna */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.details-table th,
.details-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.details-table th {
  width: 30%;
  color: #64748b;
  font-weight: 600;
  background: #f8fafc;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  border-radius: 4px 0 0 4px;
}

.details-table td {
  color: #1e293b;
  font-weight: 500;
}

/* Comentario TÃ©cnico */
.tech-comment-box {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.tech-label {
  display: block;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* Timeline Horizontal */
.timeline-wrapper {
  position: relative;
  margin-top: 3rem;
  padding: 0 10px;
}
.timeline-line {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 4px;
}
.timeline-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background: #10b981; /* Verde Ã‰xito */
  z-index: 1;
  transition: width 0.5s ease;
  border-radius: 4px;
}
.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.step-item {
  text-align: center;
  flex: 1;
}
.step-icon {
  width: 34px;
  height: 34px;
  background: white;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.step-item.active .step-icon {
  border-color: #10b981;
  background: #10b981;
  color: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.step-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}
.step-item.active .step-label {
  color: #10b981;
}

/* Grid Inferior: Fotos y Contacto */
.bottom-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 2rem;
}

.photos-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.photos-header {
  background: #f8fafc;
  padding: 10px;
  font-weight: bold;
  color: #475569;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.85rem;
}
.photos-content {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #94a3b8;
  font-style: italic;
  padding: 1rem;
}

.contact-blue-box {
  border: 2px solid #1e40af; /* Azul fuerte */
  padding: 1.5rem;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}
.contact-text {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: #334155;
}
.contact-phone {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1e40af;
  display: block;
  margin-bottom: 15px;
  text-decoration: none;
}
.contact-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #166534;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #166534;
  border-radius: 6px;
  transition: all 0.2s;
}
.contact-whatsapp:hover {
  background: #166534;
  color: white;
}

/* =========================================
   BOTÃ“N HAMBURGUESA ANIMADO (PÃšBLICO)
   ========================================= */

/* Oculto en escritorio */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60; /* Encima del menÃº desplegable */
}

/* Las 3 barras */
.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #334155; /* Color Gris Oscuro para fondo blanco */
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* --- ANIMACIÃ“N A "X" --- */
/* Cuando tiene la clase .is-active */
.hamburger-btn.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #2563eb; /* Azul TechFix al abrir (o #ef4444 rojo) */
}

.hamburger-btn.is-active .bar:nth-child(2) {
  opacity: 0; /* La del medio desaparece */
}

.hamburger-btn.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #2563eb; /* Azul TechFix al abrir */
}

/* --- MOSTRAR EN MÃ“VIL --- */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex; /* Se activa en celular */
  }

  /* Ocultar el botÃ³n viejo si aÃºn tenÃ­as estilos con la clase .hamburger */
  .hamburger {
    display: none;
  }

  /* 1. SIDEBAR CON TRANSICIÃ“N SUAVE */
  .sidebar {
    transform: translateX(
      -100%
    ); /* PosiciÃ³n inicial: Escondido a la izquierda */
    width: 280px;
    box-shadow: none;

    /* ESTA LÃNEA ES LA MAGIA DE LA SUVIDAD */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Aseguramos que estÃ© encima de todo */
    z-index: 3000;
    display: flex; /* Asegura que no estÃ© display:none */
  }

  /* 2. SIDEBAR ACTIVO (ENTRADA) */
  .sidebar.active {
    transform: translateX(0); /* PosiciÃ³n final: En su lugar (0) */
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
  }

  /* 3. FONDO OSCURO (FADE IN) */
  .overlay {
    display: block; /* Siempre en el DOM pero invisible */
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;

    /* TransiciÃ³n suave de opacidad */
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}


/* =========================================
   8. MEDIA QUERIES (RESPONSIVO FINAL V2)
   ========================================= */

/* ==========================================================================
   1. VARIABLES Y RESET
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html::-webkit-scrollbar {
  display: none;
}
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden; /* Vital para mÃ³vil */
}

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --white: #ffffff;
  --dark: #111827;
  --border-color: #e5e7eb;
  --nav-height: 70px;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÃ“N (DESKTOP)
   ========================================================================== */
.main-header {
  background-color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}



.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  max-height: 45px;
  width: auto;
}

/* Enlaces Desktop (Se ocultan en mÃ³vil vÃ­a media query) */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}

.btn-nav {
  padding: 0.5rem 1rem;
  background-color: var(--primary);
  color: white !important;
  border-radius: 6px;
  font-size: 0.9rem;
}

/* ==========================================================================
   3. MENÃš MÃ“VIL DESPLEGABLE (AnimaciÃ³n Suave Entrada/Salida)
   ========================================================================== */
.mobile-menu {
  position: absolute; /* O 'fixed' si quieres que baje con el scroll */
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  z-index: 999;

  /* --- CONFIGURACIÃ“N DE LA ANIMACIÃ“N --- */
  /* 1. Empezamos invisible y un poco desplazado hacia arriba */
  opacity: 0;
  visibility: hidden; /* Esto evita clics cuando estÃ¡ cerrado */
  transform: translateY(-20px);

  /* 2. Definimos la transiciÃ³n para que aplique AL ENTRAR Y AL SALIR */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Clase para abrir el menÃº */
.mobile-menu.active {
  /* 3. Estado Final: Visible y en su posiciÃ³n original */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 1.2rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
  font-weight: 500;
}
.mobile-menu a:hover {
  background-color: #f9fafb;
  color: var(--primary);
}

/* ==========================================================================
   4. BOTÃ“N HAMBURGUESA (ANIMADO)
   ========================================================================== */
.hamburger-btn {
  display: none; /* Oculto en PC */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002; /* Encima de todo */
}
.hamburger-btn .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #374151;
  border-radius: 3px;
  transition: all 0.3s ease-in-out;
}

/* AnimaciÃ³n a X */
.hamburger-btn.is-active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--primary);
}
.hamburger-btn.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--primary);
}

/* ==========================================================================
   5. HERO Y BUSCADOR (CÃPSULA)
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.search-box {
  background: var(--bg-card); /* El color lo da el contenedor */
  border-radius: 50px;
  padding: 6px;
  display: flex;
  align-items: center;
  display: flex; align-items: center;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid transparent;
  transition: transform 0.2s;
  overflow: hidden; /* Asegura que nada se salga */
}
.search-box:focus-within {
  transform: translateY(-2px);
  border-color: #bfdbfe;
}

.search-input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0 20px;
  font-size: 1rem;
  background: transparent !important; /* Clave: transparente */
  color: var(--text-main);
  outline: none;
  height: 45px;
  flex-grow: 1;
    border-radius: 0; /* No necesita radio, el padre lo tiene */
}
.search-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 28px;
  height: 45px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   6. RASTREO / CONSULTA
   ========================================================================== */
.tracking-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.tracking-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.tracking-header {
  background: #1e293b;
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tracking-body {
  padding: 2.5rem;
}

/* Timeline Horizontal */
.timeline-wrapper {
  position: relative;
  margin-top: 3rem;
  padding: 0 10px;
}
.timeline-line {
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: 1;
}
.timeline-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background: #10b981;
  z-index: 1;
  transition: width 0.5s ease;
}
.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}
.step-item {
  text-align: center;
  flex: 1;
  min-width: 0;
  padding: 0 2px;
}
.step-icon {
  width: 34px;
  height: 34px;
  background: white;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}
.step-item.active .step-icon {
  border-color: #10b981;
  background: #10b981;
  color: white;
}
.step-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  word-wrap: break-word;
}
.step-item.active .step-label {
  color: #10b981;
}

/* Detalles y Grid */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.details-table th,
.details-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.details-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.bottom-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 2rem;
}
.photos-box,
.contact-blue-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}
.contact-blue-box {
  border: 2px solid #1e40af;
  padding: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
/*.main-footer {
  margin-top: auto;
  background-color: var(--dark);
  color: #9ca3af;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid var(--primary);
}*/

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
  margin-top: auto;
  background-color: var(--dark);
  color: #9ca3af;
  /*padding: 2rem 1rem;*/
  padding: 1rem 1rem 0.5rem 1rem; /* Reducimos padding vertical */
  text-align: center;
  font-size: 0.85rem;
  border-top: 3px solid var(--primary);
}


/* Opcional: Para que no se vea tan pegado a los iconos de arriba */
.footer-bottom {
    margin-top: 10px !important;
}



.footer-bottom p {
    opacity: 0.7;
    font-size: 0.75rem;
    margin-bottom: 5px !important;
}

.footer-bottom a {
    display: inline-block; /* Permite que el margen funcione correctamente */
    margin-top: 10px !important; /* Añade el espacio que falta */
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-mascota-img {
    max-height: 80px; /* Limita la altura de la mascota para no estirar el footer */
    bottom: 0;
    position: relative;
} 

/* ==========================================================================
   BOTÓN DE ACCESO (CORRECCIÓN FINAL MODO CLARO)
   ========================================================================== */
.login-nav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex !important; 
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 18px; 
    flex-shrink: 0;
    /* Forzamos que en modo claro NO sea rojo de inicio */
    background-color: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important; /* Gris elegante para el icono */
}

/* EFECTO HOVER (Al pasar el mouse en modo claro) */
.login-nav-btn:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   ESTILO MODO OSCURO (Mantenemos tu diseño favorito)
   ========================================================================== */
body.dark-mode .login-nav-btn,
body.dark .login-nav-btn {
    background-color: rgba(239, 68, 68, 0.1) !important; 
    border-color: #ef4444 !important; 
    color: #60a5fa !important; /* El azul brillante que te gustó */
}

body.dark-mode .login-nav-btn:hover,
body.dark .login-nav-btn:hover {
    background-color: #ef4444 !important;
    color: white !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* AJUSTE MÓVIL */
@media (max-width: 768px) {
    .login-nav-btn {
        display: none !important; 
    }
    .mobile-menu a.admin-access {
        display: block;
        margin-top: 15px;
        padding: 12px;
        background: #f1f5f9;
        border-radius: 8px;
        color: var(--primary);
        font-weight: bold;
        text-align: center;
        border: 1px dashed var(--primary);
    }
}

/* ==========================================================================
   8. MEDIA QUERIES (MÃ“VIL - UNIFICADAS)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Layout General */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }
  .container,
  .tracking-container {
    padding: 1rem;
    width: 100%;
    max-width: 100vw;
  }

  /* 2. MenÃº Hamburguesa (Mostrar botÃ³n, ocultar links desktop) */
  .nav-links {
    display: none;
  } /* Ocultar menÃº escritorio */
  .hamburger-btn {
    display: flex;
  } /* Mostrar botÃ³n mÃ³vil */

  /* 3. Buscador MÃ³vil */
  .hero {
    padding: 3rem 1rem;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .search-box {
    width: 100%;
    padding: 4px;
  }
  .search-input {
    padding: 0 15px;
    font-size: 0.95rem;
    width: 100%;
  }
  .search-btn {
    padding: 0;
    width: 45px;
    height: 45px;
  }
  .search-text {
    display: none;
  } /* Ocultar texto, solo lupa */

  /* 4. Rastreo y Tablas */
  .tracking-header {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
  .tracking-body {
    padding: 1.5rem;
  }
  .bottom-info-grid {
    grid-template-columns: 1fr;
  }
  .details-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* 5. Timeline MÃ³vil Compacto */
  .step-icon {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    border-width: 2px;
  }
  .step-label {
    font-size: 0.55rem;
    line-height: 1.1;
    margin-top: 4px;
  }
  .timeline-line,
  .timeline-progress {
    top: 12px;
    height: 3px;
  }
}

/* --- 1. ALINEACIÃ“N NAVBAR --- */


/* Contenedor derecho: Flexbox para alinear items verticalmente */
.nav-right {
  display: flex;
  align-items: center; /* Esto centra todo verticalmente */
  gap: 15px; /* Espacio uniforme entre elementos */
}

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

/* BotÃ³n de Tema */
.theme-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center; /* Centra el icono */
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.theme-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* --- 2. REGLAS MÃ“VILES --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  } /* Ocultar menÃº PC */
  .hamburger-btn {
    display: flex;
  } /* Mostrar hamburguesa */

  /* Ajuste para que el botÃ³n de tema y hamburguesa queden juntos a la derecha */
  .nav-right {
    gap: 10px; /* Menos espacio en celular */
  }

  /* FORMULARIO CLIENTE VERTICAL (SOLUCIÃ“N IMAGEN 3) */
  .cliente-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* Asegurar inputs anchos */
  .admin-input {
    width: 100%;
  }
}



 /* Estilos error 404 */
.error-page-container {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.error-page-card {
    max-width: 750px;
    width: 100%;
}

.error-hero-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    height: 340px; /* Aumentado para dar espacio a la ilustración grande */
}

/* 404 gigante translúcido de fondo */
.error-number-bg {
    font-size: 15rem; /* Número mucho más imponente */
    font-weight: 900;
    color: var(--primary);
    opacity: 0.12;
    position: absolute;
    user-select: none;
    letter-spacing: 6px;
    line-height: 1;
    z-index: 1;
}

/* Imagen del técnico/mascota grande y flotante */
.error-mascot-img {
    height: 280px; /* Tamaño amplio */
    max-width: 90%;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: floatMascot 3.5s ease-in-out infinite;
}

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

.error-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.error-description {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-error-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-error-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.9rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

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

/* Ajuste responsivo para celulares */
@media (max-width: 600px) {
    .error-hero-wrapper {
        height: 240px;
    }
    .error-number-bg {
        font-size: 9.5rem;
    }
    .error-mascot-img {
        height: 190px;
    }
    .error-title {
        font-size: 1.7rem;
    }
}