/* Variables globales */
:root {
  --primary-color: #3b82f6; /* Tailwind blue-500 */
  --primary-dark: #2563eb; /* Tailwind blue-600 */
  --secondary-color: #f3f4f6; /* Tailwind gray-100 */
  --secondary-dark: #e5e7eb; /* Tailwind gray-200 */
  --accent-color: #10b981; /* Tailwind emerald-500 */
  --accent-dark: #059669; /* Tailwind emerald-600 */
  --danger-color: #ef4444; /* Tailwind red-500 */
  --warning-color: #f59e0b; /* Tailwind amber-500 */
  --text-color: #1f2937; /* Tailwind gray-800 */
  --text-light: #6b7280; /* Tailwind gray-500 */
  --white: #ffffff;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 0.5rem;
  --form-bg: #ffffff;
  --border-color: #e5e7eb; /* Tailwind gray-200 */
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  background-color: #f9fafb; /* Tailwind gray-50 */
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.main-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Highlighted navigation item for store */
.highlight-nav-item {
    background-color: #10B981; /* Color verde */
    color: white !important;
    padding: 6px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.highlight-nav-item:hover {
    background-color: #059669;
    transform: translateY(-3px);
    box-shadow: 0 6px 10px -1px rgba(16, 185, 129, 0.3);
}

.highlight-nav-item:active {
    transform: translateY(-1px);
}

.highlight-nav-item i {
    font-size: 0.95em;
}

/* Agregar un efecto de resplandor al icono */
.highlight-nav-item:hover i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Tarjeta principal */
.card, .payment-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  margin: 2rem 0;
  overflow: hidden;
}

.section-title, .payment-header h2 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Payment Gateway Styles */
.payment-gateway {
  max-width: 800px;
  margin: 2rem auto;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.security-badge {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--accent-color);
  gap: 0.5rem;
  background-color: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
}

/* Progress Bar */
.progress-bar {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.step.active .step-number {
  background-color: var(--primary-color);
  color: var(--white);
}

.step.completed .step-number {
  background-color: var(--accent-color);
  color: var(--white);
}

.step.error .step-number {
  background-color: var(--danger-color);
  color: var(--white);
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.step.active .step-label {
  color: var(--primary-color);
  font-weight: 500;
}

.progress-line {
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 9999px;
  position: relative;
  margin-top: 0.5rem;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 9999px;
  transition: width 0.5s ease;
  width: 0;
}

/* Payment Steps */
.payment-step {
  padding: 1.5rem;
}

.payment-step.hidden {
  display: none;
}

/* Order Summary */
.order-summary {
  background-color: var(--secondary-color);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.order-summary h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

.summary-details {
  font-size: 0.875rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.payment-method {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
}

.payment-method.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Card Container */
.card-container {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.card-brands {
  display: flex;
  gap: 0.75rem;
}

.card-brand {
  opacity: 0.3;
  font-size: 1.75rem;
  transition: opacity 0.2s;
}

.card-brand.active {
  opacity: 1;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group.hidden {
  display: none;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group.half {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
}

input, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
  cursor: help;
}

.tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 0.25rem;
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: normal;
  font-size: 0.75rem;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.bank-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-color);
  background-color: var(--secondary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

.bank-badge i {
  margin-right: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-dark);
}

/* Processing Animation */
.processing-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(59, 130, 246, 0.2);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

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

.processing-details {
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* 3D Secure Verification */
.threed-secure {
  text-align: center;
  padding: 2rem;
}

.bank-logo {
  margin-bottom: 1.5rem;
}

.bank-logo i {
  font-size: 3rem;
  color: var(--primary-color);
}

.auth-code-group {
  max-width: 300px;
  margin: 1.5rem auto;
}

.auth-code-input {
  letter-spacing: 6px;
  font-size: 1.5rem;
  text-align: center;
}

.verification-timer {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 1rem 0 1.5rem;
}

.secure-logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.secure-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.secure-logo-item i {
  color: var(--primary-color);
}

.secure-logo-item span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
}

.secure-logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.secure-logos img {
  height: 24px;
  opacity: 0.7;
}

/* Estilos para el 3D Secure mejorado */
.verification-attempts {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.verification-attempts span {
    font-weight: bold;
    color: #2196F3;
}

.auth-code-input.input-error {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #f44336;
    background-color: rgba(244, 67, 54, 0.05);
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }
    30%, 50%, 70% {
        transform: translate3d(-3px, 0, 0);
    }
    40%, 60% {
        transform: translate3d(3px, 0, 0);
    }
}

/* Estilos para el botón de verificación deshabilitado */
.btn:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: not-allowed;
    border: 1px solid #999999;
}

.code-hint {
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 4px;
    padding: 8px;
    margin-top: 15px;
    border-left: 3px solid #2196F3;
}

/* Result Animation */
.result-animation {
  text-align: center;
  padding: 2rem;
}

.success-checkmark, .failed-mark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-checkmark {
  background-color: rgba(16, 185, 129, 0.1);
  border: 2px solid var(--accent-color);
}

.success-checkmark i {
  color: var(--accent-color);
  font-size: 2rem;
}

.failed-mark {
  background-color: rgba(239, 68, 68, 0.1);
  border: 2px solid var(--danger-color);
}

.failed-mark i {
  color: var(--danger-color);
  font-size: 2rem;
}

.transaction-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

/* Notification */
.notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--card-shadow);
  z-index: 1000;
  max-width: 300px;
  transform: translateX(150%);
  transition: transform 0.3s ease-out;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  border-left: 4px solid var(--accent-color);
}

.notification.error {
  border-left: 4px solid var(--danger-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  max-width: 90%;
  width: 600px;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Receipt Styles */
.receipt {
  padding: 1rem;
}

.receipt-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.receipt-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.receipt-number {
  text-align: right;
}

.receipt-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.receipt-merchant, .receipt-customer {
  flex: 1;
}

.info-label {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.info-value {
  font-weight: 600;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.receipt-table th, .receipt-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.receipt-table th {
  font-weight: 600;
  background-color: var(--secondary-color);
}

.receipt-totals {
  margin-bottom: 1.5rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.grand-total {
  font-weight: 600;
  font-size: 1.125rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.receipt-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

.payment-status {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.transaction-id {
  font-size: 0.75rem;
}

/* Footer */
.main-footer {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--text-light);
  text-align: center;
  font-size: 0.875rem;
}

/* Settings Page */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.setting-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
}

.setting-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.setting-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Estilos adicionales para la página de tarjetas */
.test-cards-container {
  padding: 1.5rem;
}

.test-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.test-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  background-color: var(--white);
  transition: box-shadow 0.3s, transform 0.3s;
}

.test-card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.test-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.1);
}

.edit-card:hover {
  color: #3b82f6; /* Color azul para editar */
  background-color: rgba(59, 130, 246, 0.1);
}

.delete-card:hover {
  color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.1);
}

.test-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-detail {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.detail-label {
  color: var(--text-light);
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
}

.behavior-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.behavior-badge.approved {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.behavior-badge.declined {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.behavior-badge.insufficient {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.behavior-badge.expired {
  background-color: rgba(107, 114, 128, 0.1);
  color: var(--text-light);
}

.test-card-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.test-card-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-light);
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
}

.card-actions {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.test-card-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
}

.test-card-info h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card-behavior-legend {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.behavior-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

/* Estilos para las tablas de transacciones */
.transactions-filter {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.transactions-container {
  padding: 0 1.5rem 1.5rem;
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th, 
.transactions-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.transactions-table th {
  background-color: var(--secondary-color);
  font-weight: 600;
}

.empty-message {
  text-align: center;
  color: var(--text-light);
  padding: 2rem 0;
}

.success-text {
  color: var(--accent-color);
  font-weight: 500;
}

.error-text {
  color: var(--danger-color);
  font-weight: 500;
}

/* Estilos para el botón de eliminar transacción */
.btn-icon.delete-transaction {
  transition: all 0.2s ease;
}

.btn-icon.delete-transaction:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  transform: scale(1.15);
}

.btn-icon.delete-transaction i {
  color: #ef4444;
}

/* Espacio entre botones de acción */
.btn-icon + .btn-icon {
  margin-left: 8px;
}

/* Media queries para responsividad */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .form-row {
    flex-direction: column;
    gap: 1.25rem;
  }
  
  .modal-content {
    width: 95%;
  }
  
  .receipt-info, .receipt-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .receipt-number, .receipt-customer {
    text-align: left;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .transactions-filter {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .transactions-filter select {
    width: 100%;
  }
  
  .card-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .card-actions .btn {
    margin-bottom: 0.5rem;
    width: calc(50% - 0.5rem);
  }
  
  .csv-instructions pre {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .payment-step {
    padding: 1rem;
  }
  
  .card-container {
    padding: 1rem;
  }
  
  .progress-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .step {
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
  }
  
  .progress-line {
    display: none;
  }
  
  .step-number {
    margin-bottom: 0;
  }
  
  .modal-footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .modal-footer button {
    width: 100%;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.notification.show {
  animation: slideInRight 0.3s forwards;
}

/* Estilos para impresión */
@media print {
  body * {
    visibility: hidden;
  }
  
  .modal.show, .modal.show * {
    visibility: visible;
  }
  
  .modal-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto !important;
    max-height: none !important;
    box-shadow: none;
    background-color: white;
    overflow: visible !important;
  }

  .modal-body {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  
  .receipt {
    overflow: visible !important;
    padding: 1rem;
    height: auto !important;
  }
  
  .modal-header, .modal-footer, .modal-close {
    display: none !important;
  }
  
  /* Ocultar barras de desplazamiento */
  ::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
  }
  
  * {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
    overflow: visible !important;
  }

  .receipt-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }
  
  .receipt-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .receipt-number {
    text-align: right;
  }
  
  .receipt-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }
  
  .receipt-merchant, .receipt-customer {
    flex: 1;
  }
  
  .info-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .info-value {
    font-weight: 600;
  }
  
  .receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
  }
  
  .receipt-table th, .receipt-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .receipt-table th {
    font-weight: 600;
    background-color: var(--secondary-color);
  }
  
  .receipt-totals {
    margin-bottom: 1.5rem;
  }
  
  .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
  }
  
  .grand-total {
    font-weight: 600;
    font-size: 1.125rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
  }
  
  .receipt-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
  }
  
  .payment-status {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    font-weight: 600;
  }
  
  .transaction-id {
    font-size: 0.75rem;
  }
}

/* Estilo para la pista */
.setting-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #666;
    background-color: rgba(59, 130, 246, 0.05);
    padding: 6px;
    border-radius: 4px;
    border-left: 2px solid var(--primary-color);
}

/* Estilos para pruebas masivas */
.bulk-test-modal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.bulk-test-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.bulk-test-progress {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.progress-line {
  height: 10px;
  background-color: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 5px;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6;
  border-radius: 20px;
  transition: width 0.3s ease;
}

.progress-percentage {
  text-align: right;
  font-size: 0.85rem;
  color: #6b7280;
}

.bulk-test-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.stat-card i {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #3b82f6;
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-card .stat-label {
  color: #6b7280;
  font-size: 0.85rem;
}

.bulk-test-results h4 {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.bulk-test-table-container {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.bulk-test-table {
  width: 100%;
  border-collapse: collapse;
}

.bulk-test-table th {
  background-color: #f3f4f6;
  padding: 12px;
  position: sticky;
  top: 0;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  z-index: 1;
}

.bulk-test-table th, .bulk-test-table td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  font-size: 0.9rem;
}

.bulk-test-table tr {
  transition: background-color 0.2s;
}

.bulk-test-table tr:hover {
  background-color: #f9fafb;
}

.approved-row {
  background-color: rgba(16, 185, 129, 0.05);
}

.rejected-row {
  background-color: rgba(239, 68, 68, 0.05);
}

.test-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 80px;
}

.test-status.pending {
  background-color: #f3f4f6;
  color: #6b7280;
}

.test-status.processing {
  background-color: #eff6ff;
  color: #3b82f6;
  animation: pulse 1.5s infinite;
}

.test-status.success {
  background-color: #ecfdf5;
  color: #10b981;
}

.test-status.error {
  background-color: #fef2f2;
  color: #ef4444;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background-color: #d97706;
}

.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background-color: #059669;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Estilos para pruebas masivas */
.bulk-test-modal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.bulk-test-modal .modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.bulk-test-results h4 {
  margin: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Estilos para las pruebas masivas */
.bulk-test-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bulk-test-stats .stat-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bulk-test-stats .stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bulk-test-stats .stat-content h3 {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.bulk-test-stats .stat-content p {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.25rem 0 0 0;
}

.bulk-test-results h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-test-results h4 i {
    color: #3b82f6;
}

/* Estilos para el Historial de Transacciones */
.transaction-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    margin-bottom: 0;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.transaction-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.transaction-table th,
.transaction-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.transaction-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.transaction-table tbody tr:hover {
    background-color: #f9f9f9;
}

.transaction-success {
    color: #28a745;
    font-weight: bold;
}

.transaction-failed {
    color: #dc3545;
    font-weight: bold;
}

.transaction-pending {
    color: #ffc107;
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#pageInfo {
    font-weight: 500;
}

.transaction-bulk {
    background-color: #f0f8ff;
}

.btn-detail {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-detail:hover {
    background-color: #5a6268;
}

/* Estilos para pruebas masivas */
.bulk-test-row {
    background-color: rgba(219, 234, 254, 0.2); /* Fondo sutilmente azulado */
}

.bulk-test-row:hover {
    background-color: rgba(219, 234, 254, 0.4);
}

.bulk-tag {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Mejorar estilos para detalles de transacciones */
.transaction-info {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
}

.transaction-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.transaction-info p {
    margin-bottom: 6px;
}

.transaction-info strong {
    font-weight: 600;
    color: #111827;
}

.transaction-info hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 12px 0;
}

.success-text {
    color: #10b981;
    font-weight: 500;
}

.error-text {
    color: #ef4444;
    font-weight: 500;
}

/* Estilos mejorados para el Historial de Transacciones */
.transactions-section {
  margin-top: 2rem;
  animation: fadeIn 0.5s ease;
}

.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.transactions-header h2 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transactions-header h2 i {
  color: var(--primary-color);
}

.transactions-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filtros de transacciones mejorados */
.transactions-filter {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
  flex: 1;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
}

.filter-group select,
.filter-group input {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color-light);
  outline: none;
}

.filter-button {
  display: flex;
  gap: 0.5rem;
  padding-bottom: 0.125rem;
}

/* Estilos de tabla de transacciones mejorados */
.transactions-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.transactions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.transactions-table th {
  background-color: var(--secondary-color);
  padding: 1rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-color);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.transactions-table td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  transition: background-color 0.2s;
}

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

.transactions-table tr:hover td {
  background-color: rgba(59, 130, 246, 0.05);
}

.transactions-table .transaction-details {
  cursor: pointer;
  color: var(--primary-color);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
}

.transactions-table .transaction-details:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Estilos de badges para estado de transacción */
.transaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.75rem;
}

.transaction-badge.success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--accent-color);
}

.transaction-badge.error {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.transaction-badge i {
  font-size: 0.6875rem;
}

/* Estilos para paginación */
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--secondary-color);
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--text-light);
}

.pagination-controls {
  display: flex;
  gap: 0.5rem;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.2s ease;
}

.pagination-button:hover:not(:disabled) {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mensaje para tabla vacía */
.empty-transactions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-light);
}

.empty-transactions i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary-dark);
}

/* Estilos para los botones de acción */
.action-button {
  padding: 0.625rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-weight: 500;
  cursor: pointer;
}

.action-button.delete {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-button.delete:hover {
  background-color: var(--danger-color);
  color: white;
}

.action-button.export {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.action-button.export:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Modal de confirmación */
.confirmation-modal .modal-content {
  max-width: 450px;
}

.confirmation-modal .modal-body {
  padding: 1.5rem 1.5rem;
  text-align: center;
}

.confirmation-modal .modal-icon {
  font-size: 3rem;
  color: var(--warning-color);
  margin-bottom: 1rem;
}

.confirmation-modal h3 {
  margin-bottom: 1rem;
}

.confirmation-modal p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.confirmation-modal .modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 0;
  border-top: none;
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .transactions-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .pagination-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .transactions-actions {
    width: 100%;
    justify-content: center;
  }
  
  .action-button {
    width: 100%;
    justify-content: center;
  }
}