/* Panel de la clínica: portada, secciones y tarjetas. */
.vaf-dashboard {
    margin-top: 20px;
    margin-bottom: 24px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: hsl(210 20% 98%);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.vaf-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.vaf-dashboard-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}
.vaf-dashboard-main {
    padding: 20px 24px 24px;
}
.vaf-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .vaf-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vaf-dash-card--featured {
        grid-column: span 2 / span 2;
    }
}
.vaf-dash-card {
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.vaf-dash-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.vaf-dash-card-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
}
.vaf-dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}
.vaf-dash-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
}
.vaf-dash-btn--logout .vaf-dash-card-icon {
    margin-right: 0.8rem;
}
.vaf-dash-card-content {
    padding: 16px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.vaf-dash-card-description {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
.vaf-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.vaf-dash-btn:hover {
    opacity: 0.93;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.18);
    transform: translateY(-0.5px);
}
.vaf-dash-card-content .vaf-dash-btn {
    margin-left: auto;
}
.vaf-dash-btn--logout {
    background: hsl(0 72% 55%);
    color: #ffffff;
}
/* Gradientes del dashboard basados en los mismos colores que los formularios */
.vaf-dash-card-header--agenda {
    /* Caja destacada: usa el mismo par Primario/Secundario que los botones Continuar */
    background: linear-gradient(
        to right,
        hsl(var(--primary) / 0.12),
        hsl(var(--secondary) / 0.12)
    );
}
.vaf-dash-btn--agenda {
    background: linear-gradient(
        to right,
        hsl(var(--primary) / 0.18),
        hsl(var(--secondary) / 0.18)
    );
    color: #111827;
    border: 1px solid rgba(15,23,42,0.06);
}
/* Las otras 4 cajas comparten el mismo color, solo dependiente del naranja */
.vaf-dash-card-header--management,
.vaf-dash-card-header--api,
.vaf-dash-card-header--personalizacion,
.vaf-dash-card-header--lista {
    background: linear-gradient(
        to right,
        hsl(var(--pet-orange) / 0.1),
        hsl(var(--pet-orange) / 0.06)
    );
}
/* Botones "Configurar" de las 4 cajas: mismo naranja configurable */
.vaf-dash-btn--management,
.vaf-dash-btn--api,
.vaf-dash-btn--personalizacion,
.vaf-dash-btn--lista {
    background: linear-gradient(
        to right,
        hsl(var(--pet-orange) / 0.18),
        hsl(var(--pet-orange) / 0.24)
    );
    color: #111827;
    border: 1px solid rgba(15,23,42,0.06);
}
.vaf-config-form-style .wrap { max-width: 100%; padding: 0; margin: 0; }
.vaf-config-form-style .wrap > h1 { display: none; }
.vaf-config-form-style .wrap > form > table:first-of-type { margin-bottom: 0; }
.vaf-config-form-style .wrap form { margin: 0; }
.vaf-config-form-style hr {
    margin: 1.5rem 0;
    border: none;
    /* Separadores más visibles también en el formulario de admin */
    border-top: 1px solid rgba(15,23,42,0.3);
}
.vaf-config-form-style h2 {
    font-size: 1rem; font-weight: 600; color: #2d2618; margin: 1.25rem 0 0.5rem; padding-bottom: 0.25rem;
}
.vaf-config-form-style h2:first-of-type { margin-top: 0; }
.vaf-config-form-style .form-table { margin: 0 0 1rem; }
.vaf-config-form-style .form-table th,
.vaf-config-form-style .form-table td {
    padding: 0.5rem 0; vertical-align: top; font-size: 0.875rem;
}
.vaf-config-form-style .form-table th { width: 160px; color: #2d2618; font-weight: 500; }
.vaf-config-form-style .form-table td { color: #4b5563; }
.vaf-config-form-style .description { font-size: 0.75rem; color: #6b6560; margin: 0.25rem 0 0; }
.vaf-config-form-style input[type="text"],
.vaf-config-form-style input[type="password"],
.vaf-config-form-style input[type="number"],
.vaf-config-form-style input[type="email"],
.vaf-config-form-style select,
.vaf-config-form-style textarea {
    padding: 0.4rem 0.6rem; font-size: 0.875rem; border: 1px solid hsl(30 30% 85%);
    border-radius: 6px; background: #fff; max-width: 100%;
}
.vaf-config-form-style input.small-text { width: 70px; }
.vaf-config-form-style .button, .vaf-config-form-style button[type="submit"] {
    padding: 0.4rem 0.875rem; font-size: 0.8125rem; border-radius: 6px; cursor: pointer;
    background: #2D9966; color: #fff; border: none; transition: opacity 0.15s;
}
.vaf-config-form-style .button:hover, .vaf-config-form-style button[type="submit"]:hover { opacity: 0.9; }
.vaf-config-form-style .button-secondary, .vaf-config-form-style .button-small {
    background: #fff; color: #374151; border: 1px solid hsl(30 30% 85%);
}
.vaf-config-form-style .notice {
    padding: 0.625rem 0.875rem; margin: 0 0 1rem; border-radius: 6px; font-size: 0.875rem;
    border: 1px solid;
}
.vaf-config-form-style .notice-success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.vaf-config-form-style .notice-error { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.vaf-config-form-style .notice-info { background: #d1ecf1; border-color: #bee5eb; color: #0c5460; }
.vaf-config-form-style .card {
    background: #fff; border: 1px solid hsl(30 30% 85%); border-radius: 10px;
    padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vaf-config-form-style .card h3 { font-size: 0.9375rem; margin: 0 0 0.5rem; color: #2d2618; }
.vaf-config-form-style .vaf-google-box {
    background: #faf8f2; border: 1px solid hsl(30 30% 85%); border-radius: 8px;
    padding: 0.75rem 1rem; margin: 0.5rem 0;
}
.vaf-config-form-style .vaf-api-section-card {
    background: #fff; border: 1px solid hsl(30 30% 85%); border-radius: 10px;
    padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.vaf-back-btn { display: inline-flex !important; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem; margin-bottom: 0.5rem; border: 1px solid #ddd; background: #fff; color: #374151; cursor: pointer; text-decoration: none !important; }
.vaf-back-btn:hover { background: #f9fafb !important; }
.vaf-config-form-style .vaf-api-section-card:last-of-type { margin-bottom: 0; }
.vaf-config-form-style .vaf-api-section-card h2 { margin-top: 0 !important; padding-top: 0 !important; }
.vaf-config-form-style .widefat { font-size: 0.8125rem; border-radius: 6px; overflow: hidden; }
.vaf-config-form-style .widefat th,
.vaf-config-form-style .widefat td { padding: 0.5rem 0.75rem; }
.vaf-config-form-style .widefat thead th { background: #f0ebe3; color: #2d2618; font-weight: 500; }
.vaf-config-form-style #vaf-calendar-grid td { height: 56px; font-size: 0.75rem; }
.vaf-config-form-style #vaf-day-modal > div {
    border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.vaf-config-form-style .vaf-section .form-table { margin-bottom: 0.5rem; }
.vaf-config-form-style .vaf-servicios-vacunas-grid {
    max-height: 400px; overflow-y: auto; overflow-x: hidden;
    padding: 1rem; border: 1px solid hsl(30 30% 85%); border-radius: 8px;
    background: #faf8f2;
}
.vaf-config-form-style .vaf-servicios-vacunas-grid::-webkit-scrollbar { width: 8px; }
.vaf-config-form-style .vaf-servicios-vacunas-grid::-webkit-scrollbar-track { background: #f0ebe3; border-radius: 4px; }
.vaf-config-form-style .vaf-servicios-vacunas-grid::-webkit-scrollbar-thumb { background: #c4bcb0; border-radius: 4px; }
.vaf-config-form-style .vaf-servicios-vacunas-grid::-webkit-scrollbar-thumb:hover { background: #a89f92; }
@media (max-width: 900px) {
    .vaf-config-form-style .vaf-servicios-vacunas-grid { grid-template-columns: 1fr !important; max-height: 520px; }
}
.vaf-management-wrap .vaf-settings-compact .wrap { max-width: 100%; padding: 0; }
.vaf-management-wrap .vaf-settings-compact .wrap > h1 { display: none; }
.vaf-management-wrap .vaf-mgmt-card { margin-bottom: 0; }
.vaf-management-wrap .vaf-management-sections .vaf-mgmt-card:last-of-type { margin-bottom: 0; }
.vaf-mgmt-panel { max-width: 64rem; margin: 0 auto; padding: 2rem 1.5rem; }
.vaf-mgmt-panel .vaf-mgmt-header { position: sticky; top: 0; z-index: 10; background: hsl(0 0% 100% / 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid hsl(30 30% 90%); padding: 1rem 0; margin-bottom: 2rem; }
.vaf-mgmt-panel .vaf-mgmt-header-inner { display: flex; align-items: center; gap: 0.75rem; max-width: 64rem; margin: 0 auto; }
.vaf-mgmt-panel .vaf-mgmt-header-icon { background: #2D9966; border-radius: 0.75rem; padding: 0.5rem; }
.vaf-mgmt-panel .vaf-mgmt-header-icon svg { width: 1.5rem; height: 1.5rem; color: #fff; }
.vaf-mgmt-panel .vaf-mgmt-header h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.vaf-mgmt-panel .vaf-mgmt-header p { font-size: 0.875rem; color: hsl(25 15% 45%); margin: 0; }
.vaf-mgmt-panel .vaf-mgmt-main { display: flex; flex-direction: column; gap: 2rem; }
.vaf-mgmt-card { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); border: 0; border-radius: 0.75rem; overflow: hidden; }
.vaf-mgmt-card-servicios { box-shadow: 0 10px 15px -3px rgba(45,153,102,0.1); }
.vaf-mgmt-card-servicios .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(30,80,120,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-servicios .vaf-mgmt-card-title svg { color: #2D9966; }
.vaf-mgmt-card-roles { box-shadow: 0 10px 15px -3px rgba(242,179,122,0.15); }
.vaf-mgmt-card-roles .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(242,179,122,0.2), rgba(200,180,150,0.2)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-roles .vaf-mgmt-card-title svg { color: hsl(30 80% 45%); }
.vaf-mgmt-card-workers { box-shadow: 0 10px 15px -3px rgba(100,150,200,0.15); }
.vaf-mgmt-card-workers .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(100,150,200,0.2), rgba(45,153,102,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-workers .vaf-mgmt-card-title svg { color: hsl(200 60% 55%); }
.vaf-mgmt-card-horarios { box-shadow: 0 10px 15px -3px rgba(0,102,204,0.1); }
.vaf-mgmt-card-horarios .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(0,102,204,0.1), rgba(45,153,102,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-horarios .vaf-mgmt-card-title svg { color: #0066cc; }
.vaf-mgmt-card-calendario { box-shadow: 0 10px 15px -3px rgba(45,153,102,0.1); }
.vaf-mgmt-card-calendario .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(0,102,204,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-calendario .vaf-mgmt-card-title svg { color: #2D9966; }
.vaf-mgmt-card-credentials { box-shadow: 0 10px 15px -3px rgba(107,114,128,0.15); }
.vaf-mgmt-card-credentials .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(107,114,128,0.1), rgba(75,85,99,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-credentials .vaf-mgmt-card-title svg { color: #4b5563; }
.vaf-mgmt-card-api-smtp { box-shadow: 0 10px 15px -3px rgba(45,153,102,0.1); }
.vaf-mgmt-card-api-smtp .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(30,80,120,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-api-smtp .vaf-mgmt-card-title svg { color: #2D9966; }
.vaf-mgmt-card-api-recaptcha { box-shadow: 0 10px 15px -3px rgba(242,179,122,0.15); }
.vaf-mgmt-card-api-recaptcha .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(242,179,122,0.2), rgba(200,180,150,0.2)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-api-recaptcha .vaf-mgmt-card-title svg { color: hsl(30 80% 45%); }
.vaf-mgmt-card-api-google { box-shadow: 0 10px 15px -3px rgba(45,153,102,0.1); }
.vaf-mgmt-card-api-google .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(0,102,204,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-api-google .vaf-mgmt-card-title svg { color: #2D9966; }
/* Unificar Google Calendar con reCAPTCHA: mismos tamaños, bordes y botones */
.vaf-mgmt-card-api .vaf-mgmt-card-content .description { font-size: 0.75rem; color: #6b6560; margin-bottom: 12px; }
.vaf-mgmt-card-api .vaf-mgmt-card-content .description code {
    font-size: 0.75rem; padding: 0.25rem 0.5rem; background: #f5f5f0;
    border: 1px solid hsl(30 30% 85%); border-radius: 4px; display: inline-block;
    word-break: break-all; max-width: 100%; font-weight: 400;
}
.vaf-mgmt-card-api .vaf-mgmt-card-content .form-table th,
.vaf-mgmt-card-api .vaf-mgmt-card-content .form-table td { font-size: 0.875rem; }
.vaf-mgmt-card-api .vaf-mgmt-card-content .form-table th { font-weight: 500; }
.vaf-mgmt-card-api .vaf-mgmt-card-content input.regular-text {
    width: 100%; max-width: 400px; padding: 0.4rem 0.6rem; font-size: 0.875rem;
    border: 1px solid hsl(30 30% 85%); border-radius: 6px; background: #fff;
}
.vaf-mgmt-card-api .vaf-mgmt-card-content .button,
.vaf-mgmt-card-api .vaf-mgmt-card-content a.button {
    padding: 0.4rem 0.875rem; font-size: 0.8125rem; border-radius: 6px;
}
.vaf-mgmt-card-api .vaf-mgmt-card-content .button-secondary {
    background: #fff; color: #374151; border: 1px solid hsl(30 30% 85%);
}
.vaf-mgmt-card-api .vaf-mgmt-card-content .vaf-btn-connect {
    background: #2D9966 !important; color: #fff !important; border: none; text-decoration: none;
}
.vaf-mgmt-card-api .vaf-mgmt-card-content .vaf-btn-connect:hover { opacity: 0.9; }
.vaf-mgmt-card-api-google { margin-top: 2rem !important; }
.vaf-mgmt-card-appointments { box-shadow: 0 10px 15px -3px rgba(45,153,102,0.1); background:#fff; border-radius:0.75rem; }
.vaf-mgmt-card-appointments .vaf-mgmt-card-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(0,102,204,0.1)); border-radius: 0.75rem 0.75rem 0 0; }
.vaf-mgmt-card-appointments .vaf-mgmt-card-title svg { color: #2D9966; }
.vaf-mgmt-card-appointments .vaf-mgmt-card-content { background:#fff; border-radius:0 0 0.75rem 0.75rem; }
.vaf-mgmt-card-appointments .vaf-appointments-list { background:#fff; border-radius:10px; }
.vaf-mgmt-card-appointments .vaf-appointments-list table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid hsl(30 30% 90%) !important;
    background: #fff !important;
}
/* Header interno sencillo, manteniendo alineación exacta con las columnas */
.vaf-mgmt-card-appointments .vaf-appointments-list thead tr {
    background: #f9fafb !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list thead th {
    background: transparent !important;
    color: #2d2618 !important;
    padding: 0.75rem 1rem !important;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600 !important;
    border-bottom: 1px solid hsl(30 30% 90%) !important;
}

/* Filas: estilo sencillo y responsive, con hover suave */
.vaf-mgmt-card-appointments .vaf-appointments-list tbody tr {
    background:#fff !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list tbody tr:hover {
    background: hsl(45 30% 98%) !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list tbody td {
    padding: 0.75rem 1rem !important;
    font-size: 0.8125rem;
    border-bottom: 1px solid hsl(30 30% 94%) !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list tbody td:first-child {
    border-left: none !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list tbody td:last-child {
    border-right: none !important;
}
.vaf-mgmt-card-appointments .vaf-appointments-list a[href] { padding: 0.375rem 0.75rem; font-size: 0.75rem; background: #2D9966; color: #fff; border-radius: 0.375rem; text-decoration: none; display: inline-block; margin: 2px; transition: opacity 0.15s; }
.vaf-mgmt-card-appointments .vaf-appointments-list a[href]:hover { opacity: 0.9; }
.vaf-mgmt-card-appointments .vaf-cancel-btn { padding: 0.375rem 0.75rem; font-size: 0.75rem; background: hsl(0 72% 55%); color: #fff; border: none; border-radius: 0.375rem; cursor: pointer; margin: 2px; transition: opacity 0.15s; }
.vaf-mgmt-card-appointments .vaf-cancel-btn:hover { opacity: 0.9; }
.vaf-mgmt-card-appointments .vaf-reschedule-btn { padding: 0.375rem 0.75rem; font-size: 0.75rem; background: #fff; color: #374151; border: 1px solid hsl(30 30% 85%); border-radius: 0.375rem; cursor: pointer; margin: 2px; transition: opacity 0.15s, background 0.15s; }
.vaf-mgmt-card-appointments .vaf-reschedule-btn:hover { background: hsl(45 30% 98%); border-color: #2D9966; color: #2D9966; }
#vaf-cancel-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
#vaf-cancel-modal > div { background: #fff; border-radius: 0.75rem; padding: 1.5rem; max-width: 480px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
.vaf-mgmt-card-header { padding: 1.5rem; }
.vaf-mgmt-card-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 600; margin: 0; }
.vaf-mgmt-card-content { padding: 1.5rem; padding-top: 1.5rem; }
.vaf-mgmt-main form + .vaf-mgmt-card { margin-top: 2rem; }
.vaf-mgmt-main .vaf-mgmt-card + .vaf-mgmt-card { margin-top: 2rem; }
/* Cabeceras de las cajas y botones de añadir/guardar del panel: mismo color y
   opacidad que el botón «Continuar» del formulario (Personalización → colores). */
.vaf-dash-card-header,
.vaf-mgmt-card .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card .vaf-mgmt-card-header {
    background: linear-gradient(to right, hsl(var(--primary, 152 55% 48%) / var(--button-alpha, 0.18)), hsl(var(--secondary, 210 80% 54%) / var(--button-alpha, 0.18))) !important;
}
.vaf-dash-card-header .vaf-dash-card-title,
.vaf-mgmt-card .vaf-mgmt-card-header .vaf-mgmt-card-title,
.vaf-mgmt-card .vaf-mgmt-card-header .vaf-mgmt-card-title svg {
    color: hsl(var(--button-text, 210 15% 10%)) !important;
}
.vaf-dash-btn:not(.vaf-dash-btn--logout),
.vaf-config-form-style .button-primary,
.vaf-config-form-style .button:not(.button-secondary):not(.button-small),
.vaf-config-form-style .vaf-btn-connect,
.vaf-mgmt-card .button-primary,
#vaf-save-emergency-phone,
#vaf-add-extra-service-btn,
#vaf-add-vaccine-btn,
#vaf-add-custom-specialty-btn,
#vaf-add-custom-role-btn,
#vaf-add-staff-btn,
.vaf-clinic-admin-save,
#vaf-modal-save {
    background: linear-gradient(to right, hsl(var(--primary, 152 55% 48%) / var(--button-alpha, 0.18)), hsl(var(--secondary, 210 80% 54%) / var(--button-alpha, 0.18))) !important;
    color: hsl(var(--button-text, 210 15% 10%)) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
}

/* Gestión y configuración. */
.vaf-settings-compact .form-table th { padding-top: 8px; padding-bottom: 8px; }
.vaf-settings-compact .form-table td { padding-top: 8px; padding-bottom: 8px; }
.vaf-settings-compact h2 { margin: 20px 0 10px 0; font-size: 1.2em; }
.vaf-settings-compact hr { margin: 16px 0; }
.vaf-settings-compact .vaf-section { margin-bottom: 6px; }
.vaf-settings-compact .description { margin-top: 4px; margin-bottom: 0; }
.vaf-settings-compact .vaf-google-box { background: #f8f9fa; border: 1px solid #ddd; border-radius: 6px; padding: 12px 16px; margin: 8px 0; max-width: 600px; }
.vaf-settings-compact .vaf-api-section-card,
.vaf-settings-compact .vaf-mgmt-card-api,
.vaf-settings-compact .vaf-mgmt-card-servicios,
.vaf-settings-compact .vaf-mgmt-card-especialidades,
.vaf-settings-compact .vaf-mgmt-card-tags,
.vaf-settings-compact .vaf-mgmt-card-roles,
.vaf-settings-compact .vaf-mgmt-card-workers,
.vaf-settings-compact .vaf-mgmt-card-horarios,
.vaf-settings-compact .vaf-mgmt-card-credentials,
.vaf-settings-compact .vaf-mgmt-card-calendario {
    border: 0; border-radius: 0.75rem; margin-bottom: 2rem; overflow: hidden;
    background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-servicios .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-especialidades .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-tags .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-roles .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-workers .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-horarios .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-credentials .vaf-mgmt-card-header,
.vaf-settings-compact .vaf-mgmt-card-calendario .vaf-mgmt-card-header {
    padding: 1rem 1.25rem; background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(0,102,204,0.1));
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-title {
    display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; font-weight: 600; margin: 0;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-title svg { color: #2D9966; }
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-servicios .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-especialidades .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-tags .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-roles .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-workers .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-horarios .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-credentials .vaf-mgmt-card-content,
.vaf-settings-compact .vaf-mgmt-card-calendario .vaf-mgmt-card-content { padding: 1.25rem 1.5rem; background:#fff; }
.vaf-settings-compact .vaf-mgmt-card-api:last-of-type,
.vaf-settings-compact .vaf-api-section-card:last-of-type { margin-bottom: 0; }
.vaf-settings-compact .vaf-api-section-card h2,
.vaf-settings-compact .vaf-mgmt-card-api h2 { margin-top: 0 !important; padding-top: 0 !important; }
.vaf-settings-compact .vaf-google-box .form-table { margin: 0; }
.vaf-settings-compact .vaf-google-box .form-table th { width: 140px; padding: 6px 10px 6px 0; }
.vaf-settings-compact .vaf-google-box .form-table td { padding: 6px 0; }
/* Unificar Google Calendar con reCAPTCHA: mismos tamaños, bordes y botones */
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .description { font-size: 0.75rem; color: #6b6560; margin-bottom: 12px; }
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .description code {
    font-size: 0.75rem; padding: 0.25rem 0.5rem; background: #f5f5f0;
    border: 1px solid #ddd; border-radius: 4px; display: inline-block;
    word-break: break-all; max-width: 100%; font-weight: 400;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .form-table th,
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .form-table td { font-size: 0.875rem; }
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .form-table th { font-weight: 500; }
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content input.regular-text {
    width: 100%; max-width: 400px; padding: 0.4rem 0.6rem; font-size: 0.875rem;
    border: 1px solid #ddd; border-radius: 6px; background: #fff;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .button,
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content a.button {
    padding: 0.4rem 0.875rem; font-size: 0.8125rem; border-radius: 6px;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .button-secondary {
    background: #fff; color: #374151; border: 1px solid #ddd;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .vaf-btn-connect {
    background: #2D9966 !important; color: #fff !important; border: none; text-decoration: none;
}
.vaf-settings-compact .vaf-mgmt-card-api .vaf-mgmt-card-content .vaf-btn-connect:hover { opacity: 0.9; }

/* Panel de control principal (5 cajas) */
.vaf-dashboard {
    margin-top: 20px;
    margin-bottom: 24px;
    background: hsl(210 20% 98%);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.vaf-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.vaf-dashboard-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}
.vaf-dashboard-main {
    padding: 20px 24px 24px;
}
.vaf-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .vaf-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vaf-dash-card--featured {
        grid-column: span 2 / span 2;
    }
}
.vaf-dash-card {
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 150ms ease, transform 150ms ease;
}
.vaf-dash-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}
.vaf-dash-card-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
}
.vaf-dash-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}
.vaf-dash-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255,255,255,0.65);
}
.vaf-dash-btn .vaf-dash-card-icon {
    margin-right: 0.45rem;
}
.vaf-dash-card-content {
    padding: 16px 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.vaf-dash-card-description {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
.vaf-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.vaf-dash-btn:hover {
    opacity: 0.93;
    box-shadow: 0 8px 16px -6px rgba(0,0,0,0.18);
    transform: translateY(-0.5px);
}
.vaf-dash-btn--logout {
    background: hsl(0 72% 55%);
    color: #ffffff;
}
/* Gradientes basados en los colores de los subpaneles */
.vaf-dash-card-header--agenda {
    background: linear-gradient(
        to right,
        hsl(var(--primary) / 0.12),
        hsl(var(--secondary) / 0.12)
    );
}
.vaf-dash-btn--agenda {
    background-image: linear-gradient(
        to right,
        hsl(var(--primary)),
        hsl(var(--secondary))
    );
}
.vaf-dash-card-header--api,
.vaf-dash-card-header--management,
.vaf-dash-card-header--personalizacion,
.vaf-dash-card-header--lista {
    background: linear-gradient(
        to right,
        hsl(var(--pet-orange) / 0.1),
        hsl(var(--pet-orange) / 0.06)
    );
}
.vaf-dash-btn--api {
    background-image: linear-gradient(
        to right,
        hsl(262 60% 50%),
        hsl(174 60% 46%)
    );
}
.vaf-dash-card-header--management {
}
.vaf-dash-btn--management {
    background-image: linear-gradient(
        to right,
        hsl(38 92% 55%),
        hsl(25 90% 58%)
    );
}
.vaf-dash-card-header--personalizacion {
}
.vaf-dash-btn--personalizacion {
    background-image: linear-gradient(
        to right,
        hsl(var(--primary)),
        hsl(var(--secondary))
    );
}
.vaf-dash-card-header--lista {
}
.vaf-dash-btn--lista {
    background-image: linear-gradient(
        to right,
        hsl(174 60% 46%),
        hsl(210 70% 55%)
    );
}

#vaf-calendar-grid table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#vaf-calendar-grid th { background: #f0f0f1; padding: 8px; text-align: center; font-size: 12px; border: 1px solid #ddd; }
#vaf-calendar-grid td { border: 1px solid #ddd; padding: 4px; vertical-align: top; height: 70px; font-size: 12px; cursor: pointer; transition: background 0.2s; }
#vaf-calendar-grid td:hover { background: #e8f4fd; }
#vaf-calendar-grid td.vaf-day-empty { background: #f9f9f9; cursor: default; }
#vaf-calendar-grid td.vaf-day-empty:hover { background: #f9f9f9; }
#vaf-calendar-grid td.vaf-day-custom { background: #fff3cd; border-color: #ffc107; }
#vaf-calendar-grid td.vaf-day-custom:hover { background: #ffe69c; }
#vaf-calendar-grid td.vaf-day-today { border: 2px solid #0073aa; }
.vaf-day-num { font-weight: bold; margin-bottom: 4px; color: #333; }
.vaf-day-badges { display: flex; gap: 3px; flex-wrap: wrap; }
.vaf-day-holiday { display: inline-block; padding: 1px 5px; border-radius: 4px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 600; line-height: 1.4; }
.vaf-badge { font-size: 10px; padding: 1px 5px; border-radius: 3px; color: #fff; }
.vaf-badge-consulta { background: #198754; }
.vaf-badge-quirofano { background: #d63384; }
.vaf-badge-general { background: #0d6efd; }
.vaf-badge-auxiliar { background: #6c757d; }

#vaf-modal-staff-list label { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 6px; cursor: pointer; transition: background 0.15s; font-size: 0.8125rem; }
#vaf-modal-staff-list label:hover { background: #f0f6fc; }
#vaf-modal-staff-list input[type="checkbox"] { width: 18px; height: 18px; }
.vaf-staff-role-tag { font-size: 10px; padding: 2px 6px; border-radius: 10px; color: #fff; }
#vaf-modal-staff-list.vaf-modal-festivo-disabled { opacity: 0.6; pointer-events: none; }
.vaf-daily-staff-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.vaf-daily-staff-row > label { margin: 0; flex-shrink: 0; }
.vaf-daily-times { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 0.75rem; margin: 0 !important; margin-left: 0 !important; }
.vaf-daily-times input[type="time"] { font-size: 0.75rem; padding: 2px 4px; width: 70px; flex-shrink: 0; }
.vaf-daily-times .vaf-time-group { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }

/* Day modal - same style as admin panel cards */
.vaf-day-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100000; justify-content: center; align-items: center; }
.vaf-day-modal-overlay[style*="flex"] { display: flex !important; }
.vaf-day-modal-card { background: #fff; border-radius: 0.75rem; max-width: 620px; width: 90%; max-height: 85vh; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(45,153,102,0.15), 0 10px 40px rgba(0,0,0,0.12); position: relative; display: flex; flex-direction: column; }
.vaf-day-modal-header { background: linear-gradient(to right, rgba(45,153,102,0.1), rgba(0,102,204,0.1)); padding: 1rem 1.25rem; border-radius: 0.75rem 0.75rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.vaf-day-modal-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #1e293b; }
.vaf-day-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #64748b; padding: 0.25rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 0.375rem; transition: color 0.15s, background 0.15s; margin-right: 0.25rem; }
.vaf-day-modal-close:hover { color: #2D9966; background: rgba(45,153,102,0.1); }
.vaf-day-modal-content { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; }
.vaf-day-modal-festivo { margin-bottom: 1rem; padding: 0.75rem 1rem; background: rgba(45,153,102,0.08); border: 1px solid rgba(45,153,102,0.2); border-radius: 0.5rem; }
.vaf-day-modal-festivo-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.vaf-day-modal-checkbox { width: 1rem; height: 1rem; accent-color: #2D9966; }
.vaf-day-modal-desc { margin: 0 0 0.75rem; font-size: 0.875rem; color: #64748b; }
.vaf-day-modal-staff-list { margin: 0 0 1rem; }
.vaf-day-modal-impact { margin-bottom: 1.25rem; padding: 0.75rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0.5rem; font-size: 0.8125rem; color: #475569; }
.vaf-day-modal-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
.vaf-day-modal-btn { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; cursor: pointer; transition: opacity 0.15s, background 0.15s; border: none; }
.vaf-day-modal-btn-secondary { background: #e2e8f0; color: #334155; }
.vaf-day-modal-btn-secondary:hover { background: #cbd5e1; opacity: 0.9; }
.vaf-day-modal-btn-primary { background: #2D9966; color: #fff; }
.vaf-day-modal-btn-primary:hover { background: #248556; opacity: 0.95; }
.vaf-day-modal-message { margin-top: 0.75rem; font-weight: 600; font-size: 0.875rem; }

/* Confirm modal buttons (same estructura, distintos colores) */
.vaf-confirm-accept-btn {
    background: #2D9966;
    color: #fff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
}
.vaf-confirm-accept-btn:hover {
    background: #248556;
    opacity: 0.95;
}
.vaf-confirm-cancel-btn {
    background: #dc2626;
    color: #fff;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
}
.vaf-confirm-cancel-btn:hover {
    background: #b91c1c;
    opacity: 0.95;
}
/* Aviso de guardado (abajo a la derecha) */
#vaf-save-status { position: fixed; right: 16px; bottom: 16px; z-index: 100000; display: none; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; font-size: 15px; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,0.18); color: #fff; }
#vaf-save-status[data-state="saving"] { background: #b45309; }
#vaf-save-status[data-state="ok"] { background: #15803d; }
#vaf-save-status[data-state="error"] { background: #b91c1c; padding-right: 40px; }
#vaf-save-status .vaf-save-close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; }
#vaf-save-status .vaf-save-spin { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; vertical-align: -1px; animation: vaf-save-spin 0.8s linear infinite; }
@keyframes vaf-save-spin { to { transform: rotate(360deg); } }
.vaf-autosave-pill { display: inline-block; margin-left: 0.5rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(21,128,61,0.12); color: #15803d; font-size: 0.7rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.vaf-unsaved-hint { display: none; margin-left: 0.75rem; color: #b45309; font-weight: 600; font-size: 0.875rem; }
form.vaf-form-dirty .vaf-unsaved-hint { display: inline; }
form.vaf-form-dirty button[type="submit"] { box-shadow: 0 0 0 3px rgba(180,83,9,0.45); }
.vaf-saved-hint { margin-left: 0.75rem; color: #15803d; font-weight: 600; font-size: 0.875rem; }
form.vaf-form-dirty .vaf-saved-hint { display: none; }

/* Personalización. */
.vaf-customization-compact { font-size: 13px; }
.vaf-customization-compact h1 { font-size: 1.25em; margin-bottom: 8px; }
.vaf-customization-compact .vaf-desc { font-size: 12px; color: #666; margin-bottom: 14px; }
.vaf-customization-compact .vaf-customization-layout { display: flex; gap: 28px; flex-wrap: wrap; }
.vaf-customization-compact .vaf-color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; flex: 0 0 auto; }
.vaf-customization-compact .vaf-color-row { display: flex; align-items: center; gap: 10px; }
.vaf-customization-compact .vaf-color-row label { flex: 0 0 95px; font-weight: 500; font-size: 12px; }
.vaf-customization-compact .vaf-color-inputs { display: flex; align-items: center; gap: 8px; }
.vaf-customization-compact .vaf-color-picker-swatch { width: 32px; height: 26px; padding: 0; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; background: none; }
.vaf-customization-compact .vaf-color-hex { width: 72px; font-size: 12px; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; }
.vaf-customization-compact .vaf-opacity-group { grid-column: 1 / -1; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e5e7eb; font-size: 12px; }
.vaf-customization-compact .vaf-opacity-group-title { font-weight: 600; margin-bottom: 4px; color: #374151; }
.vaf-customization-compact .vaf-opacity-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.vaf-customization-compact .vaf-opacity-row label { flex: 0 0 125px; font-weight: 500; font-size: 12px; }
.vaf-customization-compact .vaf-opacity-row input[type="range"] { flex: 1; }
.vaf-customization-compact .vaf-opacity-row .vaf-opacity-value { width: 42px; text-align: right; color: #4b5563; font-variant-numeric: tabular-nums; }
.vaf-customization-compact .vaf-preview-wrap { flex: 1; min-width: 300px; }
.vaf-customization-compact .vaf-preview-title { font-size: 12px; font-weight: 600; margin-bottom: 10px; color: #555; }
.vaf-customization-compact #vaf-color-preview { border-radius: 10px; overflow: hidden; border: 1px solid #ddd; padding: 14px; min-height: 200px; transform-origin: top left; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.vaf-customization-compact #vaf-color-preview .vaf-preview-inner { transform: scale(0.82); transform-origin: top left; width: 121.95%; }
.vaf-customization-compact .vaf-preview-form { font-family: system-ui, sans-serif; }
.vaf-customization-compact .vaf-preview-form .card { border-radius: 12px; padding: 14px; border: 2px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--card-foreground)); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.vaf-customization-compact .vaf-preview-form .pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vaf-customization-compact .vaf-preview-form .pet-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 10px; border: 2px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--card-foreground)); font-size: 12px; font-weight: 500; cursor: default; transition: border-color 0.2s, background 0.2s; }
.vaf-customization-compact .vaf-preview-form .pet-btn:focus { outline: none; }
.vaf-customization-compact .vaf-preview-form .pet-btn:focus-visible { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.vaf-customization-compact .vaf-preview-form .pet-btn:hover { border-color: hsl(var(--primary) / 0.5); }
.vaf-customization-compact .vaf-preview-form .pet-btn.selected { border-color: hsl(var(--primary)); color: hsl(var(--primary)); background: hsl(var(--primary) / 0.12); }
.vaf-customization-compact .vaf-preview-form .pet-btn .pet-emoji { font-size: 20px; }
.vaf-customization-compact .vaf-preview-form .label { font-size: 14px; font-weight: 600; color: hsl(var(--foreground)); margin-bottom: 8px; display: block; }
.vaf-customization-compact .vaf-preview-form .input { width: 100%; padding: 8px 10px; font-size: 13px; border-radius: 6px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); }
.vaf-customization-compact .vaf-preview-form .input:focus { outline: none; }
.vaf-customization-compact .vaf-preview-form .input:focus-visible { box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)); }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn:focus { outline: none; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn:focus-visible { box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)); }
.vaf-customization-compact .vaf-preview-form .input::placeholder { color: hsl(var(--muted-foreground)); }
.vaf-customization-compact .vaf-preview-form .muted { font-size: 11px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn { display: block; width: 100%; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; background: linear-gradient(to right, hsl(var(--primary) / var(--button-alpha, 0.18)), hsl(var(--secondary) / var(--button-alpha, 0.18))); color: hsl(var(--button-text)); border: 1px solid rgba(15,23,42,0.06); cursor: default; margin-top: 12px; text-align: center; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btns { display: flex; gap: 10px; margin-top: 12px; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn-back { flex: 1; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground)); cursor: default; text-align: center; transition: background 0.2s, color 0.2s; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn-back:hover { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn-back:focus { outline: none; }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn-back:focus-visible { box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring)); }
.vaf-customization-compact .vaf-preview-form .vaf-preview-btn.vaf-preview-btn-next { flex: 1; margin-top: 0; }
.vaf-customization-compact .vaf-preview-form .progress { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 16px; }
.vaf-customization-compact .vaf-preview-form .progress-step { display: flex; align-items: center; gap: 6px; }
.vaf-customization-compact .vaf-preview-form .progress-step .step-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vaf-customization-compact .vaf-preview-form .progress-step .circle { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.vaf-customization-compact .vaf-preview-form .progress-step.active .circle { background: hsl(var(--pet-orange)); color: hsl(var(--primary-foreground)); box-shadow: 0 0 0 3px hsl(var(--pet-orange) / 0.3); transform: scale(1.08); }
.vaf-customization-compact .vaf-preview-form .progress-step .label { font-size: 10px; font-weight: 500; margin-bottom: 0; text-align: center; color: hsl(var(--muted-foreground)); }
.vaf-customization-compact .vaf-preview-form .progress-step.active .label { color: hsl(var(--pet-orange)); }
.vaf-customization-compact .vaf-preview-form .progress-bar { width: 10px; height: 3px; border-radius: 2px; background: hsl(var(--muted)); margin-bottom: 18px; }
.vaf-customization-compact .vaf-logo-row { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.vaf-customization-compact .vaf-logo-row label { font-weight: 500; }
.vaf-customization-compact .vaf-logo-row input[type="text"] { width: 100%; max-width: 360px; padding: 6px 8px; border-radius: 6px; border: 1px solid #ccc; font-size: 12px; }
.vaf-customization-compact .vaf-logo-row .actions { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vaf-customization-compact .vaf-logo-row .button { padding: 2px 8px; font-size: 11px; border-radius: 4px; cursor: pointer; text-decoration: none; }
.vaf-customization-compact .vaf-logo-row .help { font-size: 11px; color: #666; }
.vaf-customization-compact .vaf-buttons { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.vaf-customization-compact .vaf-unsaved-hint { display: none; color: #b45309; font-weight: 600; font-size: 0.875rem; }
#vaf-customization-form.vaf-form-dirty .vaf-unsaved-hint { display: inline; }
#vaf-customization-form.vaf-form-dirty .vaf-buttons button[type="submit"] { box-shadow: 0 0 0 3px rgba(180,83,9,0.45); }
.vaf-customization-compact .vaf-buttons .button,
.vaf-customization-compact .vaf-buttons .button-primary,
.vaf-customization-compact .vaf-buttons .button-secondary,
.vaf-customization-compact .vaf-buttons a.button { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; border-radius: 8px; cursor: pointer; text-decoration: none; transition: opacity 0.15s, background 0.15s; }
.vaf-customization-compact .vaf-buttons .button-primary { background: #2D9966; color: #fff; border: none; }
.vaf-customization-compact .vaf-buttons .button-primary:hover { opacity: 0.9; }
.vaf-customization-compact .vaf-buttons .button-secondary,
.vaf-customization-compact .vaf-buttons a.button-secondary { background: #fff; color: #374151; border: 1px solid #ddd; }
.vaf-customization-compact .vaf-buttons .button-secondary:hover,
.vaf-customization-compact .vaf-buttons a.button-secondary:hover { background: #f9fafb; }
/* Modal confirmación restaurar por defecto */
.vaf-restore-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.vaf-restore-modal-overlay[style*="none"] { display: none !important; }
.vaf-restore-modal-card { background: #fff; border-radius: 0.75rem; max-width: 420px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden; }
.vaf-restore-modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; background: linear-gradient(to right, rgba(45,153,102,0.08), rgba(0,102,204,0.08)); }
.vaf-restore-modal-title { margin: 0; font-size: 1.125rem; font-weight: 600; color: #1e293b; }
.vaf-restore-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: #64748b; padding: 0.25rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 0.375rem; transition: color 0.15s, background 0.15s; }
.vaf-restore-modal-close:hover { color: #2D9966; background: rgba(45,153,102,0.15); }
.vaf-restore-modal-content { padding: 1.25rem 1.5rem; }
.vaf-restore-modal-message { margin: 0 0 1.25rem; font-size: 0.9375rem; color: #475569; line-height: 1.5; }
.vaf-restore-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }
.vaf-restore-modal-cancel { padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.375rem; cursor: pointer; background: #e2e8f0; color: #334155; border: none; transition: background 0.15s; }
.vaf-restore-modal-cancel:hover { background: #cbd5e1; }
.vaf-restore-modal-confirm { padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 600; border-radius: 0.375rem; cursor: pointer; background: #2D9966; color: #fff; border: none; transition: background 0.15s, opacity 0.15s; }
.vaf-restore-modal-confirm:hover { background: #248556; opacity: 0.95; }
