/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-height: 44px;
  box-sizing: border-box;
  line-height: 1.2;
}

/* Botón primario */
.btn-primary {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
  color: #000;
  background: linear-gradient(135deg, #ffd700 0%, #f0b90b 100%);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

/* Botón secundario */
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Botón de peligro/eliminación */
.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  color: #fff;
}

.btn-danger:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Botón outline */
.btn-outline {
  background: transparent;
  color: #f0b90b;
  border: 2px solid #f0b90b;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(240, 185, 11, 0.1);
  border-color: #ffd700;
  color: #ffd700;
  transform: translateY(-1px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* CTA Button (para homepage principalmente) */
.cta-button {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
  background: linear-gradient(135deg, #ffd700 0%, #f0b90b 100%);
  color: #000;
}

.cta-button.small {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Efecto click */
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:active::after {
  opacity: 1;
  transform: scale(50, 50) translate(-50%);
  transition: all 0.5s ease-out;
}

/* Tamaños de botones */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

/* Botón de bloque (ancho completo) */
.btn-block {
  width: 100%;
  display: flex;
}

/* Estados deshabilitados */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled:hover,
.btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

.btn-primary {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
}

.cta-button {
  background: #f0b90b;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  background: #dba700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta-button.small {
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Efecto click */
.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:active::after {
  opacity: 1;
  transform: scale(50, 50) translate(-50%);
  transition: all 0.5s ease-out;
}

/* --- PLANES --- */
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.plan-card {
  background: #fff;
  color: #000;
  border-radius: 1rem;
  padding: 2rem;
  width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  
  /* Flexbox para alinear contenido */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card .cta-button {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto; /* Empuja el botón hacia abajo */
}

.plan-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.plan-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  text-align: left;
  flex-grow: 1; /* Ocupa el espacio disponible */
}

.plan-card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.plan-card ul li::before {
  content: "✔";
  color: #1d7a43;
  margin-right: 0.5rem;
}

.plan-card.free {
  border: 2px solid #f0b90b;
  background: #fefefe;
}

.plan-card.premium {
  border: 2px solid #ffd700;
  background: #fffbe6;
}

.plan-card.pro {
  background: #fff0d0;
  border: 2px solid #eba102;
  color: #000;
}

.plan-card.pro:hover {
  box-shadow: 0 8px 16px rgba(224, 153, 0, 0.25);
  transform: translateY(-2px);
}

.plan-card.pro .plan-badge {
  background-color: #eba102;
  color: #000;
}

.plan-card.pro h3 {
  color: #eba102;
}

.plan-card.pro .price {
  color: #eba102;
}

.plan-card.pro ul li::before {
  color: #eba102;
}

/* --- GESTIÓN DE PLANES --- */
.plan-price {
  margin: 1.5rem 0;
  text-align: center;
}

.plan-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f0b90b;
  display: block;
}

.plan-price .period {
  font-size: 1rem;
  color: #999;
  display: block;
  margin-top: 0.5rem;
}

.plan-features {
  margin: 2rem 0;
}

.plan-features h4 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.plan-features ul {
  list-style: none;
  padding: 0;
}

.plan-features ul li {
  padding: 0.5rem 0;
  color: #e0e0e0;
  position: relative;
  padding-left: 1.5rem;
}

.plan-features ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00d084;
  font-weight: bold;
}

.plan-actions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-header h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.plan-change-card,
.plan-pending-card {
  background: linear-gradient(135deg, #132b1e 0%, #1a3a29 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(240, 185, 11, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.plan-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2rem 0;
  text-align: center;
}

.plan-current,
.plan-target {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.plan-arrow {
  font-size: 2rem;
  color: #f0b90b;
  font-weight: bold;
}

.plan-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
  text-transform: uppercase;
}

.plan-badge.current {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
}

.plan-badge.target {
  background: linear-gradient(135deg, #00d084 0%, #00b86f 100%);
  color: #fff;
}

.plan-badge.free {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: #fff;
}

.plan-badge.premium {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
}

.plan-badge.pro {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
}

.warning-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 10px;
  margin: 2rem 0;
}

.warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.warning-content h4 {
  color: #ffc107;
  margin-bottom: 1rem;
}

.warning-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.timeline-info {
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.timeline-info h4 {
  color: #00d9ff;
  margin-bottom: 1rem;
}

.timeline-info ul {
  margin: 0;
  padding-left: 1.5rem;
}

.timeline-info li {
  margin-bottom: 0.5rem;
}

.plan-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.current-plan-card,
.plan-options-card {
  background: linear-gradient(135deg, #132b1e 0%, #1a3a29 100%);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(240, 185, 11, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.plan-change-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upgrade-option,
.downgrade-option {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}


.upgrade-option:hover {
  border-color: rgba(0, 208, 132, 0.5);
  background: rgba(0, 208, 132, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 208, 132, 0.2);
}

.downgrade-option:hover {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.upgrade-option h4 {
  color: #00d084;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.downgrade-option h4 {
  color: #ffc107;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.upgrade-option p,
.downgrade-option p {
  color: #ccc;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Asegurar que los botones dentro de las opciones tengan el ancho completo */
.upgrade-option .btn,
.downgrade-option .btn {
  width: 100%;
  justify-content: center;
}

.plan-options-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .plan-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .plan-arrow {
    transform: rotate(90deg);
  }
  
  .plan-manage-grid {
    grid-template-columns: 1fr;
  }
  
  .upgrade-option .btn,
  .downgrade-option .btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* --- ANÁLISIS --- */
.analisis-card {
  background-color: #1e2d24;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.analisis-texto {
  background-color: #18382e;
  padding: 1.5rem;
  border-left: 5px solid #f0b90b;
  border-radius: 8px;
  color: #fff;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background-color: #18382e;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.how-it-works h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.how-it-works .subtitle {
  font-size: 18px;
  margin-bottom: 40px;
  color: #ccc;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.step-card {
  background-color: #245341;
  padding: 30px 20px;
  border-radius: 16px;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-icon {
  width: 60px;
  margin-bottom: 20px;
}

.step-card h3 {
  color: #ffcc00;
  margin-bottom: 10px;
}

/* --- ALERTAS --- */
.alert {
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.15);
  color: #e55;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-info {
  background-color: rgba(0, 123, 255, 0.15);
  color: #36a;
  border: 1px solid rgba(0, 123, 255, 0.3);
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.15);
  color: #3c6;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* --- ESTADO VACÍO --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  min-height: 300px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #f0b90b;
  font-weight: 600;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 500px;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background: #1e2d24;
  border-radius: 10px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  padding: 1.5rem;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #f0b90b;
}

.modal-content p {
  margin-bottom: 1.5rem;
  color: #fff;
}

#modalOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#modalOverlay.active {
  display: block;
  opacity: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background-color: transparent;
  color: #ccc;
  border: 1px solid #ccc;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

/* --- NOTIFICACIONES --- */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background-color: rgba(30, 45, 36, 0.9);
  color: white;
  border-radius: 8px;
  z-index: 1100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification.active {
  transform: translateY(0);
  opacity: 1;
}

.notification.success {
  border-left: 4px solid #4caf50;
}

.notification.error {
  border-left: 4px solid #f44336;
}

.notification.info {
  border-left: 4px solid #2196f3;
}

/* --- MIS APUESTAS --- */

.apuestas-container {
  margin-top: 2rem;
}

.apuestas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filtro-select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.apuestas-stats {
  display: flex;
  gap: 1rem;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 80px;
}

.stat-card.success {
  background-color: rgba(76, 175, 80, 0.2);
}

.stat-card.danger {
  background-color: rgba(244, 67, 54, 0.2);
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.apuestas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.apuesta-card {
  background-color: #1e2d24;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apuesta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.apuesta-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.apuesta-fecha {
  color: rgba(255, 255, 255, 0.6);
}

.apuesta-estado {
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.apuesta-estado.pendiente {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.apuesta-estado.ganada {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.apuesta-estado.perdida {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.apuesta-partido {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 600;
}

.apuesta-detalles {
  margin-bottom: 1.5rem;
  flex: 1;
}

.apuesta-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.detalle-label {
  color: rgba(255, 255, 255, 0.6);
}

.detalle-valor {
  font-weight: 500;
}

.apuesta-acciones {
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.btn-outline {
  background-color: transparent;
  color: #f0b90b;
  border: 1px solid currentColor;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: rgba(240, 185, 11, 0.1);
}

/* --- BOTONES --- */
.btn {
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex; /* Cambiado de inline-block a inline-flex */
  align-items: center; /* Centrar verticalmente el contenido */
  justify-content: center; /* Centrar horizontalmente el contenido */
  white-space: nowrap;
  border: none; /* Para que los botones tengan el mismo estilo */
  cursor: pointer; /* Para el cursor en hover */
}


/* Botón primario */
.btn-primary {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
  background: linear-gradient(135deg, #ffd700 0%, #f0b90b 100%);
}

/* Botón secundario */
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Botón de peligro/eliminación */
.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Botón outline */
.btn-outline {
  background: transparent;
  color: #f0b90b;
  border: 2px solid #f0b90b;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: rgba(240, 185, 11, 0.1);
  border-color: #ffd700;
  color: #ffd700;
  transform: translateY(-1px);
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, #f0b90b 0%, #ffd700 100%);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(240, 185, 11, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(240, 185, 11, 0.4);
}

/* Tamaños de botones */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 52px;
}

.btn-block {
  width: 100%;
}

/* Estados deshabilitados */
.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* --- MODALES --- */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a3a29 0%, #245a3c 100%);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  min-width: 400px;
  border: 2px solid rgba(240, 185, 11, 0.3);
}

.modal.active {
  display: block;
  animation: modalFadeIn 0.3s ease;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: block;
  animation: overlayFadeIn 0.3s ease;
}

.modal-content h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-content p {
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- PÁGINA DE ANÁLISIS --- */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  color: #999;
  font-size: 1.1rem;
}

/* Card de detalle de apuesta */
.bet-detail-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #333;
}

.bet-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.match-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.match-date {
  color: #999;
  font-size: 0.9rem;
}

.bet-status .badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge-success {
  background: linear-gradient(135deg, #00d084 0%, #00b86f 100%);
  color: #fff;
}

.badge-danger {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: #fff;
}

.badge-pending {
  background: linear-gradient(135deg, #f0b90b 0%, #c99500 100%);
  color: #000;
}

.bet-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bet-detail-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bet-detail-row .full-width {
  grid-column: 1 / -1;
}

.bet-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bet-detail-item .label {
  color: #999;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bet-detail-item .value {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
}

.odds-value {
  color: #f0b90b;
  font-size: 1.5rem;
}

.profit-value {
  font-size: 1.8rem;
  font-weight: 700;
}

.profit-value.positive {
  color: #00d084;
}

.profit-value.negative {
  color: #ff4444;
}

/* Card de análisis IA */
.ai-analysis-card {
  background: linear-gradient(135deg, #0a1929 0%, #1a2332 100%);
  border-radius: 15px;
  padding: 0;
  margin-bottom: 2rem;
  border: 1px solid #00d9ff33;
  overflow: hidden;
}

.ai-analysis-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #00d9ff22 0%, transparent 100%);
  border-bottom: 1px solid #00d9ff33;
}

.ai-icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 10px;
}

.ai-analysis-header h3 {
  font-size: 1.5rem;
  color: #00d9ff;
  margin: 0;
}

.ai-analysis-body {
  padding: 2rem;
}

.analysis-content {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.analysis-content p {
  margin-bottom: 1rem;
}

.analysis-content strong {
  color: #00d9ff;
}

.loading-analysis {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-analysis .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-top-color: #00d9ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-analysis p {
  color: #999;
}

/* Botones de acción */
.action-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- PÁGINA DE ACTUALIZAR APUESTA --- */
.bet-summary-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #333;
}

.bet-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.bet-summary-header h3 {
  font-size: 1.3rem;
  margin: 0;
}

.bet-summary-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item .label {
  color: #999;
}

.summary-item .value {
  color: #fff;
  font-weight: 600;
}

.odds-highlight {
  color: #f0b90b;
  font-size: 1.3rem;
}

/* Formulario de actualización */
.update-form-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #333;
}

.result-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.result-option input[type="radio"] {
  display: none;
}

.result-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px solid #333;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1a1a1a;
  text-align: center;
}

.result-label:hover {
  border-color: #00d9ff;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.result-option input[type="radio"]:checked + .result-label {
  border-color: #f0b90b;
  background: linear-gradient(135deg, #1a1a1a 0%, rgba(240, 185, 11, 0.15) 100%);
  box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
}

.result-label .icon {
  font-size: 2rem;
}

.result-label .text {
  font-weight: 600;
  color: #fff;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  color: #999;
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.button-icon {
  margin-right: 0.5rem;
}

/* Info box */
.info-box {
  display: flex;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.05) 0%, rgba(0, 217, 255, 0.02) 100%);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #00d9ff;
}

.info-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.info-content li {
  margin-bottom: 0.5rem;
  color: #e0e0e0;
}

.btn-analyze-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1fa25a 0%, #24c06f 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(31, 162, 90, 0.3);
}

.btn-analyze-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 162, 90, 0.5);
  background: linear-gradient(135deg, #24c06f 0%, #1fa25a 100%);
}

.btn-analyze-all .btn-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive */
@media (max-width: 768px) {
  .bet-detail-row {
    grid-template-columns: 1fr;
  }
  
  .result-options {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .bet-detail-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .bet-summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
