/* ===========================================
   DETALLE DEL PRODUCTO
=========================================== */

.marketplace-detalle{

    background:linear-gradient(
        180deg,
        #f8fafc 0%,
        #f3f6fb 100%
    );

    min-height:100vh;

    padding:24px 0 0px;

}

/* ===========================================
   Breadcrumb
=========================================== */

.market-breadcrumb{

    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;

    margin-bottom:28px;

    font-size:.95rem;

}

.market-breadcrumb a{

    color:#4f6ef7;
    text-decoration:none;
    font-weight:500;
    transition:.25s;

}

.market-breadcrumb a:hover{

    color:#163d73;

}

.market-breadcrumb i{

    font-size:.70rem;

}

.market-breadcrumb span{

    color:#94a3b8;

}

.market-breadcrumb .active{

    color:#64748b;
    font-weight:600;

}

/* ===========================================
   Imagen del producto
=========================================== */

.product-image-card{

    background:#fff;

    border-radius:28px;

    padding:35px;

    border:1px solid #e9eef6;

    text-align:center;

    box-shadow:
        0 12px 30px rgba(15,23,42,.05),
        0 28px 70px rgba(15,23,42,.08);

    transition:all .30s ease;

    animation:fadeUp .45s ease;

}

.product-image-card:hover{

    transform:translateY(-6px);

    box-shadow:
        0 18px 45px rgba(15,23,42,.08),
        0 38px 85px rgba(15,23,42,.12);

}

.product-image-card img{

    width:100%;

    max-width:540px;

    height:auto;

    object-fit:contain;

}

/* ===========================================
   Información
=========================================== */

.script-info{

    padding-left:55px;

    padding-top:10px;

    animation:fadeUp .45s ease;

    min-width:0;

}

.script-title{

    font-size:2.4rem;

    font-weight:800;

    line-height:1.15;

    letter-spacing:-.5px;

    color:#163d73;

    margin-bottom:18px;

    overflow-wrap:anywhere;
    word-break:break-word;

}

.script-price{

    font-size:3rem;

    font-weight:800;

    color:#0f172a;

    line-height:1;

    margin:34px 0;

}

.script-compatible{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    margin:20px 0 32px;

    background:#eef4ff;

    color:#2854b8;

    border-radius:999px;

    font-size:.95rem;

    font-weight:600;

}

/* ===========================================
   Animación
=========================================== */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ===========================================
   Responsive
=========================================== */

@media (max-width:991.98px){

    .script-info{

        padding-left:0;

        padding-top:35px;

    }

    .script-title{
        font-size:1.7rem;
        line-height:1.2;
    }

    .script-price{

        font-size:2.5rem;

    }

}

@media (max-width:576px){

    .marketplace-detalle{

        padding:20px 0 50px;

    }

    .product-image-card{

        padding:22px;

        border-radius:20px;

    }

    .script-title{

        font-size:2rem;

        line-height:1.15;

    }

    .script-price{

        font-size:2.2rem;

    }

    .market-breadcrumb{

        font-size:.88rem;

        gap:8px;

    }

}

.detail-section{

    margin-top:25px;

}

.detail-card{

    background:#fff;

    border-radius:24px;

    border:1px solid #edf2f7;

    padding:35px;

    box-shadow:
        0 10px 30px rgba(15,23,42,.05),
        0 25px 70px rgba(15,23,42,.06);

    transition:.30s;

}

.detail-card:hover{

    transform:translateY(-2px);

    box-shadow:
        0 18px 45px rgba(15,23,42,.08);

}

.detail-title{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:25px;

    font-size:1.5rem;

    font-weight:700;

    color:#163d73;

}

.detail-title i{

    color:#0d6efd;

}

.detail-content{

    color:#475569;

    line-height:1.9;

    font-size:1rem;

}

/*==========================================
  CONTENIDO INCLUIDO
==========================================*/

.include-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:18px;

    margin-top:25px;

}

.include-item{

    display:flex;

    align-items:center;

    gap:15px;

    background:#f8fbff;

    border:1px solid #e4edf9;

    border-radius:16px;

    padding:18px 20px;

    transition:.25s;

}

.include-item:hover{

    transform:translateY(-3px);

    background:#ffffff;

    border-color:#b9d4ff;

    box-shadow:0 10px 24px rgba(15,23,42,.08);

}

.include-item i{

    width:46px;

    height:46px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:12px;

    background:#0d6efd;

    color:#fff;

    font-size:1.2rem;

    flex-shrink:0;

}

.include-item span{

    font-size:1rem;

    font-weight:600;

    color:#163d73;

    line-height:1.4;

}

/* =========================================================
   VIDEO DEMOSTRATIVO
   ========================================================= */

.video-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.related-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    margin-bottom:30px;

}

.related-subtitle{

    margin:0;

    color:#64748b;

    font-size:.95rem;

}

.related-link{

    font-weight:600;

    color:#0d6efd;

    text-decoration:none;

    transition:.25s;

}

.related-link:hover{

    color:#163d73;

}

@media (max-width:768px){

    .detail-card{

        padding:24px;

    }

    .detail-title{

        font-size:1.35rem;

    }

    .include-grid{

        grid-template-columns:1fr;

    }

    .related-header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;

    }

}

/*==========================================
  PRODUCTOS RELACIONADOS
==========================================*/

.related-card{

    background:#fff;

    border-radius:20px;

    overflow:hidden;

    border:1px solid #e9eef6;

    transition:.30s;

    box-shadow:0 10px 28px rgba(15,23,42,.05);

}

.related-card:hover{

    transform:translateY(-6px);

    box-shadow:0 22px 45px rgba(15,23,42,.10);

}

.related-image{

    width:100%;

    aspect-ratio:16/10;

    object-fit:cover;

    background:#f8fafc;

}

.related-body{

    padding:20px;

}

.related-badge{

    display:inline-block;

    padding:5px 12px;

    border-radius:30px;

    background:#eef4ff;

    color:#0d6efd;

    font-size:.75rem;

    font-weight:700;

    margin-bottom:12px;

}

.related-body h5{

    font-size:1.1rem;

    font-weight:700;

    color:#163d73;

    min-height:54px;

    margin-bottom:14px;

}

.related-rating{

    color:#fbbf24;

    margin-bottom:12px;

}

.related-price{

    font-size:1.4rem;

    font-weight:800;

    color:#0f172a;

    margin-bottom:18px;

}

/*==========================================
  SWIPER CONTROLES
==========================================*/

.related-swiper .swiper-button-prev,
.related-swiper .swiper-button-next{

    width:48px;
    height:48px;

    border-radius:50%;

    background:#ffffff;

    border:1px solid #e5e7eb;

    box-shadow:0 8px 20px rgba(0,0,0,.10);

    color:#0d6efd;

    transition:.25s;
}

.related-swiper .swiper-button-prev:hover,
.related-swiper .swiper-button-next:hover{

    background:#0d6efd;
    color:#fff;
    transform:scale(1.08);

}

.related-swiper .swiper-button-prev::after,
.related-swiper .swiper-button-next::after{

    font-size:18px;
    font-weight:bold;

}

.related-swiper .swiper-button-prev{
    left:-20px;
}

.related-swiper .swiper-button-next{
    right:-20px;
}

.related-swiper{

    padding:10px 10px 45px;

}

@media (max-width:768px){

    .related-swiper .swiper-button-prev,
    .related-swiper .swiper-button-next{

        display:none;

    }

}
/* ==========================================================
   MARKETPLACE DETALLE SCRIPT - FONDO GENERAL
   Unificado con el resto del Marketplace
========================================================== */

.marketplace-detalle {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #e7eef6 0%,
            #dfe8f1 100%
        );
}