/* ======================================================
   1. ESTILOS GENERALES Y DE ESTRUCTURA BÁSICA
   Define fuente base, fondo de página y contenedores.
====================================================== */
html, body {
  height: 100%; /* Ocupa toda la altura disponible */
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #000080; /* Azul marino para el texto */
  background: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
              url('imagenes/plaza.jpg') no-repeat center center fixed; /* Fondo con imagen y transparencia */
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.wrapper {
  flex: 1; /* Hace que ocupe todo el espacio vertical restante */
  width: 100%;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.area-transparente {
  width: 80%;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.pagina-encabezado {
  max-width: 1000px;
  margin: 20px auto;
  padding: 15px 20px;
  background-color: #fef9c4;
  border: 4px solid #f9a825;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  color: #000080;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.label-rojo-chico {
  color: red;
  font-size: 0.875em;
  font-weight: normal;
  display: block;
  margin-top: 4px;
}

/* ======================================================
   2. CABECERA Y NAVEGACIÓN
====================================================== */
.navbar {
  background-color: #004080;
  color: white;
  padding: 10px 0;
  width: 100%;
}

.nav-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
}

.nav-logo {
  font-weight: bold;
  font-size: 1.2em;
}

.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* ======================================================
   3. BLOQUE PROMOCIONAL Y ELEMENTOS DE NEGOCIOS
====================================================== */
.promo-box {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 30px;
  border: 2px solid #f9a825;
  border-radius: 8px;
  background-color: #fffde7;
  overflow: hidden;
}

.promo-box.reverse {
  flex-direction: row-reverse;
}

.promo-image {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.promo-image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

.promo-box .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  justify-content: space-between;
}

.promo-title {
  margin-bottom: 10px;
  text-align: center;
}

.promo-title h2 {
  margin: 0;
  font-size: 1.4em;
}

.promo-description {
  text-align: justify;
  font-size: 1em;
}

.promo-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 10px;
  background-color: rgba(200, 220, 255, 0.3);
  margin-top: 15px;
  border-radius: 5px;
}

.promo-social img {
  max-width: 40px;
  max-height: 40px;
}

.promo-button {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.promo-button .button {
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #0288d1;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background-color: #0277bd;
  transform: scale(1.05);
  cursor: pointer;
}

/* ======================================================
   4. ZONA DEL CLIENTE Y DETALLES
====================================================== */
.cliente-nombre {
  margin-top: 0;
  text-align: center;
  background-color: #ffffff;
  border: 2px solid #f7e58c;
  color: #004080;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.5px;
}

.volver-btn {
  margin-bottom: 20px;
}

.volver-btn .button {
  background-color: #ccc;
  color: #004080;
  font-weight: normal;
  max-width: 150px;
}

.volver-btn .button:hover {
  background-color: #bbb;
  transform: scale(1.03);
}

.cliente-detalle {
  background-color: #fffde7;
  border: 2px solid #f9a825;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.cliente-info-box {
  background-color: #f9f2e8;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  font-size: 15px;
  color: #333;
}

.cliente-info-box p {
  margin: 12px 0;
}

.cliente-info-box strong {
  color: #2a2a2a;
  font-weight: 600;
}

.cliente-info {
  background-color: #ffffff;
  border: 2px solid #f7e58c;
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 20px;
  box-shadow: 1px 2px 6px rgba(0,0,0,0.06);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.cliente-info p {
  margin: 10px 0;
}

.cliente-info strong {
  display: inline-block;
  width: 140px;
  font-weight: 600;
  color: #444;
}

.cliente-foto {
  background-color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
}

.cliente-foto img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  border: 2px solid #ddd;
}

.cliente-descripcion {
  font-size: 1em;
  text-align: justify;
}

/* ======================================================
   5. MAPA Y BÚSQUEDA
====================================================== */
.cliente-mapa {
  margin-top: 20px;
}

.mapa-contenedor {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporción 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 100%;
  box-sizing: border-box;
}

.mapa-contenedor iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.busqueda-form {
  margin-top: 5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.busqueda-input {
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 6px;
  width: 70%;
  max-width: 100%;
}

.busqueda-boton {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #ffd000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.busqueda-boton:hover {
  background-color: #f7b600;
}

.limpiar-boton {
  background-color: #4da6ff;
  color: #fff;
  border: none;
  padding: 8px 14px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.limpiar-boton:hover {
  background-color: #3399ff;
}

/* ======================================================
   6. CATEGORÍAS
====================================================== */
.categorias-container {
  border: 1px solid #ccc;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 14px;
}

.categoria-item {
  margin-bottom: 0px;
}

.categoria-item input[type="checkbox"] {
  margin-right: 8px;
}

.categoria-item label {
  margin: 20;
}

/* ======================================================
   7. PIE DE PÁGINA (FOOTER)
====================================================== */
footer {
  background-color: #004080;
  color: white;
  text-align: center;
  line-height: 1.8;
  font-size: 15px;
  padding: 20px 10px;
  width: 100%;
  border-top: 1px solid #ddd;
}

footer a {
  color: white !important;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ======================================================
   8. PAGINACIÓN
====================================================== */
.paginacion {
  margin-top: 30px;
  text-align: center;
}

.paginacion .btn {
  background-color: #f3c43f;
  color: #000;
  text-decoration: none;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 4px;
  font-weight: bold;
}

.paginacion .btn:hover {
  background-color: #f1b400;
}

.pagina-actual {
  font-weight: bold;
  margin: 0 10px;
}

/* ======================================================
   9. DISEÑO RESPONSIVO
====================================================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #004080;
    padding: 10px;
    margin-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    margin: 5px 0;
  }

  .promo-box,
  .promo-box.reverse {
    flex-direction: column !important;
  }

  .promo-image {
    width: 100%;
    padding: 15px 0;
    justify-content: center;
  }

  .promo-box .text {
    padding: 15px;
  }

  .promo-title h2 {
    font-size: 1.2em;
  }

  .promo-social img {
    max-width: 32px;
    max-height: 32px;
  }

  .promo-button .button {
    width: 90%;
  }

  .pagina-encabezado {
    font-size: 1em;
    padding: 10px 15px;
  }

  .cliente-foto img {
    max-width: 100%;
    height: auto;
  }
}
