/* ============================================
   VARIABLES CSS
   ============================================ */
:root {
  --primary-color: #ac4d00;
  --primary-hover: #e76800;
  --secondary-color: #0f8bc9;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */
body {
  padding: 0;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
}

/* ============================================
   TÍTULOS DE PÁGINA
   ============================================ */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  animation: fadeIn 0.6s ease-out;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* ============================================
   SECCIÓN DE UBICACIONES
   ============================================ */
#ubicaciones {
  padding: 2rem 0;
}

.zona {
  margin-bottom: 3rem;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   TARJETAS DE UBICACIONES MEJORADAS
   ============================================ */
.local {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.local::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  transform: scaleY(0);
  transition: var(--transition);
}

.local:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.local:hover::before {
  transform: scaleY(1);
}

.local:nth-child(1) { animation-delay: 0.1s; }
.local:nth-child(2) { animation-delay: 0.2s; }
.local:nth-child(3) { animation-delay: 0.3s; }
.local:nth-child(4) { animation-delay: 0.4s; }
.local:nth-child(5) { animation-delay: 0.5s; }
.local:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   IMAGEN DEL LOCAL
   ============================================ */
.local-image-wrapper {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
}

.logo-local {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.local:hover .logo-local {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(172, 77, 0, 0.2));
}

/* ============================================
   INFORMACIÓN DEL LOCAL
   ============================================ */
.local-info {
  flex: 1;
  margin-bottom: 1rem;
}

.local-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-align: center;
  transition: var(--transition);
}

.local:hover .local-name {
  color: var(--primary-color);
}

.local-details {
  text-align: center;
}

.local-address,
.local-phone {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.local-address i,
.local-phone i {
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.phone-text {
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   BOTÓN DE MAPS
   ============================================ */
.local-action {
  margin-top: auto;
  text-align: center;
}

.btn-maps {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  border: none;
  color: rgba(57, 51, 46, 0.748);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-maps:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-maps:active {
  transform: translateY(0);
}

.btn-maps i {
  transition: var(--transition);
}

.btn-maps:hover i {
  transform: translateX(3px);
}

/* ============================================
   BOTÓN VOLVER
   ============================================ */
.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  transform: translateX(-5px);
}

.btn-outline-primary i {
  transition: var(--transition);
}

.btn-outline-primary:hover i {
  transform: translateX(-3px);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 991.98px) {
  .locations-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .local {
    padding: 1.25rem;
  }
  
  .logo-local {
    width: 80px;
    height: 80px;
  }
  
  .local-name {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .local {
    padding: 1rem;
  }
  
  .btn-maps {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   ESTILOS LEGACY (para compatibilidad)
   ============================================ */
h2, h3 {
  color: var(--secondary-color);
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
