/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('../img/bg1.png');
  background-repeat: repeat;
  background-position: top left;
  background-attachment: scroll;
  background-size: auto;
  color: #333;
  line-height: 1.6;
}

/* Cabecera con logo centrado y contacto a la derecha */
.cabecera {
  background-color: #000;
  padding: 20px 0;
}

.cabecera-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 5%;
}

.logo-centro {
  flex: 0 0 auto;
  text-align: center;
}

.logo {
  max-width: 300px;
  height: auto;
}

.telefono {
  flex: 0 0 auto;
  font-size: 1rem;
  color: #fff;
  text-align: left;
  line-height: 1.6;
}

/* Botones flotantes */
.botones-flotantes {
  position: fixed;
  top: 40%;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.btn-flotante {
  width: 50px;
  height: 50px;
  background-color: #0077cc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.btn-flotante:hover {
  transform: scale(1.1);
}

.whatsapp { background-color: #25d366; }
.youtube  { background-color: #ff0000; }
.email    { background-color: #0077cc; }

/* Contenedor principal */
.contenedor {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 2rem auto;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Columna izquierda */
.col-izquierda {
  max-width: 280px;
  padding: 1rem;
  background-color: #f9f9f9;
  border-right: 2px solid #eee;
}

/* Columna derecha */
.col-derecha {
  background-color: #ececec;
  flex: 1;
  padding: 2rem;
  overflow: hidden;
  word-wrap: break-word;
}

/* Contenido principal */
.contenido h1 {
  margin-bottom: 1rem;
}

.contenido p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Menú */
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.menu a {
  padding: 10px 16px;
  background-color: #0056b3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  background-color: #005fa3;
}

/* Footer */
footer.mapa {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

footer.mapa h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.mapa-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.sucursal {
  flex: 1 1 45%;
  min-width: 300px;
}

.sucursal h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: #ffd700;
}

iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

/* Bloque de búsqueda por medida */
.bloque-medida {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bloque-medida h3 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #222;
  font-weight: 600;
}

.busqueda-medida {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 0rem;
  flex-wrap: nowrap; /* ← evita que se rompa en dos líneas */
}

.busqueda-medida img {
  max-width: 140px;
  height: auto;
  flex-shrink: 0;
}

.formulario-medida {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  max-width: 100%; /* ← evita que se estiren más allá del contenedor */
}


.formulario-medida select {
  width: 5.5rem;
  padding: 0.4rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #f8f8f8;
}

.formulario-medida button {
  background-color: #0078D7;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-medida button:hover {
  background-color: #005fa3;
}

/* Animación de resultados */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* Responsive */
@media (max-width: 768px) {
  .col-izquierda, .col-derecha {
    flex: 0 0 100%;
  }

  .redes {
    display: none;
  }

  .cabecera-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .telefono {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .busqueda-medida {
    flex-direction: column;
    align-items: center;
  }

  .formulario-medida {
    flex-direction: column;
    gap: 0.8rem;
  }

  .formulario-medida select,
  .formulario-medida button {
    width: 100%;
  }
}
/* carrucel*/
.slider {
  width: 100%;
  max-width: 800px;
  height: 180px; /* ← Mantiene el tamaño compacto */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  background-color: #fff; /* ← Evita que se vea el fondo si hay espacio vacío */
  display: flex;
  align-items: center; /* ← Centra verticalmente la imagen */
  justify-content: center; /* ← Centra horizontalmente */
}

.slides {
  display: flex;
  width: 400%;
  height: 100%;
  animation: slide 16s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-height: 100%;     /* ← Se adapta a la altura del slider */
  max-width: 100%;      /* ← Evita que se desborde horizontalmente */
  object-fit: contain;  /* ← Muestra toda la imagen sin recortes */
}

@keyframes slide {
  0%   { transform: translateX(0%); }
  25%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  100% { transform: translateX(0%); }
}

.slider:hover .slides {
  animation-play-state: paused;
}
