@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

.hub-v2-container {
    font-family: 'Outfit', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    color: #1a202c;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    padding: 60px;
}

.hub-v2-header {
    text-align: center;
    margin-bottom: 50px;
}

.hub-v2-header h2 {
    color: #1a202c;
    font-size: 30px;
    font-weight: 700;
}

/* Pasos Numerados original */
.hub-v2-step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #1a202c;
}

.hub-v2-step-number {
    background: #00a2e0;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Selector tipo Pastilla (Original Look) */
.hub-v2-pill-selector {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 3px;
    border-radius: 99px;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 50px;
}

.hub-v2-pill-option {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #64748b;
    font-size: 16px;
}

.hub-v2-pill-option.active {
    color: #ffffff;
}

.hub-v2-pill-glider {
    position: absolute;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background: #00a2e0;
    border-radius: 99px;
    top: 3px;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 162, 224, 0.2);
}

.hub-v2-pill-selector[data-active="FONASA"] .hub-v2-pill-glider {
    transform: translateX(100%);
}

.hub-v2-section {
    margin-bottom: 70px; /* Generoso "aire" entre pasos */
}

/* Buscador */
.hub-v2-search-container {
    position: relative;
    margin-bottom: 25px;
}

.hub-v2-search-container input {
    height: 65px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 0 50px 0 20px;
    font-size: 17px;
    background: #ffffff;
    width: 100%;
}

.hub-v2-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00a2e0;
    font-size: 20px;
}

/* Tarjetas de Examen */
.hub-v2-exam-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}

.hub-v2-exam-item {
    display: none; /* Ocultos por defecto */
    background: #fdfdfd;
    border-bottom: 1px solid #eef2f6;
    padding: 15px 25px;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.hub-v2-exam-item:hover {
    background: #f0f9ff;
}

.hub-v2-add-btn {
    background: #00a2e0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.hub-v2-add-btn:hover {
    background: #008cc2;
    transform: scale(1.05);
}

.hub-v2-add-btn.active {
    background: #48bb78;
}

.hub-v2-price {
    font-size: 20px;
    font-weight: 700;
    color: #00a2e0;
    margin-right: 20px;
}

/* Resumen (OSCURO ORIGINAL) */
.hub-v2-totals-box {
    background: #1a202c;
    border-radius: 20px;
    padding: 45px;
    margin-top: 50px;
    color: white;
}

.hub-v2-totals-box h4 {
    font-size: 22px;
    margin-bottom: 25px;
}

.hub-v2-total-row {
    color: #a0aec0;
    margin-bottom: 10px;
}

.hub-v2-total-row.grand-total {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #2d3748;
    color: #22d3ee; /* Cian Brillante */
    font-size: 28px;
    font-weight: 800;
}

/* Botón Submit */
.hub-v2-btn-submit {
    height: 75px;
    border-radius: 14px;
    background: #4a5568;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hub-v2-btn-submit:hover {
    background: #2d3748;
}

/* Form Styles */
.hub-v2-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #4a5568;
}

.hub-v2-form-group select, .hub-v2-form-group input {
    height: 55px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}
