/* =======================================
   🎨 VARIABLES Y ESTILOS BASE - TEMA DARK
======================================= */

:root {
  --color-bg: #0f1419;
  --color-surface: #1a1f2e;
  --color-primary: #2e86de;
  --color-secondary: #54a0ff;
  --color-success: #10ac84;
  --color-error: #ee5253;
  --color-warning: #feca57;
  --color-text: #e0e0e0;
  --color-text-dim: #a0a0a0;
  --color-border: #2a2f3e;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --transition: 0.2s ease-in-out;
  font-family: "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* =======================================
   🧭 NAVBAR
======================================= */

nav.navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  box-shadow: var(--shadow);
}

nav.navbar h1 {
  font-size: 20px;
  color: var(--color-primary);
  font-weight: 600;
}

nav.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav.navbar ul li a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

nav.navbar ul li a:hover {
  color: var(--color-secondary);
}

/* =======================================
   🧱 CONTAINER
======================================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 25px 20px;
}

/* ===== HEADER ===== */

header {
  background: var(--color-primary);
  color: white;
  padding: 20px 25px;
  border-radius: var(--radius);
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  gap: 30px;
}

header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

/* User Info */
.user-info {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 0.95rem;
}

.user-info span {
  color: white;
}

.user-info strong {
  color: #fff;
}

/* Logout Button */
header button,
.btn-logout {
  background: var(--color-error);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
}

header button:hover,
.btn-logout:hover {
  background: #c0392b;
}

header button:active {
  transform: scale(0.98);
}

/* =======================================
   📦 MAIN Y SECCIONES
======================================= */

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

section.card h2 {
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 15px;
  margin-top: 0;
}

section p {
  margin: 8px 0;
  color: var(--color-text);
}

section p strong {
  color: var(--color-secondary);
}

section span {
  color: var(--color-text);
}

/* =======================================
   📋 TABLAS
======================================= */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  border: 1px solid var(--color-border);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: rgba(42, 47, 62, 0.5);
}

tr:hover {
  background: rgba(46, 134, 222, 0.15);
}

/* =======================================
   🧮 INPUTS, LABELS Y SELECTS
======================================= */

label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: inherit;
  margin-top: 5px;
  margin-bottom: 10px;
  transition: var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(46, 134, 222, 0.1);
}

input::placeholder {
  color: var(--color-text-dim);
}

/* Select Dropdown Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2354a0ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

/* Estilos para opciones del select */
select option {
  background: var(--color-surface);
  color: var(--color-text);
  padding: 8px;
}

select option:checked {
  background: var(--color-primary);
  color: white;
}

/* =======================================
   🔘 BOTONES
======================================= */

button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-weight: 500;
}

button:hover {
  background: var(--color-secondary);
}

button:active {
  transform: scale(0.98);
}

/* Botones Secundarios */
.btn-cerrar {
  background: var(--color-error);
}

.btn-cerrar:hover {
  background: #c0392b;
}

.input-group {
  margin-bottom: 15px;
}

.botones-tarea {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.botones-tarea button {
  flex: 1;
}

.paginacion {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* =======================================
   📊 RESUMEN Y SUBTOTALES
======================================= */

.subtotal {
  margin-top: 15px;
  padding: 10px;
  background: rgba(46, 134, 222, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-text);
}

.subtotal strong {
  color: var(--color-secondary);
}

.resumen-mes {
  margin-top: 15px;
  padding: 10px;
  background: rgba(46, 134, 222, 0.1);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-text);
}

.resumen-mes strong {
  color: var(--color-secondary);
}

.resumen-mes span {
  color: var(--color-secondary);
  font-weight: 600;
}

/* =======================================
   💬 ALERTAS
======================================= */

.alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: var(--radius);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  animation: slideDown 0.3s ease-out, slideUp 0.3s ease-out 3.7s forwards;
}

.alert-info {
  background: var(--color-secondary);
}

.alert-success {
  background: var(--color-success);
}

.alert-error {
  background: var(--color-error);
}

.alert-warning {
  background: var(--color-warning);
  color: #222;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
}

/* =======================================
   🦶 FOOTER
======================================= */

footer {
  text-align: center;
  color: var(--color-text-dim);
  margin-top: 40px;
  padding: 20px;
  font-size: 14px;
  border-top: 1px solid var(--color-border);
}

/* =======================================
   📱 RESPONSIVE
======================================= */

@media (max-width: 768px) {
  nav.navbar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  nav.navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .user-info {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    padding: 15px 10px;
  }

  section {
    padding: 15px;
  }

  table th, table td {
    padding: 8px;
    font-size: 0.9rem;
  }

  th, td {
    text-align: center;
  }

  .botones-tarea {
    flex-direction: column;
  }
}


body.login-body {
  background: #101018;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background: #181828;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  width: 320px;
}

.login-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #00e0ff;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 5px;
}

.login-form input {
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  outline: none;
}

.login-form button {
  background: #00bcd4;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.login-form button:hover {
  background: #009cb2;
}

.login-message {
  margin-top: 10px;
  font-size: 0.9rem;
  text-align: center;
}

.login-message.error {
  color: #ff6b6b;
}

.login-message.success {
  color: #4caf50;
}

/* =======================================
   🎨 ESTILOS PARA CONFIRMACIONES ADMIN
======================================= */

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* Items de confirmación */
.confirmacion-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-surface);
}

.confirmacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-info {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-text);
}

/* Badges de estado */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-pendiente { background: #F59E0B; color: black; }
.status-confirmado { background: #3B82F6; color: white; }
.status-guardado { background: #8B5CF6; color: white; }
.status-pagado { background: #10B981; color: white; }

/* Detalles de pago */
.payment-details {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
    border-left: 3px solid var(--color-primary);
}

.payment-details p {
    margin: 8px 0;
    color: var(--color-text);
}

.payment-details strong {
    color: var(--color-secondary);
}

/* =======================================
   🔘 ESTILOS PARA BOTONES DE ACCIÓN EN TABLAS
======================================= */

.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-edit, .btn-delete {
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-edit {
  background: var(--color-primary);
  color: white;
}

.btn-edit:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-delete {
  background: var(--color-error);
  color: white;
}

.btn-delete:hover {
  background: #c0392b;
  transform: translateY(-1px);
}

.btn-edit:active, .btn-delete:active {
  transform: translateY(0);
}

/* Responsive para botones en móviles */
@media (max-width: 768px) {
  .action-buttons {
    flex-direction: column;
    gap: 5px;
  }
  
  .btn-edit, .btn-delete {
    padding: 8px 12px;
    font-size: 0.7rem;
  }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius);
    min-width: 400px;
    max-width: 500px;
    border: 1px solid var(--color-border);
}

/* Sección de filtros */
.filter-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-section select {
    flex: 1;
    min-width: 200px;
}

/* Panel de debug */
.debug-panel {
    background: var(--color-bg);
    color: var(--color-success);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    display: none;
}

/* Estados de carga */
#loadingConfirmaciones {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .confirmacion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-section select {
        min-width: auto;
    }
    
    .modal-content {
        min-width: 90%;
        margin: 10px;
    }
}







/* =======================================
   🧭 ESTILOS PARA NAVEGACIÓN DINÁMICA
======================================= */

/* Navegación activa para ambos tipos */
nav.navbar ul li a.active,
.user-nav a.nav-link.active {
    color: white !important;
    font-weight: 600;
    position: relative;
}

nav.navbar ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-secondary);
}

/* Mejoras para la navegación de usuario */
.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Color específico para Work Sheet */
.nav-link[href="mi-hoja.html"] {
    background: var(--color-success); /* Verde */
    border: 1px solid var(--color-success);
}

.nav-link[href="mi-hoja.html"]:hover {
    background: #0d966b;
    transform: translateY(-1px);
}

.nav-link[href="mi-hoja.html"].active {
    background: #0d966b;
    box-shadow: 0 2px 8px rgba(16, 168, 132, 0.3);
}

/* Color específico para My Profile */
.nav-link[href="perfil.html"] {
    background: var(--color-warning); /* Amarillo/naranja */
    border: 1px solid var(--color-warning);
    color: #222; /* Texto oscuro para mejor contraste */
}

.nav-link[href="perfil.html"]:hover {
    background: #e6a700;
    transform: translateY(-1px);
}

.nav-link[href="perfil.html"].active {
    background: #e6a700;
    box-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
}

/* Estados hover generales */
.nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-link:active {
    transform: translateY(0);
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
}

.user-role-badge {
    background: var(--color-border);
    color: var(--color-text);
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    border: 1px solid var(--color-primary);
}

/* Botón de logout en navegación de usuario */
.user-nav button {
    background: var(--color-error);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
    margin-left: 10px;
}

.user-nav button:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    #nav-container nav.navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    #nav-container nav.navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .user-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .user-welcome {
        flex-direction: column;
        gap: 5px;
    }
    
    .user-nav button {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .nav-link {
        justify-content: center;
        padding: 10px 16px;
    }
}







.btn-danger {
    background: #EF4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-danger:hover {
    background: #DC2626;
}






















  .summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .summary-card {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
  }
  
  .summary-card.total {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--color-primary);
  }
  
  .summary-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--color-text);
  }
  
  .summary-card .amount {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--color-primary);
  }
  
  .summary-card small {
    color: var(--color-text-dim);
    font-size: 0.8rem;
  }


















  /* =======================================
   💳 ESTILOS PARA MÉTODOS DE PAGO - RESPONSIVE
======================================= */

/* Badges de método de pago */
.metodo-pago-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
    max-width: 100%;
    word-break: break-word;
}

/* Iconos para métodos de pago */
.metodo-pago-badge::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.metodo-pago-badge.paypal::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7.2 18c-.3 0-.5 0-.6-.2l-1.2-4.8-.4-1.7c0-.2.1-.3.3-.3h1.9c.3 0 .5.2.5.4v.2l.7 3.1c.1.3.3.5.6.5h1.2c2.7 0 4.2-1 4.7-3 .2-.7.2-1.3.1-1.8v-.2c-.1-.1-.2-.1-.4-.1h-.2c-.3 0-.6.1-.8.1-.5.2-.9.3-1.2.3-.2 0-.4 0-.5-.1l.2-.9.1-.4c0-.2-.1-.3-.3-.3H9.5c-.2 0-.4.2-.4.4v.2l-.5 2.2-1.2 4.7c-.1.2-.3.3-.6.3h-.6z'/%3E%3C/svg%3E");
}

.metodo-pago-badge.ko-fi::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M23.881 8.948c-.7-4.4-4.3-7.8-8.8-7.8-4.9 0-8.9 4-8.9 8.9 0 4.9 4 8.9 8.9 8.9 4.6 0 8.1-3.5 8.8-7.9h-3.3c-.5 2-2.4 3.5-4.6 3.5-2.6 0-4.8-2.1-4.8-4.8 0-2.6 2.1-4.8 4.8-4.8 2.2 0 4.1 1.5 4.6 3.5h3.3z'/%3E%3C/svg%3E");
}

.metodo-pago-badge.airtm::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 18c-4.4 0-8-3.6-8-8s3.6-8 8-8 8 3.6 8 8-3.6 8-8 8z'/%3E%3Cpath fill='white' d='M12 7l3 5-3 5-3-5z'/%3E%3C/svg%3E");
}

.metodo-pago-badge.sin-metodo::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}

/* Colores específicos para cada método */
.metodo-pago-badge.paypal {
    background: linear-gradient(135deg, #0070BA 0%, #003087 100%);
    color: white;
    border-color: #003087;
}

.metodo-pago-badge.ko-fi {
    background: linear-gradient(135deg, #29ABE0 0%, #1E87C7 100%);
    color: white;
    border-color: #1E87C7;
}

.metodo-pago-badge.airtm {
    background: linear-gradient(135deg, #0ABF53 0%, #089C44 100%);
    color: white;
    border-color: #089C44;
}

.metodo-pago-badge.sin-metodo {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
    border-color: #4B5563;
}

/* Estados hover para interactividad */
.metodo-pago-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Contenedor de detalles mejorado */
.confirmacion-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    margin: 1rem 0;
    border: 1px solid var(--color-border);
}

.detail-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-group:last-child {
    border-bottom: none;
}

.detail-group label {
    font-weight: 600;
    min-width: 140px;
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin: 0;
    padding-top: 2px;
}

.detail-group span {
    flex: 1;
    color: var(--color-text);
    word-break: break-word;
}

.detail-group.full-width {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-group.full-width label {
    min-width: auto;
    color: var(--color-secondary);
}

/* Información adicional de pago */
.payment-info-details {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
}

.payment-info-details p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.payment-info-details strong {
    color: var(--color-secondary);
}

/* =======================================
   📱 RESPONSIVE PARA MÉTODOS DE PAGO
======================================= */

@media (max-width: 768px) {
    .metodo-pago-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
        border-radius: 16px;
        min-height: 28px;
    }
    
    .metodo-pago-badge::before {
        width: 14px;
        height: 14px;
    }
    
    .confirmacion-details {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .detail-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .detail-group label {
        min-width: auto;
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .detail-group span {
        width: 100%;
    }
    
    .payment-info-details {
        padding: 0.75rem;
    }
    
    .payment-info-details p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .metodo-pago-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        min-height: 26px;
    }
    
    .metodo-pago-badge::before {
        width: 12px;
        height: 12px;
    }
    
    .confirmacion-details {
        padding: 0.75rem;
    }
    
    .detail-group {
        padding: 0.5rem 0;
    }
}

/* =======================================
   🎨 ESTILOS PARA TEXTO LARGO EN MÉTODOS DE PAGO
======================================= */

.metodo-pago-text {
    display: inline-block;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

/* Para emails y links largos */
.payment-email, .payment-link {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tooltip para texto largo */
.metodo-pago-badge[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.metodo-pago-badge {
    position: relative;
}

/* =======================================
   🔄 ANIMACIONES PARA MÉTODOS DE PAGO
======================================= */

@keyframes pulse-metodo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.metodo-pago-badge.new {
    animation: pulse-metodo 2s ease-in-out;
}

/* =======================================
   🏷️ ESTILOS PARA GRUPOS DE MÉTODOS EN PERFIL
======================================= */

.method-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.method-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.method-details {
    flex: 1;
}

.method-name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.method-data {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    word-break: break-all;
}














/* =======================================
   📋 ESTILOS PARA ELEMENTOS COPIABLES
======================================= */

.metodo-pago-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metodo-pago-badge {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.metodo-pago-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.metodo-pago-badge:hover::after {
    content: '📋 Copiar';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    color: var(--color-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    border: 1px solid var(--color-border);
    z-index: 10;
}

.copiable {
    cursor: pointer;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px dashed var(--color-primary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    word-break: break-all;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.copiable:hover {
    background: rgba(59, 130, 246, 0.2);
    border-style: solid;
}

.copy-icon {
    font-size: 0.8rem;
    opacity: 0.7;
}

.copiable:hover .copy-icon {
    opacity: 1;
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.payment-info-details {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.payment-info-details p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.payment-info-details strong {
    color: var(--color-secondary);
    min-width: 120px;
}

/* Responsive para elementos copiables */
@media (max-width: 768px) {
    .payment-info-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .payment-info-details strong {
        min-width: auto;
    }
    
    .copiable {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}




























/* =======================================
   💚 ESTILOS PARA BOTONES DE PAGAR
======================================= */

.btn-pagar {
    background: var(--color-success) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.btn-pagar:hover {
    background: #0d966b !important;
    transform: translateY(-1px);
}

.btn-pagar:active {
    transform: translateY(0);
}

/* Mejora los estilos de los botones de acción */
.confirmacion-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.confirmacion-actions button {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

/* Responsive para botones */
@media (max-width: 768px) {
    .confirmacion-actions {
        flex-direction: column;
    }
    
    .confirmacion-actions button {
        min-width: auto;
    }
}