  /* Fondo general */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Caja del login */
.login-box {
  max-width: 500px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
}

/* Inputs estilo línea inferior */
.login-box input {
  width: 85%;
  margin: 12px auto;
  padding: 6px 4px;
  border: none;
  border-bottom: 1px solid #ccc; /* solo línea inferior */
  border-radius: 0;              /* sin esquinas redondeadas */
  font-size: 14px;
  text-align: left;              /* texto alineado a la izquierda */
  outline: none;
}

.login-box input:focus {
  border-bottom: 2px solid #cc0000; /* línea roja al enfocar */
}

/* Botón rojo corporativo más delgado y redondeado */
.login-box button,
.btn-red {
  margin-top: 25px;
  width: 85%;
  padding: 8px;                  /* más delgado */
  background: #d32f2f;
  color: #fff;
  border: none;
  border-radius: 50px;           /* redondeado */
  cursor: pointer;
  font-weight: bold;
  font-size: 15px;
}

.login-box button:hover,
.btn-red:hover {
  background: #b71c1c;
  transition: background-color 0.3s ease;
}
.forgot-link {
  font-size: 16px;       /* más grande */
  color: #cc0000;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}
.forgot-link:hover {
  text-decoration: underline;
}

.extra-link {
  font-size: 14px;
  color: #0070c9;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.extra-link:hover {
  text-decoration: underline;
}

.icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Texto secundario */
.sub-text {
  margin-top: 10px;
  font-size: 12px;
  color: #333;
  text-align: center;
}

/* Opciones adicionales */
.options {
  margin-top: 35px;
  font-size: 16px;
  color: #555;
  text-align: center;
}
.options a {
  color: #0070c9;
  text-decoration: none;
}
.options a:hover {
  text-decoration: underline;
}

/* Títulos */
h1, h2 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

/* Productos */
.producto {
  margin: 15px 0;
  text-align: center;
  font-size: 14px;
}

/* Caja de productos */
.productos-box {
  max-width: 420px;
  margin: 40px auto;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
}

/* Spinner */
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #d32f2f;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* Ocultar elementos */
.hidden { display:none; }

/* ✅ Media queries para móviles */
@media (max-width: 480px) {
  .login-box,
  .productos-box {
    max-width: 95%;
    padding: 15px;
  }
  h1, h2 {
    font-size: 16px;
  }
  .producto {
    font-size: 13px;
  }
  .btn-santander {
    min-width: 120px;
    font-size: 13px;
    padding: 6px 10px;
  }
}
/* ========================= */
/* Carrusel corregido final  */
/* ========================= */

/* General */
.carousel-item img {
  display: block;
  width: 100%;
  height: auto;          /* Mantiene proporción */
  max-height: 400px;     /* Altura controlada en todas las pantallas */
}

/* ✅ Ajustes específicos para móvil */
@media (max-width: 767px) {
  .carousel-item img {
    object-fit: contain;   /* Evita recortes */
    margin-bottom: 10px;   /* Espacio entre imágenes apiladas */
    max-height: 280px;     /* Más pequeño en móvil */
  }
}

/* ✅ Ajustes para escritorio/tablet */
@media (min-width: 768px) {
  .carousel-item .row {
    display: flex;
    align-items: stretch;
    height: auto;          /* Ya no forzamos 80vh */
  }

  .carousel-item .col-12.col-md-6 {
    flex: 1;
    display: flex;
  }

  .carousel-item img {
    width: 100%;
    height: auto;
    max-height: 500px;     /* Tamaño controlado en escritorio */
    object-fit: cover;     /* Se recorta un poco para verse cuadrada */
  }
}

/* ✅ Indicadores más gruesos */
.carousel-indicators {
  position: static !important;
  margin-top: 20px !important;
  justify-content: center !important;
}

.carousel-indicators [data-bs-target] {
  width: 40px !important;
  height: 10px !important;
  background-color: #cc0000 !important;
  border: none !important;
  border-radius: 3px !important;
  margin: 0 4px !important;
}

.carousel-indicators .active {
  background-color: #000 !important;
}

/* Flechas en círculo blanco centradas */
.carousel-control-prev,
.carousel-control-next {
  width: 60px !important;
  height: 60px !important;
  background-color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.9 !important;
  transition: opacity 0.3s ease !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none !important;
}

.carousel-control-prev::after,
.carousel-control-next::after {
  font-size: 36px;
  color: #000;
  line-height: 1;
  display: flex;             /* convierte el pseudo-elemento en flex */
  align-items: center;       /* centra verticalmente */
  justify-content: center;   /* centra horizontalmente */
  width: 100%;               /* ocupa todo el ancho del círculo */
  height: 100%;              /* ocupa todo el alto del círculo */
  text-align: center;
}

.carousel-control-prev::after {
  content: "‹";
}

.carousel-control-next::after {
  content: "›";
}

/* ✅ Imagen combinada en escritorio/tablet */
.beneficios-empresas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ajuste general */
.offcanvas.offcanvas-end {
  width: 100% !important;   /* móvil: ocupa todo el ancho disponible */
  max-width: 320px !important; /* ancho estándar en móviles */
}

/* Ajuste solo para tablet/escritorio */
@media (min-width: 768px) {
  .offcanvas.offcanvas-end {
    max-width: 500px !important; /* ← este valor controla el ancho */
  }
}
/* Logos responsive */
.logo-ob, .logo-santander {
  height: 36px;
  max-width: 100%;
}
@media (min-width: 768px) {
  .logo-ob, .logo-santander {
    height: 40px;
  }
}

/* Botón X en rojo */
.btn-close-red {
  filter: invert(30%) sepia(100%) saturate(5000%) hue-rotate(340deg);
}
.btn-close-red:hover {
  filter: invert(20%) sepia(100%) saturate(5000%) hue-rotate(340deg);
}
.login-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc; /* solo línea inferior */
  padding: 8px 4px;
  font-size: 14px;
  outline: none;
}

.login-form input:focus {
  border-bottom: 2px solid #cc0000; /* línea roja al enfocar */
}

.btn-red {
  background-color: #cc0000;
  color: #fff;
  font-weight: bold;
  border-radius: 25px;
  padding: 8px;
  border: none;
}

.btn-red:hover {
  background-color: #a80000; /* rojo más oscuro al hover */
  transition: background-color 0.3s ease;
}
.hidden {
  display: none;
}
.offcanvas-body {
  overflow-y: auto !important;
}

.login-box {
  min-height: 400px;
}
.login-box label {
  text-align: left;   /* fuerza los títulos a la izquierda */
  display: block;
  margin-bottom: 6px;
  }
/* Ajuste de logos en pantallas pequeñas */
@media (max-width: 480px) {
  .logo-ob,
  .logo-santander {
    max-width: 110px;   /* ancho máximo reducido en móvil */
    height: auto;      /* mantiene proporción original */
  }
}
/* Contenedor del input debe ser relativo */
.position-relative {
  position: relative;
}

.position-relative {
  position: relative; /* asegura que el botón se posicione dentro del input */
}
/* Barra superior más gruesa */
.navbar {
  min-height: 90px;              /* altura fija mayor */
  padding-top: 12px;             /* espacio interno arriba */
  padding-bottom: 12px;          /* espacio interno abajo */
  border-bottom: 4px solid #ddd; /* línea inferior más marcada */
}
@media (min-width: 992px) {
  .btn-ingresar {
    margin-right: 30px; /* mueve el botón un poco hacia la izquierda */
  }
}
@media (min-width: 992px) {
  .btn-ingresar {
    padding: 8px 26px;   /* más espacio interno → botón más largo */
    min-width: 140px;    /* ancho mínimo fijo */
  }
}
.icon-eye {
  position: absolute;
  right: 35px;
  top: 8px;       /* valor fijo */
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.clear-input {
  position: absolute;
  right: 65px;
  top: 8px;       /* mismo valor que el ojo */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #bbb;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.clear-input::before {
  content: "×";
}

.clear-input:hover {
  background-color: #cc0000;
}
.offcanvas-header {
  padding-top: 30px;   /* baja todo el bloque (logos + botón X) */
  padding-bottom: 15px;
}

.offcanvas-header .logo-ob,
.offcanvas-header .logo-santander {
   margin-top: 8px;     /* baja los logos individualmente */
}

.offcanvas-header .btn-close {
  margin-top: -10px;   /* sube la X respecto al contenedor */
  align-self: flex-start; /* asegura que quede arriba */
}

