/* ============================================================
   BODY
   ============================================================ */
body {
  background-color: #000000;
  margin: 0;
  font-family: Arial, sans-serif;
}

/* ============================================================
   TARJETAS DE TIENDAS
   ============================================================ */
.store-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.store-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card {
  margin-bottom: 20px;
}

.card-body .d-flex {
  gap: 10px;
}

.card-body .btn-block {
  margin-top: 10px;
}

/* ============================================================
   CABECERA
   ============================================================ */
.container.text-center {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
}

p.lead {
  font-size: 1.25rem;
  color: #555;
}

.img-fluid {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* ============================================================
   IMAGEN DE LAS TARJETAS
   ============================================================ */
.card-img-top {
  width: 20%;
  margin: 0 auto;
  display: block;
  height: auto;
}

/* ============================================================
   TÍTULO Y TEXTO DE LAS TARJETAS
   ============================================================ */
.card-title {
  background-color: #f8f9fa;
  border: 2px solid #007bff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  border-radius: 5px;
  color: #007bff;
}

.card-text {
  color: #333;
  font-size: 1rem;
  margin-top: 10px;
  text-align: left;
}

/* ============================================================
   FILTROS
   ============================================================ */
.container .row {
  margin-top: 20px;
}

.container .form-control {
  margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .card-img-top {
    width: 20%;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .card-text {
    font-size: 0.875rem;
  }

  .container .row {
    margin-top: 10px;
  }

  .container .form-control {
    margin-bottom: 5px;
  }
}

/* ============================================================
   MODALES
   ============================================================ */
.modal-content {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: #007bff;
  color: white;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-body {
  padding: 20px;
}

/* ============================================================
   TABLAS
   ============================================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 0;
  background-color: white;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  vertical-align: middle;
  border: 1px solid #dee2e6;
}

.table thead th {
  background-color: #007bff;
  color: white;
  border-bottom: 2px solid #0056b3;
}

.table tbody tr:nth-child(odd) {
  background-color: #f8f9fa;
}

.table tbody tr:hover {
  background-color: #e9ecef;
}

.table td strong {
  font-weight: bold;
  color: #007bff;
}

/* ============================================================
   RESPONSIVE MODALES
   ============================================================ */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
  }

  .modal-content {
    border-radius: 8px;
  }

  .modal-header {
    padding: 10px;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-body {
    padding: 15px;
  }

  .table th,
  .table td {
    padding: 8px;
    font-size: 0.875rem;
  }

  .table thead th {
    font-size: 0.9375rem;
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 5px;
  }

  .modal-content {
    border-radius: 6px;
  }

  .modal-header {
    padding: 8px;
  }

  .modal-title {
    font-size: 1.125rem;
  }

  .modal-body {
    padding: 10px;
  }

  .table th,
  .table td {
    padding: 6px;
    font-size: 0.8125rem;
  }

  .table thead th {
    font-size: 0.875rem;
  }

  .table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ============================================================
   MENSAJE "NO HAY CATAS DISPONIBLES"
   ============================================================ */
.modal-body p.text-center {
  font-size: 1rem;
  color: #6c757d;
  margin: 0;
}






/* ============================================================
   MODAL DE INSTALACIÓN PWA
   ============================================================ */
.pwa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pwaFadeIn 0.25s ease;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pwa-modal-box {
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  padding: 30px 25px 25px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: pwaSlideUp 0.3s ease;
}

@keyframes pwaSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pwa-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}

.pwa-modal-close:hover {
  color: #333;
}

.pwa-modal-logo {
  width: 80px;
  height: auto;
  margin-bottom: 15px;
}

.pwa-modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0 0 10px;
  color: #333;
}

.pwa-modal-text {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 25px;
  line-height: 1.4;
}

.pwa-modal-buttons {
  display: flex;
  gap: 10px;
}

.pwa-btn-install {
  flex: 1;
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.pwa-btn-install:hover {
  background-color: #0056b3;
}

.pwa-btn-cancel {
  flex: 1;
  background-color: #dc3545;
  color: #ffffff;
  border: 1px solid #dc3545;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-btn-cancel:hover {
  background-color: #c82333;
  border-color: #bd2130;
  color: #ffffff;
}

@media (max-width: 480px) {
  .pwa-modal-box {
    padding: 25px 20px 20px;
  }

  .pwa-modal-logo {
    width: 60px;
  }

  .pwa-modal-title {
    font-size: 1.2rem;
  }

  .pwa-modal-text {
    font-size: 0.9rem;
  }
}



/* Teléfonos pulsables */
.card-text a[href^="tel:"] {
  color: #007bff;
  text-decoration: underline;
}

.card-text a[href^="tel:"]:hover {
  color: #0056b3;
  text-decoration: underline;
}











