/* ==========================================================================
   VALORACIÓN CAPILAR — Wizard multi-step para Clínica Ibiza dev
   Hereda paleta del theme (--accent navy, --bg-light, --bg-soft, --white, etc).
   El hero lo aporta page-transicion.php-like (clase .hero-servicio) — aquí
   solo se estilan las secciones del body y el formulario.
   ========================================================================== */

/* ==========================================================================
   1. CÓMO FUNCIONA (3 pasos)
   ========================================================================== */
.vt-como-funciona { background: var(--bg-soft); }
.vt-como-funciona.section, .section { padding: 80px 0; }

.section-label {
    display: inline-block;
    font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text-primary);
    margin-bottom: 12px; letter-spacing: -0.3px;
}
.section-subtitle {
    font-size: 15px; color: var(--text-muted); max-width: 560px; line-height: 1.6;
}
.section-header { margin-bottom: 40px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

.vt-steps {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start; gap: 0; max-width: 900px; margin: 0 auto;
}
.vt-step {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px; text-align: center;
    transition: var(--transition);
}
.vt-step:hover { box-shadow: 0 8px 32px rgba(12,27,42,0.08); transform: translateY(-4px); }
.vt-step__number {
    width: 48px; height: 48px; background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; margin: 0 auto 16px;
}
.vt-step__icon { color: var(--accent); margin-bottom: 16px; }
.vt-step__icon svg { display: inline-block; }
.vt-step__title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.vt-step__text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.vt-step__connector {
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); padding: 0 8px; margin-top: 60px;
}
.vt-step__connector svg { opacity: 0.5; }

@media (max-width: 768px) {
    .vt-steps { grid-template-columns: 1fr; gap: 16px; max-width: 400px; }
    .vt-step__connector { display: none; }
}

/* ==========================================================================
   2. PHOTO NOTICE
   ========================================================================== */
.vt-photo-notice { background: var(--bg-light); }
.vt-photo-guide {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
    max-width: 800px; margin: 0 auto 24px;
}
.vt-photo-guide__item {
    text-align: center; padding: 20px 12px; background: var(--white);
    border: 1px solid var(--border); border-radius: 12px; transition: var(--transition);
}
.vt-photo-guide__item:hover { border-color: var(--accent-20); box-shadow: 0 4px 16px rgba(12,27,42,0.06); }
.vt-photo-guide__preview {
    width: 80px; height: 80px; border-radius: 50%; background: var(--accent-10);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 12px; color: var(--accent); overflow: hidden;
}
.vt-photo-guide__preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.vt-photo-guide__label { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.vt-photo-guide__desc { display: block; font-size: 11px; color: var(--text-muted); }
.vt-photo-notice__tip {
    text-align: center; font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vt-photo-notice__tip svg { color: var(--accent); flex-shrink: 0; }
@media (max-width: 768px) {
    .vt-photo-guide { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
    .vt-photo-guide { grid-template-columns: repeat(2, 1fr); }
    .vt-photo-guide__item { padding: 14px 8px; }
    .vt-photo-guide__preview { width: 60px; height: 60px; }
}

/* ==========================================================================
   3. VALORACIÓN SECTION + BODY CTA
   ========================================================================== */
.vt-valoracion-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-soft) 100%);
    border-top: 1px solid var(--accent-10);
    border-bottom: 1px solid var(--accent-10);
}
.vt-valoracion-section .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.vt-valoracion-section .section-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); }
.vt-valoracion-section .container { max-width: 900px; margin-left: auto; margin-right: auto; }
.vt-body-cta { text-align: center; padding: 20px 0; }
.vt-body-cta .btn-primary {
    font-size: 18px; padding: 18px 44px;
    box-shadow: 0 8px 32px rgba(29,50,80,0.25);
}
.vt-body-cta .btn-primary:hover {
    box-shadow: 0 12px 40px rgba(29,50,80,0.4); transform: translateY(-2px);
}
.vt-body-cta__note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }

/* ==========================================================================
   4. FORM WRAPPER + PROGRESS
   ========================================================================== */
.vt-form-wrapper { max-width: 680px; margin-left: auto; margin-right: auto; }
#vt-form {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(12,27,42,0.08); padding: 40px; position: relative;
}
.vt-progress { background: var(--bg-light); height: 4px; border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.vt-progress__fill {
    height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px; transition: width 0.5s ease;
}
.vt-progress__text { font-size: 12px; color: var(--text-muted); margin-bottom: 32px; display: block; }

/* Honeypot — invisible para el usuario */
.ac-hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   5. QUESTIONS
   ========================================================================== */
.vt-question { display: none; }
.vt-question--active { display: block; animation: vtFadeIn 0.4s ease; }
.vt-question__title {
    font-size: clamp(18px, 3vw, 22px); font-weight: 700;
    color: var(--text-primary); margin-bottom: 24px; line-height: 1.4;
}
.vt-question__hint { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

/* ==========================================================================
   6. INPUTS, RADIO, CHECKBOX, SCALE, SELECT
   ========================================================================== */
.vt-input {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: 12px; font-size: 16px; font-family: var(--font);
    color: var(--text-primary); background: var(--bg-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease; box-sizing: border-box;
}
.vt-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-10); }
.vt-input::placeholder { color: var(--text-muted); }

.vt-options { display: flex; flex-direction: column; gap: 10px; }

.vt-radio, .vt-checkbox {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border: 1.5px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all 0.25s ease; background: var(--white);
}
.vt-radio:hover, .vt-checkbox:hover { border-color: var(--border-hover); background: var(--bg-soft); }
.vt-radio:has(:checked), .vt-checkbox:has(:checked) { border-color: var(--accent); background: var(--accent-light); }
.vt-radio input[type="radio"], .vt-checkbox input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.vt-radio__mark {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--border); flex-shrink: 0;
    transition: all 0.25s ease; position: relative;
}
.vt-radio__mark::after {
    content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent); top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0); transition: transform 0.25s ease;
}
.vt-radio:has(:checked) .vt-radio__mark { border-color: var(--accent); }
.vt-radio:has(:checked) .vt-radio__mark::after { transform: translate(-50%, -50%) scale(1); }
.vt-radio__text, .vt-checkbox__text { font-size: 15px; color: var(--text-primary); }

.vt-checkbox__mark {
    width: 20px; height: 20px; border-radius: 6px;
    border: 2px solid var(--border); flex-shrink: 0;
    transition: all 0.25s ease; position: relative;
}
.vt-checkbox__mark::after {
    content: ''; position: absolute; width: 6px; height: 10px;
    border-right: 2px solid white; border-bottom: 2px solid white;
    top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.25s ease;
}
.vt-checkbox:has(:checked) .vt-checkbox__mark { background: var(--accent); border-color: var(--accent); }
.vt-checkbox:has(:checked) .vt-checkbox__mark::after { transform: translate(-50%, -50%) rotate(45deg) scale(1); }

.vt-scale { display: flex; align-items: center; gap: 12px; justify-content: center; }
.vt-scale__label { font-size: 13px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }
.vt-scale__buttons { display: flex; gap: 6px; }
.vt-scale__btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid var(--border); font-size: 14px; font-weight: 600;
    color: var(--text-secondary); background: white; cursor: pointer;
    transition: all 0.25s ease; display: flex; align-items: center; justify-content: center;
    font-family: var(--font); padding: 0; line-height: 1;
}
.vt-scale__btn:hover { border-color: var(--accent); color: var(--accent); }
.vt-scale__btn--active { background: var(--accent); border-color: var(--accent); color: white; transform: scale(1.1); }

.vt-select {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A9DAB' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 40px; cursor: pointer;
}
.vt-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-10); }

/* ==========================================================================
   7. PHOTOS GRID
   ========================================================================== */
.vt-photos-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 16px;
}
.vt-photo-slot {
    display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative;
}
.vt-photo-slot__ref {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    border: 2px solid var(--border); flex-shrink: 0; opacity: 0.5;
    transition: opacity 0.3s ease;
}
.vt-photo-slot--uploaded .vt-photo-slot__ref { opacity: 0.25; }
.vt-photo-slot__ref img { width: 100%; height: 100%; object-fit: cover; }
.vt-photo-slot__upload { width: 100%; }
.vt-photo-slot__dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 16px 8px; border: 2px dashed var(--border);
    border-radius: 10px; background: var(--bg-soft); cursor: pointer;
    transition: all 0.25s ease; text-align: center; min-height: 80px;
}
.vt-photo-slot__dropzone:hover { border-color: var(--accent); background: var(--accent-light); }
.vt-photo-slot__dropzone--dragover {
    border-color: var(--accent); background: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-10);
}
.vt-photo-slot__dropzone svg { color: var(--accent); opacity: 0.5; }
.vt-photo-slot__dropzone span { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.vt-photo-slot__input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.vt-photo-slot__preview {
    position: relative; border-radius: 10px; overflow: hidden;
    border: 2px solid var(--accent-20);
}
.vt-photo-slot__thumb { width: 100%; height: 100px; object-fit: cover; display: block; }
.vt-photo-slot__remove {
    position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
    border-radius: 50%; border: none; background: rgba(239,68,68,0.9);
    color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; padding: 0;
}
.vt-photo-slot__remove:hover { background: #DC2626; }
.vt-photo-slot__label { display: block; font-size: 12px; font-weight: 700; color: var(--text-primary); text-align: center; }
.vt-photo-slot__status { font-size: 10px; text-align: center; min-height: 14px; }
.vt-photo-slot__status--ok { color: var(--accent); }
.vt-photo-slot__status--error { color: #EF4444; font-weight: 600; }

@media (max-width: 768px) { .vt-photos-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 480px) {
    .vt-photos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .vt-photo-slot__ref { width: 56px; height: 56px; }
    .vt-photo-slot__dropzone { padding: 12px 6px; min-height: 64px; }
    .vt-photo-slot__thumb { height: 80px; }
}

/* ==========================================================================
   8. NAVIGATION
   ========================================================================== */
.vt-nav {
    display: flex; justify-content: space-between;
    margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.vt-nav__prev, .vt-nav__next {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px;
    font-weight: 600; font-size: 14px; cursor: pointer;
    font-family: var(--font); transition: all 0.25s ease; line-height: 1;
}
.vt-nav__prev { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.vt-nav__prev:hover { border-color: var(--border-hover); color: var(--text-primary); }
.vt-nav__prev:disabled { opacity: 0.4; cursor: not-allowed; }
.vt-nav__prev:disabled:hover { border-color: var(--border); color: var(--text-secondary); }
.vt-nav__next { background: var(--accent); border: 1.5px solid var(--accent); color: white; }
.vt-nav__next:hover {
    background: var(--accent-hover); border-color: var(--accent-hover);
    transform: translateY(-2px); box-shadow: 0 4px 12px rgba(29,50,80,0.3);
}
.vt-nav__next:disabled { opacity: 0.5; cursor: not-allowed; }

/* ==========================================================================
   9. ERROR + CONTACT FIELDS + PRIVACIDAD
   ========================================================================== */
.vt-error { color: #EF4444; font-size: 13px; margin-top: 8px; min-height: 20px; }
.vt-error--show { animation: vtShake 0.4s ease; }

.vt-contact-field { margin-bottom: 18px; }
.vt-contact-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }

.vt-checkbox--privacy { border: none; padding: 0; background: none; }
.vt-checkbox--privacy:hover { background: none; }
.vt-checkbox--privacy:has(:checked) { background: none; }
.vt-checkbox--privacy a { color: var(--accent); text-decoration: underline; }
.vt-checkbox--privacy a:hover { color: var(--accent-hover); }

/* ==========================================================================
   10. LOADING OVERLAY + RESULTS PAGE
   ========================================================================== */
#vt-loading { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }
.vt-loading__overlay {
    width: 100%; height: 100%; background: rgba(255,255,255,0.95);
    display: flex; align-items: center; justify-content: center;
}
.vt-loading__content { text-align: center; }
.vt-loading__spinner { animation: vtSpin 1.5s linear infinite; margin: 0 auto 24px; color: var(--accent); }
.vt-loading__title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.vt-loading__subtitle { font-size: 14px; color: var(--text-muted); }

.vt-results { padding: 48px 0; }
.vt-results .container { max-width: 720px; margin-left: auto; margin-right: auto; }
.vt-results__header { text-align: center; margin-bottom: 40px; }
.vt-results__header svg { color: var(--accent); margin-bottom: 16px; }
.vt-results__title {
    font-size: clamp(24px, 4vw, 32px); font-weight: 800;
    color: var(--text-primary); margin-bottom: 8px;
}
.vt-results__greeting { font-size: 16px; color: var(--text-secondary); }
.vt-results__section {
    background: var(--white); border-radius: var(--radius);
    padding: 28px; margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(12,27,42,0.05);
}
.vt-results__section-title {
    font-size: 16px; font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.vt-results__cta {
    text-align: center; margin: 32px 0;
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.vt-results__trust {
    text-align: center; font-size: 14px; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.vt-results__trust svg { color: #F59E0B; }
.vt-cta-wa {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #25D366;
    padding: 8px 16px; border: 1px solid rgba(37,211,102,0.3); border-radius: 50px;
    transition: var(--transition); text-decoration: none;
}
.vt-cta-wa:hover { background: rgba(37,211,102,0.06); border-color: #25D366; }
.vt-cta-wa svg { width: 16px; height: 16px; }

/* ==========================================================================
   11. QUÉ INCLUYE (preview grid)
   ========================================================================== */
.vt-preview-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    max-width: 800px; margin: 0 auto;
}
.vt-preview-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; transition: var(--transition);
}
.vt-preview-card:hover { box-shadow: 0 8px 32px rgba(12,27,42,0.06); transform: translateY(-2px); }
.vt-preview-card__icon { color: var(--accent); margin-bottom: 14px; }
.vt-preview-card h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.vt-preview-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.vt-preview-card__example {
    font-style: italic; font-size: 13px; color: var(--accent);
    background: var(--accent-light); padding: 12px 14px;
    border-radius: 8px; line-height: 1.5;
}
@media (max-width: 768px) { .vt-preview-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   12. FAQs
   ========================================================================== */
.vt-faqs .qa-list { max-width: 800px; margin: 0 auto; }
.vt-faqs .qa-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 8px; overflow: hidden; transition: var(--transition);
}
.vt-faqs .qa-item:hover { border-color: var(--accent-20); }
.vt-faqs .qa-item.open { border-color: var(--accent-20); box-shadow: 0 4px 16px rgba(29,50,80,0.06); }
.vt-faqs .qa-question {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px; cursor: pointer; background: none; border: none;
    width: 100%; text-align: left; font-family: var(--font);
    font-size: 15px; font-weight: 600; color: var(--text-primary);
}
.vt-faqs .qa-question:hover { color: var(--accent); }
.vt-faqs .qa-question svg {
    width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted);
    transition: transform 0.3s ease;
}
.vt-faqs .qa-item.open .qa-question svg { transform: rotate(180deg); color: var(--accent); }
.vt-faqs .qa-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.vt-faqs .qa-answer__inner {
    padding: 0 20px 16px; font-size: 14px; line-height: 1.7; color: var(--text-secondary);
}
.vt-faqs .qa-item.open .qa-answer { max-height: 500px; }

/* ==========================================================================
   13. CTA FINAL (navy gradient)
   ========================================================================== */
.vt-cta-final {
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 50%, var(--accent-hover) 100%);
    padding: 80px 0;
}
.vt-cta-final h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
    color: #fff; margin-bottom: 12px;
}
.vt-cta-final p {
    font-size: 15px; color: rgba(255,255,255,0.7);
    max-width: 520px; margin: 0 auto 32px; line-height: 1.6;
}
.vt-cta-final__actions {
    display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.vt-cta-final .btn-primary {
    background: #fff; color: var(--accent); border-color: #fff;
    font-size: 18px; padding: 18px 44px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.vt-cta-final .btn-primary:hover {
    background: var(--bg-light); color: var(--accent-hover);
    transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.vt-cta-final__wa { color: #fff; border-color: rgba(255,255,255,0.25); }
.vt-cta-final__wa:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); color: #fff; }
.vt-cta-final__wa svg { fill: #25D366; }

/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */
@keyframes vtFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes vtSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes vtShake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-5px); }
    75%     { transform: translateX(5px); }
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .section, .vt-como-funciona.section { padding: 48px 0; }
    #vt-form { padding: 24px 20px; }
    .vt-scale__btn { width: 34px; height: 34px; font-size: 12px; }
    .vt-scale { gap: 8px; }
    .vt-nav { gap: 12px; }
    .vt-results__cta { flex-direction: column; }
    .vt-cta-final__actions { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    #vt-form { padding: 20px 16px; }
    .vt-scale__btn { width: 30px; height: 30px; font-size: 11px; }
    .vt-scale__buttons { gap: 4px; }
    .vt-radio, .vt-checkbox { padding: 12px 14px; }
}
