/**
 * Estilos Flujo Conducido System
 * Version: 1.0.0
 */

/* ===================================
   POPUP DE REGISTRO
=================================== */

.fc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.fc-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-popup-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.fc-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.fc-popup-close:hover {
    background: #f0f0f0;
    color: #333;
}

.fc-popup-content h3 {
    font-size: 26px;
    margin: 0 0 10px 0;
    color: #764ba2;
    font-weight: 700;
}

.fc-popup-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ===================================
   BADGES
=================================== */

.fc-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.fc-badge-star {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ===================================
   FORMULARIOS
=================================== */

.fc-form-group {
    margin-bottom: 20px;
}

.fc-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.fc-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.fc-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fc-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.fc-form-select:focus {
    outline: none;
    border-color: #667eea;
}

.fc-form-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.fc-form-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.fc-form-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ===================================
   BOTONES
=================================== */

.fc-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.fc-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.fc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.fc-btn-primary:active {
    transform: translateY(0);
}

.fc-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.fc-btn-secondary:hover {
    background: #e0e0e0;
}

.fc-btn-full {
    width: 100%;
}

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

/* ===================================
   SEPARADOR
=================================== */

.fc-separador {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.fc-separador span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.fc-separador::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

/* ===================================
   OPCIONES DE REGISTRO
=================================== */

.fc-opcion-basica,
.fc-opcion-completa {
    padding: 25px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.fc-opcion-basica:hover,
.fc-opcion-completa:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.fc-beneficio {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.fc-incentivo {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* ===================================
   LINKS
=================================== */

.fc-skip {
    display: block;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.fc-skip:hover {
    color: #667eea;
}

/* ===================================
   MENSAJES
=================================== */

.fc-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.fc-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fc-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.fc-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===================================
   LOADING
=================================== */

.fc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* ===================================
   ANIMACIONES
=================================== */

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 768px) {
    .fc-popup-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .fc-popup-content h3 {
        font-size: 22px;
    }
    
    .fc-form-radio-group {
        flex-direction: column;
    }
}
