* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #f5f7fb;
  color: #1e2a3a;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.santander-header {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 24px;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.logo-img:hover {
  transform: scale(1.02);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.main-nav li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  color: #1a2c3e;
  transition: 0.2s;
  letter-spacing: 0.2px;
}

.main-nav li a:not(.cta-nav):hover {
  color: #ec0000;
}

.cta-nav {
  background: #ec0000;
  padding: 12px 32px;
  border-radius: 40px;
  color: white !important;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.cta-nav:hover {
  background: #c90000;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(236, 0, 0, 0.3);
  color: white !important;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  background-color: #ec0000;
  color: white;
  border: none;
}

.mobile-toggle:hover {
  background-color: #c90000;
  transform: scale(1.02);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-top: 1px solid #eef2f6;
  padding: 20px 24px;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu li a {
  text-decoration: none;
  color: #1a2c3e;
  font-weight: 500;
  font-size: 1rem;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
  transition: 0.2s;
}

.mobile-menu li a:hover {
  color: #ec0000;
}

.cta-nav-mobile {
  background: #ec0000;
  text-align: center;
  padding: 12px !important;
  border-radius: 60px;
  margin-top: 8px;
  font-weight: 600;
  color: white !important;
  border-bottom: none !important;
}

.cta-nav-mobile:hover {
  background: #c90000;
}

.mobile-menu.show {
  display: flex;
}

.main-content {
  flex: 1;
  padding: 48px 0 64px 0;
  background: #f5f7fb;
}

.main-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-image-section {
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  position: relative;
  width: 100%;
  background: #eef2f6;
}

.featured-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.image-wrapper:hover .featured-img {
  transform: scale(1.02);
}

.img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  padding: 40px 36px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(236, 0, 0, 0.05);
}

.login-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-icon {
  font-size: 3rem;
  color: #ec0000;
  margin-bottom: 12px;
}

.login-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1a2c3e;
  margin-bottom: 8px;
}

.login-header p {
  color: #5b6e8c;
  font-size: 0.9rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a2c3e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-group label i {
  color: #ec0000;
  font-size: 1rem;
}

.input-group input {
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Inter', monospace;
  transition: all 0.2s;
  background: #ffffff;
}

.input-group input:focus {
  outline: none;
  border-color: #ec0000;
  box-shadow: 0 0 0 3px rgba(236, 0, 0, 0.1);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  flex: 1;
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #8ba0bc;
  font-size: 1.1rem;
  padding: 8px;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #ec0000;
}

.input-hint {
  font-size: 0.7rem;
  color: #8ba0bc;
  margin-top: -4px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a627a;
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #ec0000;
}

.forgot-link {
  color: #ec0000;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
}

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

.btn-login {
  background: #ec0000;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-family: inherit;
}

.btn-login:hover {
  background: #c90000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(236, 0, 0, 0.25);
}

.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #eef2f6;
  font-size: 0.9rem;
  color: #5b6e8c;
}

.login-footer a {
  color: #ec0000;
  text-decoration: none;
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}

.blank-canvas {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f6;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
}

.blank-inner {
  max-width: 580px;
  margin: 0 auto;
}

.blank-placeholder-icon {
  font-size: 3rem;
  color: #dce3ec;
  margin-bottom: 16px;
}

.blank-canvas h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a2c3e;
  margin-bottom: 12px;
}

.blank-canvas p {
  font-size: 0.95rem;
  color: #5b6e8c;
  max-width: 420px;
  margin: 0 auto 24px auto;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #ec0000;
  padding: 10px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #ec0000;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.btn-outline:hover {
  background: #ec0000;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(236, 0, 0, 0.2);
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid #eef2f8;
  padding: 28px 0;
  margin-top: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer p {
  font-size: 0.8rem;
  color: #5f7f9e;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.8rem;
  color: #3a5a7a;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #ec0000;
}

/* ========== INPUT OTP Y TOKEN ESTILO LÍNEA ROJA ========== */
.otp-line-input {
  width: 100%;
  padding: 16px 0;
  font-size: 1.8rem;
  font-weight: 600;
  font-family: 'Inter', monospace;
  text-align: center;
  letter-spacing: 8px;
  border: none;
  border-bottom: 3px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  transition: all 0.2s ease;
  color: #1a2c3e;
}

.otp-line-input:focus {
  outline: none;
  border-bottom-color: #ec0000;
  box-shadow: none;
}

.otp-line-input:hover {
  border-bottom-color: #ec0000;
}

.otp-line-input::placeholder {
  font-size: 1rem;
  letter-spacing: normal;
  color: #8ba0bc;
  font-weight: 400;
}

/* Quitar spinners en Chrome/Safari/Edge */
.otp-line-input::-webkit-outer-spin-button,
.otp-line-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quitar spinners en Firefox */
.otp-line-input[type="number"] {
  -moz-appearance: textfield;
}

/* ========== SPINER OVERLAY ========== */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(3px);
}

.spinner-container {
  background: white;
  padding: 32px 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.2s ease;
}

.spinner-red {
  width: 60px;
  height: 60px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #ec0000;
  border-right: 4px solid #ec0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-container p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #1a2c3e;
  font-weight: 500;
  margin: 0;
}

/* ========== MODAL DE ALERTA ========== */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.custom-modal-content {
  background: white;
  border-radius: 32px;
  max-width: 400px;
  width: 90%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.3s ease;
}

.custom-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-size: 2rem;
}

.custom-modal-icon.success {
  background: #e8f5e9;
  color: #2e7d32;
}

.custom-modal-icon.error {
  background: #ffebee;
  color: #ec0000;
}

.custom-modal-icon.info {
  background: #e3f2fd;
  color: #1565c0;
}

.custom-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2c3e;
  margin-bottom: 12px;
}

.custom-modal-message {
  font-size: 0.95rem;
  color: #5b6e8c;
  line-height: 1.5;
  margin-bottom: 28px;
  white-space: pre-line;
}

.custom-modal-btn {
  background: #ec0000;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.custom-modal-btn:hover {
  background: #c90000;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(236, 0, 0, 0.3);
}

/* ========== LOADING MODAL ========== */
.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3500;
  backdrop-filter: blur(4px);
}

.loading-modal-content {
  background: white;
  border-radius: 32px;
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: fadeInScale 0.2s ease;
}

.spinner-red-large {
  width: 60px;
  height: 60px;
  border: 4px solid #f0f0f0;
  border-top: 4px solid #ec0000;
  border-right: 4px solid #ec0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px auto;
}

.loading-message {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #1a2c3e;
  font-weight: 500;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== MODAL DE CARGA DE 20 MINUTOS ========== */
.loading-modal-20min {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
  cursor: default;
}

.loading-modal-20min .loading-modal-content {
  background: white;
  border-radius: 32px;
  padding: 48px 56px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: fadeInScale 0.3s ease;
  min-width: 420px;
}

.loading-modal-20min .spinner-red-large {
  width: 70px;
  height: 70px;
  border: 5px solid #f0f0f0;
  border-top: 5px solid #ec0000;
  border-right: 5px solid #ec0000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px auto;
}

.progress-bar-container {
  width: 100%;
  background: #eef2f6;
  border-radius: 10px;
  margin-top: 25px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 6px;
  background: #ec0000;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.loading-modal-20min * {
  user-select: none;
  -webkit-user-select: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 880px) {
  .container {
    padding: 0 24px;
  }

  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .logo-img {
    height: 32px;
  }

  .header-container {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .login-card {
    padding: 32px 24px;
    margin: 0 16px;
    width: calc(100% - 32px);
  }

  .blank-canvas h2 {
    font-size: 1.4rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  
  .otp-line-input {
    font-size: 1.5rem;
    letter-spacing: 6px;
    padding: 14px 0;
  }
  
  .otp-line-input::placeholder {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .login-header h2 {
    font-size: 1.5rem;
  }

  .hero-image-section {
    border-radius: 24px;
  }

  .btn-login {
    padding: 12px 20px;
  }

  .login-options {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .otp-line-input {
    font-size: 1.3rem;
    letter-spacing: 4px;
    padding: 12px 0;
  }
  
  .otp-line-input::placeholder {
    font-size: 0.8rem;
  }
}
