/* ==========================================================================
   NUEVOS ESTILOS FRONTEND v2.0 - PFC PACAMAZU PRODUCTOS
   ========================================================================== */

/* --- 1. CONTENEDOR PRINCIPAL Y LAYOUT --- */

/* <-- CAMBIO: ID del contenedor principal adaptado */
#pfc-productos-app-container {
    /* ¡LA CLAVE! Le damos un ancho máximo y lo centramos. */
    max-width: 1100px;
    margin: 40px auto; /* 40px de espacio arriba/abajo, y 'auto' para centrar horizontalmente */

    /* Estilos mejorados para un look de "tarjeta" moderna */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff; /* Fondo blanco para resaltar sobre temas oscuros/grises */
    padding: 40px; /* Más espacio interno para que no se vea apretado */
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Sombra sutil */
}

/* Loader (adaptado para el nuevo contenedor) */
#pfc-productos-app-container .pfc-loader {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* --- 2. NAVEGACIÓN PRINCIPAL (PESTAÑAS) --- */
/* (Las clases se reutilizan, no necesitan cambios) */
.pfc-app-dashboard {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones pasen a la siguiente línea en móviles */
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.pfc-app-dashboard button {
    background-color: #f9fafb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.pfc-app-dashboard button:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.pfc-app-dashboard button.active {
    background-color: #6a11cb;
    color: #ffffff;
    border-color: #6a11cb;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(106, 17, 203, 0.2);
}

/* --- 3. ESTRUCTURA DEL FORMULARIO --- */

#pfc-app-main-view h2 {
    font-size: 1.8em;
    color: #111827;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

/* <-- CAMBIO: ID del formulario adaptado */
#pfc-crear-producto-form fieldset {
    border: 1px solid #e5e7eb;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    background-color: #f9fafb;
}

#pfc-crear-producto-form legend {
    font-weight: 600;
    color: #1f2937;
    padding: 0 10px;
    font-size: 1.3em;
    margin-bottom: 15px; /* Espacio entre el título y los campos */
}

/* --- 4. CAMPOS DEL FORMULARIO (Inputs, Selects, etc.) --- */

#pfc-crear-producto-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

#pfc-crear-producto-form input[type="text"],
#pfc-crear-producto-form input[type="number"],
#pfc-crear-producto-form input[type="date"],
#pfc-crear-producto-form select,
#pfc-crear-producto-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Asegura que el padding no aumente el tamaño */
}

/* Efecto de foco para todos los campos */
#pfc-crear-producto-form input:focus,
#pfc-crear-producto-form select:focus,
#pfc-crear-producto-form textarea:focus {
    outline: none;
    border-color: #6a11cb;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.2);
}

#pfc-crear-producto-form select {
    height: 42px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

#pfc-crear-producto-form select:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
}

/* --- 5. BOTONES DE ACCIÓN (Guardar, Cancelar) --- */

/* Contenedor para alinear los botones al final */
.form-action-buttons {
    display: flex;
    justify-content: flex-end; /* Alinea los botones a la derecha */
    gap: 15px;
    margin-top: 20px;
}

/* <-- CAMBIO: ID del formulario adaptado */
#pfc-crear-producto-form button[type="submit"],
#pfc-crear-producto-form #pfc-cancel-btn {
    font-weight: 600;
    padding: 10px 22px; /* Ligeramente más pequeños */
    border: none;
    border-radius: 6px; /* Bordes menos redondeados, más modernos */
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

#pfc-crear-producto-form button[type="submit"] {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    color: white;
}

#pfc-crear-producto-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

#pfc-crear-producto-form #pfc-cancel-btn {
    background-color: #e5e7eb;
    color: #4b5563;
}

#pfc-crear-producto-form #pfc-cancel-btn:hover {
    background-color: #d1d5db;
}

/* --- 6. ESTILOS SIMPLES Y EFECTIVOS PARA LA DIRECCIÓN --- */

.form-grid-container {
    display: flex;
    flex-direction: column; /* ¡La clave! Uno debajo del otro. */
    gap: 20px; /* Espacio vertical entre cada campo. */
}


/* --- 7. ESTILOS DE UPLOADERS Y BARRAS DE PROGRESO (Reutilizables) --- */
.uploader-container {
    background-color: #fff;
    border: 2px dashed #d1d5db;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}
.gallery-preview-grid, #documentos-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}
.image-preview-item, .doc-preview-item {
    position: relative;
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    overflow: hidden;
}


/* --- 8 - ESTILO PARA LA LISTA DE "MIS PRODUCTOS" --- */
/* (Reutilizamos las clases .aviso-card para consistencia visual) */
.avisos-list {
    display: grid;
    gap: 15px;
}

.aviso-card {
    display: flex; /* ¡La magia de Flexbox! */
    align-items: center; /* Centra todo verticalmente */
    gap: 15px; /* Espacio entre elementos */
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px 20px;
    transition: box-shadow 0.2s ease-in-out;
}

.aviso-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.aviso-card-checkbox {
    /* El contenedor del checkbox no necesita mucho estilo */
}

.aviso-card-content {
    flex-grow: 1; /* Le dice a este div que ocupe todo el espacio disponible */
}

.aviso-card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 5px 0;
}

.aviso-card-meta {
    font-size: 0.9em;
    color: #6b7280;
    margin: 0;
}

.aviso-card-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.8em;
    font-weight: 500;
    border-radius: 12px;
    text-transform: capitalize;
    margin-bottom: 8px;
}

/* (Los estados son genéricos y se reutilizan) */
.status-borrador { background-color: #e5e7eb; color: #374151; }
.status-pendiente_revision { background-color: #fef3c7; color: #92400e; }
.status-en_revision { background-color: #dbeafe; color: #1e40af; } 
.status-verificado { background-color: #d1fae5; color: #065f46; }
.status-rechazado { background-color: #fee2e2; color: #991b1b; }
.status-trash { background-color: #e5e7eb; color: #4b5563; }


.aviso-card-actions button {
    background: none;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
}

.aviso-card-actions .delete-btn {
    border-color: #ef4444;
    color: #ef4444;
}
.aviso-card-actions .delete-btn:hover {
    background-color: #ef4444;
    color: #fff;
}

.aviso-card-actions {
    display: flex;
    gap: 10px;
}

/* --- 9 - ESTILOS PARA LOS UPLOADERS DE ARCHIVOS (Reutilizables) --- */
.uploader-container {
    background-color: #fff;
    border: 2px dashed #d1d5db;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
.image-preview {
    margin-bottom: 15px;
}
.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.uploader-container .remove-btn {
    background: #ef4444; color: white; border: none;
    padding: 5px 10px; border-radius: 5px; cursor: pointer;
    margin-top: 10px;
}




/* --- 10 - ESTILOS PARA LOS ESTADOS DE REVISION DEL ADMIN (Reutilizables) --- */

/* Contenedor del encabezado de estado en cada paso */
.fieldset-status-header {
    display: none; /* Oculto por defecto en el formulario de creación */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

/* Las 'luces' de estado */
.status-lights {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-light {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #d1d5db; /* Gris por defecto (inactivo) */
    position: relative;
    cursor: help;
}

/* Colores de las luces */
.status-light.status-verificado { background-color: #34d399; }
.status-light.status-corregir { background-color: #f59e0b; }
.status-light.status-rechazado { background-color: #ef4444; }

/* Caja para el feedback del admin */
.admin-feedback-box {
    font-size: 0.9em;
    color: #4b5563;
}

/* Cuando mostremos un formulario para editar, añadiremos esta clase */
/* para hacer visibles los indicadores de estado. */
/* <-- CAMBIO: ID del formulario adaptado */
#pfc-crear-producto-form.modo-revision .fieldset-status-header {
    display: flex;
}

/* Estilos para los nuevos uploaders de video */
.media-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}


/* --- 11 - MEJORAS PARA EL DASHBOARD Y NAVEGADORES (Reutilizables) --- */

.pfc-app-dashboard {
    overflow-x: auto; /* Permite scroll horizontal si los botones no caben */
    white-space: nowrap; /* Evita que los botones salten a la línea de abajo */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Para navegadores que soportan scrollbars personalizadas */
.pfc-app-dashboard::-webkit-scrollbar {
    height: 6px;
}
.pfc-app-dashboard::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 10px;
}


/* --- 12 - ESTILOS PARA LA NUEVA VISTA PREVIA CON ACCIONES (Reutilizables) --- */

.image-preview-item {
    position: relative;
    display: inline-block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    max-width: 200px; /* Tamaño de la vista previa */
}

.image-preview-item img {
    display: block;
    width: 100%;
    height: auto;
}

.image-preview-actions {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px;
    border-radius: 5px;
    opacity: 0; /* Oculto por defecto */
    transition: opacity 0.2s ease-in-out;
}

.image-preview-item:hover .image-preview-actions {
    opacity: 1; /* Se muestra al pasar el mouse */
}

.pfc-action-btn {
    background-color: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.pfc-action-btn:hover {
    background-color: #f0f0f0;
}

.pfc-action-btn.pfc-delete-btn {
    background-color: #ef4444;
    color: white;
}
.pfc-action-btn.pfc-delete-btn:hover {
    background-color: #dc2626;
}


/* --- 13 - ESTILOS PARA LA GALERÍA DE IMÁGENES ADICIONALES (Reutilizables) --- */

.gallery-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.gallery-preview-grid .image-preview-item {
    max-width: 120px; /* Miniaturas más pequeñas */
}

.gallery-preview-grid .image-preview-item .pfc-action-btn {
    width: 24px;   /* Botones más pequeños */
    height: 24px;
    font-size: 12px;
}


/* --- 14 - ESTILOS PARA VISTA PREVIA DE VIDEO (Reutilizables) --- */
.video-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video llene el contenedor */
}



/* --- 15 - ESTILO PARA EL BOTON SECUNDARIO DE CANCELAR EDICION (Reutilizable) --- */
.pfc-secondary-btn {
    background: #6b7280;
    color: white;
    font-weight: 500;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.pfc-secondary-btn:hover {
    background: #4b5563;
}


/* --- 16 - ESTILO PARA EL MENSAJE AL FRONTEND (Reutilizable) --- */
.mensaje-admin-texto {
    background-color: #f3f4f6;
    border-left: 4px solid #6a11cb;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}



/* --- 17 - MENSAJE DEL ADMIN (Reutilizable) --- */
.admin-feedback-container {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}
.admin-feedback-container h4 {
    margin-top: 0;
    color: #b45309;
}


/* --- 18 - BARRA DE PROGRESO (Reutilizable) --- */
.upload-progress-container {
    padding: 10px;
    text-align: left;
}
.progress-bar-background {
    width: 100%;
    background-color: #e9ecef;
    border-radius: .25rem;
    height: 1rem;
    margin-top: 5px;
}
.progress-bar-foreground {
    background-color: #007bff;
    height: 100%;
    border-radius: .25rem;
    transition: width 0.2s ease-in-out; 
}
.progress-percentage {
    display: block;
    text-align: center;
    font-size: 0.8em;
    margin-top: 5px;
    font-weight: bold;
}



/* --- 19 - PLACEHOLDER DE SUBIDA (Reutilizable) --- */
.upload-in-progress {
    width: 120px; /* O el tamaño de tus miniaturas */
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}


/* ==========================================================================
   20 - ESTILOS ADICIONALES PARA EL FORMULARIO DE PRODUCTOS
   ========================================================================== */

/* Mejora el espaciado dentro de los fieldsets */
/* <-- CAMBIO: ID del formulario adaptado */
#pfc-crear-producto-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Añade un espacio vertical entre cada label/input */
}

#pfc-crear-producto-form fieldset legend {
    margin-bottom: 10px; /* Un poco más de aire debajo del título del paso */
}

/* Estilos para los grupos de checkboxes (ej. Talles, Colores, etc.) */
#pfc-crear-producto-form fieldset div {
    display: flex;
    align-items: center;
    gap: 8px;
}

#pfc-crear-producto-form fieldset div label {
    margin-top: 0; /* Reseteamos el margen superior para los labels de los checkboxes */
    font-weight: normal; /* Hacemos el texto del checkbox un poco más ligero */
}

#pfc-crear-producto-form fieldset input[type="checkbox"] {
    width: auto; /* Devolvemos el tamaño natural al checkbox */
    margin-top: 2px;
}

/* Líneas separadoras para organizar visualmente los grupos de checkboxes */
#pfc-crear-producto-form fieldset hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 15px 0;
}

/* Títulos para los grupos de checkboxes */
#pfc-crear-producto-form fieldset strong {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #374151;
}

/* (Este estilo estaba duplicado/conflictuando, lo mantenemos consistente con el de la sección 2) */
.pfc-app-dashboard button.active {
    background-color: #6a11cb;
    color: #ffffff;
    border-color: #6a11cb;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(106, 17, 203, 0.2);
}



/* ==========================================================================
   21 - ESTILOS PARA LA VISTA PREVIA DE DOCUMENTOS (Reutilizable)
   ========================================================================== */

.doc-preview-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.doc-preview-item a {
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-icon-container {
    text-align: center;
    padding: 5px;
}

.doc-icon-container .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #6c757d;
}

.doc-icon-container p {
    font-size: 11px;
    margin: 5px 0 0 0;
    word-break: break-all;
    line-height: 1.2;
}

.doc-preview-item:hover .image-preview-actions {
    opacity: 1;
}


/* ==========================================================================
   22 - ESTILOS UNIFICADOS PARA BARRAS DE PROGRESO DE SUBIDA (Reutilizable)
   ========================================================================== */

/* Contenedor principal de la barra de progreso */
.upload-progress-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
    width: 100%;
    height: 100%;
}

/* El nombre del archivo que se está subiendo */
.upload-progress-container p {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    word-break: break-all;
}

/* El fondo gris de la barra */
.progress-bar-background {
    width: 80%;
    background-color: #e9ecef;
    border-radius: 50px;
    height: 12px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

/* La barra azul que se llena */
.progress-bar-foreground {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    height: 100%;
    width: 0%;
    border-radius: 50px;
    transition: width 0.2s ease-in-out; 
}

/* El texto del porcentaje */
.progress-percentage {
    display: block;
    text-align: center;
    font-size: 11px;
    margin-top: 8px;
    font-weight: bold;
    color: #495057;
}

/* Placeholder mientras se sube */
.upload-in-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

/* Estilo para los placeholders de multimedia */
.gallery-preview-grid .upload-in-progress {
    width: 120px;
    height: 120px;
}

/* Estilo para un error de subida */
.upload-error {
    background-color: #fff5f5;
    border-color: #e53e3e;
    color: #c53030;
    font-size: 12px;
    padding: 5px;
    text-align: center;
}



/* ==========================================================================
   23 - ESTILO PARA EL PLACEHOLDER DE SUBIDA DE DOCUMENTOS (Reutilizable)
   ========================================================================== */

.doc-preview-item.upload-in-progress {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.doc-preview-item.upload-in-progress .upload-progress-container p {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




/* --- 25 - DISEÑO RESPONSIVE (ADAPTACIÓN A MÓVILES) --- */
@media (max-width: 782px) {
    /* <-- CAMBIO: ID del contenedor principal adaptado */
    #pfc-productos-app-container {
        padding: 20px;
        margin: 20px auto;
    }
    .form-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item.full-width, .grid-item.street-address {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    #pfc-app-main-view h2 {
        font-size: 1.5em;
    }
    .form-grid-container {
        grid-template-columns: 1fr;
    }
    .grid-item.full-width, .grid-item.street-address {
        grid-column: span 1;
    }
    .form-action-buttons {
        flex-direction: column-reverse; /* Botones uno encima del otro */
    }
    /* <-- CAMBIO: ID del formulario adaptado */
    #pfc-crear-producto-form button[type="submit"],
    #pfc-crear-producto-form #pfc-cancel-btn {
        width: 100%;
    }
}


/* ==========================================================================
   26 - ESTILOS PARA LA PAGINACIÓN DEL FRONTEND (Reutilizable)
   ========================================================================== */

.pfc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.page-btn {
    background-color: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn.current {
    background-color: #6a11cb;
    color: #ffffff;
    border-color: #6a11cb;
    font-weight: bold;
    cursor: default;
}



/* ==========================================================================
   27 - ESTILOS PARA EL MODAL DE VISTA PREVIA "PREMIUM" (Reutilizable)
   ========================================================================== */

#pfc-preview-modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(20, 20, 30, 0.85);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

#pfc-preview-modal-wrap {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    background-color: #f4f5f7;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#pfc-preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

#pfc-preview-modal-header .header-text h2 {
    font-size: 1em;
    font-weight: 700;
    color: #6a11cb;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
#pfc-preview-modal-header .header-text p {
    font-size: 0.8em;
    margin: 0;
    color: #6b7280;
}

#pfc-preview-modal-close {
    background: #e5e7eb;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    line-height: 30px;
    transition: all 0.2s;
}

#pfc-preview-modal-close:hover {
    background: #d1d5db;
    transform: rotate(90deg);
}

#pfc-preview-modal-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.preview-gallery-main {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.preview-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.preview-gallery-thumbnails .thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.preview-gallery-thumbnails .thumbnail:hover {
    border-color: #6a11cb;
}
.preview-gallery-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}
.preview-title h1 {
    font-size: 2em;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: #111827;
}
.preview-title .subtitle {
    font-size: 1.1em;
    color: #6b7280;
    margin: 0;
}
.preview-price .price-tag {
    background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
    color: white;
    padding: 10px 20px;
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 8px;
}

.preview-section {
    margin-bottom: 30px;
}
.preview-section h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}
.preview-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: #374151;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.feature-item {
    background-color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 1em;
}
.feature-item strong {
    display: block;
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 3px;
    text-transform: capitalize;
}
.feature-item span {
    font-weight: 500;
    color: #111827;
}
.feature-item.checked {
    color: #16a34a;
    font-weight: 500;
    border-left: 3px solid #16a34a;
    background-color: #f0fdf4;
}

.media-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.media-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}
.media-item:hover {
    border-color: #6a11cb;
    color: #6a11cb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.media-item .dashicons {
    font-size: 24px;
}

.preview-gallery-slider {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.slider-main-image {
    width: 100%;
    height: 100%;
}

.slider-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.preview-gallery-thumbnails .thumbnail {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.preview-gallery-thumbnails .thumbnail:hover {
    border-color: #6a11cb;
}

.preview-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.preview-price .price-op {
    display: block;
    text-align: right;
    font-size: 0.85em;
    color: #6b7280;
    margin-top: -5px;
    font-weight: 500;
}

/* Ajuste específico para el admin para que coincida con los colores de WP */
/* <-- CAMBIO: ID del modal del admin adaptado para productos */
#pfc-prod-modal-wrap .preview-price .price-op {
    color: #555; /* color para admin */
}




/* ==========================================================================
   28 - ESTILOS PARA LA BURBUJA DE NOTIFICACIÓN DE MENSAJES
   ========================================================================== */

.notification-bubble {
    position: absolute;
    top: 5px;      /* Ajusta la posición vertical */
    right: 8px;     /* Ajusta la posición horizontal */
    width: 10px;    /* Tamaño del círculo */
    height: 10px;   /* Tamaño del círculo */
    background-color: #ef4444; /* Rojo de notificación */
    border-radius: 50%;
    border: 2px solid #ffffff; /* Borde blanco para que resalte */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}



