.sucursales-page {
  padding: 80px 0;
  background-image: url(/assets/images/sucursales/acapulco\,\ guerrero.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.sucursales-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.mapa-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.mapa-mexico {
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

.mapa-mexico svg {
  width: 100%;
  height: 100%;
}

.mapa-mexico .estado {
  transition: all 0.3s ease;
  cursor: pointer;
}

.mapa-mexico .estado:hover {
  opacity: 1;
  fill: #2980b9;
}

.mapa-mexico .estado.active {
  opacity: 1;
  fill: #1a5276;
}

.mapa-leyenda {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.leyenda-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.leyenda-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.sucursales-list-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filtro-container {
  margin-bottom: 30px;
}

.filtro-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  background-color: white;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  transition: all 0.3s ease;
}

.filtro-select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  outline: none;
}

.sucursales-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.sucursal-card {
  border: 1px solid #eee;
  /* border-radius: 8px; */
  overflow: hidden;
  transition: all 0.3s ease;
}

.sucursal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sucursal-header {
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.sucursal-nombre {
  margin: 0;
  color: #2c3e50;
  font-size: 1.3rem;
}

.sucursal-estado {
  color: #3498db;
  font-weight: 500;
  font-size: 0.9rem;
  margin-top: 5px;
}

.sucursal-mapa {
  height: 200px;
  background: #f5f7fa;
  position: relative;
}

.mapa-miniatura {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.sucursal-info {
  padding: 20px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item i {
  font-size: 1.2rem;
  color: #3498db;
  margin-top: 3px;
}

.info-content h4 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 1rem;
}

.info-content p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sucursal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 20px 20px 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 50px;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-btn {
  background: #25d366 !important;
  color: white;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

.email-btn {
  background: #3498db;
  color: white;
}

.email-btn:hover {
  background: #2980b9;
}

/* Animaciones */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 0.8s ease forwards;
}

.animate-delay-100 {
  animation-delay: 0.2s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .sucursales-grid {
    grid-template-columns: 1fr;
  }

  .mapa-container {
    position: relative;
    top: auto;
  }
}

@media (max-width: 576px) {
  .sucursal-actions {
    grid-template-columns: 1fr;
  }
}

.jqvmap-zoomin,
.jqvmap-zoomout {
  width: 16px !important;
  height: 16px !important;
  line-height: 16px !important;
  background-color: transparent !important;
  border: 1px solid var(--color-primary) !important;
  border-radius: 0 !important;
  color: var(--color-primary) !important;
  right: 10px !important;
  left: auto !important;
}
.jqvmap-zoomout {
  top: 33px !important;
}

.vmap {
  width: 100%;
  height: 500px;
  /*transform: scale(1.2) translateX(8%);*/
  overflow: hidden;
}
.map-pin {
  width: 64px;
  height: 50px;
  position: absolute;
  top: -120px;
  left: -32px;
  background-size: 32px 32px;
  background-repeat: no-repeat;
  text-align: center;
  background-position: center center;
  color: #888;
  font-weight: 500;
  font-size: 14px;
  background-image: var(--bg-map-pin);
}

.map-pin span {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  left: 0;
}