/* ===== CONTENEDOR GENERAL ===== */
.productos-container {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* ===== HEADER ===== */
.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.productos-title {
    font-weight: 700;
    color: #ffffff;
}

/* ===== BOTÓN CREAR ===== */
.btn-productos {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.2), rgba(0, 0, 0, 0.6));
    color: #05AB9E;
    border: 1px solid rgba(5, 171, 158, 0.5);
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

    .btn-productos:hover {
        background: #05AB9E;
        color: #ffffff;
        box-shadow: 0 0 15px rgba(5, 171, 158, 0.6);
        border-color: #05AB9E;
    }

/* ===== ESTILOS PARA FORMULARIO GLASS (CREAR/EDITAR) ===== */
.form-glass-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.7) 0%, rgba(5, 5, 5, 0.85) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.form-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #05AB9E, #02665e);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(5, 171, 158, 0.3) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #05AB9E !important;
    box-shadow: 0 0 15px rgba(5, 171, 158, 0.2) !important;
    color: #ffffff !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.cotizador-panel input[type="number"].form-control,
.cotizador-panel input[type="number"].form-control-sm {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    box-shadow: none;
}

.cotizador-panel input[type="number"].form-control:focus,
.cotizador-panel input[type="number"].form-control-sm:focus {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.2);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Para los Dropdowns Select */
.glass-input option {
    background-color: #111111;
    color: #ffffff;
}

/* Switch Glass estilo */
.glass-switch:checked {
    background-color: #05AB9E;
    border-color: #05AB9E;
    box-shadow: 0 0 15px rgba(5, 171, 158, 0.4);
}

/* ===== BOTONES DE FORMULARIO ===== */
.btn-save {
    background: linear-gradient(135deg, rgba(5, 171, 158, 0.9), #034f49);
    color: #ffffff;
    border: 1px solid rgba(5, 171, 158, 0.8);
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-save:hover {
    background: #05AB9E;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(5, 171, 158, 0.6);
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #c4c4c4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: #ffffff;
}

/* ===== GRID DE productoS ===== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.producto-card-item {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.producto-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #05AB9E, #02665e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 15px 40px rgba(5, 171, 158, 0.2);
    border-color: rgba(5, 171, 158, 0.6);
}

.producto-card-item:hover::before {
    opacity: 1;
}

.producto-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.producto-card-body h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.producto-info {
    margin: 10px 0;
    font-size: 1rem;
    color: #c4c4c4;
    display: flex;
    align-items: center;
}

.producto-info strong {
    color: #05AB9E;
    min-width: 80px;
}

.producto-card-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== BADGES ===== */
.badge-rol {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.badge-activo {
    background-color: rgba(25, 135, 84, 0.15);
    color: #4ce59b;
    border: 1px solid rgba(25, 135, 84, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-inactivo {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ff6b7b;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== BOTONES ACCIONES ===== */
.btn-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Editar */
.btn-edit {
    border: 1px solid rgba(5, 171, 158, 0.5);
    color: #05AB9E;
    background: rgba(5, 171, 158, 0.1);
}

    .btn-edit:hover {
        background-color: #05AB9E;
        color: white;
        box-shadow: 0 0 10px rgba(5, 171, 158, 0.4);
    }

/* Ver */
.btn-details {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

    .btn-details:hover {
        background-color: #ffffff;
        color: #000;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    }

/* Eliminar */
.btn-delete {
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #ff6b7b;
    background: rgba(220, 53, 69, 0.1);
}

    .btn-delete:hover {
        background-color: #dc3545;
        color: white;
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
    }

/* ===== IMAGEN PRODUCTO ===== */
.producto-imagen-wrapper {
    width: 100%;
    height: 260px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.producto-imagen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== COTIZADOR ===== */
.cotizador-panel {
    flex: 0 0 350px;
    background: #15181c;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 120px;
    z-index: 1020;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
}

.cotizador-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}

.cotizador-overlay {
    display: none;
}

@media (max-width: 768px) {
    .productos-container {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 24px;
    }

    .productos-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
        gap: 12px;
    }

    .producto-card-item {
        padding: 16px;
    }

    .producto-card-header {
        margin-bottom: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .producto-card-body h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }

    .producto-info {
        font-size: 0.9rem;
    }

    .price-row {
        flex-wrap: wrap;
        gap: 6px;
    }

    .price-row .precio-display {
        width: 100%;
        text-align: right;
        font-size: 1rem;
    }

    .producto-card-actions {
        padding-top: 12px;
        gap: 8px;
    }

    .cotizador-panel {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 90px;
        width: auto;
        max-height: 70vh;
        transform: translateY(120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 1040;
    }

    .cotizador-panel.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .cotizador-close {
        display: inline-flex;
    }

    .cotizador-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1035;
    }

    .cotizador-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .cotizador-toggle {
        position: fixed;
        right: 16px;
        bottom: 20px;
        background: #05AB9E;
        color: #ffffff;
        border: none;
        border-radius: 999px;
        padding: 12px 18px;
        font-weight: 700;
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        z-index: 1030;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    }

    .producto-imagen-wrapper {
        height: 170px;
    }
}

.cotizador-toggle {
    display: none;
}

.extra-label {
    min-width: 0;
}

.extra-price {
    white-space: nowrap;
    display: inline-block;
    margin-left: 4px;
}


/* ===== DETALLE PRODUCTO 2 COLUMNAS ===== */

.producto-detalle-img {
    width: 100%;
    max-width: 520px;
    height: 520px;
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.45), 0 0 25px rgba(5,171,158,0.12);
    transition: all 0.35s ease;
}

.precio-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-top: 12px;
}

.val-paragraph-secondary {
    line-height: 1.8;
    color: rgba(255,255,255,0.78);
    font-weight: 400;
    font-size: 0.98rem;
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {

    .producto-detalle-img {
        height: 280px;
    }

    .precio-box {
        font-size: 1.6rem;
    }
}



/* ===== DETALLE PRODUCTO LAYOUT ===== */

.product-detail-layout {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 50px;
}

    /* columnas más respiradas */
    .product-detail-layout .row {
        align-items: stretch;
    }

    /* lado izquierdo */
    .product-detail-layout .col-lg-6:first-child {
        padding-right: 40px;
    }

    /* lado derecho */
    .product-detail-layout .col-lg-6:last-child {
        padding-left: 40px;
        border-left: 1px solid rgba(255,255,255,0.06);
    }

/* imagen principal */
.producto-detalle-img {
    width: 100%;
    max-width: 520px;
    height: 520px;
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 15px 40px rgba(0,0,0,0.45), 0 0 25px rgba(5,171,158,0.12);
    transition: all 0.35s ease;
}

    .producto-detalle-img:hover {
        transform: scale(1.015);
        box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 35px rgba(5,171,158,0.18);
    }

/* nombre producto */
.profile-title-h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
    color: #ffffff;
}

/* descripción */
.val-paragraph-secondary {
    line-height: 1.9;
    color: rgba(255,255,255,0.78);
    font-weight: 400;
    font-size: 1.02rem;
    margin-top: 14px;
    padding: 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* precio */
.precio-box {
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 15px;
    border-radius: 18px;
    background: linear-gradient( 145deg, rgba(5,171,158,0.12), rgba(0,0,0,0.2) );
    border: 1px solid rgba(5,171,158,0.2);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 10px 25px rgba(0,0,0,0.25);
}

/* pills más bonitas */
.detail-pill-grid {
    gap: 14px;
    margin-top: 18px;
}

.detail-pill {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.25s ease;
}

    .detail-pill:hover {
        transform: translateY(-2px);
        background: rgba(5,171,158,0.12);
        border-color: rgba(5,171,158,0.4);
    }

/* botón editar */
.btn-action-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: 12px;
}

/* ===== FILTROS PRODUCTOS ===== */

.productos-filtros {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.75), rgba(5, 5, 5, 0.9));
    border: 1px solid rgba(5, 171, 158, 0.2);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.filtros-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

    .filtros-header h4 {
        color: #ffffff;
        margin-bottom: 4px;
        font-weight: 700;
    }

    .filtros-header p {
        color: rgba(255,255,255,0.65);
        margin-bottom: 0;
        font-size: 0.9rem;
        font-weight: 400;
    }

.btn-limpiar-filtros {
    background: rgba(255,255,255,0.05);
    color: #cfcfcf;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 9px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-limpiar-filtros:hover {
        background: #05AB9E;
        color: #ffffff;
        border-color: #05AB9E;
        box-shadow: 0 0 15px rgba(5,171,158,0.45);
    }

@media (max-width: 768px) {
    .filtros-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-limpiar-filtros {
        width: 100%;
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {

    .product-detail-layout {
        max-width: 100%;
        padding: 35px;
    }

    .producto-detalle-img {
        max-width: 430px;
        height: 430px;
    }
}

@media (max-width: 991px) {

    .product-detail-layout .col-lg-6:last-child {
        border-left: none;
        padding-left: 12px; 
        margin-top: 35px;
    }

    .product-detail-layout .col-lg-6:first-child {
        padding-right: 12px;
    }

    .producto-detalle-img {
        max-width: 100%;
        height: 340px;
    }

    .precio-box {
        font-size: 2rem;
    }

    .profile-title-h3 {
        font-size: 1.7rem;
    }
}