/* ESTILOS PARA SISTEMA DE PRECIOS POR FASES - NS26 TICKETS */

/* Precios con fases */
.ticket-pricing {
    margin: 15px 0;
    text-align: center;
}

.ticket-pricing .price-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.ticket-pricing .price-label {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.ticket-pricing .price {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 5px;
}

.ticket-pricing .price-countdown {
    margin-top: 8px;
    font-size: 12px;
    color: #7f8c8d;
}

.ticket-pricing .price-countdown.urgent {
    color: #e74c3c;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Estilos específicos por tipo de precio */
.price-label.preventa {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.price-label.general {
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
}

.price-label.lastcall {
    background: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 100%);
    animation: pulse 2s infinite;
}

/* Formulario de administración - Precios por fases */
.form-table .precio-fase-header {
    background: #f0f8ff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    margin: 20px 0;
}

.form-table .precio-fase-header h3 {
    margin: 0;
    color: #007cba;
}

.form-table .precio-preventa-row {
    background: #f8f9ff;
}

.form-table .precio-general-row {
    background: #fff8f9;
}

.form-table .precio-lastcall-row {
    background: #fff9f8;
}

/* Indicadores de estado en el admin */
.precio-estado {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.precio-estado.activo {
    background: #28a745;
}

.precio-estado.proximo {
    background: #ffc107;
    color: #212529;
}

.precio-estado.finalizado {
    background: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .ticket-pricing .price-label {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .ticket-pricing .price {
        font-size: 20px;
    }
    
    .ticket-pricing .price-countdown {
        font-size: 11px;
    }
}

/* Contador de tiempo urgente para Last Call */
.ticket-pricing .price-countdown.urgent {
    background: rgba(231, 76, 60, 0.1);
    padding: 5px 10px;
    border-radius: 15px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-top: 10px;
}

.ticket-pricing .price-countdown.urgent::before {
    content: "⚠️ ";
    font-size: 14px;
}

/* Efectos hover */
.ticket-pricing .price-label:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.ticket-card:hover .price-label.lastcall {
    animation: pulse 1s infinite;
}

/* Indicador de siguiente precio */
.precio-siguiente {
    font-size: 11px;
    color: #6c757d;
    margin-top: 5px;
}

.precio-siguiente::before {
    content: "↗️ ";
}

/* Estilos para el dashboard admin */
.admin-precio-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.admin-precio-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.admin-precio-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.admin-precio-card .precio-valor {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
}

.admin-precio-card .precio-fecha {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.admin-precio-card.activo {
    border-left: 4px solid #27ae60;
}

.admin-precio-card.proximo {
    border-left: 4px solid #f39c12;
}

.admin-precio-card.finalizado {
    border-left: 4px solid #95a5a6;
    opacity: 0.7;
} 