/* ═══════════════════════════════════════════════════════
   Wanda Studio – Frontend público (foto/vídeo/combo)
   Basado fielmente en Wanda Photo v2.7.1 — prefijo .wws-
═══════════════════════════════════════════════════════ */

:root {
    --wws-bg:           #ffffff;
    --wws-surface:      #f8f8f8;
    --wws-border:       #e4e4e7;
    --wws-accent:       #1a3a5c;
    --wws-accent-light: #e8f0f8;
    --wws-check:        #1a3a5c;
    --wws-text:         #1a1a2e;
    --wws-muted:        #6b7280;
    --wws-price:        #1a3a5c;
    --wws-shadow:       0 2px 12px rgba(0,0,0,.08);
    --wws-shadow-hover: 0 6px 24px rgba(26,58,92,.18);
    --wws-radius:       14px;
    --wws-transition:   all .22s cubic-bezier(.4,0,.2,1);
}

.wws-app { max-width: 900px; margin: 0 auto; padding: 10px 0 40px; font-family: inherit; scroll-margin-top: 100px; }
.wws-app *, .wws-app *::before, .wws-app *::after { box-sizing: border-box; }
#wws-budget-container { scroll-margin-top: 100px; }

/* ── Mensaje de bienvenida ── */
.wws-welcome-msg {
    background: linear-gradient(135deg, #eef4fb 0%, #f0f7ff 100%);
    border-left: 4px solid var(--wws-accent);
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 32px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--wws-accent);
    line-height: 1.5;
}

/* ── Secciones ── */
.wws-section { margin-bottom: 48px; }
.wws-section-title    { font-size: 1.45rem; font-weight: 700; color: var(--wws-text); margin-bottom: 6px; letter-spacing: -.3px; }
.wws-section-subtitle { color: var(--wws-muted); font-size: .93rem; margin-bottom: 22px; }
.wws-empty { color: var(--wws-muted); font-style: italic; }

/* ── Grid de tarifas ── */
.wws-rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 760px) { .wws-rates-grid { grid-template-columns: 1fr; } }

/* ── Tarjeta tarifa ── */
.wws-rate-card {
    background: var(--wws-surface);
    border: 2px solid var(--wws-border);
    border-radius: var(--wws-radius);
    padding: 22px 20px 20px;
    cursor: pointer;
    transition: var(--wws-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wws-rate-card:hover { border-color: var(--wws-accent); box-shadow: var(--wws-shadow-hover); transform: translateY(-2px); }
.wws-rate-card.wws-selected {
    border-color: var(--wws-check);
    background: var(--wws-accent-light);
    box-shadow: var(--wws-shadow-hover);
}

/* ── Check selector (tarifas y extras) ── */
.wws-check {
    position: absolute; top: 12px; right: 12px;
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--wws-border);
    display: flex; align-items: center; justify-content: center;
    transition: var(--wws-transition); background: #fff;
}
.wws-check-icon { color: #fff; font-size: .8rem; line-height: 1; display: none; }
.wws-rate-card.wws-selected .wws-check,
.wws-extra-card.wws-selected .wws-check {
    background: var(--wws-check) !important;
    border-color: var(--wws-check) !important;
}
.wws-rate-card.wws-selected .wws-check-icon,
.wws-extra-card.wws-selected .wws-check-icon { display: block !important; }

.wws-rate-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.wws-rate-name     { font-size: 1.1rem; font-weight: 800; color: var(--wws-text); margin: 0; letter-spacing: .5px; }
.wws-rate-subtitle { font-size: .86rem; color: var(--wws-muted); margin: 0; font-style: italic; }

.wws-rate-includes-label {
    font-size: .75rem; font-weight: 700; letter-spacing: .8px;
    color: var(--wws-accent); text-transform: uppercase; margin-top: 6px;
}
.wws-rate-includes {
    list-style: none; padding: 0; margin: 0 0 6px;
    display: flex; flex-direction: column; gap: 3px;
}
.wws-rate-includes li {
    font-size: .83rem; font-weight: 600; color: var(--wws-text);
    padding-left: 14px; position: relative;
}
.wws-rate-includes li::before { content: "\25B8"; position: absolute; left: 0; color: var(--wws-accent); font-size: .75rem; top: 1px; }

.wws-rate-details {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px dashed var(--wws-border); padding-top: 8px;
    display: flex; flex-direction: column; gap: 3px;
}
.wws-rate-details li {
    font-size: .8rem; color: var(--wws-muted);
    padding-left: 14px; position: relative;
}
.wws-rate-details li::before { content: "\2713"; position: absolute; left: 0; color: #22c55e; font-size: .75rem; }

/* ── Contenedor de precio en tarjetas ── */
.wws-rate-price, .wws-extra-price {
    border-top: 1px solid var(--wws-border);
    padding-top: 10px;
    margin-top: auto;
}

/* ── Bloque de precio 3 líneas ── */
.wws-price-block { display: flex; flex-direction: column; gap: 2px; }
.wws-price-main  { font-size: 1.2rem; font-weight: 700; color: var(--wws-price); line-height: 1.2; }
.wws-price-main--strikethrough {
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    color: #dc2626;
}
.wws-price-iva-label   { font-size: .75rem; font-weight: 300; color: #888; line-height: 1.3; }
.wws-price-no-vat-line { font-size: .75rem; font-weight: 300; color: #888; line-height: 1.3; }
.wws-gift-price-free {
    font-size: .88rem; font-weight: 700; color: #16a34a; margin-top: 4px;
}

/* ── Extras grid ── */
.wws-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.wws-extra-card {
    background: var(--wws-surface);
    border: 2px solid var(--wws-border);
    border-radius: var(--wws-radius);
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: var(--wws-transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.wws-extra-card:hover { border-color: var(--wws-accent); box-shadow: var(--wws-shadow); transform: translateY(-2px); }
.wws-extra-card.wws-selected {
    border-color: var(--wws-accent) !important;
    background: var(--wws-accent-light) !important;
    box-shadow: 0 4px 16px rgba(26,58,92,.15) !important;
}

/* ── Icono extras/tarifas ── */
.wws-extra-icon .dashicons { font-size: 28px; width: 28px; height: 28px; color: var(--wws-accent); }

/* ── Textos extra ── */
.wws-extra-title { font-size: .97rem; font-weight: 700; color: var(--wws-text); margin: 0; }
.wws-extra-desc  { font-size: .85rem; color: var(--wws-muted); margin: 0; }

/* ── Extras Regalo ── */
.wws-extra-gift { position: relative; }
.wws-gift-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-transform: uppercase;
}
.wws-gift-message {
    font-size: 12px;
    font-style: italic;
    margin: 6px 0 0;
    line-height: 1.4;
    padding: 6px 8px;
    border-radius: 6px;
    border-left: 3px solid #e91e8c;
}

/* ── Resumen simplificado ── */
.wws-summary-section { margin-bottom: 24px; }
.wws-summary-open {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
}
.wws-summary-card {
    background: var(--wws-surface);
    border-radius: var(--wws-radius);
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wws-summary { display: flex; flex-direction: column; gap: 10px; }
.wws-summary-row { display: flex; justify-content: space-between; align-items: center; }
.wws-summary-label { font-size: 1rem; color: var(--wws-muted); }
.wws-summary-value { font-size: 1.1rem; font-weight: 700; color: var(--wws-text); }

.wws-total-row {
    border-top: 2px solid var(--wws-border);
    padding-top: 10px;
    margin-top: 4px;
}
.wws-total-row .wws-summary-label,
.wws-total-row .wws-summary-value { font-size: 1.15rem; }

.wws-summary-value.wws-gift-strikethrough {
    text-decoration: line-through;
    text-decoration-color: #dc2626;
    color: #dc2626 !important;
}

/* ── Bloque pago informativo ── */
.wws-payment-info {
    background: #fffbf5;
    border-left: 4px solid #d4a853;
    border-radius: 8px;
    padding: 20px 24px;
    font-size: .95rem;
    color: var(--wws-text);
    margin-bottom: 30px;
}
.wws-payment-info p { margin: 0 0 8px; }
.wws-payment-info p:last-child { margin: 0; }

/* ── Formulario: bloque pareja ── */
.wws-couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
@media (max-width: 600px) { .wws-couple-grid { grid-template-columns: 1fr; } }

.wws-person-block {
    margin-bottom: 0;
    border: 2px solid var(--wws-border);
    border-radius: var(--wws-radius);
    padding: 20px 24px 16px;
    background: var(--wws-surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.wws-person-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--wws-accent);
    margin-bottom: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--wws-border);
}

/* ── Formulario: bottom (email, fecha, comentarios) ── */
.wws-form-grid--bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-top: 20px;
}
@media (max-width: 600px) { .wws-form-grid--bottom { grid-template-columns: 1fr; } }

.wws-field--textarea-top {
    grid-column: 1 / -1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wws-field--textarea-top label { vertical-align: top; align-self: flex-start; }
.wws-field--textarea-top textarea {
    vertical-align: top;
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
}

.wws-field { display: flex; flex-direction: column; gap: 6px; }
.wws-field label { font-size: .9rem; font-weight: 600; color: var(--wws-text); }
.wws-field input {
    border: 2px solid var(--wws-border); border-radius: 8px;
    padding: 10px 14px; font-size: 1rem;
    transition: var(--wws-transition); background: #fff; color: var(--wws-text);
}
.wws-field input:focus { border-color: var(--wws-accent); outline: none; box-shadow: 0 0 0 3px rgba(26,58,92,.12); }
.wws-field textarea {
    width: 100%; box-sizing: border-box;
    border: 2px solid var(--wws-border); border-radius: 8px;
    padding: 10px 14px; font-size: 1rem; font-family: inherit;
    transition: var(--wws-transition); background: #fff; color: var(--wws-text);
    resize: vertical; min-height: 80px;
}
.wws-field textarea:focus { border-color: var(--wws-accent); outline: none; box-shadow: 0 0 0 3px rgba(26,58,92,.12); }
.wws-required { color: #e53e3e; }
.wws-field-error { font-size: .82rem; color: #dc2626; margin-top: 2px; display: block; }
.wws-field input.wws-input-error,
.wws-field textarea.wws-input-error { border-color: #e53e3e !important; }

input[type="date"]#wws-wedding-date,
input[type="date"]#event_date { color-scheme: light; }

/* ── Mensaje error ── */
.wws-msg { padding: 14px 20px; border-radius: 8px; font-weight: 600; font-size: .97rem; margin-bottom: 20px; }
.wws-msg-error { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ── Botón submit ── */
.wws-submit-wrap { display: flex; justify-content: center; padding-top: 10px; }
.wws-btn-submit {
    background: var(--wws-accent); color: #fff; border: none; border-radius: 50px;
    padding: 16px 48px; font-size: 1.05rem; font-weight: 700; cursor: pointer;
    transition: var(--wws-transition); letter-spacing: .4px;
    white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 200px;
}
.wws-btn-submit:hover { background: #0f2a45; box-shadow: 0 8px 24px rgba(26,58,92,.35); transform: translateY(-1px); }
.wws-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
    .wws-btn-submit { padding: 14px 28px; font-size: .95rem; min-width: 160px; }
    .wws-summary-card { padding: 14px 16px; }
    .wws-section-title { font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════
   POPUP DE ÉXITO
═══════════════════════════════════════════════════════ */
.wws-popup-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(10, 20, 40, .72);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: wwsFadeIn .3s ease;
}
@keyframes wwsFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wws-popup {
    background: #fff; border-radius: 20px;
    padding: 48px 40px 40px; max-width: 480px; width: 100%;
    text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: wwsSlideUp .35s cubic-bezier(.34,1.56,.64,1);
}
@keyframes wwsSlideUp { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.wws-popup-heart {
    font-size: 3rem; line-height: 1; margin-bottom: 16px;
    animation: wwsHeartbeat 1.2s ease infinite;
}
@keyframes wwsHeartbeat {
    0%, 100% { transform: scale(1); }
    14%      { transform: scale(1.18); }
    28%      { transform: scale(1); }
    42%      { transform: scale(1.12); }
    56%      { transform: scale(1); }
}

.wws-popup-title {
    font-size: 1.55rem; font-weight: 800; color: var(--wws-text);
    margin: 0 0 14px; line-height: 1.2;
}
.wws-popup-message {
    font-size: 1.05rem; color: var(--wws-muted); line-height: 1.6;
    margin: 0 0 28px;
}
.wws-popup-close {
    background: var(--wws-accent); color: #fff; border: none;
    border-radius: 50px; padding: 13px 36px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: var(--wws-transition);
}
.wws-popup-close:hover { background: #0f2a45; box-shadow: 0 6px 20px rgba(26,58,92,.35); }

@media (max-width: 480px) {
    .wws-popup { padding: 36px 24px 30px; }
    .wws-popup-title { font-size: 1.3rem; }
}

/* ═══════════════════════════════════════════════════════
   POPUP VÍDEO
═══════════════════════════════════════════════════════ */
.wws-video-link {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 8px; font-size: .82rem; font-weight: 700;
    color: var(--wws-accent); text-decoration: none;
    background: var(--wws-accent-light); border: 1px solid var(--wws-accent);
    border-radius: 20px; padding: 4px 12px;
    transition: var(--wws-transition);
    position: relative; z-index: 2;
}
.wws-video-link:hover { background: var(--wws-accent); color: #fff; }

.wws-video-overlay {
    position: fixed; inset: 0; z-index: 999999;
    background: rgba(5,10,20,.85); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    animation: wwsFadeIn .25s ease;
}
.wws-video-modal {
    position: relative; width: 100%; max-width: 860px;
    background: #000; border-radius: 12px; overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    animation: wwsSlideUp .3s cubic-bezier(.34,1.56,.64,1);
}
.wws-video-close {
    position: absolute; top: 10px; right: 12px; z-index: 10;
    background: rgba(0,0,0,.55); color: #fff; border: none;
    border-radius: 50%; width: 34px; height: 34px; font-size: 1rem;
    cursor: pointer; line-height: 1; transition: var(--wws-transition);
    display: flex; align-items: center; justify-content: center;
}
.wws-video-close:hover { background: rgba(255,255,255,.2); }
.wws-video-container { position: relative; padding-top: 56.25%; width: 100%; }
.wws-video-container iframe,
.wws-video-container video {
    position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block;
}

/* ═══════════════════════════════════════════════════════
   EMAIL GATE
═══════════════════════════════════════════════════════ */
.wws-email-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}
.wws-email-gate-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    padding: 48px 40px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
}
.wws-email-gate-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--wws-accent);
}
.wws-email-gate-subtitle {
    color: #666;
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.5;
}
.wws-email-gate-form { display: flex; flex-direction: column; gap: 12px; }
.wws-email-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.wws-email-input:focus { outline: none; border-color: var(--wws-accent); }
.wws-load-budget-btn {
    width: 100%;
    padding: 14px;
    background: var(--wws-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.wws-load-budget-btn:hover    { background: #2d5c8e; }
.wws-load-budget-btn:active   { transform: scale(.98); }
.wws-load-budget-btn:disabled { opacity: .6; cursor: not-allowed; }
.wws-email-gate-loading {
    margin-top: 14px;
    color: #888;
    font-size: 14px;
    font-style: italic;
}
.wws-email-gate-error {
    margin-top: 14px;
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Notas del presupuesto ── */
.wws-notes-section {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 16px 0;
}
.wws-notes-text { margin: 0; color: #78350f; font-size: 14px; line-height: 1.6; }

@media (max-width: 600px) {
    .wws-email-gate-card { padding: 32px 20px 28px; }
    .wws-email-gate-title { font-size: 20px; }
}

/* Stub (otras fases) */
.wws-sc-stub {
    display: flex; flex-direction: column; gap: 6px;
    padding: 24px;
    border: 1px dashed #c7c7c7;
    border-radius: 10px;
    background: #fafafa;
    color: #666;
    text-align: center;
}
.wws-sc-phase { font-size: 12px; color: #999; }

/* ============================================================
 * FORMULARIOS PERSONALIZADOS  ([wanda_studio_form])
 * ============================================================ */
.wws-form-wrap { max-width: 720px; margin: 0 auto; padding: 0 12px; }
.wws-form-public {
    background: var(--wws-surface, #fff);
    border: 1px solid var(--wws-border, #e5ecf3);
    border-radius: 14px;
    padding: 28px 28px 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.wws-form-title {
    margin: 0 0 6px;
    font-size: 26px;
    color: var(--wws-pub-title, var(--wws-primary, #1a3a5c));
    text-align: center;
    font-weight: 600;
}
.wws-form-desc {
    margin: 0 0 22px;
    color: var(--wws-pub-sub, var(--wws-muted, #6b7a8d));
    text-align: center;
    font-size: 14px;
}
.wws-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.wws-field { display: flex; flex-direction: column; gap: 6px; }
.wws-field-full { grid-column: 1 / -1; }
.wws-field-half { grid-column: span 1; }
.wws-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wws-text, #1d2a3a);
}
.wws-req { color: var(--wws-danger, #dc2626); margin-left: 3px; }
.wws-field input[type="text"],
.wws-field input[type="email"],
.wws-field input[type="tel"],
.wws-field input[type="number"],
.wws-field input[type="date"],
.wws-field select,
.wws-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--wws-border, #e5ecf3);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.wws-field input:focus,
.wws-field select:focus,
.wws-field textarea:focus {
    outline: none;
    border-color: var(--wws-primary, #1a3a5c);
    box-shadow: 0 0 0 3px rgba(26,58,92,.08);
}
.wws-field textarea { resize: vertical; min-height: 110px; }
.wws-field-help { color: var(--wws-muted, #6b7a8d); font-size: 12px; }
.wws-field.wws-has-error input,
.wws-field.wws-has-error select,
.wws-field.wws-has-error textarea {
    border-color: var(--wws-danger, #dc2626);
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}
.wws-options { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.wws-option {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--wws-border, #e5ecf3);
    border-radius: 8px;
    font-size: 14px;
    color: var(--wws-text, #1d2a3a);
    cursor: pointer;
    transition: background .12s;
}
.wws-option:hover { background: #f9fbfd; }
.wws-option input { margin: 0; }
.wws-form-foot {
    margin-top: 22px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.wws-form-submit {
    background: var(--wws-pub-btn-bg, var(--wws-primary, #1a3a5c));
    color: var(--wws-pub-btn-text, #fff);
    border: none;
    padding: 13px 36px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.wws-form-submit:hover { opacity: .92; }
.wws-form-submit:disabled { opacity: .5; cursor: not-allowed; }
.wws-form-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid var(--wws-border, #e5ecf3);
    border-top-color: var(--wws-primary, #1a3a5c);
    border-radius: 50%;
    animation: wws-spin .7s linear infinite;
}
.wws-form-public.is-loading .wws-form-spinner { display: inline-block; }
@keyframes wws-spin { to { transform: rotate(360deg); } }
.wws-form-msg { margin-top: 14px; text-align: center; font-size: 14px; }
.wws-form-msg.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 14px 18px;
    border-radius: 10px;
}
.wws-form-msg.is-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
}
.wws-form-public.is-sent .wws-form-grid,
.wws-form-public.is-sent .wws-form-foot { display: none; }

@media (max-width: 600px) {
    .wws-form-grid { grid-template-columns: 1fr; }
    .wws-field-half { grid-column: 1 / -1; }
    .wws-form-public { padding: 22px 18px 18px; }
    .wws-form-title { font-size: 22px; }
}

/* ============================================================
 * PLAN DE PAGOS — sección pública del presupuesto
 * ============================================================ */
.wws-payment-plan { margin-top: 28px; }
.wws-payment-plan .wws-section-title { text-align: left; font-size: 22px; }
.wws-payment-plan .wws-section-subtitle { margin-top: 4px; color: var(--wws-muted, #6b7a8d); font-size: 14px; }
.wws-pp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 18px;
}
.wws-pp-card {
    background: var(--wws-surface, #fff);
    border: 1px solid var(--wws-border, #e5ecf3);
    border-radius: 14px;
    padding: 18px 16px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.wws-pp-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1.4px;
    font-weight: 700;
    margin-bottom: 12px;
}
.wws-pp-desc {
    color: var(--wws-text, #1d2a3a);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 14px;
    min-height: 38px;
}
.wws-pp-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--wws-text, #1d2a3a);
    line-height: 1.2;
}
.wws-pp-no-vat {
    font-size: 12px;
    color: var(--wws-muted, #6b7a8d);
    margin-top: 4px;
    min-height: 16px;
}
.wws-pp-disclaimer {
    margin-top: 18px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
}
.wws-pp-disclaimer p {
    margin: 0;
    color: #78350f;
    font-size: 13px;
    line-height: 1.6;
}
@media (max-width: 720px) {
    .wws-pp-cards { grid-template-columns: 1fr; }
}
