/* Navimag - Pago PayPal - Estilos (paleta y componentes consistentes con ECommerceCliente2) */

:root {
  --navimag-red: #8B0000;
  --navimag-dark: #000000;
  --navimag-bg: #FDFBF2;
  --navimag-teal: #002D2F;

  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-white: #ffffff;

  --success-green: #28BA03;
  --error-red: #FF0800;
  --warning-orange: #FF6B35;

  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.15);

  --radius-lg: 0.75rem;
  --button-height: 2.75rem;
}

.text-navimag { color: var(--navimag-red) !important; }

/* Header simple con logo centrado */
.simple-header {
  background-color: var(--navimag-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
}

.navimag-logo {
  min-height: 40px;
}

.logo-graphic .logo-image {
  height: 56px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(139, 0, 0, 0.15));
}

.navimag-logo a {
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.navimag-logo a:hover {
  transform: scale(1.05);
}

/* Tarjeta de estado (pago / éxito / fracaso / pendiente) */
.status-card {
  background-color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem 2rem;
  margin: 3rem auto 0;
  max-width: 600px;
  width: 100%;
}

.status-icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.status-icon {
  width: 80px;
  height: 80px;
  border: 3px solid var(--navimag-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navimag-red);
  font-size: 2.5rem;
}

.status-icon--success {
  border-color: var(--success-green);
  color: var(--success-green);
}

.status-icon--error {
  border-color: var(--error-red);
  color: var(--error-red);
}

.status-icon--pending {
  border-color: var(--warning-orange);
  color: var(--warning-orange);
}

.status-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.status-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.status-message p {
  margin-bottom: 0.25rem;
}

.reference-box {
  display: inline-block;
  border: 2px solid var(--navimag-red);
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navimag-red);
  background-color: transparent;
  text-align: center;
  max-width: 100%;
  word-break: break-word;
}

.amount-box {
  display: inline-block;
  border: 2px solid var(--navimag-teal);
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navimag-teal);
  background-color: transparent;
}

/* Botones */
.btn-navimag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  height: var(--button-height);
  padding: 0 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navimag-red);
  border: none;
  color: var(--text-white);
  text-decoration: none;
}

.btn-navimag:hover:not(:disabled) {
  background-color: #8B2D2C;
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-navimag:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Contenedor del botón de PayPal */
#paypal-button-container {
  max-width: 350px;
  margin: 0 auto;
}

/* Loader */
.loader-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-spinner .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navimag-red);
  animation: loader-spin 1.2s linear infinite;
}

.loader-spinner .dot:nth-child(1) { top: 8px; left: 36px; animation-delay: 0s; }
.loader-spinner .dot:nth-child(2) { top: 16px; left: 56px; animation-delay: -0.15s; }
.loader-spinner .dot:nth-child(3) { top: 32px; left: 64px; animation-delay: -0.3s; }
.loader-spinner .dot:nth-child(4) { top: 48px; left: 56px; animation-delay: -0.45s; }
.loader-spinner .dot:nth-child(5) { top: 56px; left: 36px; animation-delay: -0.6s; }
.loader-spinner .dot:nth-child(6) { top: 48px; left: 16px; animation-delay: -0.75s; }
.loader-spinner .dot:nth-child(7) { top: 32px; left: 8px; animation-delay: -0.9s; }
.loader-spinner .dot:nth-child(8) { top: 16px; left: 16px; animation-delay: -1.05s; }

@keyframes loader-spin {
  0%, 20% { transform: scale(0); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0); opacity: 0.3; }
}

@media (max-width: 768px) {
  .status-card {
    padding: 2rem 1.25rem;
    margin-top: 1.5rem;
  }

  .status-title {
    font-size: 1.5rem;
  }
}
