.bienestar-wrapper {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #ec4899;
    --bg-color: #0f172a;
    --surface: rgba(30, 41, 59, 0.7);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-focus: #818cf8;
    
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 3rem 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.bienestar-wrapper * {
    box-sizing: border-box;
}

.bienestar-wrapper .background-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bienestar-wrapper .blob {
    position: absolute;
    filter: blur(60px);
    border-radius: 50%;
    opacity: 0.4;
    animation: b-float 20s infinite ease-in-out alternate;
}

.bienestar-wrapper .blob-1 {
    top: -20%; left: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
}

.bienestar-wrapper .blob-2 {
    bottom: -20%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation-delay: -5s;
}

@keyframes b-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.bienestar-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bienestar-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.bienestar-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.bienestar-header p { color: var(--text-muted); font-size: 1.1rem; }

.bienestar-wrapper .glass-form {
    background: var(--surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.bienestar-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.bienestar-wrapper h3::before {
    content: ''; display: block; width: 6px; height: 24px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}

.bienestar-wrapper .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bienestar-wrapper .form-group { display: flex; flex-direction: column; margin-bottom: 1.5rem; }
.bienestar-wrapper .form-row .form-group { margin-bottom: 0; }

.bienestar-wrapper label { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.bienestar-wrapper input:not([type="submit"]), .bienestar-wrapper select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 0.875rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}
.bienestar-wrapper select option { background: #1e293b; color: white; }

.bienestar-wrapper input:focus, .bienestar-wrapper select:focus {
    border-color: var(--input-focus);
}

.bienestar-wrapper .hidden { display: none !important; }
.bienestar-wrapper .detail-box, .bienestar-wrapper .price-unit-row {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}
.bienestar-wrapper .detail-box h4 { color: var(--text-muted); margin-top: 0; margin-bottom: 0.5rem; text-transform: uppercase; font-size: 0.85rem;}
.bienestar-wrapper .detail-box p { color: #cbd5e1; white-space: pre-wrap; font-size: 0.95rem; margin:0; line-height:1.5;}

.bienestar-wrapper .price-unit-row { display: flex; justify-content: space-between; align-items: flex-end; }
.bienestar-wrapper .number-input {
    display: flex; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 10px; width: 140px;
}
.bienestar-wrapper .number-input input { border: none; text-align: center; background: transparent; padding: 0.75rem 0;}
.bienestar-wrapper .qty-btn {
    background: transparent; border: none; color: white; font-size: 1.2rem; width: 40px; cursor: pointer;
}

.bienestar-wrapper .price-summary { display: flex; flex-direction: column; align-items: flex-end; }
.bienestar-wrapper .price-label { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.bienestar-wrapper .price-value { font-size: 1.6rem; font-weight: 700; color: var(--text-main); }
.bienestar-wrapper .total-value { font-size: 2.2rem; font-weight: 700; color: var(--secondary); }

.bienestar-wrapper .form-footer {
    display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--surface-border);
}

.bienestar-wrapper .submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white; border: none; padding: 1rem 2rem; border-radius: 12px; font-weight: 600; cursor: pointer; display:flex; align-items:center; gap:0.5rem;
}

.bienestar-wrapper .b-modal {
    position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); backdrop-filter:blur(5px); display:flex; justify-content:center; align-items:center; z-index:9999;
}
.bienestar-wrapper .b-modal-content {
    background: var(--surface); backdrop-filter: blur(20px); border: 1px solid var(--surface-border); border-radius: 24px; padding: 3rem; text-align: center; max-width: 450px;
}
.bienestar-wrapper .primary-btn {
    background: #10b981; color: white; border: none; padding: 0.8rem 2rem; border-radius: 12px; font-weight: 600; cursor: pointer; width: 100%; margin-top: 1rem;
}

/* Signature Pad */
.signature-container {
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
}

.signature-pad {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

@media (max-width: 768px) {
    .bienestar-wrapper .form-row { grid-template-columns: 1fr; gap:0; }
    .bienestar-wrapper .form-row .form-group { margin-bottom: 1.5rem; }
    .bienestar-wrapper .price-unit-row { flex-direction: column; align-items: stretch; gap: 1.5rem;}
    .bienestar-wrapper .price-summary { align-items: flex-start; border-top: 1px solid var(--surface-border); padding-top: 1.5rem; }
    .bienestar-wrapper .form-footer { flex-direction: column; gap: 1.5rem; align-items: stretch; text-align:center;}
}
