/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: white;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  background-color: rgba(0,0,0,0.85);
  box-shadow: 0 2px 8px rgba(230,0,0,0.4);
}

header img {
  width: 120px;
  max-width: 100%;
  animation: fadeInDown 1s ease forwards;
}

header h1 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 38px;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0;
  animation: fadeInUp 1s ease forwards;
  white-space: nowrap;
}

/* Botón regresar (ubicacion.html) */
.btn-regresar {
  background-color: #e60000;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 20px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-regresar:hover {
  background-color: #b30000;
}

/* Enlaces sociales */
#enlaces {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 10px;
  flex-wrap: wrap;
  margin: 0 auto 40px auto;
  max-width: 900px;
}

#enlaces a {
  display: flex;
  align-items: center;
  background-color: #e60000;
  padding: 12px 25px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  gap: 12px;
  font-weight: bold;
  min-width: 160px;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(230,0,0,0.6);
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

#enlaces a:hover {
  background-color: #b30000;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgb(243, 2, 2);
}

#enlaces img {
  width: 22px;
  filter: drop-shadow(0 0 1px black);
}

/* Slider */
#slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto 50px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  height: 350px;
}

#slider img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: opacity 1.2s ease-in-out;
  border-radius: 15px;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}

#slider img.active {
  opacity: 1;
  position: relative;
}

/* Descripción */
#descripcion {
  padding: 0 40px 40px 40px;
  font-weight: 600;
  text-align: justify;
  max-width: 900px;
  margin: 0 auto 60px auto;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Nuestros servicios */
#servicios {
  padding: 40px 20px 80px 20px;
  max-width: 1100px;
  margin: 0 auto 60px auto;
  text-align: center;
  border-top: 1px solid #e60000;
  border-bottom: 1px solid #e60000;
}

#servicios h2 {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  margin-bottom: 40px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #e60000;
}

.tarjetas-servicio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.tarjeta {
  background-color: #e60000;
  color: white;
  padding: 30px;
  border-radius: 20px;
  width: 280px;
  box-shadow: 0 8px 20px rgba(230,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.tarjeta:hover {
  transform: translateY(-12px);
  box-shadow: 0 12px 30px rgba(230,0,0,0.9);
}

.tarjeta h3 {
  margin-top: 0;
  font-size: 24px;
  margin-bottom: 15px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-shadow: none;
  color: white;
}

.tarjeta p {
  font-size: 16px;
  line-height: 1.6;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #f5f5f5;
  text-shadow: none;
}

/* Sucursales - Ubicación */
.contenedor-sucursales {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.sucursal {
  background-color: #e60000;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sucursal:hover {
  background-color: #b30000;
}

.sucursal h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.sucursal a {
  color: white;
  text-decoration: underline;
  margin-top: auto;
}

.proximamente {
  font-style: italic;
  color: #ccc;
  margin-top: 10px;
}

.sucursal img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
  height: 180px;
}

/* Footer */
footer {
  text-align: center;
  padding: 25px 20px;
  color: white;
  background-color: rgba(230,0,0,0.8);
  box-shadow: 0 -2px 8px rgba(230,0,0,0.5);
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

/* Animaciones para header */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  header {
    flex-direction: column;
  }
  header h1 {
    font-size: 32px;
    margin-top: 10px;
  }
  #slider {
    height: 250px;
  }
  #slider img {
    height: 250px;
  }
  .tarjeta {
    width: 90%;
  }
  #descripcion {
    padding: 0 20px 40px 20px;
    font-size: 16px;
  }
  .contenedor-sucursales {
    flex-direction: column;
    align-items: center;
  }
  .sucursal {
    width: 90%;
  }
}

/* Icono hamburguesa */
.menu-icon {
  font-size: 30px;
  cursor: pointer;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  color: white;
  background: transparent;
  border: none;
}

/* Sidebar oculto */
#sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: width 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
  box-shadow: 2px 0 5px rgba(0,0,0,0.5);
}

/* Sidebar visible */
#sidebar.active {
  width: 250px;
}

/* Enlaces dentro del sidebar */
#sidebar a {
  padding: 15px 30px;
  text-decoration: none;
  font-size: 18px;
  color: #f1f1f1;
  display: block;
  transition: background-color 0.2s ease;
}

#sidebar a:hover {
  background-color: #575757;
}

/* Overlay para cuando la sidebar está abierta */
#overlay {
  position: fixed;
  display: none;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
}

#overlay.active {
  display: block;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

.contacto-item {
  display: flex;
  align-items: center;
  background-color: #e63946; /* fondo rojo */
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 10px 0;
  gap: 15px;
  flex-wrap: wrap; /* <-- para que se acomode mejor en pantallas chicas */
  word-break: break-word;
  overflow-wrap: anywhere;
}

.contacto-item img {
  width: 32px;
  height: 32px;
}

.contacto-item a {
  color: white;
  text-decoration: none;
  word-break: break-word;
}
