/* ----------------------------------------
  Fuente base
---------------------------------------- */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ----------------------------------------
  Paleta de colores Electrolux
---------------------------------------- */
:root {
  --electrolux-blue: #142343;
  --electrolux-lightblue: #5e8ac6;
  --electrolux-gray: #405470;
  --whatsapp-green: #25d366;
}

/* ----------------------------------------
  Utilidades generales
---------------------------------------- */
.bg-gray {
  background-color: var(--electrolux-gray);
}

.bg-blue {
  background-color: var(--electrolux-blue);
}

.text-blue {
  color: var(--electrolux-blue);
}

.text-lightblue {
  color: var(--electrolux-lightblue);
}

.btn-blue {
  background-color: var(--electrolux-blue);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  border-radius: 0.3rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-blue:hover {
  background-color: var(--electrolux-lightblue);
  color: var(--electrolux-blue);
}

/* Evita la detección automática de números como links */
meta[name="format-detection"] {
  content: "telephone=no";
}

/* Estilo para enlaces de teléfono detectados automáticamente */
.phone-text {
  color: var(--electrolux-lightblue) !important;
  text-decoration: none !important;
}

.phone-text a {
  color: var(--electrolux-lightblue) !important;
  text-decoration: none !important;
}
/* ----------------------------------------
  Barra superior Electrolux
---------------------------------------- */
.topbar {
  background-color: var(--electrolux-gray);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  color: #e0e0e0; /* Texto claro sobre fondo oscuro */
}

.topbar a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.topbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.topbar a:hover::after {
  transform: scaleX(1);
}
/* ----------------------------------------
  Encabezado / menú Electrolux
---------------------------------------- */
.border-blue {
  border-bottom: 2px solid var(--electrolux-blue);
}

.navbar-brand img {
  max-height: 48px;
}

.navbar-nav .nav-link {
  color: #142343; /* azul oscuro como texto principal */
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--electrolux-blue);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--electrolux-blue);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Botón de contacto adaptado */
.btn-blue {
  background-color: var(--electrolux-blue);
  color: #fff;
  border-radius: 2rem;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-blue:hover {
  background-color: var(--electrolux-lightblue);
  color: var(--electrolux-blue);
  text-decoration: none;
}

/* ----------------------------------------
  Carrusel principal - Electrolux
---------------------------------------- */
.slide-bg {
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    20,
    35,
    67,
    0.6
  ); /* azul Electrolux oscuro translúcido */
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  color: #fff;
}

.carousel-caption h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #e0eaf7; /* celeste claro legible */
}

/* Botón dentro del carrusel si se usa */
.carousel-caption .btn-blue {
  background-color: var(--electrolux-blue);
  color: #fff;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.carousel-caption .btn-blue:hover {
  background-color: #ffffff;
  color: var(--electrolux-blue);
}

/* Controles de navegación */
.carousel-control-prev,
.carousel-control-next {
  z-index: 3 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-size: 100% 100%;
  background-image: none;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  border: solid white;
  border-width: 0 3px 3px 0;
  padding: 5px;
}

.carousel-control-prev-icon::after {
  transform: rotate(135deg);
}

.carousel-control-next-icon::after {
  transform: rotate(-45deg);
}

/* ----------------------------------------
  Tarjetas de servicio - Electrolux
---------------------------------------- */
.card-service {
  border: 1px solid #ccc;
  border-left: 5px solid var(--electrolux-blue); /* Azul fuerte como acento */
  background-color: #fff;
  padding: 1rem;
  transition: all 0.3s ease;
}

.card-service:hover {
  box-shadow: 0 0 12px rgba(64, 84, 112, 0.2); /* sombra grisácea al hover */
}

/* ----------------------------------------
  Iconos de atributos - Electrolux
---------------------------------------- */
.icon-box {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
}

.icon-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--electrolux-blue); /* Acento con azul fuerte */
}

/* ----------------------------------------
  Preguntas Frecuentes
---------------------------------------- */
.faq-question {
  font-weight: 600;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--whirlpool-yellow);
}



/* ----------------------------------------
  Mini Banner Call Me - Electrolux
---------------------------------------- */
.call-banner {
  background-color: #405470 !important; /* grisáceo Electrolux */
  padding: 1.5rem 0;
  color: #fff;
}

.call-banner img {
  max-height: 50px;
  transition: all 0.3s ease;
}

.call-banner p {
  margin: 0;
  font-weight: bold;
  font-size: 1.1rem;
  color: #fff;
}

.phone-text {
  font-size: 1.75rem !important;
  white-space: nowrap;
  color: #fff !important;
}

/* Botón azul estilo Electrolux */
.call-banner .btn-blue {
  background-color: #142343;
  color: #fff;
  font-size: 1.1rem; /* Más legible */
  border-radius: 2rem;
  padding: 0.75rem 2rem; /* Más alto y ancho */
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.call-banner .btn-blue:hover {
  background-color: #ffffff;
  color: #142343;
}

/* ----------------------------------------
  Nosotros
---------------------------------------- */

.border-blue {
  border: 2px solid #142343; /* Azul fuerte de Electrolux */
  border-radius: 2rem;
}

.sobre-nosotros h2 {
  color: #142343;
}

.sobre-nosotros p {
  font-size: 1.1rem;
  color: #333;
}

.caracteristicas-servicio {
  background-image: url("img/banner/servicio_tecnico_electrolux_slide_0.webp");
  background-size: cover;
  background-position: center;
  position: relative;
}

.caracteristicas-servicio .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.caracteristicas-servicio .container {
  position: relative;
  z-index: 2;
}

.feature-box {
  background-color: rgba(20, 35, 67, 0.5); /* Azul Electrolux suave */
  border-radius: 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-box:hover {
  transform: scale(1.05);
  background-color: rgba(20, 35, 67, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feature-box i {
  color: #ffffff; /* Íconos blancos para más contraste */
}

.caracteristicas-servicio .row .feature-box h5 {
  word-break: break-word;
  hyphens: auto;
}

/* ----------
  Servicios
------------ */

/* Estilo para cards de servicios Electrolux */
.servicios-Electrolux .card {
  border-radius: 1rem;
  border: 2px solid #142343;
  background-color: #405470;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicios-Electrolux .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(20, 35, 67, 0.3);
}

/* Botones estilo "Llamar Online" */
.servicios-Electrolux .btn-service {
  background-color: #142343;
  color: #ffffff;
  font-weight: 600;
  border: 2px solid #142343;
  border-radius: 2rem;
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.servicios-Electrolux .btn-service:hover {
  background-color: #ffffff;
  color: #142343;
  border-color: #ffffff;
}

/* Botón "Más información" (opcional, si se activa) */
.btn-info-toggle {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cccccc;
  background: none;
  border: none;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.btn-info-toggle:hover {
  color: #ffffff;
}

/* ----------------------------------------
  Formulario de Contacto
---------------------------------------- */

/* Fondo gris oscuro para sección formulario */
.bg-form {
  background-color: #405470 !important;
  color: #fff;
}

/* Wrapper centrado */
.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Campos de entrada */
#contactForm input,
#contactForm textarea,
#contactForm select {
  background-color: #f2f2f2;
  border: 1px solid #ced4da;
  color: #000;
  border-radius: 0.5rem;
}

/* Placeholder */
#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #6c757d;
}

/* Botón estilo principal azul */
.btn-service {
  display: inline-block;
  background-color: #142343;
  color: #ffffff;
  border: 2px solid #142343;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-service:hover {
  background-color: #ffffff;
  color: #142343;
  border-color: #ffffff;
}

/* Campo en foco */
.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: #5e8ac6;
  box-shadow: 0 0 0 0.25rem rgba(94, 138, 198, 0.8);
}

/* Confirmación de envío */
#notification.alert-success {
  background-color: #198754;
  border: none;
  color: #ffffff;
  font-weight: bold;
  border-radius: 0.5rem;
}

/* ----------------------------------------
  Footer
---------------------------------------- */

footer {
  background-color: #212529;
  color: #ddd;
}

/* Enlaces generales */
footer a {
  color: #ddd;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

/* Subrayado animado en hover */
footer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #5e8ac6;
  transition: width 0.3s ease;
}

footer a:hover {
  color: #5e8ac6;
}

footer a:hover::after {
  width: 100%;
}

/* Íconos de contacto y redes sociales */
footer .contact-info i,
footer .social-icons i {
  color: #5e8ac6;
  margin-right: 5px;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-icons i:hover,
footer .contact-info i:hover {
  color: #fff;
  transform: scale(1.2);
}

/* Listas sin estilos */
footer ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

footer ul li {
  margin-bottom: 0.5rem;
}

/* Títulos de sección */
footer h5 {
  color: #fff;
  font-weight: bold;
}

/* Separador dorado arriba del footer */
footer.footer-dark {
  border-top: 3px solid #5e8ac6;
}

/* Aire sobre secciones */
/* Formulario */
#contacto {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

/* Footer */
footer.footer-dark {
  padding-top: 80px !important;
  padding-bottom: 60px !important;
}

/* ----------------------------------------
  Estilo del botón flotante de WhatsApp
---------------------------------------- */
.whatsapp-float {
  position: fixed;
  width: 70px;
  height: 70px;
  bottom: 25px; /* MÁS ARRIBA */
  right: 25px; /* MÁS ALEJADO DEL BORDE */
  background-color: #142343; /* Color principal del fondo */
  color: #ffffff; /* Ícono color amarillo */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px; /* Ícono más grande */
  box-shadow: 0 0 8px 4px rgba(94, 138, 198, 0.7);
  z-index: 9999;
  text-decoration: none !important; /* 👈 ELIMINA subrayado */
  transition: all 0.3s ease;
}

.whatsapp-float i {
  display: block;
  line-height: 1;
  pointer-events: none; /* Asegura que el clic se lo lleve el <a> */
}

/* Hover */
.whatsapp-float:hover {
  background-color: #ffffff;
  color: #142343;
  box-shadow: 0 0 10px 5px rgba(94, 138, 198, 1);
  cursor: pointer;
}

/* ----------------------------------------
  Media Queries (ordenado de menor a mayor)
---------------------------------------- */

/* Móviles pequeños */
@media (max-width: 575.98px) {
  .btn-yellow {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .carousel-caption {
    padding: 0.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .slide-bg {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
  }

  .phone-text {
    font-size: 1.2rem !important; /* fs-5 aproximado */
    white-space: normal; /* Permite salto de línea si hace falta */
  }

  .call-banner img {
    max-height: 45px;
  }
}

/* Móviles medianos / tablets pequeñas */
@media (max-width: 767.98px) {
  .slide-bg {
    padding: 2rem 1rem;
  }

  .carousel-caption h2 {
    font-size: 1.6rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .call-banner img {
    max-height: 45px;
  }

  .phone-text {
    font-size: 1.2rem !important; /* fs-5 aproximado */
    white-space: normal;
  }
}

/* Tablets y laptops pequeñas */
@media (max-width: 991.98px) {
  .topbar {
    text-align: center;
  }

  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
  }

  .carousel-caption {
    font-size: 0.9rem;
  }

  .icon-box {
    padding: 0.5rem;
  }

  .slide-bg {
    padding: 1rem;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .carousel-caption p {
    font-size: 1rem;
  }

  .phone-text {
    font-size: 1.2rem !important; /* Entre fs-3 y fs-4 */
  }

  .call-banner img {
    max-height: 60px;
  }
}

/* PC grandes */
@media (min-width: 1200px) {
  .call-banner img {
    max-height: 65px;
  }

  .call-banner p {
    font-size: 1.4rem;
  }

  .call-banner .btn-yellow {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
  }
}
