* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #e10098, #612066);
  color: #ffffff;
}

/* HEADER */
header {
  background: #c40487c4;
  padding: 12px;
  display: flex;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.header-image-center {
  width: 150px;
  height: 60px;
}

.header-image-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CONTENEDOR */
.spei-container {
  max-width: 520px;
  margin: 80px auto;
  padding: 40px 26px;
  background: linear-gradient(135deg, #ffffff, #ffd6ec);
  border-radius: 30px;
  color: #5a0038;
  text-align: center;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

h2 {
  font-size: 30px;
  font-weight: 900;
}

.subtitle {
  font-size: 16px;
  margin-bottom: 28px;
}

/* TARJETA SPEI */
.spei-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: inset 0 0 0 2px #f1c1dc;
  margin-bottom: 28px;
}

.spei-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}

.spei-row strong {
  color: #e10098;
}

.total {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed #e10098;
  font-size: 18px;
}

/* SUBIR ARCHIVO */
.upload-box {
  display: block;
  padding: 18px;
  border: 2px dashed #e10098;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 26px;
  transition: background 0.3s;
}

.upload-box:hover {
  background: #ffe3f2;
}

.upload-box input {
  display: none;
}

/* BOTÓN */
.confirm-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 900;
  border-radius: 40px;
  border: none;
  background: #e10098;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

.confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* LOADER */
.loader {
  display: none;
  margin-top: 26px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #ffd6ec;
  border-top: 4px solid #e10098;
  border-radius: 50%;
  margin: 0 auto 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.note {
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.85;
}

/* FOOTER */
footer {
  background: #122344;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 60px;
}


.email-input {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  border: 2px solid #e10098;
  font-size: 15px;
  margin-bottom: 26px;
  outline: none;
}

.email-input:focus {
  box-shadow: 0 0 0 3px #ffd6ec;
}

.upload-box {
  margin-top: 22px;
}

.email-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 26px;
}

.email-input {
  width: 100%;
  padding: 16px 90px 16px 16px; /* espacio para el botón */
  border-radius: 20px;
  border: 2px solid #e10098;
  font-size: 15px;
  outline: none;
}

.email-input:focus {
  box-shadow: 0 0 0 3px #ffd6ec;
}

.email-btn {
  position: absolute;
  right: 8px;
  top: 34%;
  transform: translateY(-50%);
  padding: 10px 18px;
  border-radius: 16px;
  border: none;
  background: #e10098;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* === NUEVO: ESTILOS PARA COPY CLABE === */
.clabe-row {
  flex-wrap: wrap;
}

.clabe-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copy-clabe-btn {
  background: #e10098;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.copy-clabe-btn:hover {
  background: #ff4fc3;
  transform: scale(1.02);
}

.copy-clabe-btn.copied {
  background: #00a86b;
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: linear-gradient(135deg, #ffffff, #ffd6ec);
  border-radius: 32px;
  padding: 35px 30px;
  max-width: 350px;
  width: 85%;
  text-align: center;
  animation: modalPop 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.modal-box h3 {
  font-size: 28px;
  color: #e10098;
  margin-bottom: 12px;
}

.modal-box p {
  color: #5a0038;
  font-size: 15px;
  line-height: 1.5;
}

.modal-btn {
  background: #e10098;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
  transition: all 0.3s;
}

.modal-btn:hover {
  background: #ff4fc3;
  transform: scale(1.02);
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .clabe-wrapper {
    justify-content: center;
    margin-top: 8px;
  }
  
  .modal-box {
    padding: 25px 20px;
    width: 90%;
  }
  
  .modal-box h3 {
    font-size: 24px;
  }
}
/* === BADGE / LOGO DE SPEI === */
.title-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.badge-spei {
  background: linear-gradient(135deg, #e10098, #ff4fc3);
  color: white;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  display: inline-block;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-transform: uppercase;
}

/* Ajuste para que el h2 quede bien debajo */
.spei-container h2 {
  margin-top: 5px;
}

/* === VISTA PREVIA DEL COMPROBANTE === */
.preview-container {
  background: #ffe3f2;
  border-radius: 20px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.preview-container p {
  margin-bottom: 10px;
  font-weight: 600;
  color: #e10098;
}

.image-preview {
  max-width: 100%;
  margin: 10px auto;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-preview .pdf-preview {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  display: inline-block;
  font-size: 14px;
  color: #e10098;
}

.remove-preview-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
}

.remove-preview-btn:hover {
  background: #ff4444;
  transform: scale(1.02);
}

/* === LOGO PNG ARRIBA DEL TÍTULO === */
.logo-pago-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.logo-pago {
  max-width: 80px;
  height: auto;
  display: block;
}

/* Responsive para móvil */
@media (max-width: 600px) {
  .logo-pago {
    max-width: 60px;
  }
}

.info-btn {
  width: 100%;
  background: transparent;
  border: 2px solid #e10098;
  color: #e10098;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 22px;
  margin-top: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Arial, Helvetica, sans-serif;
}

.info-btn:hover {
  background: #ffe3f2;
  border-color: #ff4fc3;
  color: #ff4fc3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 0, 152, 0.2);
}

.info-btn:active {
  transform: translateY(0);
}