.hero-contacto {
  background: url('img/banner-contacto-inmensa.jpg') center/cover no-repeat;
  min-height: 300px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
}

.hero-contacto h2 {
  font-size: 2.5em;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-contacto p {
  font-size: 1.2em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.info-contacto, .formulario-contacto {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
}

.info-contacto h3, .formulario-contacto h3 {
  color: #003366;
  margin-bottom: 15px;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
}

.formulario-contacto label {
  margin: 10px 0 5px;
  font-weight: bold;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.formulario-contacto button {
  margin-top: 15px;
  padding: 12px;
  background: #0077cc;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.formulario-contacto button:hover {
  background: #005599;
  transform: scale(1.05);
}

.regresar {
  text-align: center;
  margin: 30px 0;
}

.regresar .btn {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.regresar .btn:hover {
  background: #005599;
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 20px;
  background: #003366;
  color: #fff;
  margin-top: 40px;
}

.formulario-contacto button {
  margin-top: 15px;
  padding: 12px;
  background: #0077cc;        /* Azul corporativo */
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.formulario-contacto button:hover {
  background: #005599;        /* Azul m谩s oscuro al pasar el mouse */
  transform: scale(1.05);     /* Efecto de zoom ligero */
}

/* Menú responsivo */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;   /* apila los elementos */
    align-items: stretch;     /* que ocupen todo el ancho */
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2); /* separador */
  }

  nav a {
    text-align: center;
    padding: 14px;
    font-size: 1.1em;
    display: block;
  }
}

/* Barra de navegación */
nav {
  background: #005599; /* azul intermedio */
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  background: #003366;
}


/* Animaci贸n fade-in */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.alerta {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  opacity: 0;                /* Inicialmente invisible */
  animation: fadeIn 0.8s ease forwards; /* Fade-in al aparecer */
}

.alerta.exito {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alerta.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#sucursales {
  margin: 40px auto;
  max-width: 1200px;
  padding: 20px;
}

#sucursales h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0077cc;
}

.sucursales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.sucursal-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.sucursal-card:hover {
  transform: translateY(-5px);
}

.sucursal-card h3 {
  margin-top: 0;
  color: #cc0000; /* Rojo para destacar la ciudad */
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #25D366;
  font-weight: bold;
}

.whatsapp-link img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25D366;   /* Verde oficial de WhatsApp */
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;   /* Verde m谩s oscuro al pasar el mouse */
  transform: scale(1.05);      /* Efecto de zoom ligero */
}

.btn-whatsapp::before {
  content: "馃挰 ";              /* 脥cono adicional antes del texto */
  font-size: 1.2em;
}

.hero-contacto {
  background: url('../img/banner-contacto.png') center/cover no-repeat; /* tu imagen de fondo */
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero-contacto::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* overlay oscuro para resaltar texto */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25D366;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}



/* contacto logo encabezado header

/* Estilos generales del encabezado */
.encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f5f5f5;
  padding: 15px 20px;
  border-bottom: 2px solid #ccc;
}

/* Logo */
.encabezado .logo img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.encabezado .logo img:hover {
  transform: scale(1.05);
}

/* Título */
.encabezado .titulo {
  text-align: right;
}

.encabezado .titulo h1 {
  margin: 0;
  font-size: 28px;
  color: #333;
  font-weight: bold;
}

.encabezado .titulo p {
  margin: 0;
  font-size: 16px;
  color: #666;
}

/* 🔹 Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
  .encabezado {
    flex-direction: column;   /* Logo arriba, título abajo */
    align-items: center;
    text-align: center;
  }

  .encabezado .logo img {
    height: 50px; /* Logo más compacto */
    margin-bottom: 10px;
  }

  .encabezado .titulo h1 {
    font-size: 22px; /* Texto más pequeño */
  }

  .encabezado .titulo p {
    font-size: 14px;
  }
}

/* 🔹 Ajustes para pantallas muy pequeñas (teléfonos) */
@media (max-width: 480px) {
  .encabezado {
    padding: 10px;
  }

  .encabezado .logo img {
    height: 45px;
  }

  .encabezado .titulo h1 {
    font-size: 20px;
  }

  .encabezado .titulo p {
    font-size: 12px;
  }
}

footer {
  background-color: #003366; /* Azul marino */
  color: #eee;
  padding: 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-info {
  flex: 1 100%;
  text-align: center;
}

.footer-links {
  flex: 1 100%;
  text-align: center;
  margin-top: 10px;
}

.footer-links a {
  color: #eee;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #00aaff; /* Azul claro al pasar el mouse */
}

.footer-social {
  flex: 1 100%;
  text-align: center;
  margin-top: 10px;
}

.footer-social a {
  font-size: 1.5em;
  margin: 0 10px;
  color: #eee;
}

.footer-social a:hover {
  color: #00aaff;
}

.footer-legal {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9em;
}

.footer-legal a {
  color: #eee;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #00aaff;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}
