/* ========================================================= */
/* │ NUPZEN - ESTILOS ESPECÍFICOS PARA EL PANEL DE PROVEEDORES │ */
/* │ (Limpio y optimizado - Depende de custom.css)           │ */
/* ========================================================= */

/* ========================================================= */
/* │ 1. NAVBAR MODERNO (FLOTANTE + MENU MOVIL)             │ */
/* ========================================================= */

.navbar {
    position: fixed;
    top: 5px;
    left: 5px;
    right: 5px;
    width: auto;
    z-index: 1030;
    background-color: rgba(69, 52, 182, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

body {
    padding-top: 90px;
    background-color: #f9f9f9;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.navbar .nav-link:hover {
    color: #FFE66B !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar .nav-link.active {
    color: #FFE66B !important;
    font-weight: 600;
}

.navbar .nav-link::after {
    display: none;
}

.navbar .btn {
    border-radius: 50px;
    padding: 0 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 1;
}

.navbar .btn-light {
    background-color: transparent;
    color: #FFE66B;
    border: 1px solid #FFE66B;
}

.navbar .btn-light:hover {
    background-color: #FFE66B;
    border-color: #FFE66B;
    color: #4534B6;
}

.navbar .btn-outline-light {
    background-color: #4534B6;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .btn-outline-light:hover {
    background-color: #3a2a9a;
    color: #333;
    border-color: #3a2a9a;
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none;
    padding: 0;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 230, 107, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: none !important;
    width: 30px;
    height: 30px;
}

/* Ajustes Dropdown Login Navbar */
.navbar .dropdown-menu {
    margin-top: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar .dropdown-item:active {
    background-color: #4534B6;
}

/* ========================================================= */
/* │ AJUSTES MÓVIL (CORREGIDO: WIDTH 100% EN BOTONES)      │ */
/* ========================================================= */

@media (max-width: 991px) {

    /* 1. CONTENEDOR PRINCIPAL (#mainNav) */
    #mainNav {
        background-color: #4534b6;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        margin-top: 15px;
    }

    #mainNav.show {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* 2. ENLACES (LINKS) */
    #mainNav .navbar-nav {
        width: 100% !important;
        margin-bottom: 20px !important;
        margin-right: 0 !important;
    }

    #mainNav .nav-item {
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #mainNav .nav-link {
        padding: 15px 0 !important;
        font-size: 1.1rem;
        display: block;
    }

    /* 3. CONTENEDOR DE BOTONES */
    #mainNav>div.d-flex {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
        /* Estira los hijos */
    }

    /* --- NUEVO: CONTENEDOR DROPDOWN AL 100% --- */
    /* Esto es lo que faltaba para que el botón 'Ingresar' crezca */
    #mainNav .dropdown {
        width: 100% !important;
        display: block !important;
    }

    /* 4. BOTONES INDIVIDUALES (Y TOGGLE) */
    #mainNav .btn,
    #mainNav .dropdown-toggle {
        width: 100% !important;
        display: flex !important;
        /* Flex para centrar contenido */
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 12px;
    }

    /* 5. MENÚ DESPLEGABLE (DROPDOWN-MENU) */
    #mainNav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        transform: none !important;
        margin-top: 10px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        box-shadow: none !important;
        text-align: center;
        display: none;
    }

    #mainNav .dropdown-menu.show {
        display: block !important;
    }

    #mainNav .dropdown-item {
        color: white !important;
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    #mainNav .dropdown-item:last-child {
        border-bottom: none;
    }

    #mainNav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }
}

/* ========================================================= */
/* │ 2. PORTADA Y CABECERA DE PERFIL (DASHBOARD)           │ */
/* ========================================================= */

.cover {
    height: 20vw;
    max-height: 350px;
    position: relative;
    border-bottom: 1px solid #ddd;
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.cover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.btn-edit-cover {
    position: absolute;
    top: 100px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
    z-index: 5;
}

.btn-edit-cover:hover {
    background: rgba(0, 0, 0, 0.9);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: -60px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #1877f2;
    color: white;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-edit-avatar:hover {
    transform: scale(1.1);
}

.profile-info {
    flex: 1;
    min-width: 250px;
}

.btn-custom {
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: scale(1.05);
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    border-radius: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 80px;
    }

    .avatar-wrapper {
        margin-bottom: 10px;
    }

    .profile-info {
        padding: 0;
    }

    .profile-info .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .profile-info .btn-custom {
        flex: 1 1 45%;
        min-width: 140px;
        justify-content: center;
        margin-bottom: 5px;
    }

    .logout-btn {
        position: static;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

/* ========================================================= */
/* │ 3. RESEÑAS Y RATINGS                                  │ */
/* ========================================================= */

.rating-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    padding: 2rem;
    margin-top: 2rem;
}

.rating-summary {
    border-right: 1px solid #eee;
}

.rating-summary h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #343a40;
}

.rating-stars i {
    font-size: 1.5rem;
    color: #ffc107;
}

.rating-distribution .star-label {
    width: 50px;
    font-weight: 500;
    font-size: 0.95rem;
}

.rating-bar {
    flex: 1;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 0.5rem;
}

.rating-fill {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    height: 100%;
}

.review-box {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 1.5rem;
}

.review-box img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.review-box .review-meta {
    flex: 1;
}

.review-box .review-meta .name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.review-box .review-meta .text-muted {
    font-size: 0.85rem;
}

.review-box .review-meta .comment {
    font-size: 0.95rem;
    color: #444;
    margin-top: 0.5rem;
}

.review-form {
    margin-top: 2rem;
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-review {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 500;
    border-radius: 6px;
}

@media(max-width: 768px) {
    .rating-summary {
        border-right: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 1.5rem;
    }
}

/* ========================================================= */
/* │ 4. GALERÍA Y COMPONENTES VISUALES                     │ */
/* ========================================================= */

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.4s ease;
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Tarjeta interna del Dashboard (Diferente a la del directorio público) */
.supplier-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar-initials {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: white;
    margin: 0 auto 15px;
}

.name {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.badge-status {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status.verificado {
    background: #28a745;
    color: white;
}

.badge-status.pendiente {
    background: #ffc107;
    color: #333;
}

.rating-box {
    text-align: center;
    margin-top: 20px;
}

.rating-stars {
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD700;
    width: 100%;
    margin-bottom: 5px;
}

.rating-stars .far {
    color: #ccc;
}

.rating-info {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: #666;
}

.rating-number {
    font-weight: 600;
    color: #333;
}

.rating-dot {
    margin: 0 6px;
    color: #aaa;
}

.rating-reviews {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

.rating-reviews:hover {
    color: #0056b3;
    text-decoration: underline;
}

.info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 0.8rem;
    text-align: left;
    justify-content: flex-start;
}

.info i {
    font-size: 1.1rem;
    color: #ff6f61;
    min-width: 20px;
    text-align: center;
}

.info b {
    color: #000;
    font-weight: 600;
}

.social-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.social-icon {
    --size: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--bg-color);
    color: white;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #f5db60 !important;
}

.tooltip {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.social-icon:hover .tooltip {
    opacity: 1;
}

#dropZone {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 40px;
    transition: background-color 0.2s, border-color 0.2s;
}

#dropZone.dragover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

#imagePreview {
    max-height: 300px;
    border-radius: 8px;
}

.card.position-relative {
    cursor: pointer;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card.position-relative:hover .image-overlay {
    opacity: 1;
}

.image-overlay .btn {
    opacity: 1;
}

/* ========================================================= */
/* │ 5. BOTONES DE ACCIÓN (COMPARTIR, WEB, ETC.)           │ */
/* ========================================================= */
/* Nota: Se han eliminado duplicados de .btn-whatsapp.
   Se usan las clases base de custom.css para consistencia. */

.supplier-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem 1rem 1rem;
}

.supplier-actions .btn {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    color: white !important;
    border-radius: 10rem;
    border: none;
    transition: all 0.3s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Botón Compartir */
.btn-share-supplier {
    background-color: #4534B6;
    font-weight: 600;
}

.btn-share-supplier:hover {
    background-color: #9682F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.btn-custom.btn-share-supplier {
    color: white !important;
}

/* Botón Website */
.btn-website-supplier {
    background-color: #4534B6;
    border: 2px solid #9682f2;
    color: #4534b6;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-website-supplier:hover {
    background-color: #9682F2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* Botón Logout */
.btn-logout-supplier {
    background-color: #FD5F69;
    color: white !important;
}

.btn-logout-supplier:hover {
    background-color: #AA444E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* Botón Mi Perfil */
.btn-my-profile {
    background-color: #9682F2;
    color: white !important;
}

.btn-my-profile:hover {
    background-color: #4534B6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

/* ========================================================= */
/* │ 6. GUÍA DE PROVEEDORES Y FORMULARIOS                  │ */
/* ========================================================= */

.supplier-instructions {
    padding: 1rem 0;
}

.supplier-instructions h2 {
    color: #4534b6;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9682f2;
    display: inline-block;
}

.supplier-instructions h3 {
    color: #303030;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.supplier-instructions p {
    line-height: 1.7;
    color: #495057;
}

.instruction-callout {
    background-color: #f8f9fa;
    border-left: 5px solid #f5db60;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.instruction-callout p {
    margin: 0;
}

.image-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #adb5bd;
    height: 100%;
    min-height: 250px;
    padding: 1rem;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.image-placeholder span {
    font-weight: 500;
}

.instruction-list {
    list-style: none;
    padding-left: 0;
}

.instruction-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
}

.instruction-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: #9682f2;
}

/* Panel Formularios */
.form-section {
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
}

.form-section-title {
    color: #4534b6;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* (Nota: .category-pills eliminado. Se usa el de custom.css) */

.sticky-save-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.supplier-profile-form {
    padding-bottom: 100px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-grow {
    flex-grow: 1;
}

/* Modal Crop */
#coverCropModal .modal-dialog {
    max-width: 800px;
}

#coverCropModal .img-container {
    max-height: 50vh;
    overflow: hidden;
}

#coverCropModal #coverImageToCrop {
    max-width: 100%;
}

/* Modal Login Correcciones */
#loginModal .modal-dialog {
    box-shadow: none !important;
    margin-top: 0;
    margin-bottom: 0;
}

#loginModal .modal-content {
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
    border: none !important;
}

#loginModal .btn-close {
    background-size: 1rem;
    opacity: 0.5;
    cursor: pointer;
    z-index: 1060;
}

#loginModal .btn-close:hover {
    opacity: 1;
}


/* ========================================================= */
/* │ 7. BARRA DE PROGRESO DE PERFIL                        │ */
/* ========================================================= */

.profile-progress-notice {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 5px solid;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.profile-progress-notice i {
    font-size: 2rem;
}

.profile-progress-notice h5 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.profile-progress-notice p {
    margin: 0;
    line-height: 1.6;
}

/* Incompleto (Amarillo) */
.profile-progress-bar {
    background-color: #fffaf0;
    border-color: #f5db60;
}

.profile-progress-bar i {
    color: #f5db60;
}

.profile-progress-bar h5 {
    color: #664d03;
}

.profile-progress-bar .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-progress-bar .progress-info .percentage {
    font-weight: 700;
    color: #664d03;
}

.profile-progress-bar .progress {
    height: 12px;
    border-radius: 10px;
    background-color: #f0eeda;
}

.profile-progress-bar .progress-bar {
    background-color: #f5db60;
}

/* Completo (Verde) */
.profile-progress-complete {
    background-color: #f0fcf4;
    border-color: #28a745;
}

.profile-progress-complete i {
    color: #28a745;
}

.profile-progress-complete h5 {
    color: #0a3622;
}

.profile-progress-bar .profile-missing-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    margin-bottom: 0;
    column-count: 3;
    column-gap: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.profile-progress-bar .profile-missing-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #664d03;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.profile-progress-bar .profile-missing-list li::before {
    content: '\F0139';
    font-family: 'Material Design Icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: #d9534f;
    font-weight: 600;
}

@media (max-width: 768px) {
    .profile-progress-bar .profile-missing-list {
        column-count: 1;
    }
}

/* ========================================================= */
/* │ 8. CTA REGISTRO Y PRECIOS                             │ */
/* ========================================================= */

.supplier-register-cta {
    background: linear-gradient(135deg, #4534b6 0%, #9682f2 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(69, 52, 182, 0.2);
    position: relative;
    overflow: hidden;
}

.supplier-register-cta h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.supplier-register-cta p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.btn-cta-register {
    background-color: #f5db60;
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #f5db60;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-cta-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background-color: #ffe66b;
    border-color: #ffe66b;
    color: #000;
}

.btn-cta-register i {
    font-size: 1.2rem;
}

/* Caja de Precio (Perfil Público) */
.supplier-price-box {
    background-color: #ffffff;
    border: 1px solid rgba(69, 52, 182, 0.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    transition: transform 0.2s ease;
}

.supplier-price-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(69, 52, 182, 0.1);
}

.price-highlight {
    color: #4534b6;
    font-weight: 800;
    font-size: 1.1rem;
    margin-left: 4px;
}

/* ========================================================= */
/* │ 9. DASHBOARD MÉTRICAS (KPIs)                          │ */
/* ========================================================= */

.border-btm-info {
    border-bottom: 4px solid #17a2b8 !important;
}

.border-btm-primary {
    border-bottom: 4px solid #4534b6 !important;
}

.border-btm-success {
    border-bottom: 4px solid #198754 !important;
}

.border-btm-warning {
    border-bottom: 4px solid #ffc107 !important;
}

.icon-metric {
    font-size: 2.5rem;
}

.chart-wrapper-responsive {
    position: relative;
    height: 300px;
    width: 100%;
}

/* ========================================================= */
/* │ LOADER DE REGISTRO (RESTAURADO)                       │ */
/* ========================================================= */

.registration-loader {
    position: fixed;
    /* Importante: Fixed para cubrir toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Fondo blanco semitransparente */
    z-index: 9999;
    /* Asegura que esté por encima del formulario */

    /* Centrado del spinner */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Opcional: Si usas un spinner de Bootstrap dentro, esto asegura el tamaño */
.registration-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #4534b6;
    /* Color morado Nupzen */
}


/* ========================================================= */
/* │ NUPZEN - ESTILOS DEL DIRECTORIO PÚBLICO (RESTAURADO)  │ */
/* ========================================================= */

/* 1. HERO SECTION Y OVERLAY (Solución al texto invisible) */
.directory-hero {
    position: relative;
    min-height: 500px;
    /* Altura mínima para que se vea la imagen */
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    /* Ajuste para móviles */
    margin-top: -80px;
    /* Compensa el navbar fijo si es necesario */
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Oscuridad del 60% para que el texto blanco resalte */
    z-index: 1;
    /* Nivel 1: Sobre la imagen */
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Nivel 10: Sobre el overlay */
    width: 100%;
}

/* 2. BARRA DE BÚSQUEDA (Pill Style) */
.search-pill-container {
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    /* Sombra fuerte para resaltar */
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 11;
    /* Encima de todo */
}

/* En moviles se apilan */
@media (max-width: 991px) {
    .search-pill-container {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
        padding: 20px;
    }

    .search-divider {
        display: none;
    }
}

/* 3. TARJETAS DE PROVEEDORES */
.supplier-directory-card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.supplier-directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Efecto borde para Premium */
.supplier-directory-card.ring-premium {
    border: 2px solid #ffc107 !important;
    /* Borde dorado/amarillo */
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2) !important;
}

/* Imagen de portada de la tarjeta */
.card-cover-img {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

/* Avatar Flotante */
.supplier-avatar-wrapper {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    /* Hace que flote sobre la portada */
    position: relative;
    z-index: 2;
}

/* 4. BOTONES DE CONTACTO (Restaurados) */
.btn-whatsapp-action {
    background-color: #25D366 !important;
    /* Verde WhatsApp oficial */
    color: white !important;
    border: none !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-whatsapp-action:hover {
    background-color: #1DA851 !important;
    /* Verde más oscuro al pasar mouse */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.verified-icon {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* ========================================================= */
/* │ AJUSTES MÓVIL ESPECÍFICOS (PERFIL, CTA Y FOOTER)      │ */
/* ========================================================= */

@media (max-width: 768px) {

    /* 1. AUMENTAR ALTURA DE PORTADA (Para separar header del avatar) */
    .cover {
        min-height: 280px !important;
        /* Altura fija mínima para que no se aplaste */
        height: auto !important;
        background-position: center center !important;
    }

    /* Opcional: Ajustar el margen negativo para que el avatar no suba tanto */
    .profile-header {
        padding-top: 25px !important;
        /* Antes era 80px, lo bajamos a 25px */
        margin-top: -60px !important;
        /* Subimos el bloque blanco sobre la portada */
        padding-bottom: 25px !important;
    }

    /* Opcional: Si quieres que el avatar sobresalga un poco hacia arriba (efecto flotante) */
    .avatar-wrapper {
        margin-top: -50px !important;
        /* Hace que el círculo suba y quede mitad fuera */
        margin-bottom: 10px !important;
    }

    /* 2. REDUCIR TEXTOS DEL BLOQUE CTA ("¿Eres proveedor...?") */
    .supplier-register-cta {
        padding: 2rem 1.5rem !important;
        /* Menos relleno */
    }

    .supplier-register-cta h3 {
        font-size: 1.5rem !important;
        /* Título más pequeño */
        line-height: 1.3;
    }

    .supplier-register-cta p {
        font-size: 1rem !important;
        /* Texto de párrafo más legible */
        margin-bottom: 1.5rem !important;
    }

    /* 3. CENTRAR FOOTER NEGRO */
    .footer-section-dark {
        text-align: center !important;
    }

    /* Centrar logotipos e imágenes dentro del footer */
    .footer-section-dark img {
        margin: 0 auto 15px auto !important;
        display: block;
    }

    /* Alinear iconos sociales al centro */
    .social-icons-footer {
        justify-content: center !important;
        margin-bottom: 20px;
    }

    /* Separar un poco las columnas que ahora están apiladas */
    .footer-section-dark .col-lg-3,
    .footer-section-dark .col-lg-2 {
        margin-bottom: 30px;
    }
}

/* ============================================== */
/* 1. AJUSTES GLOBALES DEL BUSCADOR (VISIBLE SIEMPRE) */
/* ============================================== */

/* Esta regla va FUERA del media query para que aplique en PC y Móvil */
.search-pill-container .form-select {
    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") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* ============================================== */
/* 2. AJUSTES ESPECÍFICOS PARA MÓVIL (< 991px)    */
/* ============================================== */

@media (max-width: 991px) {

    /* Ajuste del Hero para separar texto del header */
    .directory-hero {
        min-height: 60vh !important;
        padding-top: 140px !important;
        background-attachment: scroll;
    }

    /* CONTENEDOR DE BÚSQUEDA (PILL) AL 90% DE ANCHO */
    .search-pill-container {
        width: 90% !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        flex-direction: column;
        border-radius: 20px;
        gap: 15px;
        padding: 25px 20px;
    }

    /* CENTRADO DE TEXTO */
    .search-pill-container input,
    .search-pill-container select {
        text-align: center;
        text-align-last: center;
    }

    /* Ocultar el divisor vertical en móviles */
    .search-divider {
        display: none !important;
    }
}


/* ========================================================= */
/* │ NUEVA SECCIÓN: CTA DIRECTORIO (LANDING PAGE)          │ */
/* ========================================================= */

/* Fondo Morado Oscuro Corporativo */
.bg-nupzen-purple {
    background-color: #4534B6 !important;
}

/* Decoración de fondo (Mancha/Blob) */
.blob-cta-decoration {
    opacity: 0.1;
    width: 400px;
    height: 400px;
    right: 0;
    top: 0;
    position: absolute;
    /* Aseguramos que se posicione relativo al contenedor */
}

/* Contenedor de la Tarjeta Simulada */
.cta-card-simulated {
    max-width: 380px;
    width: 100%;
    display: inline-block;
    text-align: left;
    background-color: #fff;
}

/* Portada de la tarjeta (Imagen de fondo) */
/* Nota: Ajusta la ruta de la imagen si tu estructura de carpetas es diferente */
.cta-card-cover {
    height: 180px;
    background-image: url('../../admin/images/login-suppliers.webp');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Contenedor del Avatar Flotante */
.cta-avatar-container {
    width: 80px;
    height: 80px;
    margin-top: -40px;
    /* Efecto flotante negativo */
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* Ajuste del Avatar Circular */
.cta-avatar-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 4px solid #fff;
}

