
IMPORTANT: The file content has been truncated.
Status: Showing lines 1-2000 of 2066 total lines.
Action: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2000.

--- FILE CONTENT (truncated) ---
/* --- VALORES GLOBALES Y MEJORAS DE UX --- */
:root {
    --mbs-border-radius: 8px;
    --mbs-gap-size: 16px;
    --mbs-transition-speed: 0.2s;
}

.mbs-button-primary, .mbs-button-secondary, .mbs-button-danger, .mbs-back-link, .mbs-event-card, .mbs-icon-button {
    transition: all var(--mbs-transition-speed) ease-in-out;
}

/* Estilos específicos para el botón secundario para diferenciarlo del primario */
.mbs-button-secondary {
    background-color: #f0f2f5; /* Un gris claro y neutro */
    color: #333; /* Texto oscuro para legibilidad */
    border: 1px solid #dcdcdc; /* Borde sutil */
    font-weight: 600; /* Un peso semi-bold para que no se pierda */
}

.mbs-button-secondary:hover, .mbs-button-secondary:focus {
    background-color: #e5e7eb; /* Un gris ligeramente más oscuro al pasar el ratón */
    border-color: #c5c5c5;
    color: #111;
}

*:focus-visible {
    outline: 2px solid #0073aa; /* Azul de WordPress para accesibilidad */
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0073aa;
}

/* --- LAYOUT DE PÁGINA DE MÓDULO UNIFICADO --- */
.mbs-module-page { 
    background: transparent; 
    padding: 0; 
}

.mbs-module-header {
    margin-bottom: 30px;
}

.mbs-back-link {
    text-decoration: none; 
    color: #555; 
    font-weight: bold; 
    font-size: 14px; 
    transition: color 0.2s; 
    margin-bottom: 20px;
    display: inline-block;
}
.mbs-back-link:hover { 
    color: #000; 
}

.mbs-module-title-bar { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between; 
    align-items: center; 
    gap: 16px; 
}

.mbs-module-title { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.mbs-module-title h2 { 
    margin: 0; 
    font-size: 28px; 
    line-height: 1.2; 
}

.mbs-icon-wrapper { 
    background: rgba(0,0,0,0.05); 
    padding: 8px; 
    border-radius: 8px; 
    display: inline-flex; 
}

.mbs-module-actions { 
    display: flex; 
    gap: 12px; 
}

.mbs-module-summary {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    background-color: #6fd5c950;
    padding: 20px;
    border-radius: 8px;
    flex-direction: row;
}

.mbs-module-content {
    margin-top: 24px;
}
.summary-item label { display: block; font-size: 14px; color: #666; margin-bottom: 4px; }
.summary-item .value { font-size: 20px; font-weight: bold; display: flex; align-items: center; gap: 8px; }
.summary-item .edit-budget-btn { background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; opacity: 0.5; color: #888; }
.summary-item .edit-budget-btn:hover { opacity: 1; }
#mbs-edit-budget-form { display: flex; align-items: center; gap: 10px; }
#mbs-edit-budget-form input { font-size: 18px; font-weight: bold; border: 1px solid #ccc; border-radius: 4px; padding: 4px 8px; width: 120px; }
#mbs-edit-budget-form input::-webkit-outer-spin-button, #mbs-edit-budget-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#mbs-edit-budget-form input[type=number] { -moz-appearance: textfield; }
#mbs-edit-budget-form button { background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1; }
#mbs-edit-budget-form button.action-icon { padding: 0 !important; }
#mbs-edit-budget-form button[type="submit"] { color: #2ea44f; }
#mbs-edit-budget-form button.cancel-edit-budget { color: #d63638; }
.mbs-event-dashboard h1 { font-size: 32px; margin-bottom: 30px; }
.mbs-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.dashboard-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 160px; /* Asegura una altura mínima consistente para todas las tarjetas */
}
.dashboard-card h3 { margin-top: 0; font-size: 18px; }

.mbs-card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* Espacio entre el encabezado y el contenido de la tarjeta */
}

.mbs-card-view-more {
    font-size: 0.85em;
    color: #0073aa; /* Color de enlace de WordPress */
    text-decoration: none;
    white-space: nowrap; /* Evita que el enlace se rompa en varias líneas */
}

.mbs-card-view-more:hover {
    text-decoration: underline;
}

.dashboard-card .card-content { flex-grow: 1; }
.dashboard-card .card-content-large { flex-grow: 1; font-size: 48px; font-weight: bold; line-height: 1.1; text-align: center; margin: 10px 0; }
.dashboard-card .card-footer { margin-top: 20px; font-size: 14px; color: #888; text-align: center; }
.dashboard-card.disabled { background-color: #f9f9f9; opacity: 0.6; }
.dashboard-card.disabled .card-footer { font-weight: bold; }
.mbs-my-events-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; }
.mbs-my-events-header h1 { margin: 0; font-size: 32px; }
.mbs-no-events-message { background-color: #f9f9f9; border: 1px dashed #ccc; border-radius: 8px; padding: 40px; text-align: center; }
.mbs-no-events-message p { margin: 0 0 15px 0; font-size: 16px; color: #555; }
.mbs-events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.mbs-event-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; text-decoration: none; color: inherit; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; overflow: hidden; }
.mbs-event-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.mbs-event-card .event-card-content { padding: 25px; flex-grow: 1; }
.mbs-event-card h2 { margin-top: 0; margin-bottom: 10px; font-size: 22px; }
.mbs-event-card .event-date { color: #666; margin: 0; }
.mbs-event-card .event-card-footer { padding: 15px 25px; border-top: 1px solid #e0e0e0; background-color: #f9f9f9; text-align: right; font-weight: bold; color: #333; transition: background-color 0.2s; }
.mbs-event-card:hover .event-card-footer { background-color: #f0f0f0; }

/* --- LISTAS (Controles y Contenedores) --- */
.mbs-services-list-container { background: #fff; border-radius: 8px; }
.mbs-list-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
    border-radius: var(--mbs-border-radius);
}

.mbs-checklist-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mbs-guest-filters .mbs-filter-control-wrapper {
    display: block; /* Anulación definitiva */
}

.mbs-guest-filters .mbs-filter-control-wrapper {
    display: block; /* Anulación definitiva */
}

.mbs-list-controls > div:not(.mbs-checklist-filters):not(.mbs-filter-control-wrapper) {
    display: flex;
    flex-direction: row;
}

.mbs-list-controls label {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.mbs-list-controls select,
.mbs-list-controls input[type="text"] {
    border-radius: 4px;
    border: 1px solid #ccc;
    /* padding: 8px; */
}

.mbs-add-task-container {
    flex-grow: 1; /* Permite que el contenedor del formulario crezca */
}

#mbs-add-task-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#mbs-add-task-form input[type="text"] {
    flex-grow: 1; /* El campo de texto ocupa el espacio disponible */
    min-width: 200px; /* Ancho mínimo para el input */
}

#mbs-add-task-form button {
    flex-shrink: 0; /* Evita que el botón se encoja */
}


/*
 * FILTROS PARA LA MESA DE REGALOS
 *
 * Para añadir los filtros de ordenar y filtrar a la mesa de regalos,
 * utiliza la siguiente estructura HTML. Los estilos de .mbs-list-controls
 * se aplicarán automáticamente.
 *
 * <div class="mbs-list-controls">
 *   <div>
 *     <label for="mbs-gift-sort">Ordenar por:</label>
 *     <select name="mbs_gift_sort" id="mbs-gift-sort">
 *       <option value="recent">Agregado recientemente</option>
 *       <option value="name_az">Nombre (A-Z)</option>
 *       <option value="name_za">Nombre (Z-A)</option>
 *     </select>
 *   </div>
 *   <div>
 *     <label for="mbs-gift-filter">Mostrar:</label>
 *     <select name="mbs_gift_filter" id="mbs-gift-filter">
 *       <option value="all">Todos los regalos</option>
 *       <option value="pending">Regalos pendientes</option>
 *       <option value="received">Regalos recibidos</option>
 *     </select>
 *   </div>
 * </div>
 */

/* === SISTEMA DE FILAS DE LISTA UNIFICADO (SOBREESCRITURA PARA WALLET) === */
.mbs-module-page[data-module="wallet"] .mbs-list-row {
    display: grid;
    grid-template-columns: 1fr repeat(2, 100px) auto;
    grid-template-areas:
        "main meta1 meta2 actions";
    gap: 16px;
    align-items: center;
}

.mbs-module-page[data-module="wallet"] .mbs-list-row__main {
    grid-area: main;
}

.mbs-module-page[data-module="wallet"] .mbs-list-row__meta {
    grid-area: meta1 / meta1 / auto / meta2; /* Ocupa las áreas meta1 y meta2 */
    display: contents; /* Permite que los hijos se coloquen en la rejilla del padre */
}

.mbs-module-page[data-module="wallet"] .mbs-list-row__meta .meta-group {
    text-align: right;
}

.mbs-module-page[data-module="wallet"] .mbs-list-row__actions {
    grid-area: actions;
    justify-self: end;
}

/* === SISTEMA DE FILAS DE LISTA UNIFICADO === */
.mbs-list-row {
    display: flex;
    align-items: center;
    gap: 16px; /* Unificamos el espaciado */
    padding: 16px 12px; /* Unificamos el padding */
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.mbs-list-row:last-child {
    border-bottom: none;
}
.mbs-list-row:hover {
    background-color: #f9f9f9;
}
.mbs-list-row.is-clickable {
    cursor: pointer;
}

/* Sección principal (ocupa el mayor espacio) */
.mbs-list-row__main {
    flex-grow: 1;
    display: flex;
    align-items: stretch; /* Changed from center to stretch */
    gap: 16px;
}

.mbs-list-row__main > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.mbs-list-row__main .item-title {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}
.mbs-list-row__main .item-meta {
    font-size: 0.9em;
    color: #666;
    margin-top: 4px;
}

/* Sección de imagen (opcional) */
.mbs-list-row__figure {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: #eee;
    overflow: hidden;
}
.mbs-list-row__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sección de datos secundarios o "meta" */
.mbs-list-row__meta {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    text-align: right;
    margin-left: auto; /* Push to the right */
}
.mbs-list-row__meta .meta-group {
    display: flex;
    flex-direction: column;
}
.mbs-list-row__meta .meta-group label {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 2px;
}

/* Sección de acciones */
.mbs-list-row__actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modificador para el checklist */
.mbs-list-row--checklist {
    align-items: flex-start;
}
.mbs-list-row--checklist .mbs-list-row__main {
    align-items: flex-start;
}
.mbs-list-row--checklist .mbs-task-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
}
.mbs-list-row--checklist.completed .item-title {
    text-decoration: line-through;
    color: #999;
    font-style: oblique;
}

/* --- ESTILOS PARA FILTROS DE INVITADOS (V3: OFFCANVAS & DROPDOWN) --- */
.mbs-list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.mbs-search-filter-wrapper {
    flex-grow: 1;
    flex-basis: 50%;
    position: relative; /* Necesario para posicionar el icono de limpiar */
}

#mbs-guest-search-input {
    width: 100%;
    padding: 8px 30px 8px 12px; /* Espacio a la derecha para el icono */
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

#mbs-clear-search-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 20px;
    line-height: 1;
    display: none; /* Oculto por defecto */
}

#mbs-clear-search-btn:hover { color: #333; }

.mbs-filter-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio reducido entre iconos */
}

#mbs-toggle-filters-panel.is-active::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 4px;
    width: 6px;
    height: 6px;
    background-color: #e5a9b4; /* Color primario */
    border-radius: 50%;
    border: 4px solid #e5a9b4; /* Color primario */
}

.mbs-filter-control-wrapper { position: relative; }

.mbs-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mbs-backdrop.is-open { opacity: 1; visibility: visible; }

.mbs-filter-panel {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    visibility: hidden; opacity: 0;
}

.mbs-filter-panel.is-open { visibility: visible; opacity: 1; }

.mbs-filter-panel-header {
    display: flex; flex-direction: column; align-items: center;
    padding: 12px 0; cursor: grab;
}

.mbs-filter-panel-handle {
    width: 40px; height: 4px; background-color: #ccc; border-radius: 2px; margin-bottom: 8px;
}

.mbs-filter-panel-header h4 { margin: 0; font-size: 16px; font-weight: 600; }

.mbs-filters-wrapper {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.mbs-filters-wrapper .mbs-filter-panel-section {
    flex: 1;
}

.mbs-filter-panel-section { padding: 0 16px 16px; }
.mbs-filter-panel-section h5 { margin-top: 0; margin-bottom: 12px; font-size: 14px; color: #555; border-bottom: 1px solid #f0f0f0; padding-bottom: 8px; }

.mbs-status-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.mbs-sort-filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }

/* --- Media Query para Móvil (Off-canvas) --- */
@media (max-width: 767px) {
    .mbs-filter-panel {
        position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
        border-top-left-radius: 16px; border-top-right-radius: 16px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .mbs-filter-panel.is-open { transform: translateY(0); }
}

/* --- Media Query para Escritorio (Dropdown) --- */
@media (min-width: 768px) {
    .mbs-search-filter-wrapper { 
        flex-basis: auto; 
        max-width: 320px; /* Aplicar el max-width aquí */
    }
    #mbs-guest-search-input { /* El input ocupa el 100% de su contenedor */ }

    .mbs-filter-panel {
        position: absolute; top: calc(100% + 8px); right: 0;
        min-width: 380px; border-radius: var(--mbs-border-radius);
        padding: 8px;
        transform: translateY(-10px) scale(0.95);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }
    .mbs-filter-panel.is-open { transform: translateY(0) scale(1); }
    .mbs-filter-panel-handle { display: none; }
    .mbs-filter-panel-header { padding: 10px 15px; border-bottom: 1px solid #f0f0f0; margin-bottom: 5px; cursor: default; }
    .mbs-filter-panel-header h4 { font-size: 14px; color: #555; }
    .mbs-filter-panel-section { padding: 0 8px 8px; }
}

/* --- ESTILOS PARA BOTONES DE ICONO --- */
.mbs-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px; /* Para controlar el tamaño de los iconos SVG */
    line-height: 1;
    padding: 4px;
    opacity: 0.7; /* Ligeramente opaco por defecto */
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
    color: #555; /* Color por defecto más visible */
}
.mbs-icon-button:hover {
    opacity: 1;
    color: #f95c57;
    transform: scale(1.1);
    background:none;
}
.mbs-icon-button.delete-btn {
    color: #d63638;
}
.mbs-icon-button.delete-btn:hover {
    color: #a02123;
}

/* --- ESTILOS PARA BOTONES DE ICONO (AJUSTES) --- */
@keyframes mbs-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mbs-icon-button.is-loading {
    animation: mbs-spin 1s linear infinite;
    cursor: wait;
    opacity: 0.5;
}

/* --- ESTILOS PARA BOTÓN REDONDO --- */
.mbs-button-round {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    padding: 0;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    flex-shrink: 0;
}

/* --- ESTILOS DEL MODAL --- */
.mbs-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.mbs-modal-content { background: #fff; padding: 30px; border-radius: 8px; width: 100%; max-width: 500px; max-height: 80vh; overflow-y: auto; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.mbs-modal-content .mbs-close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; line-height: 1; cursor: pointer; color: #aaa; }
.mbs-modal-content .mbs-close-modal:hover { color: #000; }
.mbs-modal-content h3 { margin-top: 0; }
.mps-modal-content form { display: flex; flex-direction: column; gap: 15px; }
.mbs-modal-content .form-row { display: flex; flex-direction: column; }
.mbs-modal-content .form-row label { margin-bottom: 5px; font-weight: bold; font-size: 0.9em; }
.mbs-modal-content .form-row input, .mbs-modal-content .form-row select, .mbs-modal-content .form-row textarea { /*padding: 10px;*/ border: 1px solid #ccc; border-radius: 4px; }
.mbs-modal-content .form-row textarea { min-height: 80px; width: 100%; resize: vertical; }
.mbs-modal-content .form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.spinner { background: url(/wp-admin/images/spinner.gif) no-repeat; background-size: 20px 20px; display: inline-block; vertical-align: middle; opacity: 0; visibility: hidden; width: 20px; height: 20px; }
.spinner.is-active { opacity: 1; visibility: visible; }
.mbs-confirm-modal-content { max-width: 400px; text-align: center; }
.mbs-confirm-modal-content h3 { margin-top: 0; margin-bottom: 15px; font-size: 20px; }
.mbs-confirm-modal-content p { font-size: 16px; color: #555; margin-bottom: 25px; }
.mbs-confirm-actions { display: flex; justify-content: center; gap: 15px; }

/* --- Formularios generales (Crear/Detalles) y Notificaciones --- */
.mbs-create-event-container, .mbs-details-container { background: #fff; padding: 30px; border: 1px solid #e0e0e0; border-radius: 8px; }
.mbs-create-event-container form, .mbs-details-container form { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.mbs-form-message { font-weight: bold; }
.mbs-form-message.success { color: #2ea44f; }
.mbs-form-message.error { color: #d63638; }
/* --- Sistema de Notificaciones (Toast) --- */
.mbs-notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    width: 320px; /* Un ancho un poco mayor */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacio entre notificaciones */
}

.mbs-toast {
    color: white;
    padding: 15px 20px;
    border-radius: var(--mbs-border-radius, 8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.21, 1.02, 0.73, 1); /* Transición suave */
    font-size: 15px;
    line-height: 1.4;
}

.mbs-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.mbs-toast.success {
    background-color: #2ea44f; /* Verde éxito de GitHub */
    border-left: 5px solid #218838;
}

.mbs-toast.error {
    background-color: #d63638; /* Rojo error de GitHub */
    border-left: 5px solid #b22222;
}

.mbs-toast.info {
    background-color: #0073aa; /* Azul de WordPress */
    border-left: 5px solid #005a87;
}


/* --- ESTILOS PARA EL CHECKLIST --- */
#mbs-checklist-progress-container {
    margin-bottom: 25px;
}

.mbs-progress-text-container {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}

#mbs-checklist-summary-text {
    font-weight: bold;
}

.mbs-checklist-category { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.mbs-checklist-category:last-of-type { border-bottom: none; }
.mbs-checklist-category h3 { font-size: 20px; margin-bottom: 5px; }
.mbs-checklist-category .category-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 0.5px solid #ccc;
    padding-bottom: 5px;
}
.mbs-checklist-category ul { list-style: none; padding-left: 0; }
.mbs-task-item { align-items: flex-start; gap: 15px; }
.mbs-task-item.completed .task-description-wrapper label { text-decoration: line-through; color: #999; }
.mbs-task-checkbox { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; }
.task-description-wrapper { flex-grow: 1; }
.task-description-wrapper label { cursor: pointer; display: block; font-size: 1em; } /* Título de tarea */
.mbs-task-link { display: inline-block; font-size: 0.9em; color: #666; text-decoration: none; margin-top: 5px; } /* Color más suave para el enlace */
.mbs-task-link:hover { text-decoration: underline; }
.mbs-delete-task { color: #d63638; } /* Color específico para el botón de eliminar */

.mbs-progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 30px;
    margin-top: 10px;
    overflow: hidden;
}

.mbs-progress-bar {
    height: 100%;
    background-color: #6fd5c9;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.mbs-progress-text {
    font-size: 0.9em;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

/* --- ESTILOS PARA LA MESA DE REGALOS (Gestión y Recibidos) --- */
.mbs-gift-registry-management-container, .mbs-received-gifts-container { background: #fff; border-radius: 8px; }

.mbs-gift-registry-item, .mbs-received-gift-item {
    gap: 15px; /* Specific gap for these items */
}

.mbs-gift-registry-item .item-image, .mbs-received-gift-item .item-image {
    flex-shrink: 0;
    width: 60px; /* Fixed width for image container */
    height: 60px; /* Fixed height for image container */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #eee;
}

.mbs-gift-registry-item .item-image img, .mbs-received-gift-item .item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.mbs-gift-registry-item .item-details, .mbs-received-gift-item .item-details {
    flex-grow: 1;
}

.mbs-gift-registry-item .item-details h3, .mbs-received-gift-item .item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1em; /* Título del regalo */
}

.mbs-gift-registry-item .item-details h3 a, .mbs-received-gift-item .item-details h3 a {
    text-decoration: none;
    color: #333;
}

.mbs-gift-registry-item .item-details h3 a:hover, .mbs-received-gift-item .item-details h3 a:hover {
    text-decoration: underline;
}

.mbs-gift-registry-item .chosen-tag {
    font-size: 0.85em;
    font-weight: bold;
    color: #2ea44f; /* Success green */
    display: block;
    margin-bottom: 5px;
}

.mbs-gift-registry-item .guest-message, .mbs-received-gift-item .guest-message {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.mbs-received-gift-item small {
    font-size: 0.8em;
    color: #888;
    display: block;
    margin-top: 5px;
}

.mbs-gift-registry-item .item-actions, .mbs-received-gift-item .item-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- ESTILOS PARA GESTIÓN DE INVITACIÓN --- */
.mbs-invitation-link-section, .mbs-invitation-preview-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}
.mbs-copy-link-wrapper {
    display: flex;
    gap: 10px;
}
.mbs-copy-link-wrapper input {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.mbs-preview-box {
    width: 100%;
    height: 600px; /* Altura fija para la vista previa */
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.mbs-preview-box iframe {
    width: 100%;
    height: 100%;
}
.mbs-event-card.active {
    border-color: #0073aa; /* Un color de WordPress para destacar */
    box-shadow: 0 10px 20px rgba(0, 115, 170, 0.15);
}
.event-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}
.active-event-tag {
    font-weight: bold;
    color: #2ea44f; /* Verde éxito */
}

/* --- ESTILOS PARA EL INTERRUPTOR DE EVENTO ACTIVO --- */
.event-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- ESTILOS PARA EL AVISO DE EVENTO NO ACTIVO --- */
.mbs-notice {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: var(--mbs-border-radius, 8px);
    border-left: 5px solid;
}

.mbs-notice p {
    margin: 0;
    font-size: 0.95em;
}

.mbs-notice-info {
    background-color: #e7f5ff;
    border-color: #0073aa;
    color: #005a87;
}

.mbs-card-dashboard-link {
    font-size: 0.9em;
    color: #0073aa;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.mbs-card-dashboard-link:hover {
    text-decoration: underline;
}

.mbs-active-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mbs-active-label {
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}

.mbs-active-toggle-wrapper {
    position: relative;
    cursor: pointer;
    width: 50px;
    height: 28px;
    background-color: #ccc;
    border-radius: 28px;
    transition: background-color 0.3s ease;
}

.mbs-active-toggle-wrapper.active {
    background-color: #6fd5c9; /* El verde menta de la marca */
}

.mbs-toggle-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mbs-active-toggle-wrapper.active .mbs-toggle-handle {
    transform: translateX(22px);
}
/* --- ESTILOS PARA EL DASHBOARD MEJORADO --- */



.dashboard-hero-card {
    position: relative; /* Necesario para el overlay */
    background-size: cover;
    background-position: center center;
    min-height: 250px; /* Una altura mínima para que se vea bien */
    color: white; /* Todo el texto dentro será blanco */
    padding: 0; /* Quitamos el padding para que el contenido se gestione con el overlay */
}

/* El overlay oscuro para la legibilidad */
.dashboard-hero-card .hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px; /* Para que coincida con el borde de la tarjeta */
    z-index: 1;
}

/* El contenido que va por encima del overlay */
.dashboard-hero-card .hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centramos el contenido verticalmente */
    text-align: center;
}

/* Ajustamos los estilos del contenido para que se vean bien en blanco */
.dashboard-hero-card .hero-content h3 {
    color: white;
    opacity: 0.8;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.dashboard-hero-card .hero-content .card-content-large {
    color: white;
    font-size: 4em; /* Más grande para mayor impacto */
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.dashboard-hero-card .hero-content .card-footer {
    color: white;
    opacity: 0.9;
    margin-top: 10px;
}

/* Hacemos que el grid sea de una sola columna en móviles para que se vea bien */
@media (max-width: 768px) {
    .mbs-dashboard-grid .dashboard-card:first-child {
        grid-column: span 1; /* En móvil, cada tarjeta ocupa una columna */
    }
}

.mbs-settings-button {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 3; /* Asegura que esté por encima del overlay */
}

.mbs-settings-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.mbs-settings-button .dashicons {
    font-size: 20px;
    color: #555; /* Color oscuro para el icono */
    line-height: 1;
}

.mbs-settings-button:hover .dashicons {
    color: #0073aa; /* Color de WordPress al pasar el ratón */
}

.mbs-image-container {
    position: relative;
    display: inline-block; /* Para que el contenedor se ajuste al tamaño de la imagen */
}

.mbs-image-preview-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--mbs-border-radius);
}

.mbs-remove-image-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 36px; /* Tamaño del círculo */
    height: 36px; /* Tamaño del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10; /* Asegura que esté por encima de la imagen */
    cursor: pointer;
    border: none; /* Quitar borde por defecto del botón */
    padding: 0; /* Quitar padding por defecto del botón */
}

.mbs-remove-image-icon:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(-1px) scale(1.05);
}

.mbs-remove-image-icon svg {
    width: 20px; /* Tamaño del SVG dentro del círculo */
    height: 20px; /* Tamaño del SVG dentro del círculo */
    color: #d63638; /* Color del icono de basura */
}

.mbs-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Tamaño del círculo */
    height: 30px; /* Tamaño del círculo */
    border-radius: 50%;
    background-color: #ffe4e1; /* Color pastel de bebé (rosa claro) */
    flex-shrink: 0; /* Evita que el círculo se encoja */
}

.mbs-icon-circle svg {
    width: 18px; /* Tamaño del SVG dentro del círculo */
    height: 18px; /* Tamaño del SVG dentro del círculo */
    fill: #e5a9b4; /* Color del SVG (un rosa más oscuro) */
    stroke: #e5a9b4; /* Asegura que el trazo también sea del color */
}

/* --- ESTILOS PARA EL BOTÓN "AÑADIR A PRESUPUESTO" --- */
.mbs-add-to-budget-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mbs-button-primary.added {
    background-color: #2ea44f !important; /* Verde de éxito */
    cursor: default;
}
.mbs-view-wallet-link {
    margin-left: 10px;
    font-weight: bold;
}
/* --- ESTILOS PARA ENLACE "VER" EN MONEDERO --- */
.mbs-view-service-link {
    font-size: 0.8em;
    font-weight: normal;
    text-decoration: none;
    color: #0073aa;
    margin-left: 8px;
    opacity: 0.8;
}
.mbs-view-service-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* --- ÍCONO PERSONALIZADO PARA "MIS EVENTOS" EN MI CUENTA DE WOOCOMMERCE --- */
.woocommerce-MyAccount-navigation ul .woocommerce-MyAccount-navigation-link--mis-eventos a::before {
    display: none !important; /* Ocultamos el ícono por completo */
}

/* Estilos para regalos ya elegidos */
.mbs-gift-registry-item.is-chosen {
    opacity: 0.85; /* Opacidad ajustada para mejor legibilidad */
}

.mbs-gift-registry-item.is-chosen .item-image {
    filter: grayscale(80%); /* Imagen en escala de grises */
}

/* Ocultamos el botón de eliminar */
.mbs-gift-registry-item.is-chosen .delete-registry-item-btn {
    display: none;
}

/* Información del invitado que eligió el regalo */
.mbs-gift-registry-item .chosen-by-info {
    font-size: 0.9em;
    font-weight: bold;
    color: #2ea44f; /* Verde para indicar éxito */
    margin-top: 5px;
}

.mbs-gift-registry-item .guest-message-display {
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    margin-top: 8px;
    padding-left: 10px;
    border-left: 2px solid #e0e0e0;
}

/* Icono de check para regalos elegidos en la sección de acciones */
.mbs-chosen-icon {
    font-size: 24px;
    color: #2ea44f;
    line-height: 1;
    padding: 4px;
    font-weight: bold;
}

/* --- ESTILOS PARA LA MESA DE REGALOS PÚBLICA (INVITACIÓN) --- */
.gift-registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Default: 2 columns on small screens */
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 576px) { /* Small devices (e.g., tablets in portrait) */
    .gift-registry-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* 3 columns */
    }
}

@media (min-width: 768px) { /* Medium devices (e.g., tablets in landscape, small laptops) */
    .gift-registry-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 3 columns */
    }
}

@media (min-width: 992px) { /* Large devices (e.g., desktops) */
    .gift-registry-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 4 columns */
    }
}

.mbs-gift-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Ensures image corners are rounded */
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.mbs-gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.mbs-gift-item .item-image {
    width: 100%;
    height: 150px; /* Fixed height for images */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Placeholder background */
}

.mbs-gift-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
}

.mbs-gift-item .item-details {
    padding: 15px;
    flex-grow: 1; /* Allows details section to take available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom if needed */
}

.mbs-gift-item .item-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    line-height: 1.3;
}

.mbs-gift-item .item-details .product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #E1A9B4; /* Color primario de tu invitación */
    margin-top: 5px;
    margin-bottom: 0;
}

.mbs-gift-item .item-actions {
    padding: 0 15px 15px; /* Padding only at bottom and sides */
    text-align: center;
}

.mbs-gift-item .mbs-choose-gift-btn {
    width: 100%;
    padding: 10px 15px;
    font-size: 0.95em;
    border-radius: 8px; /* Slightly more rounded buttons */
    background-color: var(--mbs-accent-color, #e5a9b4); /* Primary color from invitation template */
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.mbs-gift-item .mbs-choose-gift-btn:hover {
    background-color: #d498a3; /* Darker shade on hover */
}

/* Ensure the existing mbs-list-item styles don't conflict too much, though the new ones should override */
.mbs-gift-item.mbs-list-item {
    /* Resetting some potential conflicting styles from mbs-list-item if any */
    display: flex; /* Re-affirm flex for card structure */
    flex-direction: column;
    align-items: stretch; /* Ensure items stretch to fill grid cell */
    padding: 0; /* Remove padding from list-item */
    border-bottom: none; /* Remove border from list-item */
}

/* If there's a message for empty list, style it */
.gift-registry-grid p.loading,
.gift-registry-grid p.error,
.gift-registry-grid p:not([class]) { /* Target generic paragraphs too */
    grid-column: 1 / -1; /* Make them span all columns */
    text-align: center;
    padding: 20px;
    color: #666;
}

.mbs-gift-registry-button-wrapper {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinea los items a la izquierda sin estirarlos */
    gap: 8px;
}

/* --- ESTILOS PARA LA TARJETA DE RESUMEN COMBINADO --- */
.mbs-summary-combined {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* padding-top: 10px; */
}

.mbs-summary-combined .summary-column {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Espacio entre los elementos dentro de la columna */
}

.mbs-summary-combined .summary-column h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    border-bottom: 1px solid #eee; /* Separador visual */
    padding-bottom: 5px;
}

.mbs-summary-combined .summary-column .mbs-card-view-more {
    margin-top: auto; /* Empuja el enlace hacia abajo */
    align-self: flex-start; /* Alinea el enlace a la izquierda */
    font-size: 0.9em;
}


/* --- ESTILOS PARA EL BOTÓN DE ELIMINAR EVENTO --- */
.mbs-event-card .event-card-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea en la parte superior */
    gap: 15px; /* Espacio entre el contenido y el botón */
}

.mbs-event-card .event-card-content-link {
    flex-grow: 1; /* El enlace del título ocupa el espacio sobrante */
    text-decoration: none; /* Quita el subrayado del enlace */
    color: inherit; /* Hereda el color del texto */
}

.mbs-delete-event-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0; /* Evita que el botón se encoja */
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out;
}

.mbs-delete-event-btn:hover {
    opacity: 1;
    color: #d63638; /* Rojo para indicar peligro */
}

.mbs-delete-event-btn .dashicons {
    font-size: 20px;
    line-height: 1;
    color: #7A7A7A;
}

/* Nuevos estilos para los botones de filtro de estado */
.mbs-status-filter-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.mbs-filter-button {
    background-color: transparent;
    border: none;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: -0.5px;
}

.mbs-filter-button:hover {
    background-color: #f0f0f0; /* Light gray on hover for inactive */
    border-color: transparent; /* No border on hover */
}

.mbs-filter-button.active {
    background-color: #e0e0e0; /* Light gray when active */
    border-color: transparent; /* No border when active */
    color: #333; /* Darker text for contrast */
    box-shadow: none; /* Remove box-shadow */
}

.mbs-filter-button.active svg {
    stroke: #333; /* Icon color matches text color */
}

.mbs-filter-button svg {
    width: 18px;
    height: 18px;
    stroke: #555; /* Icon color for inactive */
    transition: stroke 0.2s ease;
}

/* Estilos para el toggle de categoría */
.mbs-category-filter-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

#mbs-category-filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--mbs-border-radius);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 8px;
    z-index: 100;
    min-width: 220px;
    max-height: 40vh; /* Altura máxima del 40% de la pantalla */
    overflow-y: auto; /* Scroll si el contenido se desborda */
}

.mbs-category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mbs-category-filter-list li {
    margin: 0;
    padding: 0;
}

.mbs-category-filter-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
}

.mbs-category-filter-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.mbs-category-filter-link.active {
    background-color: #e5a9b4;
    color: #fff;
    font-weight: bold;
}

/* --- ESTILOS PARA ETIQUETAS DE ESTADO DE INVITADO --- */
.mbs-guest-status-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px; /* Bordes redondeados para forma de píldora */
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.mbs-status--confirmado {
    background-color: #B9E3AA;
    color: #5a702c;
}

.mbs-status--pendiente {
    background-color: #FEB57F;
    color: #8a5a22;
}

.mbs-status--quizas {
    background-color: #FEECB9;
    color: #7d6b3d;
}

.mbs-status--rechazado {
    background-color: #e5939e; /* Rojo */
    color: #8b3a46; /* Color de texto oscuro para contraste */
}

/* --- NUEVOS ESTILOS PARA RESALTADO DE FILA --- */
@keyframes highlight-fade {
    from { background-color: #fffbe5; } /* Amarillo muy claro */
    to { background-color: transparent; }
}

.mbs-list-row.is-highlighted {
    animation: highlight-fade 2.5s ease-out forwards;
}

/* --- NUEVOS ESTILOS PARA GRÁFICO DE DONA --- */
.mbs-chart-container {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: var(--mbs-border-radius);
}

.mbs-donut-chart-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.mbs-donut-chart {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mbs-chart-center-text {
    width: 70%;
    height: 70%;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mbs-chart-center-text .total-count {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.mbs-chart-center-text .total-label {
    font-size: 14px;
    color: #666;
}

.mbs-chart-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbs-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.legend-color-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* --- ESTILOS PARA EL PANEL DE FILTROS (DROPDOWN/OFF-CANVAS) --- */

.mbs-list-controls .mbs-filter-controls-group {
    display: flex;
    gap: 8px;
}

.mbs-filter-control-wrapper {
    position: relative;
}

.mbs-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mbs-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mbs-filter-panel {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, visibility 0.2s;
}

.mbs-filter-panel.is-open {
    visibility: visible;
    opacity: 1;
}

/* Forzar la alineación en columna para los elementos dentro del panel de filtros */
#mbs-sort-filter-panel {
    display: flex !important;
    flex-direction: column !important;
}

#mbs-sort-filter-panel .mbs-filter-panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    cursor: grab;
}

.mbs-filter-panel-handle {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin-bottom: 8px;
}

.mbs-filter-panel-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* --- ESTILOS PARA MÓVILES (OFF-CANVAS) --- */
@media (max-width: 767px) {
    .mbs-filter-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .mbs-filter-panel.is-open {
        transform: translateY(0);
    }

    .mbs-sort-filter-list {
        padding: 0 16px 24px;
    }
}

/* --- ESTILOS PARA DESKTOP (DROPDOWN) --- */
@media (min-width: 768px) {
    .mbs-filter-panel {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 380px;
        padding: 8px;
        transform: translateY(-10px) scale(0.95);
    }

    .mbs-filter-panel.is-open {
        transform: translateY(0) scale(1);
    }

    .mbs-filter-panel-handle {
        display: none; /* Ocultar el handle en desktop */
    }

    .mbs-filter-panel-header {
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 5px;
        cursor: default;
    }

    .mbs-filter-panel-header h4 {
        font-size: 14px;
        color: #555;
    }
}

/* --- ESTILOS PARA ALERTAS --- */
.mbs-alert {
    padding: 15px 20px;
    margin-bottom: 16px;
    border-radius: var(--mbs-border-radius, 8px);
    border-left: 5px solid;
    font-size: 0.95em;
}

.mbs-alert a {
    font-weight: bold;
    text-decoration: underline;
}

.mbs-alert.mbs-alert-info {
    background-color: #e7f5ff;
    border-color: #0073aa;
    color: #005a87;
}

.mbs-alert.mbs-alert-info a {
    color: #005a87;
}


/* === Gift Registry Styles === */

.mbs-gift-registry-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mbs-registry-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.mbs-registry-title {
    font-size: 2.5em;
    color: #2c3e50;
    margin: 0;
}

.mbs-registry-description {
    font-size: 1.1em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 10px auto 0;
}

.mbs-gift-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

.gift-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.gift-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.gift-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gift-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #34495e;
}

.gift-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.gift-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.add-to-cart-link {
    display: block;
    background-color: #3498db;
    color: #fff;
    text-align: center;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-to-cart-link:hover {
    background-color: #2980b9;
    color: #fff;
}

/* Style for 'added' state, if you use JS to change the class */
.add-to-cart-link.added {
    background-color: #2ecc71;
    cursor: not-allowed;
}
/* --- ESTILOS PARA EL BOTÓN DE REGALO (CORAZÓN) --- */
.mbs-gift-toggle-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.mbs-toggle-gift-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #ff6363;
    border: 1px solid #ff6363;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.mbs-toggle-gift-btn:hover {
    background-color: #ff6363;
    color: #fff;
    transform: scale(1.1);
}

.mbs-toggle-gift-btn.is-active {
    background-color: #ff6363;
    color: #fff;
}

.mbs-toggle-gift-btn.is-chosen {
    background-color: #f0f2f5;
    color: #999;
    cursor: not-allowed;
    border-color: #dcdcdc;
}

.mbs-toggle-gift-btn.is-chosen .heart-filled {
    display: block;
}

.mbs-toggle-gift-btn.is-chosen .heart-outline {
    display: none;
}



.mbs-toggle-gift-btn svg {
    width: 24px;
    height: 24px;
}

.mbs-toggle-gift-btn .heart-filled {
    display: none;
}

.mbs-toggle-gift-btn.is-active .heart-filled {
    display: block;
}

.mbs-toggle-gift-btn.is-active .heart-outline {
    display: none;
}

/* --- ESTILOS PARA EL ENLACE DE COMPARTIR --- */
.mbs-share-link-item {
    flex-grow: 2; /* Ocupa más espacio */
}

.mbs-copy-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.mbs-copy-link-wrapper input[type="text"] {
    flex-grow: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
}

.mbs-copy-link-btn.copied {
    background-color: #2ea44f !important; /* Verde de éxito */
    color: #fff !important;
    border-color: #2ea44f !important;
}

.guest-message {
    background-color: #f8f9fa;
    border-left: 4px solid #e0e0e0;
    margin: 10px 0 0 0;
    padding: 10px 15px;
    font-style: italic;
    color: #555;
}

/* --- INICIO: Nuevos estilos para la Invitación --- */

.invitacion-publica .max-w-2xl {
    padding: 0; /* Eliminamos el padding del contenedor principal para que la imagen ocupe todo */
}

.invitacion-hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa toda la altura de la pantalla del móvil */
    overflow: hidden;
}

.invitacion-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin deformarse */
    object-position: center;
}

/* Degradado blanco en la parte inferior */
.invitacion-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%; /* Altura del degradado */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
    z-index: 1;
}

.invitacion-hero-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
    display: flex
;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* --- Estilos para el nuevo formato de fecha --- */
.fecha-container-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin-top: 1.5rem;
    color: #2d3748; /* Gris oscuro, casi negro */
    font-weight: 600;
    text-transform: uppercase;
}

.fecha-lado {
    width: 40%;
    text-align: center;
    border-top: 2px solid var(--mbs-accent-color, #4a5568);
    border-bottom: 2px solid var(--mbs-accent-color, #4a5568);
    padding: 8px 0;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    transition: border-color 0.3s ease;
}

.fecha-centro {
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.fecha-mes, .fecha-ano {
    font-size: 0.7em;
}

.fecha-dia {
    font-size: 1.8em;
    font-weight: 700;
    margin: 2px 0;
}


/* Adaptación para escritorio */
@media (min-width: 768px) {
    .invitacion-hero {
        height: 80vh; /* Altura más contenida en escritorio */
        max-height: 700px; /* Una altura máxima para pantallas grandes */
        border-radius: 1.5rem; /* Bordes redondeados para un look "cute" */
        margin: 2rem; /* Margen para separarlo de los bordes */
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    .invitacion-publica .max-w-2xl {
        max-width: 56rem; /* Un poco más ancho en desktop */
    }
}

/* --- ESTILOS PARA EL EDITOR DE INVITACIÓN --- */
.mbs-editor-container {
    display: flex;
    gap: 20px;
}

.mbs-editor-panel {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* z-index: 1000; */
    padding: 20px;
}

.mbs-editor-panel.is-open {
    visibility: visible;
    opacity: 1;
}

.mbs-editor-panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    cursor: grab;
}

.mbs-editor-panel-handle {
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin-bottom: 8px;
}

.mbs-editor-panel-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.mbs-mobile-editor-toggle {
    display: none; /* Oculto en desktop */
}

.controls-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mbs-image-upload-area {
    margin-top: 10px;
}

.mbs-button-group {
    margin-top: 10px;
}

@media (max-width: 767px) {
    .mbs-editor-container {
        flex-direction: column;
    }

    .mbs-editor-controls {
        display: none;
    }

    .mbs-editor-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 50vh;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        visibility: hidden;
        opacity: 0;
    }
    
    .mbs-editor-panel .mbs-editor-controls {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        height: 100%;
        padding: 0 20px;
    }

    .mbs-editor-panel.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
        z-index: 1000;
    }

    .mbs-mobile-editor-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1001;
    }

    .mbs-editor-preview {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .mbs-editor-container {
        flex-direction: row;
    }

    .mbs-editor-panel {
        width: 400px;
    }

    .mbs-editor-panel-header {
        display: none;
    }

    .mbs-editor-controls {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .mbs-editor-preview {
        flex-grow: 1;
    }
}
