/*-----------------------------------------------
|   Paginación
-----------------------------------------------*/
/* Estilo por defecto de las páginas (no activas) */
.pagination .page-item .page-link {
  background-color: #ffffff; /* fondo blanco */
  color: #8f1633; /* texto granate */
  border: 1px solid #dee2e6; /* mantiene el borde por defecto */
}

/* Hover de cualquier página */
.pagination .page-item .page-link:hover {
  background-color: #8f1633; /* fondo granate */
  color: #ffffff; /* texto blanco */
  border-color: #8f1633; /* borde granate */
}

/* Página activa */
.pagination .page-item.active .page-link {
  background-color: #8f1633; /* fondo granate */
  color: #ffffff; /* texto blanco */
  border-color: #8f1633; /* borde granate */
}

/*-----------------------------------------------
|   Dashboard 
-----------------------------------------------*/
/* Clase para limitar ancho de las tarjetas */
.option-card {
  max-width: 500px;
  margin: 0 auto; /* centra la tarjeta dentro de su columna */
}

.sidebar {
  position: relative; /* para que los hijos absolute se referencien aquí */
  padding-bottom: 4rem; /* espacio extra para que no quede encima del contenido */
}

.avatar-upload {
  position: relative;
  width: 120px;
  height: 120px;
}
.avatar-upload .avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
}
.avatar-upload input[type='file'] {
  display: none;
}
.avatar-upload label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.avatar-upload label svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/*-----------------------------------------------
|   Paginas Productos 
-----------------------------------------------*/
@media (max-width: 768px) {
  .offcanvas.offcanvas-start {
    top: 45px !important; /* Altura de tu navbar */
    height: calc(100% - 10px) !important; /* Resto de la pantalla */
  }
}

@media (max-width: 991px) {
  .offcanvas.offcanvas-start {
    top: 45px !important; /* Altura de tu navbar */
    height: calc(100% - 10px) !important; /* Resto de la pantalla */
  }
}

/* ==========================
   TARJETAS CATALOGO
========================== */
.card-sub {
  border: 2px solid #8f1633;
  border-radius: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-sub:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-sub .card-image {
  background: #333;
  height: 300px; /* Cambia el alto a lo que prefieras */
  border-radius: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Imagen dentro de la card */
.card-sub .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Usa 'cover' si prefieres que recorte y llene el espacio */
  transition: transform 0.3s;
  display: block;
}

/* Cuerpo de la tarjeta */
.card-sub .card-body {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

/* Estrellas de calificación */
.card-sub .rating {
  font-size: 15px;
  color: #2a2a2a;
  margin-bottom: 4px;
}

/* Título del producto */
.card-sub .title {
  font-size: 25px;
  font-weight: 700;
  color: #8f1633;
  margin: 0 0 4px 0;
}

/* Subtítulo y botón de corazón */
.card-sub .subtitle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-sub .subtitle {
  font-size: 17px;
  color: #2a2a2a;
  margin: 0;
}

/* Botón de corazón */
.card-sub .btn-heart {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.card-sub .btn-heart:hover {
  transform: scale(1.2);
}

/* Línea divisoria */
.card-sub .divider {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 0 0 8px 0;
}

/* ==========================
   DETALLE CATALOGO
========================== */

/* coloca esto en tu hoja principal después de Bootstrap */
.detalleTex-color-card-h {
  /* aseguramos contexto para el overlay */
  position: relative;
}

.agotado-overlay {
  position: absolute;
  inset: 0; /* top-right-bottom-left: 0 */
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #8f1633; /* tono Solaris */
  border-radius: 8px; /* coincide con la img si tiene border-radius */
  pointer-events: none; /* evita bloquear el scroll del contenedor */
}

/* imagen semitransparente cuando está agotada */
.detalleTex-color-img-h.opacity-50 {
  opacity: 0.45;
  transition: opacity 0.3s;
}

.breadcrumb-solaris {
  color: #222 !important; /* Negro normal */
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-solaris:hover,
.breadcrumb-solaris:focus {
  color: #8f1633 !important; /* Color Solaris al hover */
  text-decoration: underline;
}
.detalleTex-title {
  font-size: 2.35rem;
  font-weight: 900;
  margin-top: 0.8rem;
  margin-bottom: 1.3rem;
}
.detalleTex-subtitle {
  color: #8f1633;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.detalleTex-lista {
  font-size: 1.13rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.detalleTex-lista li {
  margin-bottom: 0.2em;
}
.detalleTex-lista b {
  font-weight: 700;
  color: #000000;
}

.detalleTex-label {
  color: #8f1633;
  font-weight: 700;
  font-size: 1.5em;
  margin-bottom: 0.3rem;
  margin-top: 1.1rem;
}
.detalleTex-aplicacion {
  margin-bottom: 2.1rem;
}
.detalleTex-aplicacion .detalleTex-label {
  margin-bottom: 0.5rem;
}
.detalleTex-aplicacion .detalleTex-icon {
  display: block;
  margin-bottom: 0.15rem;
}
.detalleTex-certificados {
  margin-top: 1.3rem;
  margin-bottom: 2.2rem;
}
.detalleTex-certificados .detalleTex-label {
  margin-bottom: 0.8rem;
}
.detalleTex-certificados img {
  width: 54px;
  margin-right: 0.9rem;
}

.detalleTex-muestra-box {
  background: #373737;
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  margin: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 220px;
  min-height: 220px;
  /* No aspect-ratio ni vw en desktop para conservar el diseño original */
}

.detalleTex-muestra-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 600px) {
  .detalleTex-muestra-box {
    width: 100% !important; /* Corrige el scroll lateral */
    height: auto !important;
    aspect-ratio: 1/1 !important; /* Mantiene cuadrado en móvil */
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100vw !important;
  }
  .detalleTex-muestra-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100vw !important;
    object-fit: cover;
    border-radius: 16px;
    display: block;
  }
}

.detalleTex-color-card-h {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 16px auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.detalleTex-color-img-h {
  width: 100%;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(166, 46, 69, 0.07);
  border: 1.2px solid #e1e1e1;
}
.detalleTex-color-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1em;
  margin-top: 4px;
  padding: 0 4px;
}
.detalleTex-color-nombre {
  color: #373737;
  font-weight: 700;
  font-size: 1.01em;
}
.detalleTex-color-id {
  color: #8f1633;
  font-size: 1.01em;
  font-weight: 700;
}

.detalleTex-paginacion .btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 30px;
  padding: 0;
  font-weight: 600;
  box-shadow: 0 1px 4px #0001;
  border: none;
  background: #f3f3f3;
  color: #8f1633;
  transition: background 0.18s, color 0.18s;
}
.detalleTex-paginacion .btn.active,
.detalleTex-paginacion .btn:hover {
  background: #8f1633;
  color: #fff;
}

@media (max-width: 900px) {
  .detalleTex-color-card-h {
    max-width: 100vw;
  }
  .detalleTex-color-img-h {
    height: 60px;
    border-radius: 10px;
  }
  .detalleTex-color-row {
    font-size: 0.96em;
    padding: 0 2px;
  }
}

.detalleTex-aviso {
  font-size: 0.97em;
  color: #2a2a2a;
  margin-top: auto;
  text-align: center;
}

@media (max-width: 1200px) {
  .detalleTex-muestra-box {
    min-width: 420px;
    min-height: 650px;
    max-width: 420px;
    max-height: 350px;
  }
}
@media (max-width: 1024px) {
  .detalleTex-muestra-box {
    min-width: 400px;
    min-height: 600px;
    max-width: 340px;
    max-height: 240px;
  }
  .detalleTex-muestra-img {
    max-width: 320px;
    max-height: 210px;
  }
  .detalleTex-color-card {
    min-width: 150px;
    min-height: 38px;
  }
}
@media (max-width: 991px) {
  .detalleTex-muestra-box {
    min-width: 70vw;
    min-height: 400px;
    max-width: 50vw;
    max-height: 240px;
  }
  .detalleTex-muestra-img {
    max-width: 94vw;
    max-height: 180px;
  }
}

.main > .catalogoSwiper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* O 100vh si quieres todo fullscreen */
}

.catalogoSwiper {
  width: 100%;
  max-width: 1500px;
  margin: auto;
  padding: 0; /* Centrado exacto, ajusta si quieres más aire */
  min-height: 400px;
}

.catalogoSwiper .swiper-wrapper {
  align-items: center;
  display: flex;
}

.catalogoSwiper .swiper-slide {
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 320px;
}

.catalogoSwiper img {
  width: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
}

/* Botones Swiper */
.catalogoSwiper .swiper-button-prev,
.catalogoSwiper .swiper-button-next {
  color: #8f1633;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 50%; /* <--- ¡Importante! */
  transform: translateY(-50%); /* Centrado vertical */
  position: absolute; /* <--- ¡Asegúrate que es absolute! */
  z-index: 4; /* Encima del overlay */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.11);
}

.catalogoSwiper .swiper-button-prev:after,
.catalogoSwiper .swiper-button-next:after {
  font-size: 18px !important; /* Ajusta el tamaño de la flecha aquí (18px es más fino) */
  color: #8f1633 !important; /* Flecha color vino */
  font-weight: bold; /* Más marcada */
  /* Puedes probar también con un ligero sombreado para elegancia: */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .catalogoSwiper .swiper-slide {
    height: 200px;
  }
  .catalogoSwiper img {
    max-width: 500px;
    max-height: 200px;
  }
}
@media (max-width: 600px) {
  .catalogoSwiper .swiper-button-prev,
  .catalogoSwiper .swiper-button-next {
    width: 36px;
    height: 36px;
    top: 50%;
  }
  .catalogoSwiper .swiper-button-prev:after,
  .catalogoSwiper .swiper-button-next:after {
    font-size: 16px !important; /* Haz la flecha más pequeña */
  }
  .catalogoSwiper img {
    max-width: 100%; /* Deja aire a los lados */
    max-height: 350px; /* Ajusta la altura máxima */
    margin: 0 auto; /* Centra la imagen */
    border-radius: 12px; /* (opcional) Más redondeo para mobile */
  }
}

/* ==========================
   PAGINA BOLSA DE TRABAJO
========================== */

/* === Encabezado con video === */
.solaris-unete-header {
  position: relative;
  width: 100vw;
  overflow: hidden;
  min-height: 450px; /* Altura del banner */
  max-width: 100vw;
}

/* Contenedor del video */
.solaris-unete-header-video {
  position: relative;
  width: 100%;
  height: 450px; /* Altura del banner */
  z-index: 1;
  overflow: hidden;
}

.solaris-unete-header-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) grayscale(4%);
  transition: filter 0.35s;
}

/* Overlay oscuro */
.solaris-unete-header::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
  z-index: 2;
}

/* Texto centrado en el header */
.solaris-unete-header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 3;
  color: #fff;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 3px 14px #57041e55);
}

.solaris-unete-titulo-arriba {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: -0.2em;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.solaris-unete-titulo-grande {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* === Título del acordeón === */
.solaris-unete-acordeon-titulo {
  font-size: 2rem;
  font-weight: 900;
  color: #8f1633;
  letter-spacing: 1px;
}

/* === Acordeón de vacantes Solaris === */
.solaris-unete-accordion .accordion-item {
  border-radius: 10px !important;
  border: 1.5px solid #eee !important;
  box-shadow: 0 1px 7px rgba(143, 22, 51, 0.06) !important;
}

.solaris-unete-accordion-btn {
  background: #fcfcfc;
  color: #8f1633;
  font-weight: 700;
  font-size: 1.13rem;
  border: none;
  outline: none;
  border-radius: 0;
  box-shadow: none !important;
  letter-spacing: 0.5px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: background 0.15s, color 0.15s;
}
.solaris-unete-accordion-btn:not(.collapsed) {
  background: #8f1633;
  color: #fff;
}
.solaris-unete-accordion .accordion-body {
  background: #f9f8fb;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  font-size: 1rem;
  color: #222;
}
.solaris-unete-acordeon-seccion {
  margin-bottom: 0.85rem;
}
.solaris-unete-accordion .accordion-button::after {
  filter: invert(29%) sepia(99%) saturate(776%) hue-rotate(311deg)
    brightness(85%) contrast(97%);
}

/* === Formulario Bolsa Solaris === */
.solaris-unete-form-wrap {
  max-width: 700px;
  margin: auto auto 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 2.4rem 2.2rem 1.8rem 2.2rem;
  position: relative;
  z-index: 4;
}
.solaris-unete-form input[type='text'],
.solaris-unete-form input[type='email'],
.solaris-unete-form input[type='tel'],
.solaris-unete-form input[type='number'],
.solaris-unete-form textarea {
  border: 1px solid #acacac;
  border-radius: 6px;
  background: #fcfcfc;
  font-size: 1.04rem;
  padding: 0.48rem 0.75rem;
  margin-bottom: 0.65rem;
}
.solaris-unete-form input:focus,
.solaris-unete-form textarea:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 2px #900b2c24;
}
.solaris-unete-form label,
.solaris-unete-form .form-label {
  font-weight: 600;
  color: #212121;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.solaris-unete-form .solaris-unete-radio-row {
  display: flex;
  gap: 22px;
  margin-bottom: 0.65rem;
  margin-top: 0.1rem;
  flex-wrap: wrap;
}
.solaris-unete-form .form-check-input {
  border: 1.6px solid #8f1633;
  accent-color: #8f1633;
  width: 1.07em;
  height: 1.07em;
  margin-top: 0.14em;
}
.solaris-unete-form textarea {
  resize: vertical;
  min-height: 68px;
  max-height: 200px;
}
.solaris-unete-aviso {
  font-size: 0.96rem;
  color: #222;
  font-weight: 600;
  margin-bottom: 0.2rem;
  margin-top: 0.3rem;
}

/* === Custom select de formulario === */
.solaris-unete-form select.form-select {
  border: 1px solid #acacac;
  border-radius: 6px;
  background: #fcfcfc;
  font-size: 1.04rem;
  padding: 0.48rem 0.75rem;
  margin-bottom: 0.65rem;
  color: #232323;
  transition: border 0.3s, box-shadow 0.3s;
  box-shadow: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="rgba(143,22,51,0.8)" height="18" viewBox="0 0 20 20" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M5.293 7.293a1 1 0 0 1 1.414 0L10 10.586l3.293-3.293a1 1 0 1 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 0-1.414z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1em;
}
.solaris-unete-form select.form-select:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 2px #900b2c24;
}
.solaris-unete-form select.form-select:disabled {
  background: #efefef;
  color: #aaa;
}

/* === Grupo: Código Postal + lupa, alineación perfecta === */
.solaris-cp-block {
  margin-bottom: 10px;
  max-width: 440px;
}

.solaris-cp-label {
  font-weight: 600;
  color: #1a1313;
  font-size: 1rem;
  margin-bottom: 0.28em;
  letter-spacing: 0.03em;
  display: block;
}

/* Inputgroup para CP */
.solaris-cp-inputgroup {
  display: flex;
  align-items: stretch; /* ESTO ES CLAVE */
  width: 100%;
  gap: 0;
}

/* Input del CP */
.solaris-cp-inputgroup .form-control {
  height: 38px;
  border-radius: 8px 0 0 8px;
  border: 1.2px solid #acacac;
  border-right: none;
  background: #fcfcfc;
  font-size: 1.08rem;
  flex: 1 1 auto;
  margin-bottom: 0;
  box-sizing: border-box;
  line-height: 1.2;
  padding: 0 0.8em;
  align-self: stretch;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
}
.solaris-cp-inputgroup .form-control:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 2px #900b2c24;
}

/* Botón lupa */
.solaris-cp-inputgroup .solaris-cp-lupa-btn {
  height: 38px;
  min-width: 40px;
  border-radius: 0 8px 8px 0;
  border: 1.2px solid #acacac;
  border-left: none;
  background: #fff;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
  outline: none;
  line-height: 1 !important;
  align-self: stretch;
}
.solaris-cp-inputgroup .solaris-cp-lupa-btn:focus,
.solaris-cp-inputgroup .solaris-cp-lupa-btn:hover {
  background: #f8eef1;
  border-color: #8f1633;
}
.solaris-cp-inputgroup .solaris-cp-lupa-btn svg {
  width: 19px;
  height: 19px;
  display: block;
  margin: 0 auto;
  padding: 0;
}

/* --- Compacto y minimalista para bloques de ubicación --- */
.solaris-location-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  max-width: 100%;
}
.solaris-location-fields .form-control,
.solaris-location-fields .form-select {
  height: 38px;
  font-size: 1.05rem;
  border-radius: 8px;
  background: #fcfcfc;
  border: 1.2px solid #acacac;
  margin-bottom: 0 !important;
  flex: 1 1 0;
  min-width: 160px;
  max-width: 100%;
  transition: border-color 0.2s;
}
.solaris-location-fields .form-control:focus,
.solaris-location-fields .form-select:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 2px #900b2c24;
}
.solaris-location-fields .form-select:disabled {
  background: #f2f2f2;
  color: #aaa;
}

/* Responsive: se apila en móvil */
@media (max-width: 700px) {
  .solaris-cp-block {
    max-width: 100%;
  }
  .solaris-location-fields {
    gap: 8px;
    flex-direction: column;
  }
  .solaris-location-fields .form-control,
  .solaris-location-fields .form-select {
    min-width: 0;
    width: 100%;
  }
}

/* --- Uniformidad para TODOS los campos del form (input, select) --- */
.solaris-unete-form .form-control,
.solaris-unete-form .form-select {
  height: 38px !important;
  border: 1px solid #acacac;
  border-radius: 6px;
  background: #fcfcfc;
  font-size: 1.04rem;
  margin-bottom: 0.65rem;
  box-shadow: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.solaris-unete-form .form-control:focus,
.solaris-unete-form .form-select:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 2px #900b2c24;
}

.solaris-group-pretensiones .input-group-text {
  background: #fcfcfc;
  color: #8f1633;
  border: 1px solid #acacac;
  font-size: 1.04rem;
  padding-left: 0.7em;
  padding-right: 0.7em;
  height: 38px;
  line-height: 1;
  border-radius: 6px;
  box-shadow: none;
  margin-bottom: 0.65rem;
}
.solaris-group-pretensiones .form-control {
  border-radius: 0;
  border-left: none;
  border-right: none;
  height: 38px !important;
  font-size: 1.04rem;
  background: #fcfcfc;
  border-color: #acacac;
}
.solaris-group-pretensiones .input-group-text:first-child {
  border-radius: 6px 0 0 6px;
  border-right: none;
}
.solaris-group-pretensiones .input-group-text:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

@media (max-width: 991px) {
  .solaris-group-pretensiones .input-group-text,
  .solaris-group-pretensiones .form-control {
    height: 34px !important;
    font-size: 0.97rem;
  }
}

@media (max-width: 700px) {
  /* Ajuste del header en móviles */
  .solaris-unete-header {
    min-height: 220px;
  }
  .solaris-unete-header-video {
    height: 220px;
  }
  .solaris-unete-header-text {
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
  }
  .solaris-unete-titulo-grande {
    font-size: 1.8rem;
  }
  .solaris-unete-titulo-arriba {
    font-size: 1rem;
  }
  .solaris-unete-form-wrap {
    max-width: 98vw;
    padding: 1.3rem 0.7rem 1.1rem 0.7rem;
  }
  .solaris-unete-form .form-control,
  .solaris-unete-form .form-select {
    height: 34px !important;
    font-size: 0.97rem;
  }
  .solaris-cp-lupa-btn {
    min-width: 34px;
    height: 34px !important;
  }
}

@media (max-width: 480px) {
  .solaris-unete-form-wrap {
    padding: 0.6rem 1.2rem 1.3rem 1.2rem;
  }
  .solaris-unete-form label {
    font-size: 0.93rem;
  }
  .solaris-unete-form input,
  .solaris-unete-form textarea {
    font-size: 0.93rem;
  }
}

/* ==========================
   PAGINA DISTRIBUIDORES
========================== */

.g-recaptcha {
  width: 100% !important;
  min-width: 302px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
/* Ajuste de padding superior para dar aire */
#page-contact {
  padding-top: 20px;
  padding-bottom: 2rem;
}

/* ====== TÍTULO ====== */
.titulo-distribuidores {
  text-align: center;
  line-height: 1.2;
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 400;
  color: #222;
}

.titulo-distribuidores span {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #8f1633;
  text-transform: uppercase;
}

/* ====== FORMULARIO ====== */
.form-solaris .form-control,
.form-solaris select,
.form-solaris textarea {
  border: 1px solid #999;
  border-radius: 4px;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-solaris .form-control:focus,
.form-solaris select:focus,
.form-solaris textarea:focus {
  border-color: #8f1633;
  box-shadow: 0 0 0 0.1rem rgba(178, 28, 46, 0.2);
  outline: none;
}

.form-solaris textarea {
  resize: none;
}

/* === Grupo Código Postal + lupa === */
.solaris-cp-inputgroup {
  display: flex;
  align-items: center;
  width: 100%;
}

.solaris-cp-inputgroup input {
  border: 1px solid #acacac;
  border-right: none;
  border-radius: 6px 0 0 6px;
  height: 38px;
  padding: 6px 10px;
  flex: 1;
  font-size: 14px;
}

.solaris-cp-lupa-btn {
  padding: 0;
  width: 38px;
  height: 38px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background 0.2s;
  border: 1px solid #acacac;
  border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.solaris-cp-lupa-btn:hover {
  background: #f7f2f4;
}

.solaris-cp-lupa-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

/* === Campos Estado, Municipio, Colonia === */
.solaris-location-fields input,
.solaris-location-fields select {
  border: 1px solid #acacac;
  height: 38px;
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 6px;
  background-color: #fff;
}

.solaris-location-fields select:disabled,
.solaris-location-fields input[readonly] {
  background-color: #f9f9f9;
  cursor: not-allowed;
}

/* === Ajustes generales del formulario === */
.form-solaris .form-control,
.form-solaris .form-select {
  border-radius: 6px;
  height: 38px;
  font-size: 14px;
}

/* === Responsive para tablets === */
@media (min-width: 768px) and (max-width: 1024px) {
  .form-solaris .row > [class*='col-md-6'] {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .form-solaris .row > [class*='col-md-4'] {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
  }
}

/* === Centrado solo en tablets === */
@media (min-width: 768px) and (max-width: 1024px) {
  .form-solaris {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
  }

  .form-solaris h3,
  .form-solaris label.fw-bold {
    text-align: center;
    display: block;
  }

  .form-solaris .d-flex {
    justify-content: center;
  }

  /* Campos dentro del formulario siguen alineados a la izquierda */
  .form-solaris .form-control,
  .form-solaris .form-select,
  .form-solaris textarea {
    text-align: left;
  }
}

/* ====== BLOQUES DE REDES ====== */
.social-blocks {
  display: flex;
  gap: 8px;
}

.social-block {
  width: 35px;
  height: 35px;
  background-color: #8f1633;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-block:hover {
  background-color: #2a2a2a;
  transform: scale(1.05);
}

/* ====== IMÁGENES DERECHA ====== */
.image-stack {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.img-wrapper {
  position: relative;
  width: 150px;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.img-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.img-wrapper img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

/* Overlay oscuro */
.img-wrapper a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
}

/* Texto en el centro */
.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none; /* Para no bloquear clics */
}

/* Hover */
.img-wrapper:hover img {
  transform: scale(1.05);
}

.img-wrapper:hover a::after,
.img-wrapper:hover .overlay-text {
  opacity: 1;
}

/* ==========================
   RESPONSIVE - DISTRIBUIDORES
========================== */

/* Desde 1024px hacia abajo */
@media (max-width: 1024px) {
  #page-contact .row {
    flex-direction: column !important;
    align-items: center;
  }
  #page-contact .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }
  .image-stack {
    margin-top: 20px;
  }
  /* Overlay y texto SIEMPRE visible en móviles */
  .img-wrapper a::after,
  .img-wrapper .overlay-text {
    opacity: 1 !important;
  }
  iframe {
    width: 100% !important;
    height: 300px !important;
    margin-top: 20px;
  }
}

/* Desde 768px hacia abajo (tablets y móviles) */
@media (max-width: 767px) {
  .titulo-distribuidores {
    font-size: 1.5rem;
  }
  .titulo-distribuidores span {
    font-size: 2.2rem;
  }

  /* Imágenes en una sola columna con espacio */
  .image-stack {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
  }

  .img-wrapper {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: none;
  }

  .img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Overlay y texto SIEMPRE visible en móviles */
  .img-wrapper a::after,
  .img-wrapper .overlay-text {
    opacity: 1 !important;
  }

  .mt-5 {
    margin-top: 0 !important;
  }

  iframe {
    width: 100%;
    height: 250px;
    margin-top: 20px;
  }
}

/* Desde 480px hacia abajo (móviles pequeños) */
@media (max-width: 480px) {
  .social-blocks {
    justify-content: center;
  }
}

/*Sweet Alert arriba del todo */

.swal2-popup {
  font-size: 1rem !important;
  width: 28rem !important;
}

.swal2-container {
  z-index: 20000 !important;
}
