/* ==========================================================================
   details-modern.css — Página de detalle de producto al estilo GT
   Se carga junto a home-modern.css.
   La vista usa <main class="home-v2 producto-detalle">.
   ========================================================================== */

/* ==========================================================================
   1. HERO COMPACTO
   ========================================================================== */
.producto-detalle .det-hero {
    position: relative;
    background: linear-gradient(120deg, var(--gt-azul-osc) 0%, var(--gt-azul) 55%, #34528c 100%);
    padding: 3rem 0 2.5rem;
    overflow: hidden;
}

.producto-detalle .det-hero::after {
    content: '';
    position: absolute;
    right: -4%;
    bottom: -55%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 90, 158, .32), transparent 68%);
    pointer-events: none;
}

.producto-detalle .det-hero .container {
    position: relative;
    z-index: 1;
}

.producto-detalle .det-hero .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.producto-detalle .det-hero .eyebrow::after {
    background: rgba(255, 255, 255, .4);
}

.producto-detalle .det-hero .titulo-display {
    color: #fff;
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
    margin-bottom: 0;
}

/* ==========================================================================
   2. CUERPO DEL DETALLE
   ========================================================================== */
.producto-detalle .det-body {
    padding: 3rem 0 5rem;
}

/* ==========================================================================
   3. IMAGEN CON CARD
   ========================================================================== */
.producto-detalle .det-imagen {
    position: relative;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(43, 65, 112, .08);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-sombra);
    padding: 1.25rem;
    overflow: hidden;
}

.producto-detalle .det-imagen img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--gt-radius) - .75rem);
    display: block;
    object-fit: contain;
    aspect-ratio: 4 / 3;
    background: #fff;
}

/* Placeholder cuando no hay imagen */
.producto-detalle .det-img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border-radius: calc(var(--gt-radius) - .75rem);
    background: var(--gt-gris);
    color: var(--gt-texto);
}

.producto-detalle .det-img-placeholder i {
    font-size: 3rem;
    color: var(--gt-azul-claro);
    opacity: .35;
}

/* Badges Oferta / Agotado sobre la imagen */
.producto-detalle .det-badge {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    padding: .28rem .9rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    z-index: 2;
}

.producto-detalle .det-badge-offer {
    background: #93c35c;
    color: #fff;
}

.producto-detalle .det-badge-stock {
    background: rgba(100, 116, 139, .82);
    color: #fff;
    top: 3rem; /* baja si hay también el de oferta */
}

.producto-detalle .det-badge-offer + .det-badge-stock {
    top: 3.6rem;
}

/* ==========================================================================
   4. COLUMNA DE ESPECIFICACIONES
   ========================================================================== */
.producto-detalle .det-descripcion {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--gt-texto);
    margin-bottom: 1.75rem;
}

/* --- Bloque de precios --- */
.producto-detalle .det-precios {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem 1.25rem;
    margin-bottom: 1.75rem;
    padding: 1.1rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(43, 65, 112, .08);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-sombra);
}

.producto-detalle .det-precio-normal {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gt-azul);
    letter-spacing: -.02em;
}

.producto-detalle .det-precio-old {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gt-texto);
    opacity: .65;
    text-decoration: line-through;
}

.producto-detalle .det-precio-oferta {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #93c35c;
    letter-spacing: -.02em;
}

.producto-detalle .det-precio-secundario {
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gt-texto);
    white-space: nowrap;
}

.producto-detalle .det-precio-secundario strong {
    color: var(--gt-tinta);
}

/* --- Grid de especificaciones técnicas --- */
.producto-detalle .det-specs {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .6rem 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(43, 65, 112, .08);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-sombra);
}

.producto-detalle .det-spec-label {
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gt-azul-claro);
    white-space: nowrap;
    padding-top: .15rem;
}

.producto-detalle .det-spec-valor {
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    font-weight: 600;
    color: var(--gt-tinta);
}

/* Voltajes / amperajes como chips pill */
.producto-detalle .det-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.producto-detalle .det-chip {
    display: inline-flex;
    align-items: center;
    padding: .3rem .85rem;
    background: rgba(43, 65, 112, .07);
    border: 1px solid rgba(43, 65, 112, .15);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--gt-azul);
}

/* ==========================================================================
   5. ACCIONES
   ========================================================================== */
.producto-detalle .det-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.producto-detalle .det-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.75rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .2s ease;
}

.producto-detalle .det-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43, 65, 112, .18);
    text-decoration: none;
}

.producto-detalle .det-btn-whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.producto-detalle .det-btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
}

.producto-detalle .det-btn-ficha {
    background: transparent;
    color: var(--gt-azul);
    border-color: var(--gt-azul);
}

.producto-detalle .det-btn-ficha:hover {
    background: var(--gt-azul);
    color: #fff;
}

.producto-detalle .det-btn-volver {
    background: transparent;
    color: var(--gt-texto);
    border-color: rgba(43, 65, 112, .25);
}

.producto-detalle .det-btn-volver:hover {
    background: var(--gt-gris);
    color: var(--gt-tinta);
    box-shadow: 0 6px 16px rgba(43, 65, 112, .1);
}

/* ==========================================================================
   6. RESPONSIVE
   ========================================================================== */
@media (max-width: 767.98px) {
    .producto-detalle .det-hero {
        padding: 2.25rem 0 2rem;
    }

    .producto-detalle .det-body {
        padding: 2rem 0 3.5rem;
    }

    .producto-detalle .det-acciones {
        flex-direction: column;
    }

    .producto-detalle .det-btn {
        justify-content: center;
    }
}
