/* ========================================================================= */
/* ESTILOS GLOBALES Y DE FONDO                                               */
/* ========================================================================= */
body {
    font-family: 'Inter', sans-serif;
    color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0f172a; 
}

.page-index {
    background-color: #1a202c;
}

.page-dashboard {
    background-color: #1a202c;
}

#initial-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; }
#initial-loader .spinner { width: 48px; height: 48px; border: 5px solid #d1d5db; border-bottom-color: #3b82f6; border-radius: 50%; animation: spin-loader 1s linear infinite; }
@keyframes spin-loader { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ========================================================================= */
/* ESTILOS DE PÁGINA DE VENTA (SORTEO)                                       */
/* ========================================================================= */

.header-custom-bg { 
    background-image: radial-gradient(circle at top center, #374151, #111827, #0f172a); 
}

.shiny-text { color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(145deg, #a88a2d, #ffd700 25%, #ffffff 50%, #ffd700 75%, #a88a2d); background-size: 200% auto; animation: sheen 1.5s linear infinite; }
@keyframes sheen { to { background-position: -200% center; } }
.text-pulse { animation: text-pulse-anim 2s infinite; }
@keyframes text-pulse-anim { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

#particle-container { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    z-index: 0; 
    overflow: hidden; 
}

.particle { 
    position: absolute; 
    top: -50px; 
    background: radial-gradient(circle, #ffd700, #f0c000, #daa520); 
    border-radius: 50%; 
    opacity: 0; 
    animation: fallDown 25s infinite linear; 
}

@keyframes fallDown { 
    0% { transform: translateY(0) rotateY(0deg); opacity: 0.7; } 
    100% { transform: translateY(110vh) rotateY(720deg); opacity: 0; } 
}

.consult-btn-gold {
    background: linear-gradient(145deg, #FFD700, #DAA520, #FFD700);
    color: #333;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid #c2b78b;
    background-size: 200% auto;
    transition: all 0.2s ease-in-out;
    animation: pulse-effect 2s infinite ease-in-out;
}
.consult-btn-gold:hover {
    background-position: right center;
    box-shadow: 0 8px 10px -2px rgba(0, 0, 0, 0.6), 0 4px 6px -3px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    animation: none; 
}
.consult-btn-gold:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: none;
}


.lucky-btn-new { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 0.75rem 1.5rem; background: linear-gradient(180deg, #16a34a, #059669); color: white; font-weight: 700; border-radius: 0.5rem; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); transition: all 0.2s ease-in-out; animation: pulse-effect 2s infinite ease-in-out; }
.lucky-btn-new:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); }
.lucky-btn-new:active { transform: scale(0.95); }
.lucky-btn-new .lucky-icon { width: 20px; height: 20px; animation: spin 3s linear infinite; }
@keyframes pulse-effect { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.number-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
.number-btn { transition: all 150ms ease-in-out; }
.number-btn.available { background-color: #dcfce7; color: #166534; }
.number-btn.available:hover { background-color: #bbf7d0; }
.number-btn.sold { background-color: #fee2e2; color: #991b1b; text-decoration: line-through; cursor: not-allowed; }
.number-btn.selected { background-color: #3b82f6; color: white; transform: scale(1.05); box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }

.ticket-container { border-radius: 12px; overflow: hidden; width: 100%; max-width: 320px; }
#ticket-content { padding: 15px; background-color: #ffffff; font-family: 'Poppins', sans-serif; color: #1f2937; background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-opacity="0.2"%3E%3Crect fill="%23F59E0B" x="10" y="10" width="10" height="10" transform="rotate(15 15 15)"/%3E%3Ccircle fill="%233B82F6" cx="80" cy="20" r="6"/%3E%3Crect fill="%2310B981" x="40" y="40" width="12" height="12" transform="rotate(45 46 46)"/%3E%3Ccircle fill="%23EF4444" cx="20" cy="75" r="5"/%3E%3Crect fill="%23EC4899" x="70" y="80" width="8" height="8" transform="rotate(-10 74 84)"/%3E%3Ccircle fill="%238B5CF6" cx="50" cy="90" r="4"/%3E%3C/g%3E%3C/svg%3E'); background-size: 100px 100px; }
.ticket-header { margin-bottom: 8px; }
.ticket-logo { height: 50px; margin-bottom: 8px; }
.ticket-main-title { color: #0d47a1; font-weight: 800; font-size: 1.7rem; margin: 0; line-height: 1.1; }
.ticket-subtitle { color: #4b5563; font-weight: 600; font-size: 1.1rem; margin: 0; }
.ticket-date { font-size: 0.8rem; color: #6b7280; margin-top: 8px; padding: 6px 0; border-top: 1px dotted #d1d5db; border-bottom: 1px dotted #d1d5db; }
.ticket-dashed-border { border-top: 2px dashed #d1d5db; margin: 10px 0; }
.ticket-section { margin-bottom: 10px; }
.ticket-section-title { font-size: 0.9rem; font-weight: 700; color: #1f2937; margin-bottom: 8px; background-color: #f3f4f6; padding: 4px 8px; border-radius: 4px; display: inline-block; }
.ticket-prizes { text-align: center; }
.ticket-prizes ul { list-style: none; padding: 0; margin: 0; display: inline-block; text-align: left; }
.ticket-prizes li { font-size: 0.85rem; color: #374151; margin-bottom: 2px; }
.ticket-prizes li strong { color: #0d47a1; }
.ticket-client-info { text-align: left; padding: 0 5px; }
.ticket-client-info p { font-size: 0.8rem; margin: 2px 0; }
.ticket-client-info strong { color: #1f2937; }
.ticket-numbers-box { text-align: center; }
.ticket-numbers-display { font-weight: 700; font-size: 1.1rem; color: #0d47a1; background: #e0e7ff; border: 1px dashed #c7d2fe; padding: 8px 12px; border-radius: 8px; display: inline-block; max-width: 100%; word-break: break-all; }
.ticket-total-label { font-size: 0.9rem; color: #4b5563; margin-bottom: 2px; }
.ticket-total-amount { font-size: 1.4rem; font-weight: 800; color: #166534; margin-bottom: 10px; }
.ticket-serial-box { background-color: #f3f4f6; padding: 6px 8px; border-radius: 6px; }
.ticket-serial-label { font-size: 0.7rem; color: #6b7280; margin-bottom: 2px; }
.ticket-serial-value { font-size: 0.9rem; font-family: 'Inter', sans-serif; font-weight: 700; color: #1f2937; letter-spacing: 0.05em; }

/* ========================================================================= */
/* DISEÑO MODERNO PARA DASHBOARD Y ADMIN                                     */
/* ========================================================================= */
.kpi-card { background: linear-gradient(135deg, #2D3748 0%, #1A202C 100%); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1); transition: all 0.2s ease-in-out; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 1.5rem; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.3), 0 6px 8px -3px rgba(0, 0, 0, 0.15); }
.main-container-bg { background-color: #2D3748; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.5rem; }
#sales-table thead th { color: #cbd5e0; }
#sales-table tbody tr:hover { background-color: #3f4a5a; }

/* ========================================================================= */
/* MODAL DE CONFIRMACIÓN PERSONALIZADO                                     */
/* ========================================================================= */
.confirmation-modal-overlay { transition: opacity 0.2s ease-in-out; }
.confirmation-modal-box { transition: transform 0.2s ease-in-out; }

/* ========================================================================= */
/* NOTIFICACIONES FLOTANTES (FEEDBACK)                                       */
/* ========================================================================= */
.feedback-message { position: fixed; top: 20px; right: 20px; padding: 1rem 1.5rem; border-radius: 0.75rem; font-weight: 600; color: white; z-index: 100; opacity: 0; transform: translateY(-20px) scale(0.95); visibility: hidden; transition: all 0.3s ease-in-out; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1); }
.feedback-message.show { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
.feedback-message.success { background-color: #16a34a; }
.feedback-message.error { background-color: #dc2626; }

/* ========================================================================= */
/* ESTILOS PARA MODALES OSCUROS (FLUJO DE COMPRA)                            */
/* ========================================================================= */
.modal-box-dark { background-color: #2D3748; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1.5rem; color: #f1f5f9; }
.modal-box-dark h3 { color: #10b981; } 

/* === INICIO DE LA CORRECCIÓN: Se ajusta la regla para unificar los campos === */
.modal-box-dark input[type="text"]:not(.input-group input), 
.modal-box-dark input[type="tel"]:not(.input-group input), 
.modal-box-dark input[type="email"]:not(.input-group input), 
.modal-box-dark input[type="number"]:not(.input-group input),
.modal-box-dark select:not(.input-prefix) { 
    background-color: #1e293b; 
    border: 1px solid #475569; 
    color: #f1f5f9; 
    border-radius: 0.5rem; 
    padding: 0.75rem; 
}

.modal-box-dark input:focus,
.modal-box-dark select:focus { 
    outline: none; 
    border-color: #f59e0b; 
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5); 
}
/* === FIN DE LA CORRECCIÓN === */


.modal-box-dark .btn-primary { background-color: #2563eb; font-weight: 700; }
.modal-box-dark .btn-primary:hover { background-color: #1d4ed8; }
.modal-box-dark .btn-secondary { background-color: #475569; }
.modal-box-dark .btn-secondary:hover { background-color: #64748b; }
.modal-box-dark .payment-data-box { background-color: #1e293b; border: 1px solid #475569; }
.copy-btn { cursor: pointer; }

/* ========================================================================= */
/* ESTILOS PARA RESALTAR NÚMERO BUSCADO                                      */
/* ========================================================================= */
.number-btn.highlight { background-color: #f59e0b; color: #1e293b; transform: scale(1.1); box-shadow: 0 0 15px rgba(245, 158, 11, 0.7); transition: all 300ms ease-in-out; }

/* ========================================================================= */
/* ESTILOS PARA SORTEO.HTML                                                  */
/* ========================================================================= */
.highlight-cart { animation: highlight-animation 1.5s ease-out; border-radius: 0.5rem; }
@keyframes highlight-animation { 0% { box-shadow: 0 0 0 0px rgba(37, 99, 235, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); } 100% { box-shadow: 0 0 0 0px rgba(37, 99, 235, 0); } }

.btn-volver-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    background-color: #22c55e;
    color: white; 
    border-radius: 9999px;
    transition: all 0.2s ease-in-out; 
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}
.btn-volver-hub:hover {
    background-color: #16a34a;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}

/* ========================================================================= */
/* ESTILOS PARA EL FONDO DEL CERTIFICADO                                     */
/* ========================================================================= */
.certificate-bg {
    background-color: #1e293b;
    background-image: radial-gradient(circle at center, rgba(71, 85, 105, 0.3) 0%, transparent 70%),
                      url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23daa520' fill-opacity='0.05'%3E%3Cpolygon points='0 50 50 100 100 50 50 0' /%3E%3C/g%3E%3C/svg%3E");
}

/* ========================================================================= */
/* ESTILOS CORREGIDOS PARA EL CONTADOR REGRESIVO (CUENTA REGRESIVA)          */
/* ========================================================================= */

.countdown-container {
    display: flex; 
    justify-content: space-between; 
    gap: 8px; 
    padding: 0; 
}

.countdown-item {
    flex: 1; 
    text-align: center; 
    background-color: #1e293b;
    border-radius: 8px; 
    padding: 10px 0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
}

.countdown-number {
    display: block; 
    font-size: 1.5rem; 
    font-weight: 700; 
    line-height: 1.2;
    color: #f59e0b;
}

.countdown-label {
    display: block; 
    font-size: 0.75rem; 
    text-transform: uppercase;
    color: #f1f5f9;
    margin-top: 4px; 
}

/* ========================================================================= */
/* ESTILOS PERSONALIZADOS PARA LA CESTA (CART) - FINAL                         */
/* ========================================================================= */

.cart-card-dark {
    background-color: #1e293b; 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    color: #f1f5f9; 
    padding: 20px; 
}

.cart-title-white {
    color: white; 
    font-size: 1.7rem; 
    font-weight: 800;
}

.cart-items-list {
    background-color: #1e293b; 
    border-radius: 0; 
    border: none;
    padding: 0;
    max-height: 200px; 
    overflow-y: auto;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.95rem;
    color: #cbd5e0; 
}

.cart-item-row strong {
    color: #f1f5f9; 
    font-weight: 700;
}

.cart-item-separator {
    border-top: 1px solid #475569; 
    margin: 4px 0;
}

.summary-label {
    color: #cbd5e0; 
    font-size: 0.95rem; 
}

.total-summary-line {
    border-top: 2px solid #475569;
    margin: 12px 0;
}

.ticket-total-display {
    font-size: 1.75rem; 
    font-weight: 800;
    color: #10b981; 
}

.bcv-rate-display-green {
    color: #10b981;
    font-size: 2rem; 
    font-weight: 800;
}

.bcv-card-title {
    font-size: 1.25rem; 
    font-weight: 600; 
    margin-bottom: 0.25rem;
}

.system-datetime-display-lg {
    font-size: 0.95rem; 
    color: #cbd5e0;
    margin-bottom: 0.5rem;
}


.btn-checkout-primary {
    background-color: #22c55e; 
    color: white; 
    font-weight: 700; 
    border-radius: 0.5rem; 
    transition: all 0.2s ease-in-out; 
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    font-size: 1.125rem; 
}
.btn-checkout-primary:hover {
    background-color: #16a34a; 
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}

.btn-checkout-secondary {
    background-color: #ef4444; 
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    font-size: 1.125rem; 
}
.btn-checkout-secondary:hover {
    background-color: #dc2626;
}

/* ========================================================================= */
/* === NUEVO: BOTÓN FLOTANTE DE WHATSAPP ===                                 */
/* ========================================================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================================================= */
/* === NUEVO: BANNER DE CONSENTIMIENTO DE COOKIES ===                        */
/* ========================================================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 200;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
    visibility: hidden;
}

@media (min-width: 768px) {
    .cookie-banner {
        justify-content: space-between;
    }
}

.cookie-banner.show {
    transform: translateY(0);
    visibility: visible;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-accept-btn {
    background-color: #16a34a;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.cookie-accept-btn:hover {
    background-color: #15803d;
}

.cookie-reject-btn {
    background-color: #475569;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.cookie-reject-btn:hover {
    background-color: #334155;
}

/* ========================================================================= */
/* === NUEVO: ESTILOS PARA LA NOTIFICACIÓN "TOAST" DE SEGURIDAD (MODIFICADO) === */
/* ========================================================================= */
.security-toast {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #065f46; 
    color: #fecaca;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    z-index: 300;
    max-width: calc(100% - 40px);

    opacity: 0;
    transform: translateX(-100%);
    transition: opacity 0.5s, transform 0.5s ease-in-out;
    visibility: hidden;
}

.security-toast.show {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.security-toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.toast-url {
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.security-toast-icon {
    font-size: 1.25rem;
}

.security-toast-close {
    background: none;
    border: none;
    color: #fca5a5;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.security-toast-close:hover {
    opacity: 1;
}

/* ========================================================================= */
/* === NUEVO: ESTILOS PARA EL BOTÓN FLOTANTE DE TELEGRAM ===                 */
/* ========================================================================= */
.telegram-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background-color: #0088cc;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out;
}
.telegram-float:hover {
    transform: scale(1.1);
}

/* ========================================================================= */
/* === INICIO DE LA ACTUALIZACIÓN: Se ajustan los estilos del historial ===  */
/* ========================================================================= */
.history-card {
    background-color: #1e293b;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    color: #f1f5f9;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5);
}

.history-card-raffle-title {
    color: #f59e0b;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.history-card-date {
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.history-card-raffle-subtitle {
    color: #cbd5e1;
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #475569;
    padding-bottom: 1rem;
}

.history-card-prizes {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
    font-size: 0.9rem;
}

.history-card-prizes li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.history-card-winners {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #475569;
}

.history-card-winners-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.history-card-winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.winner-item {
    background-color: #2D3748;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.winner-item-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.winner-item-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4ade80;
    font-family: 'Courier New', Courier, monospace;
}

.history-card-footer {
    border-top: 1px solid #475569;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.badge-finished {
    position: absolute;
    top: 18px;
    right: -35px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 35px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* ========================================================================= */
/* === GRUPO DE INPUT CON PREFIJO FIJO (UNIFICADO) ===                       */
/* ========================================================================= */
.input-group {
    display: flex;
    align-items: center;
    background-color: #1e293b; /* Corresponde a bg-slate-800 */
    border: 1px solid #475569;  /* Corresponde a border-slate-600 */
    border-radius: 0.5rem;      /* Corresponde a rounded-lg */
    transition: all 0.2s ease-in-out;
}

/* Simula el efecto focus:ring de Tailwind */
.input-group:focus-within {
    border-color: #f59e0b; /* focus:border-amber-500 */
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.5);
}

.input-prefix {
    /* Resetea la apariencia del select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;

    /* Estilos visuales compartidos */
    padding-left: 0.75rem;
    font-weight: bold;
    color: #cbd5e1;
    user-select: none;
    
    /* Flecha personalizada para el select */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.2rem center;
    background-repeat: no-repeat;
    background-size: 1.2em 1.2em;
    padding-right: 1.5rem; /* Espacio para la flecha */
}

/* Estilo para las opciones del desplegable */
.input-prefix option {
    background-color: #2D3748;
    color: #f1f5f9;
}

/* Elimina cualquier borde o sombra residual del input interno */
.input-group input {
    border: none;
    outline: none;
    box-shadow: none;
    padding-left: 0.25rem; /* Pequeño espacio entre el prefijo y los números */
}