:root {
  --crema: #f1eee9;
  --cafe-oscuro: #2e1f14;
  --terracota: #b2694a;
  --azul-marino: #1f2a37;
  --dorado: #d6bfa8;
}

body {
  background-color: var(--crema);
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--azul-marino);
  margin: 0;
}

.navbar-custom {
  background-color: var(--cafe-oscuro);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--dorado);
  font-family: 'Gloock', serif;
  font-weight: 600;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--terracota);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-item .nav-link {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item .nav-link:hover,
.nav-item .nav-link.active,
.nav-item .nav-link:focus,
.nav-item .nav-link:active {
  background-color: var(--terracota);
  color: var(--crema) !important;
  outline: none;
}

.footer {
  background-color: var(--cafe-oscuro);
  color: var(--dorado);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9rem;
  border-top: 2px solid var(--terracota);
  min-height: 150px;
  padding: 1.5rem 1rem;
}

.footer-title {
  font-family: 'Gloock', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.footer-text {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.social-icons {
  margin-top: 0.2rem;
}

.redes-sociales-footer .social-link {
  color: var(--dorado);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.redes-sociales-footer .social-link:hover {
  color: var(--terracota);
  text-decoration: underline;
}

.redes-sociales .social-link {
  color: var(--terracota);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.redes-sociales .social-link:hover {
  color: var(--cafe-oscuro);
  text-decoration: underline;
}

.container {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  font-family: 'Gloock', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--cafe-oscuro);
  border-bottom: 3px solid var(--terracota);
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Tarjetas de sucursales generales */
.sucursal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-items: center;
  margin-bottom: 3rem;
}

.sucursal-card {
  background-color: #fffdfb;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}

.sucursal-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.sucursal-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.sucursal-card h3 {
  font-size: 1.4rem;
  color: var(--cafe-oscuro);
  margin: 1rem 0 0.5rem;
}

.sucursal-card p {
  font-size: 0.95rem;
  color: #444;
  padding: 0 1rem 1rem;
}

/* Para la vista centrada (como El Alto) */
.sucursal-centro {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.sucursal-card.grande {
  max-width: 400px;
}

.sucursal-card.grande img {
  height: 250px;
}

.botones-volver {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.btn-volver {
  background-color: var(--terracota);
  color: var(--crema);
  font-family: 'Gloock', serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(178, 105, 74, 0.6);
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: var(--cafe-oscuro);
  color: var(--dorado);
}

.elalto-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 2rem;
}

.elalto-item {
  background: #fffdfb;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  max-width: 280px;
  width: 100%;
  font-family: 'Quicksand', sans-serif;
}

.elalto-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.elalto-item h4 {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--cafe-oscuro);
}

.elalto-item.info p {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: #444;
}

@media (max-width: 1024px) {
  .sucursal-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .sucursal-card.grande {
    max-width: 100%;
  }

  .sucursal-card.grande img {
    height: 200px;
  }

  .elalto-grid {
    gap: 1.5rem;
  }

  .elalto-item {
    max-width: 220px;
  }

  .elalto-item img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .sucursal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .sucursal-card.grande {
    max-width: 100%;
  }

  .sucursal-card.grande img {
    height: 180px;
  }

  .elalto-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .elalto-item {
    max-width: 100%;
    width: 100%;
  }

  .elalto-item img {
    height: 160px;
  }
}

@media (max-width: 480px) {
  .sucursal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sucursal-card.grande img {
    height: 140px;
  }

  .elalto-grid {
    flex-direction: column;
    gap: 1rem;
  }

  .elalto-item {
    max-width: 100%;
    width: 100%;
  }

  .elalto-item img {
    height: 140px;
  }

  .btn-volver {
    font-size: 1rem;
    padding: 0.7rem 1.8rem;
  }
}