/* ========================================
   SOCIOS MODULE STYLES - PREMIUM EDITION
   Portal del Socio - Once Unidos
   ======================================== */

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de colores del club Once Unidos - Verde y Blanco */
  --primary-gradient: linear-gradient(135deg, #008440 0%, #006633 100%);
  --secondary-gradient: linear-gradient(135deg, #00a854 0%, #008440 100%);
  --success-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --warning-gradient: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --info-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);

  /* Colores sólidos del club */
  --primary-color: #008440;
  --primary-dark: #006633;
  --secondary-color: #00a854;
  --accent-color: #22c55e;
  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #ef4444;
  --info-color: #3b82f6;

  /* Grises modernos */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Sombras premium */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px rgba(0, 132, 64, 0.3);
  --shadow-glow-success: 0 0 20px rgba(34, 197, 94, 0.3);
  --shadow-glow-warning: 0 0 20px rgba(234, 179, 8, 0.3);

  /* Bordes redondeados */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animaciones de fondo premium */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #f8fafc;
  overflow: hidden;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 132, 64, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 168, 84, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  animation: float 30s ease-in-out infinite;
}

.bg-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(0,132,64,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(0,132,64,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(0,132,64,0.03)"/><circle cx="10" cy="60" r="0.5" fill="rgba(0,132,64,0.03)"/><circle cx="90" cy="40" r="0.5" fill="rgba(0,132,64,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 25s ease-in-out infinite reverse;
}

/* Elementos flotantes animados - Optimizado para rendimiento */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  transform: translateZ(0); /* Fuerza aceleración por hardware */
}

.floating-circle {
  position: absolute;
  border-radius: 20%;
  background: rgba(0, 132, 64, 0.08);
  animation: floatUp 20s infinite linear;
  transform: rotate(45deg) translateZ(0);
  will-change: transform;
}

.floating-loading {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(0, 132, 64, 0.15);
  border-radius: 50%;
  border: 2px solid rgba(0, 132, 64, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatAround 30s infinite ease-in-out;
  opacity: 0.6;
  transform: translateZ(0);
  will-change: transform;
}

.floating-loading::before {
  content: '';
  width: 40px;
  height: 40px;
  background-image: var(--loading-bg, url('../../assets/images/loading.gif'));
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: spin 8s linear infinite;
  opacity: 0.6;
  transform: translateZ(0);
  will-change: transform;
  image-rendering: optimizeSpeed; /* Optimiza la renderización del GIF */
}

.floating-circle:nth-child(1) {
  width: 60px;
  height: 60px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.floating-circle:nth-child(2) {
  width: 40px;
  height: 40px;
  left: 20%;
  animation-delay: 5s;
  animation-duration: 30s;
}

.floating-circle:nth-child(3) {
  width: 80px;
  height: 80px;
  left: 80%;
  animation-delay: 10s;
  animation-duration: 35s;
}

.floating-circle:nth-child(4) {
  width: 30px;
  height: 30px;
  left: 70%;
  animation-delay: 15s;
  animation-duration: 20s;
}

.floating-circle:nth-child(5) {
  width: 50px;
  height: 50px;
  left: 50%;
  animation-delay: 8s;
  animation-duration: 28s;
}

.floating-loading:nth-child(6) {
  left: 15%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.floating-loading:nth-child(7) {
  left: 80%;
  top: 60%;
  animation-delay: 8s;
  animation-duration: 35s;
}

.floating-loading:nth-child(8) {
  left: 50%;
  top: 80%;
  animation-delay: 15s;
  animation-duration: 30s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatAround {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -20px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, -40px) rotate(180deg);
  }
  75% {
    transform: translate(-40px, 20px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(1deg) scale(1.05);
  }
  66% {
    transform: translateY(20px) rotate(-1deg) scale(0.95);
  }
}

/* Optimización para dispositivos con preferencia de rendimiento */
@media (prefers-reduced-motion: reduce) {
  .floating-circle,
  .floating-loading,
  .floating-loading::before,
  .floating-icon {
    animation: none !important;
  }

  .bg-animation::before,
  .bg-animation::after {
    animation: none !important;
  }
}

/* Optimización para dispositivos móviles de gama baja */
@media (max-width: 768px) and (max-height: 600px) {
  .floating-elements {
    display: none; /* Oculta elementos flotantes en pantallas pequeñas */
  }
}

/* Header moderno con glassmorphism */
.modern-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 132, 64, 0.1);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.club-logo {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  animation: gentle-pulse 4s ease-in-out infinite;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

@keyframes gentle-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
  }
  50% {
    transform: scale(1.03);
    box-shadow: var(--shadow-2xl), 0 0 25px rgba(0, 132, 64, 0.4);
  }
}

.club-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.club-info h1 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.025em;
}

.club-info p {
  color: var(--gray-600);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Contenedor principal */
.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

/* Desktop: usar más ancho */
@media (min-width: 992px) {
  .main-container {
    padding: 2rem 2rem;
  }

  .main-container .container {
    max-width: 1200px;
  }

  .main-container .row {
    justify-content: center;
  }

  .main-container .col-lg-6 {
    max-width: 600px;
    flex: 0 0 600px;
  }
}

/* Contenedor principal para index */
.main-container.index {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
}

/* Card principal premium con glassmorphism */
.main-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 450px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
}

/* Main card con colores según estado */
.main-card.rejected {
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

.main-card.rejected::before {
  background: var(--danger-gradient);
}

/* Desktop: card más ancho */
@media (min-width: 992px) {
  .main-card {
    max-width: 600px;
  }
}

.main-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 40px rgba(0, 132, 64, 0.2);
}

.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.main-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 132, 64, 0.02) 0%, rgba(0, 102, 51, 0.02) 100%);
  pointer-events: none;
}

.card-content {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Desktop: más padding */
@media (min-width: 992px) {
  .card-content {
    padding: 3rem 2.5rem;
  }
}

/* Asegurar que el main-card sea visible */
.main-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Animación de entrada para main-card */
.main-card.fade-in {
  animation: fadeInCard 1s ease-in-out;
}

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

/* Cards modernos premium */
.modern-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 2.5rem;
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(255, 255, 255, 0.3), 0 0 30px rgba(0, 132, 64, 0.15);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.modern-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 132, 64, 0.02) 0%, rgba(0, 102, 51, 0.02) 100%);
  pointer-events: none;
}


.card-header {
  background: var(--primary-gradient);
  color: white;
  padding: 2rem 2.5rem;
  border: none;
  position: relative;
  z-index: 1;
}

.card-header h3 {
  margin: 0;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  letter-spacing: -0.025em;
}

.card-header i {
  font-size: 1.4rem;
  opacity: 0.9;
}

.card-body {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

/* Desktop: más padding para card-body */
@media (min-width: 992px) {
  .card-body {
    padding: 3rem 2.5rem;
  }
}

/* Icono principal premium */
/* Header principal con icono y título en la misma fila */
.main-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.main-titles {
  flex: 1;
}

.main-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 132, 64, 0.3);
  animation: gentle-float 6s ease-in-out infinite;
  flex-shrink: 0;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.main-icon::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  opacity: 0.2;
  animation: gentle-ring 4s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

@keyframes gentle-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.2;
  }
}

.main-icon i {
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

/* Estilos para iconos de estado de pago */
.main-icon.success {
  background: var(--success-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(34, 197, 94, 0.4);
}

.main-icon.danger {
  background: var(--danger-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(239, 68, 68, 0.4);
}

.main-icon.warning {
  background: var(--warning-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(234, 179, 8, 0.4);
}

.main-icon.info {
  background: var(--info-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.4);
}

/* Títulos premium */
.main-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: left;
}

/* Títulos con colores según estado */
.main-title.success {
  color: var(--success-color);
}

.main-title.danger {
  color: var(--danger-color);
}

.main-title.warning {
  color: var(--warning-color);
}

.main-title.info {
  color: var(--info-color);
}

.main-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

/* Subtítulos con colores según estado */
.main-subtitle.danger {
  color: var(--danger-color);
  font-weight: 600;
}

.main-subtitle.warning {
  color: var(--warning-color);
  font-weight: 600;
}

/* Formulario premium */
.form-group {
  margin-bottom: 2rem;
  text-align: left;
}

.form-label {
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 1rem;
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.form-label i {
  margin-right: 0.75rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 132, 64, 0.1), var(--shadow-md);
  transform: translateY(-2px);
  background: white;
}

.form-control::placeholder {
  color: var(--gray-400);
  font-weight: 500;
}

.form-help {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  text-align: center;
  font-weight: 500;
}

/* Botón principal premium */
.main-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(0, 132, 64, 0.1);
  border: 2px solid #008440;
  border-radius: var(--radius-xl);
  color: #006633;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 132, 64, 0.2);
  letter-spacing: -0.025em;
}

.main-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 132, 64, 0.2), transparent);
  transition: left 0.6s ease;
}

.main-btn:hover::before {
  left: 100%;
}

.main-btn:hover {
  background: rgba(0, 132, 64, 0.2);
  border-color: #006633;
  color: #004d26;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 132, 64, 0.3);
}

.main-btn:active {
  transform: translateY(-1px);
}

.main-btn i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Spinner para botón */
.main-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.main-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

.main-btn.loading .spinner {
  display: inline-block;
}

.main-btn.loading .btn-text {
  display: none;
}

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

/* Contenedor de resultados */
#resultsContainer {
  margin-top: 2rem;
  animation: fadeInUp 0.5s ease-out;
}

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

/* Toast Notifications - Simple y Elegante */
.toast-container {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
  border: none;
  padding: 20px 24px;
  min-width: 380px;
  max-width: 450px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  pointer-events: auto;
  margin-bottom: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.toast.show {
  display: inline-flex;
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #22c55e;
}

.toast-success .toast-icon {
  background: #22c55e;
  color: #ffffff;
}

.toast-success .toast-content {
  color: #15803d;
}

.toast-warning {
  border-left: 4px solid #eab308;
}

.toast-warning .toast-icon {
  background: #eab308;
  color: #ffffff;
}

.toast-warning .toast-content {
  color: #a16207;
}

.toast-danger {
  border-left: 4px solid #ef4444;
}

.toast-danger .toast-icon {
  background: #ef4444;
  color: #ffffff;
}

.toast-danger .toast-content {
  color: #991b1b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
  background: #3b82f6;
  color: #ffffff;
}

.toast-info .toast-content {
  color: #1d4ed8;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.toast-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50%;
  z-index: 1;
}

.toast-icon i {
  position: relative;
  z-index: 3;
}

.toast-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
}

.toast-close {
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast-close:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animaciones modernas y elegantes */
@keyframes slideIn {
  from {
    transform: translateX(calc(100% + 30px)) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(calc(100% + 30px)) scale(0.8);
    opacity: 0;
  }
}

.toast.slide-in {
  animation: slideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.slide-out {
  animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Información del socio premium */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.info-item {
  background: rgba(0, 132, 64, 0.05);
  border: 1px solid rgba(0, 132, 64, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.info-item:hover::before {
  transform: scaleX(1);
}

.info-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 132, 64, 0.15);
  border-color: rgba(0, 132, 64, 0.2);
}

.info-label {
  font-weight: 700;
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
}

.info-value {
  color: var(--gray-800);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.status-badge {
  background: var(--success-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estado de cuenta premium */
.account-status {
  text-align: center;
  padding: 3rem 2rem;
}

.status-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: white;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.status-icon::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: var(--radius-full);
  opacity: 0.3;
  animation: pulse-ring 2s ease-in-out infinite;
}

.status-icon.success {
  background: var(--success-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(16, 185, 129, 0.4);
}

.status-icon.success::before {
  background: var(--success-gradient);
}

.status-icon.warning {
  background: var(--warning-gradient);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(245, 158, 11, 0.4);
}

.status-icon.warning::before {
  background: var(--warning-gradient);
}

.status-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.status-title.success {
  background: var(--success-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-title.warning {
  background: var(--warning-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-message {
  color: var(--gray-600);
  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 500;
  max-width: 400px;
  margin: 0 auto;
}

/* Resumen de deuda premium */
.debt-summary {
  background: var(--warning-gradient);
  border: 1px solid rgba(246, 173, 85, 0.3);
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.debt-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.debt-amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 0.75rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.debt-label {
  font-size: 1.3rem;
  color: #92400e;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.debt-count {
  background: rgba(146, 64, 14, 0.15);
  color: #92400e;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  border: 1px solid rgba(146, 64, 14, 0.2);
  position: relative;
  z-index: 1;
}

/* Tabla de deudas premium */
.debt-table {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 2.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.debt-table thead th {
  background: var(--danger-gradient);
  color: white;
  font-weight: 700;
  padding: 1.5rem 1rem;
  border: none;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debt-table tbody td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  text-align: center;
  vertical-align: middle;
  font-weight: 500;
  transition: all 0.2s ease;
}

.debt-table tbody tr:hover {
  background: rgba(0, 132, 64, 0.05);
  transform: scale(1.01);
}

.debt-table tbody tr:last-child td {
  border-bottom: none;
}

.debt-amount-cell {
  font-weight: 800;
  color: #dc2626;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.overdue {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626;
  font-weight: 700;
}

/* Botón de pago premium */
.payment-btn {
  background: var(--success-gradient);
  border: none;
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-xl);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
  letter-spacing: -0.025em;
}

.payment-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.payment-btn:hover::before {
  left: 100%;
}

.payment-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl), 0 0 30px rgba(16, 185, 129, 0.4);
}

.payment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* Botón de nueva consulta premium */
.new-search-btn {
  background: rgba(0, 132, 64, 0.1);
  border: 2px solid #008440;
  color: #006633;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  letter-spacing: -0.025em;
  box-shadow: 0 4px 15px rgba(0, 132, 64, 0.2);
  margin-top: 1.5rem;
}

.new-search-btn:hover {
  background: rgba(0, 132, 64, 0.2);
  color: #004d26;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 132, 64, 0.3);
  border-color: #006633;
}

/* Información adicional premium */
.info-section {
  margin-top: 2.5rem;
  padding: 2rem;
  background: rgba(0, 132, 64, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 132, 64, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.info-section p {
  color: var(--gray-700);
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
}

.info-section i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Estilos específicos para diferentes estados de pago */
.info-section-approved {
  background: rgba(34, 197, 94, 0.05);
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.info-section-approved::before {
  background: var(--success-gradient);
}

.info-section-approved i {
  color: var(--success-color);
}

.info-section-rejected {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.info-section-rejected::before {
  background: var(--danger-gradient);
}

.info-section-rejected i {
  color: var(--danger-color);
}

.info-section-pending {
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.1);
}

.info-section-pending::before {
  background: var(--warning-gradient);
}

.info-section-pending i {
  color: var(--warning-color);
}

/* Estilos para payment-info según estado */
.payment-info.rejected {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.payment-info.rejected .info-label-mobile {
  color: var(--danger-color);
}

.payment-info.rejected .info-value-mobile {
  color: var(--danger-color);
  font-weight: 700;
}

/* Footer premium */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 10;
}

.footer p {
  color: #374151;
  font-size: 0.95rem;
  margin: 0;
  font-weight: 500;
}

.footer a {
  color: #008440;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.footer a:hover {
  color: #006633;
  text-decoration: none;
}

.footer a:hover::after {
  width: 100%;
}

/* Estilos Mobile-Friendly para Resultados */
.socio-type-badge {
  background: var(--primary-gradient);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-grid-mobile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* Desktop: grid más espacioso */
@media (min-width: 992px) {
  .info-grid-mobile {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .info-item-mobile {
    padding: 1rem;
  }

  .info-item-mobile.full-width {
    grid-column: 1 / -1;
  }

  /* Asegurar que el email no se corte */
  .info-value-mobile {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Estilos específicos para email */
  .info-item-mobile.full-width .info-value-mobile {
    font-size: 1rem;
    line-height: 1.4;
  }
}

.info-item-mobile {
  background: rgba(0, 132, 64, 0.05);
  border: 1px solid rgba(0, 132, 64, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.info-item-mobile.full-width {
  grid-column: 1 / -1;
}

.info-item-mobile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 132, 64, 0.2);
}

.info-label-mobile {
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value-mobile {
  color: var(--gray-800);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.status-badge-mobile {
  background: var(--success-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debt-section-integrated {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(0, 132, 64, 0.1);
}

.debt-summary-mobile {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1rem;
  margin: 1rem 0;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
  overflow: visible;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.debt-summary-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #d97706, #f59e0b);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}


@keyframes float-icon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(5deg);
  }
}

/* Icono flotante personalizado */
.floating-icon {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: float-icon 3s ease-in-out infinite;
}

.floating-icon i {
  color: white;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Icono flotante para estado sin deuda */
.debt-summary-mobile.no-debt .floating-icon {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Desktop: card de deuda más espacioso */
@media (min-width: 992px) {
  .debt-summary-mobile {
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
  }
}

.debt-summary-mobile.no-debt {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.debt-summary-mobile.no-debt::before {
  background: linear-gradient(90deg, #22c55e, #16a34a, #22c55e);
}


/* Efecto hover sutil para el card */
.debt-summary-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.debt-summary-mobile.no-debt:hover {
  box-shadow: 0 12px 35px rgba(34, 197, 94, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.debt-header-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.debt-header-mobile i {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.debt-amount-mobile {
  font-size: 2.2rem;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: break-all;
  line-height: 1.1;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Desktop: monto más grande */
@media (min-width: 992px) {
  .debt-amount-mobile {
    font-size: 2.8rem;
  }
}

.debt-label-mobile {
  font-size: 1rem;
  color: #92400e;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debt-description-mobile {
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Estilos para estado sin deuda */
.debt-header-mobile.success {
  color: #16a34a;
  position: relative;
  z-index: 2;
}

.debt-header-mobile.success i {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.debt-amount-mobile.success {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  text-shadow: none;
}

.debt-label-mobile.success {
  color: #16a34a;
  position: relative;
  z-index: 2;
}

.debt-description-mobile.success {
  color: #16a34a;
  position: relative;
  z-index: 2;
}

.payment-section-mobile {
  text-align: center;
  margin-top: 1.5rem;
}

.payment-btn-mobile {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid #22c55e;
  color: #16a34a;
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
  letter-spacing: -0.025em;
  width: 100%;
  max-width: 300px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.payment-btn-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.2), transparent);
  transition: left 0.6s ease;
}

.payment-btn-mobile:hover::before {
  left: 100%;
}

.payment-btn-mobile:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: #16a34a;
  color: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.payment-btn-mobile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.payment-btn-mobile .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

.payment-btn-mobile.loading .spinner {
  display: inline-block;
}

.payment-btn-mobile.loading .btn-text {
  display: none;
}

.payment-info-mobile {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

/* Responsive Premium */
@media (max-width: 768px) {
  .main-container {
    padding: 1.5rem 1rem;
  }

  .card-content {
    padding: 2.5rem 2rem;
  }

  .card-body {
    padding: 2rem;
  }

  .card-header {
    padding: 1.5rem 2rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .debt-amount {
    font-size: 3rem;
  }

  .header-content {
    flex-direction: row;
    gap: 1rem;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .main-subtitle {
    font-size: 1.1rem;
  }

  .main-header {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
  }

  .main-icon {
    width: 70px;
    height: 70px;
  }

  .main-icon i {
    font-size: 2rem;
  }

  .main-title {
    text-align: left;
    font-size: 1.8rem;
  }

  .main-subtitle {
    text-align: left;
  }

  .club-info h1 {
    font-size: 1.8rem;
  }

  .club-logo {
    width: 60px;
    height: 60px;
  }

  .form-control {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .main-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .modern-header {
    padding: 1rem 0;
  }

  /* Botón de volver en mobile */
  .back-btn {
    padding: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(0, 132, 64, 0.1);
    border: 2px solid rgba(0, 132, 64, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 132, 64, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .back-btn:hover {
    background: rgba(0, 132, 64, 0.2);
    border-color: rgba(0, 132, 64, 0.4);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 132, 64, 0.25);
  }

  .back-btn:active {
    transform: translateY(0) scale(0.95);
  }

  .back-btn i {
    line-height: 1;
    color: #008440;
    transition: all 0.3s ease;
  }

  .back-btn:hover i {
    color: #006633;
    transform: translateX(-1px);
  }

  .back-btn span {
    display: none;
  }

  /* Toast responsive */
  .toast-container {
    top: 15px;
    right: 10px;
    left: 10px;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
    padding: 6px 10px;
  }

  .toast-content {
    font-size: 11px;
  }

  .toast-icon {
    font-size: 12px;
  }

  .toast-close {
    width: 14px;
    height: 14px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .card-content {
    padding: 2rem 1.5rem;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-header {
    padding: 1.25rem 1.5rem;
  }

  .main-header {
    flex-direction: row;
    text-align: left;
    gap: 0.75rem;
  }

  .main-icon {
    width: 60px;
    height: 60px;
  }

  .main-icon i {
    font-size: 1.6rem;
  }

  .main-title {
    text-align: left;
    font-size: 1.5rem;
  }

  .main-subtitle {
    text-align: left;
    font-size: 0.9rem;
  }

  .form-control {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
  }

  .main-btn {
    padding: 1rem 1.75rem;
    font-size: 1.1rem;
  }

  .debt-amount {
    font-size: 2.5rem;
  }

  .debt-table thead th,
  .debt-table tbody td {
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
  }

  .main-icon {
    width: 90px;
    height: 90px;
  }

  .main-icon i {
    font-size: 2.2rem;
  }

  .club-logo {
    width: 55px;
    height: 55px;
  }

  .club-info h1 {
    font-size: 1.6rem;
  }

  /* Botón de volver en mobile pequeño */
  .back-btn {
    padding: 0;
    width: 32px;
    height: 32px;
    background: rgba(0, 132, 64, 0.1);
    border: 2px solid rgba(0, 132, 64, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 132, 64, 0.15);
  }

  .back-btn:hover {
    background: rgba(0, 132, 64, 0.2);
    border-color: rgba(0, 132, 64, 0.4);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 132, 64, 0.25);
  }

  .back-btn i {
    line-height: 1;
    color: #008440;
    transition: all 0.3s ease;
  }

  .back-btn:hover i {
    color: #006633;
    transform: translateX(-1px);
  }

  /* Ajustes específicos para mobile */
  .info-grid-mobile {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-item-mobile {
    padding: 0.5rem;
  }

  .info-item-mobile.full-width {
    grid-column: 1;
  }

  .debt-amount-mobile {
    font-size: 1.8rem;
  }

  .debt-section-integrated {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .debt-summary-mobile {
    padding: 1.25rem 0.75rem;
    margin: 0.75rem 0;
  }

  .debt-header-mobile {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .debt-header-mobile i {
    font-size: 1rem;
  }

  .debt-amount-mobile {
    font-size: 1.8rem;
  }

  .debt-label-mobile {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .debt-description-mobile {
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }

  .socio-type-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
  }
}

/* Estilos para botones de acciones de deuda */
.debt-actions-mobile {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Contenedor del botón Ver Detalle dentro del card */
.debt-detail-btn-container {
  margin-top: 1rem;
  text-align: center;
}

.ver-detalle-btn {
  background: #ff6b35;
  border: 2px solid #ff6b35;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
  letter-spacing: -0.025em;
}

.ver-detalle-btn:hover {
  background: #e55a2b;
  border-color: #e55a2b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Modal de detalle de deudas */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  background: linear-gradient(135deg, #047857 0%, #059669 50%, #10b981 100%);
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(4, 120, 87, 0.3);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 2rem;
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}

/* Lista de detalles de deudas */
.debt-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.debt-detail-item {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  border-left: 3px solid;
  transition: all 0.3s ease;
}

.debt-detail-item.deudor {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.debt-detail-item.a-favor {
  border-left-color: #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.debt-detail-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.debt-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.debt-detail-concept {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.debt-detail-concept i {
  font-size: 1rem;
}

.debt-detail-item.deudor .debt-detail-concept i {
  color: #f59e0b;
}

.debt-detail-item.a-favor .debt-detail-concept i {
  color: #22c55e;
}

.debt-detail-amount {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: break-all;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.debt-detail-amount.deudor {
  color: #92400e;
}

.debt-detail-amount.a-favor {
  color: #16a34a;
}

.debt-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.debt-detail-info .label {
  font-weight: 600;
  color: var(--gray-600);
}

.debt-detail-info .value {
  color: var(--gray-800);
  font-weight: 500;
}

.debt-detail-info .value.deudor {
  color: #92400e;
  font-weight: 700;
}

.debt-detail-info .value.a-favor {
  color: #16a34a;
  font-weight: 700;
}

/* Resumen del modal */
.debt-detail-summary {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.summary-amount {
  font-size: 1.5rem;
  font-weight: 900;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: break-all;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.summary-amount.deudor {
  color: #fef3c7;
}

.summary-amount.a-favor {
  color: #dcfce7;
}

.summary-type {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Responsive para modal */
@media (max-width: 768px) {
  .modal-content {
    max-height: 90vh;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .debt-detail-item {
    padding: 1rem;
  }

  .debt-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .debt-detail-info {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .debt-actions-mobile {
    flex-direction: column;
    align-items: center;
  }

  .ver-detalle-btn,
  .payment-btn-mobile {
    width: 100%;
    max-width: 300px;
  }
}

/* ========================================
   ESTILOS PARA PANTALLA DE SELECCIÓN
   ======================================== */

/* Ajuste del main-container para pantalla de selección sin header */
.selection-page .main-container {
  padding-top: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Estilos específicos para el logo en main-icon de selección */
.selection-page .main-icon {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-full);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 132, 64, 0.2);
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 132, 64, 0.1);
}

.selection-page .main-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 132, 64, 0.4);
}

.selection-page .main-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* Responsive para el logo en selección */
@media (max-width: 768px) {
  .selection-page .main-icon {
    width: 90px;
    height: 90px;
  }

  .selection-page .main-icon img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .selection-page .main-icon {
    width: 90px;
    height: 90px;
  }

  .selection-page .main-icon img {
    width: 60px;
    height: 60px;
  }
}


/* ========================================
   ESTILOS PARA ESTACIONAMIENTO DIARIO
   ======================================== */

/* Display de precio */
.price-display {
  background: rgba(0, 132, 64, 0.05);
  border: 2px solid rgba(0, 132, 64, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-top: 0.5rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-description {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Información adicional */
.info-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
}

.info-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.info-title i {
  color: #3b82f6;
  font-size: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

.info-list li i {
  color: #3b82f6;
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Responsive para estacionamiento diario */
@media (max-width: 768px) {
  .price-display {
    padding: 1.25rem;
  }

  .price-amount {
    font-size: 2.2rem;
  }

  .price-description {
    font-size: 0.85rem;
  }

  .info-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
  }

  .info-title {
    font-size: 1rem;
  }

  .info-list li {
    font-size: 0.85rem;
    gap: 0.5rem;
  }

  .info-list li i {
    font-size: 0.9rem;
    width: 18px;
  }
}

@media (max-width: 480px) {
  .price-display {
    padding: 1rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .price-description {
    font-size: 0.8rem;
  }

  .info-section {
    margin-top: 1.25rem;
    padding: 1rem;
  }

  .info-title {
    font-size: 0.95rem;
  }

  .info-list li {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .info-list li i {
    font-size: 0.85rem;
    width: 16px;
  }
}

/* ========================================
   ESTILOS PARA MODAL QR
   ======================================== */

/* Modal del QR */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  box-sizing: border-box;
}

.qr-modal.show {
  opacity: 1;
  visibility: visible;
}

.qr-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  margin: auto;
}

.qr-modal.show .qr-modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-600);
}

.close-modal:hover {
  background: rgba(0, 0, 0, 0.2);
  color: var(--gray-800);
  transform: scale(1.1);
}

.qr-header {
  text-align: center;
  margin-bottom: 2rem;
}

.qr-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 0.5rem;
}

.qr-title i {
  font-size: 1.8rem;
}

.qr-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 132, 64, 0.05);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(0, 132, 64, 0.1);
}

.qr-code {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-info {
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.qr-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.qr-info-item:last-child {
  border-bottom: none;
}

.qr-info-label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.qr-info-value {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 0.9rem;
}

.qr-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.qr-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.qr-btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 132, 64, 0.3);
}

.qr-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 132, 64, 0.4);
}

.qr-btn-secondary {
  background: rgba(0, 0, 0, 0.1);
  color: var(--gray-700);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.qr-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Responsive para modal QR */
@media (max-width: 768px) {
  .qr-modal {
    padding: 0.5rem;
  }

  .qr-modal-content {
    padding: 1.5rem;
    width: 100%;
    max-height: calc(100vh - 1rem);
  }

  .qr-title {
    font-size: 1.3rem;
  }

  .qr-title i {
    font-size: 1.5rem;
  }

  .qr-subtitle {
    font-size: 0.9rem;
  }

  .qr-info {
    padding: 1.25rem;
  }

  .qr-info-item {
    padding: 0.5rem 0;
  }

  .qr-info-label,
  .qr-info-value {
    font-size: 0.85rem;
  }

  .qr-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .qr-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .qr-modal {
    padding: 0.25rem;
  }

  .qr-modal-content {
    padding: 1.25rem;
    width: 100%;
    max-height: calc(100vh - 0.5rem);
  }

  .qr-title {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .qr-title i {
    font-size: 1.3rem;
  }

  .qr-subtitle {
    font-size: 0.85rem;
  }

  .qr-info {
    padding: 1rem;
  }

  .qr-info-label,
  .qr-info-value {
    font-size: 0.8rem;
  }

  .qr-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   ESTILOS PARA CARNET DIGITAL
   ======================================== */

/* Sección del carnet digital */
.carnet-section {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 132, 64, 0.1);
}

/* Botón de carnet digital */
.carnet-btn-mobile {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.carnet-btn-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.carnet-btn-mobile:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.carnet-btn-mobile .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

/* Botón de carnet digital outlined */
.carnet-btn-outlined {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carnet-btn-outlined:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.carnet-btn-outlined:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.carnet-btn-outlined .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

/* Modal del carnet digital */
.carnet-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  box-sizing: border-box;
}

.carnet-modal.show {
  opacity: 1;
  visibility: visible;
}

.carnet-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  margin: auto;
}

.carnet-modal.show .carnet-modal-content {
  transform: scale(1);
}

.carnet-header {
  text-align: center;
  margin-bottom: 2rem;
}

.carnet-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.carnet-title i {
  font-size: 1.8rem;
}

.carnet-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.carnet-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(59, 130, 246, 0.1);
}

.carnet-canvas {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
}

.carnet-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.carnet-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 140px;
  justify-content: center;
}

.carnet-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.carnet-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.carnet-btn-secondary {
  background: rgba(0, 0, 0, 0.1);
  color: var(--gray-700);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.carnet-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Responsive para carnet digital */
@media (max-width: 768px) {
  .carnet-modal {
    padding: 0.5rem;
  }

  .carnet-modal-content {
    padding: 1.5rem;
    width: 100%;
    max-height: calc(100vh - 1rem);
  }

  .carnet-title {
    font-size: 1.3rem;
  }

  .carnet-title i {
    font-size: 1.5rem;
  }

  .carnet-subtitle {
    font-size: 0.9rem;
  }

  .carnet-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .carnet-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .carnet-modal {
    padding: 0.25rem;
  }

  .carnet-modal-content {
    padding: 1.25rem;
    width: 100%;
    max-height: calc(100vh - 0.5rem);
  }

  .carnet-title {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .carnet-title i {
    font-size: 1.3rem;
  }

  .carnet-subtitle {
    font-size: 0.85rem;
  }

  .carnet-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   ESTILOS PARA CARDS DE OPCIONES
   ======================================== */

/* Contenedor de opciones */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Cards de opciones */
.option-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(0, 132, 64, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 132, 64, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.option-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.option-card:hover::before {
  transform: scaleX(1);
}

.option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 132, 64, 0.2);
  border-color: rgba(0, 132, 64, 0.3);
  text-decoration: none;
  color: inherit;
}

/* Header de la opción */
.option-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Icono de la opción */
.option-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.option-icon.portal {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.option-icon.estacionamiento {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.option-icon.visitante {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.option-icon.socio {
  background: linear-gradient(135deg, #008440 0%, #006633 100%);
}

/* Cursor pointer para las tarjetas de opciones */
.option-card {
  cursor: pointer;
}

.option-card:hover .option-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Título de la opción */
.option-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lista de características */
.option-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-features li {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 132, 64, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.option-features li:last-child {
  border-bottom: none;
}

.option-features li i {
  color: var(--primary-color);
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

/* Responsive para opciones */
@media (max-width: 768px) {
  .options-container {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .option-card {
    padding: 1.25rem;
  }

  .option-header {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    justify-content: center;
  }

  .option-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .option-title {
    font-size: 1.2rem;
  }

  .option-features li {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    gap: 0.4rem;
  }

  .option-features li i {
    font-size: 0.75rem;
    width: 14px;
  }
}

@media (max-width: 480px) {
  .option-card {
    padding: 1rem;
  }

  .option-header {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .option-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .option-title {
    font-size: 1.1rem;
  }

  .option-features li {
    font-size: 0.8rem;
    padding: 0.3rem 0;
    gap: 0.3rem;
  }

  .option-features li i {
    font-size: 0.7rem;
    width: 12px;
  }
}

/* ===== ESTILOS ESPECÍFICOS PARA SELECCIÓN DE TIPO DE USUARIO ESTACIONAMIENTO ===== */
/* Solo agregar estilos que NO existen en el sistema */

/* Estilos específicos para el formulario de validación de socio */
.socio-form {
  background: linear-gradient(135deg, rgba(0, 132, 64, 0.05) 0%, rgba(0, 132, 64, 0.02) 100%);
  border: 2px solid rgba(0, 132, 64, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 1.5rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  color: #008440;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #6b7280;
  margin: 0;
}

/* Animación específica para las tarjetas de opciones */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ESTILOS PARA MODAL DE SELECCIÓN DE MIEMBROS DEL GRUPO FAMILIAR ===== */
.miembros-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem 0;
}

.miembro-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.miembro-item:hover {
  border-color: #008440;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 132, 64, 0.15);
}

.miembro-info {
  flex: 1;
}

.miembro-nombre {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.miembro-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.miembro-legajo,
.miembro-documento,
.miembro-categoria {
  font-size: 0.9rem;
  color: #6b7280;
}

.miembro-tipo {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.miembro-tipo.titular {
  background: linear-gradient(135deg, #008440 0%, #006633 100%);
  color: white;
}

.miembro-tipo.familiar {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

/* Responsive para modal de selección */
@media (max-width: 768px) {
  .miembro-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .miembro-tipo {
    align-self: flex-end;
  }

  .miembros-list {
    max-height: 300px;
  }
}

/* ========================================
   EVENTO ALERTA STYLES
   ======================================== */

.evento-alerta {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideInDown 0.5s ease-out;
}

.evento-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.evento-header i {
  color: #f59e0b;
  font-size: 1.5rem;
}

.evento-header h3 {
  color: #92400e;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.evento-info h4 {
  color: #92400e;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.evento-fecha,
.evento-precio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400e;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.evento-precio.gratis {
  color: #059669;
  font-weight: 600;
}

.evento-precio.gratis i {
  color: #059669;
}

.evento-nota {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 4px solid #f59e0b;
}

.evento-nota i {
  color: #f59e0b;
  font-size: 1rem;
}

.evento-nota span {
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Opción deshabilitada */
.option-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border: 2px solid #d1d5db;
}

.option-card.disabled:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.option-card.disabled .option-icon {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  color: #ffffff;
}

.option-card.disabled .option-title {
  color: #6b7280;
}

.option-card.disabled .option-description {
  color: #6b7280;
}

.disabled-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc2626;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* Animación para la alerta de evento */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   EVENTO INFO CARD STYLES (para estacionamiento diario)
   ======================================== */

.evento-info-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideInDown 0.5s ease-out;
}

.evento-info-card .evento-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.evento-info-card .evento-header i {
  color: #f59e0b;
  font-size: 1.5rem;
}

.evento-info-card .evento-header h3 {
  color: #92400e;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.evento-info-card .evento-details h4 {
  color: #92400e;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.evento-info-card .evento-fecha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400e;
  font-size: 0.95rem;
  margin: 0;
}

.price-free {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #059669;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.price-free i {
  color: #059669;
}

.remember-dni-wrapper {
  display: flex;
  justify-content: center;   /* centra horizontal */
  margin-top: 16px;          /* aire desde el input */
  margin-bottom: 22px;       /* aire hacia el botón */
}

.remember-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox .checkmark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #008440;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: #fff;
}

.remember-checkbox input {
  display: none;
}

.remember-checkbox input:checked + .checkmark {
  background: #008440;
}

.remember-checkbox input:checked + .checkmark::after {
  content: "✓";
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.remember-text {
  font-size: 14px;
  color: #2f2f2f;
  opacity: 0.85;
}


/* Responsive para alerta de evento */
@media (max-width: 768px) {
  .evento-alerta {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .evento-header h3 {
    font-size: 1.1rem;
  }

  .evento-info h4 {
    font-size: 1rem;
  }

  .evento-fecha,
  .evento-precio {
    font-size: 0.9rem;
  }

  .evento-nota {
    padding: 0.6rem;
  }

  .evento-nota span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .evento-alerta {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .evento-header {
    gap: 0.5rem;
  }

  .evento-header i {
    font-size: 1.25rem;
  }

  .evento-header h3 {
    font-size: 1rem;
  }

  .evento-info h4 {
    font-size: 0.95rem;
  }

  .evento-fecha,
  .evento-precio {
    font-size: 0.85rem;
  }

  .evento-nota {
    padding: 0.5rem;
  }

  .evento-nota span {
    font-size: 0.8rem;
  }
}