/* -------------------------------------------------------------------------- */
/*                        DETALLE DE PRODUCTO LAYER                           */
/* -------------------------------------------------------------------------- */

/* Detail Overlay */
.detalle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: hsl(var(--bg-deep));
    opacity: 0.98;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s var(--ease-premium);
}

.detalle-overlay.activo {
    opacity: 1;
    visibility: visible;
}

/* Card Refinement */
.detalle-card {
    position: relative;
    width: 90%;
    max-width: 900px;
    padding: 6rem 4rem;
    background: rgba(0, 0, 0, 0.75);
    /* Más sólido para leer sobre la imagen de fondo */
    border: 1px solid var(--border-light);
    text-align: center;
    transform: translateY(50px) scale(0.98);
    transition: all 1s var(--ease-premium);
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
}

.detalle-overlay.activo .detalle-card {
    transform: translateY(0) scale(1);
}

/* Typography in Detail */
.detalle-nombre {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.detalle-marca {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 500;
}

.detalle-historia {
    font-size: 1.1rem;
    line-height: 2;
    color: hsl(var(--text-dim));
    max-width: 650px;
    margin: 0 auto;
    font-weight: 300;
}

.detalle-pricing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.detalle-price-row {
    display: flex;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    width: fit-content;
    min-width: 250px;
    justify-content: space-between;
}

.detalle-price-row.box-highlight {
    border-color: var(--primary-dim);
    color: var(--primary);
}

.detalle-price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
}

.box-highlight .detalle-price-label {
    color: var(--primary);
    font-weight: 500;
}

.detalle-price-value {
    font-size: 1.5rem;
    font-family: var(--font-sans);
    font-weight: 400;
}

.box-highlight .detalle-price-value {
    font-weight: 600;
}

/* Close Interface */
.detalle-cerrar {
    position: absolute;
    top: 3rem;
    right: 3rem;
    background: none;
    border: 1px solid var(--border-light);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-mid);
    z-index: 10;
}

.detalle-cerrar:hover {
    background: #fff;
    color: #000;
    transform: rotate(90deg) scale(0.9);
}

/* Background Atmosphere */
.detalle-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: transform 1.5s var(--ease-premium), opacity 1s var(--ease-premium);
    filter: none;
}

.detalle-overlay.activo .detalle-bg-image {
    opacity: 0.4;
    transform: scale(1.05);
}

/* Cursor Detail */
.detalle-cursor {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 20000;
    transition: opacity 0.5s var(--ease-premium);
    opacity: 0;
}

.detalle-overlay.activo~.detalle-cursor {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .detalle-card {
        padding: 4rem 2rem;
        width: 95%;
    }

    .detalle-cerrar {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}