.main-marketplace { background-color: #f8f9fa; padding: 40px 20px; min-height: 80vh; }
.container-main { max-width: 1400px; margin: 0 auto; }
.marketplace-header { margin-bottom: 30px; }
.marketplace-header .page-title { font-size: 1.8rem; font-weight: 800; color: #111; margin-bottom: 5px; }
.marketplace-header .subtitle { font-size: 0.95rem; color: #6c757d; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.item-card { background: #fff; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 3px 10px rgba(0,0,0,0.03); border: 1px solid #eaeaea; cursor: pointer; }
.item-card:hover { /*transform: translateY(-4px)*/; box-shadow: 0 10px 22px rgba(0,0,0,0.08); }
.item-image-wrapper { 
    position: relative;
    width: 100%;
    background: #f1f1f1;
    overflow: hidden;
}
.item-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.item-card:hover .item-image-wrapper img { transform: scale(1.03); }
.item-overlay { 
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
 }
.item-card:hover .item-overlay { opacity: 1; }
.item-title-overlay { color: #fff; font-weight: 600; font-size: 0.9rem; line-height: 1.2; }
.item-body-content { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.item-title { font-size: 0.92rem; font-weight: 700; color: #222; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-author-row { display: flex; align-items: center; justify-content: space-between; }
.item-author-info { display: flex; align-items: center; gap: 7px; overflow: hidden; }
.author-avatar-img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #eaeaea; border: 1px solid #ddd; }
.author-name { font-size: 0.8rem; font-weight: 600; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
.pro-badge { 
    background: #9889e9;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    padding: 1px 4px 2px 4px;
    border-radius: 3px;
}
.item-metrics { display: flex; align-items: center; gap: 8px; }
.metric-item { display: flex; align-items: center; gap: 3px; font-size: 0.72rem; color: #8c8c8c; }
.item-bottom-price { display: flex; align-items: baseline; justify-content: flex-start; gap: 4px; margin-top: 2px; }
.price-label { font-size: 0.75rem; color: #666; font-weight: 500; }
.item-price { font-size: 0.95rem; font-weight: 700; color: #111; display: inline-flex; align-items: baseline; }
.item-price .currency { font-size: 0.75rem; margin-right: 1px; font-weight: 600; }

/* ESTILOS DEL MODAL EMERGENTE */
body.modal-open, html.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
}
/* 1. El fondo oscuro controla el espacio superior */
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: flex-start; /* <--- Alinea arriba en lugar de centrar */
    padding-top: 30px;      /* <--- Exactamente 30px de espacio arriba */
    padding-left: 0;        /* Cero a la izquierda */
    padding-right: 0;       /* Cero a la derecha */
    padding-bottom: 0;      /* Cero abajo */
    overflow: hidden;
}
/* 2. El contenedor se acopla al ancho total y respeta la altura restante */
.preview-modal-container {
    background: #fff;
    width: 100%;
    max-width: 100%;        /* O ponle un max-width si prefieres que no sea tan ancho en pantallas gigantes, ej: 1200px */
    height: calc(100vh - 30px); /* <--- Ocupa toda la altura restando los 30px de arriba */
    border-radius: 8px 8px 0 0; /* Redondeado solo arriba */
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;              /* Sin márgenes automáticos molestos */
}

/* Barra Superior Fija */
.sticky-top-bar {
    position: sticky;
    top: -21px;
    background: #fff;
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 10px 5px;
    margin-bottom:20px
}
.sticky-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-contact-action {
    background: #0d0c22;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-contact-action:hover {
    background: #7F67FA;
}
.btn-close-modal {
    color: rgb(219, 219, 222);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: absolute;
    top: 3px;
    right: 3px;
}
.btn-close-modal:hover {
    color: rgb(255, 255, 255);
}
/* Contenido del modal con scroll */
.modal-content-scroll {
    overflow-y: auto;
    padding: 19px 13px;
    background: #fff;
}
.wrapper-mw{
    max-width:990px;
    margin:0px auto;
}
/* 1. Fila exclusiva para el Título */
.detail-title-row {
    margin-bottom: 15px;
}
.main-heading-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
/* 2. Fila para la imagen de perfil y nombre del usuario debajo del título */
.sticky-top-bar .detail-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0; /* <--- Anula cualquier margen inferior previo */
}
.author-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}
.author-info-block {
    display: flex;
    flex-direction: column;
}
.author-name-lg {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
}
.author-subtitle {
    font-size: 0.78rem;
    color: #666;
}
/* 3. Showcase de Imágenes */
.detail-image-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}
.detail-image-showcase img {
    width: 100%;
    max-width: 990px;
    border-radius: 10px;
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.08);*/
}
/* 4. Tarjeta de Descripción */
.detail-description-card {
    background: #fff;
    
    border-radius: 12px;
}
.detail-description-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #111;
}
.appdscr-subtitle,
.appdscr-text{
    max-width: 752px;
    margin: 0px auto;
}
.description-text-block {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
}
.appdscr-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: 1.65rem; /* Titular prominente pero equilibrado */
    font-weight: 700;
    color: #0d0c22; /* Negro profundo tipográfico de Dribbble */
    letter-spacing: -0.02em; /* Ligeramente comprimido para verse moderno */
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.appdscr-image-container{

}
.appdscr-image-container img{
    max-width: 100%;
}
.appdscr-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem; /* ~18px, el tamaño característico de Dribbble */
    font-weight: 400;
    color: #3d3d4e;
    line-height: 1.8;
    margin-top: 40px; /* Espaciado superior e inferior generoso entre imágenes */
    margin-bottom: 40px;
    text-align: left;
}
.detail-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #f1f1f1;
    padding-top: 15px;
}
.detail-price-display {
    font-size: 1.1rem;
    color: #111;
}

/*==================RESPONSIVE DESIGN=================*/
@media (max-width: 990px) {

}
@media (max-width: 768px) {

}
/*end buscadordinamica*/
@media (max-width: 480px) {
    .main-heading-title {
        font-size: 1rem;
    }
    .author-avatar-lg {
        width: 25px;
        height: 25px;
    }
    .sticky-top-bar .detail-author-row {
        gap: 5px;
    }
    .author-name-lg {
        font-size: 0.75rem;
    }
    .author-subtitle {
        font-size: 11px;
    }
    .btn-contact-action {
        font-size: 9px;
        padding: 10px 11px;
    }
    .detail-title-row {
        margin-bottom: 7px;
    }
    .detail-description-card {
        padding: 2px;
        border: none;
    }
}
/*==================/END RESPONSIVE DESIGN=================*/