body {
  background-color: #0f172a; /* Fondo principal oscuro */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #e2e8f0;
  margin: 0;
  padding: 0;
}

/* Encabezado Principal */
header {
  background-color: #1e293b; /* Fondo de contenedores */
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-bottom: 2px solid #3b82f6; /* Línea de acento azul */
}

header h1 {
  color: #f8fafc;
  margin: 0;
  font-weight: 300;
  letter-spacing: 1px;
}

header img {
  height: 65px;
}

/* Menú de Navegación con imágenes */
nav {
  background-color: #0f172a;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  border-bottom: 1px solid #334155;
}

nav a {
  text-decoration: none;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.2));
}

nav a:hover {
  transform: translateY(-5px);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8));
}

nav img {
  height: 45px;
}

/* Contenedores Principales */
.contenedor {
  max-width: 900px;
  margin: 50px auto;
  background: #1e293b; /* Fondo de tarjeta */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  border: 1px solid #334155;
}

.contenedor h2 {
  color: #3b82f6; /* Azul vibrante para títulos */
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
  margin-top: 0;
}

.contenedor p,
.contenedor ul {
  line-height: 1.7;
  font-size: 1.05rem;
}

.contenedor li {
  margin-bottom: 10px;
}

/* Botones */
.btn-m {
  display: inline-block;
  padding: 12px 30px;
  background-color: #3b82f6; /* Azul vibrante */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-m:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(59, 130, 246, 0.5);
}

/* Control de tamaño del logo */
header img {
  max-height: 60px; /* Tamaño controlado para que no se estire */
  width: auto; /* Mantiene la proporción */
}

/* --- Estilos para la Galería y Tiendas --- */
.cuadricula-galeria {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.item-galeria {
  background-color: #0f172a;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #334155;
  width: 200px;
}

.item-galeria img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s;
}

.item-galeria img:hover {
  transform: scale(1.05);
}

/* Visor de Imágenes */
.visor {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.9);
  align-items: center;
  justify-content: center;
}

.contenido-visor {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.cerrar-visor {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #e2e8f0;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar-visor:hover {
  color: #3b82f6;
}

/* Cuadrícula de Tiendas */
.cuadricula-tiendas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.cuadricula-tiendas a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 80px;
  background-color: #f8fafc;
  border-radius: 10px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.cuadricula-tiendas a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.cuadricula-tiendas img {
  max-width: 80%;
  max-height: 60px;
}

/* --- Estilos para Formularios --- */
#formularioContacto {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.grupo-formulario {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grupo-formulario label {
  font-weight: 600;
  color: #3b82f6; /* Azul vibrante para labels */
}

.grupo-formulario input,
.grupo-formulario select,
.grupo-formulario textarea {
  padding: 12px 15px;
  background-color: #0f172a; /* Fondo más oscuro para el input */
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.grupo-formulario input:focus,
.grupo-formulario select:focus,
.grupo-formulario textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.grupo-formulario textarea {
  resize: vertical; /* Solo permitir redimensionado vertical */
}

/* Mensajes de Error */
.error {
  color: #ef4444; /* Rojo suave para errores */
  font-size: 0.9rem;
  height: 1.2rem; /* Espacio reservado para que no salte el diseño */
  margin-top: -5px;
  margin-bottom: 5px;
  font-weight: 500;
}

.campo-error {
  border-color: #ef4444 !important;
}

/* Contenedor de Botones */
.botones-formulario {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: flex-end;
}

/* Botón Secundario limpiar */
.btn-secundario {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #334155;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s;
}

.btn-secundario:hover {
  background-color: rgba(51, 65, 85, 0.5);
  border-color: #475569;
}

/* --- Estilos para Tablas y Captcha Paso 1 --- */
.tabla-tarifas {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background-color: #0f172a; /* Mismo fondo oscuro de los inputs */
  border-radius: 8px;
  overflow: hidden; /* Permite que los bordes redondeados funcionen en la tabla */
  border: 1px solid #334155;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tabla-tarifas th,
.tabla-tarifas td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.tabla-tarifas th {
  background-color: #1e293b;
  color: #3b82f6; /* Acento azul para los encabezados */
  font-weight: bold;
  font-size: 1.1rem;
}

.tabla-tarifas tr:hover {
  background-color: #1e293b;
  transition: background-color 0.2s;
}

.captcha-box {
  margin-top: 40px;
  padding: 25px;
  background-color: #0f172a;
  border-left: 4px solid #3b82f6; /* Línea decorativa azul a la izquierda */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.captcha-box h3 {
  margin-top: 0;
  color: #e2e8f0;
}

/* --- Estilos para la Tabla de Resumen Paso 4 --- */
.tabla-resumen {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
}

.tabla-resumen td,
.tabla-resumen th {
  padding: 12px 20px;
  border-bottom: 1px solid #334155;
  color: #e2e8f0;
}

.tabla-resumen td:first-child {
  width: 45%;
  color: #94a3b8; /* Gris más claro para las etiquetas */
}

.texto-resaltado {
  color: #ef4444 !important; /* Rojo para los cálculos */
  font-weight: 500;
}
