/**
 * NasusRP · CSS de ficha (antes dentro de theme.css)
 *
 * Se carga solo en: Fichas de producto.
 * Lo decide nasus_css_partes() en inc/enqueue.php (se carga después de theme.css). Lo que usa toda la web
 * sigue en theme.css.
 */

/* ====================================================
   OVERRIDE: PRODUCTOS RELACIONADOS - DESKTOP FULLSCREEN
   Sobreescribe el max-width:1280px del plugin nasusrp-reviews
   ==================================================== */

@media (min-width: 1101px) {
    body.single-product section.related.products,
    body.single-product section.up-sells.products {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 40px !important;
    }
    body.single-product section.related.products ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
        width: 100% !important;
    }
}

@media (min-width: 1400px) {
    body.single-product section.related.products,
    body.single-product section.up-sells.products {
        padding: 0 60px !important;
    }
    body.single-product section.related.products ul.products {
        gap: 24px !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   El texto de venta de los juegos de Steam (al costado del precio)
   ══════════════════════════════════════════════════════════════════ */
.nx-venta { margin: 6px 0 18px; font-size: 14.5px; line-height: 1.6; color: rgba(232,236,246,.88); }
.nx-venta p { margin: 0 0 10px; }
.nx-venta-titulo { font-size: 18px; font-weight: 800; color: #fff; }
.nx-venta-titulo strong { color: #00f0ff; }
.nx-venta-intro strong { color: #fff; }

.nx-venta-lista { list-style: none; margin: 0 0 12px; padding: 0; }
.nx-venta-lista li { position: relative; padding: 3px 0 3px 26px; }
.nx-venta-lista li::before {
    content: ""; position: absolute; left: 2px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
    background: rgba(0,240,255,.14); box-shadow: 0 0 0 1px rgba(0,240,255,.55);
}
.nx-venta-lista li::after {
    content: ""; position: absolute; left: 7px; top: 10px; width: 4px; height: 7px;
    border: solid #00f0ff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.nx-venta-lista strong { color: #fff; }

.nx-venta-offline {
    padding: 9px 13px; border-left: 3px solid #b983ff; border-radius: 0 8px 8px 0;
    background: rgba(185,131,255,.08); font-size: 13.5px;
}
.nx-venta-offline strong { color: #d7bfff; }

.nx-venta-pasos { margin: 0 0 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.02); }
.nx-venta-pasos summary { cursor: pointer; padding: 10px 13px; font-weight: 700; color: #fff; list-style: none; }
.nx-venta-pasos summary::-webkit-details-marker { display: none; }
.nx-venta-pasos summary::after { content: "+"; float: right; color: #00f0ff; font-weight: 800; }
.nx-venta-pasos[open] summary::after { content: "−"; }
.nx-venta-pasos ol { margin: 0; padding: 0 16px 12px 34px; }
.nx-venta-pasos li { padding: 2px 0; }

.nx-venta-cta { font-size: 15.5px; color: #fff; }
.nx-venta-cta strong { color: #00f0ff; }
.nx-venta-letra { font-size: 12px; color: rgba(232,236,246,.5); }

/* Abajo, en la pestaña «Cómo funciona»: más estrecho y con botón de verdad */
.single-product #tab-description .nx-venta { max-width: 760px; font-size: 15px; }
.single-product #tab-description .nx-venta-cta { margin: 16px 0 12px; }
.single-product #tab-description a.nx-venta-boton {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 12px;
    background: #00f0ff; color: #050810; font-weight: 800; font-size: 15.5px; text-decoration: none;
    box-shadow: 0 0 22px rgba(0,240,255,.28); transition: transform .15s ease, box-shadow .15s ease;
}
.single-product #tab-description a.nx-venta-boton:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0,240,255,.45); }

/* Al costado: la ficha del juego (sinopsis y datos los pinta la tarjeta de la descripción corta) */
.nx-juego-req { margin: 0 0 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.02); }
.nx-juego-req summary { cursor: pointer; padding: 9px 13px; font-weight: 700; color: #fff; list-style: none; font-size: 14px; }
.nx-juego-req summary::-webkit-details-marker { display: none; }
.nx-juego-req summary::after { content: "+"; float: right; color: #00f0ff; font-weight: 800; }
.nx-juego-req[open] summary::after { content: "−"; }
.nx-juego-req > h4 { margin: 4px 13px 6px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: #00f0ff; }
.nx-juego-req > ul { margin: 0 13px 10px !important; font-size: 13.5px; }
.nx-juego-nota { margin: 0 !important; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: rgba(232,236,246,.75); }

/* ══════════════════════════════════════════════════════════════════
   El 3x2 de Steam en la ficha, sobre los juegos parecidos
   ══════════════════════════════════════════════════════════════════ */
.nx-3x2 {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 18px; padding: 14px 18px;
    border: 1px solid rgba(0,240,255,.25); border-radius: 14px;
    background: linear-gradient(90deg, rgba(0,240,255,.08), rgba(185,131,255,.08));
}
.nx-3x2-texto { flex: 1 1 320px; color: rgba(232,236,246,.85); font-size: 14.5px; line-height: 1.5; }
.nx-3x2-texto strong { color: #fff; margin-right: 4px; }
.nx-3x2-progreso { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nx-3x2-barra { width: 140px; height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.nx-3x2-barra span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #00f0ff, #b983ff); transition: width .4s ease; }
.nx-3x2-progreso b { font: 700 13px/1 'JetBrains Mono', monospace; color: #00f0ff; }
.nx-3x2-listo { border-color: rgba(127,227,160,.45); background: rgba(127,227,160,.08); }
.nx-3x2-listo .nx-3x2-barra span { background: #7fe3a0; }
.nx-3x2-listo .nx-3x2-progreso b { color: #7fe3a0; }
@media (max-width: 560px) { .nx-3x2-barra { width: 100px; } }

/* ══════════════════════════════════════════════════════════════════
   Los totales de WAPF en una sola línea: «Total a pagar ~~8.350~~ 5.010 −40%»
   ══════════════════════════════════════════════════════════════════ */
.wapf-product-totals .nx-wapf-oculta { display: none !important; }
.wapf-product-totals .nx-wapf-lista .wapf-grand-total { display: none !important; }
.wapf-product-totals .nx-wapf-final { display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; }
.wapf-product-totals .nx-wapf-final del { opacity: .55; font-size: .62em; font-weight: 600; }
.wapf-product-totals .nx-wapf-final ins { text-decoration: none; }
.wapf-product-totals .nx-wapf-final .nx-rpb-tag { font-size: 12px; }

/* ══════════════════════════════════════════════════════════════════
   «Añade una valoración» (lo ven los compradores) y el aviso para
   quien todavía no compró: tarjeta oscura con la línea neón de la web,
   estrellas doradas como las de las reseñas y botón con degradado.
   Los selectores llevan #review_form/#reviews para ganarle a WooCommerce.
   ══════════════════════════════════════════════════════════════════ */
html body.single-product #review_form_wrapper { margin-top: 28px; }
html body.single-product #review_form #respond {
    position: relative;
    margin: 0;
    padding: 28px 28px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
    border: 1px solid var(--nx-line);
    border-radius: var(--nx-radius);
    overflow: hidden;
}
html body.single-product #review_form #respond::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nx-accent), var(--nx-accent-2));
}
html body.single-product #review_form #respond .comment-reply-title {
    display: block;
    margin: 0 0 6px;
    font-family: var(--nx-font-display);
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--nx-ink);
}
html body.single-product #review_form #respond .comment-reply-title small { display: block; font-size: 12px; }
html body.single-product #review_form #respond .comment-form::before {
    content: "Tu opinión ayuda a otros jugadores a elegir.";
    display: block;
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--nx-ink-dim);
}
html body.single-product #review_form #respond .comment-form > p,
html body.single-product #review_form #respond .comment-form > div { margin: 0 0 20px; }
html body.single-product #review_form #respond label {
    display: block;
    margin: 0 0 10px;
    font-family: var(--nx-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nx-ink-dim);
}
html body.single-product #review_form #respond label .required { color: var(--nx-accent); text-decoration: none; }

/* Estrellas: apagadas hasta que eliges; se encienden hasta la que apuntas */
html body.single-product #review_form #respond p.stars { margin: 0; line-height: 1; }
html body.single-product #review_form #respond p.stars a {
    width: 1.1em;
    height: 1em;
    margin-right: 6px;
    font-size: 30px;
    color: rgba(255, 255, 255, .22);
    transition: transform .15s var(--nx-ease), color .15s var(--nx-ease);
}
html body.single-product #review_form #respond p.stars a:hover,
html body.single-product #review_form #respond p.stars a:focus-visible { transform: scale(1.15); outline: none; }
html body.single-product #review_form #respond p.stars.selected a[class] { color: var(--nx-accent-gold); }
html body.single-product #review_form #respond p.stars.selected a.active ~ a[class] { color: rgba(255, 255, 255, .22); }
html body.single-product #review_form #respond p.stars:hover a[class][href] { color: var(--nx-accent-gold); }
html body.single-product #review_form #respond p.stars:hover a:hover ~ a[class][href] { color: rgba(255, 255, 255, .22); }

/* Campos de texto oscuros, con el borde cian al escribir */
html body.single-product #review_form #respond textarea,
html body.single-product #review_form #respond input[type="text"],
html body.single-product #review_form #respond input[type="email"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .035);
    color: var(--nx-ink);
    border: 1px solid var(--nx-line-2);
    border-radius: 12px;
    box-shadow: none;
    outline: none;
    font: 400 15px/1.55 var(--nx-font-sans);
    transition: border-color .15s var(--nx-ease), box-shadow .15s var(--nx-ease), background-color .15s var(--nx-ease);
}
html body.single-product #review_form #respond textarea { min-height: 140px; resize: vertical; }
html body.single-product #review_form #respond textarea::placeholder,
html body.single-product #review_form #respond input::placeholder { color: var(--nx-ink-low); opacity: 1; }
html body.single-product #review_form #respond textarea:focus,
html body.single-product #review_form #respond input[type="text"]:focus,
html body.single-product #review_form #respond input[type="email"]:focus {
    border-color: var(--nx-accent);
    background: rgba(0, 240, 255, .035);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, .14);
}

/* Botón «Enviar» con el degradado de la web */
html body.single-product #review_form #respond .form-submit { margin: 4px 0 0; }
html body.single-product #review_form #respond input#submit {
    display: inline-block;
    min-width: 190px;
    padding: 16px 32px;
    border: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--nx-accent), var(--nx-accent-2));
    color: #050810;
    font: 700 13px/1 var(--nx-font-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(0, 240, 255, .16);
    transition: transform .15s var(--nx-ease), filter .15s var(--nx-ease), box-shadow .15s var(--nx-ease);
}
html body.single-product #review_form #respond input#submit:hover {
    color: #050810;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(185, 131, 255, .28);
}
html body.single-product #review_form #respond input#submit:focus-visible { outline: 2px solid var(--nx-accent); outline-offset: 3px; }

/* Para quien todavía no compró: un aviso con estilo, no texto suelto */
html body.single-product #reviews .woocommerce-verification-required,
html body.single-product #reviews .woocommerce-noreviews {
    position: relative;
    margin: 28px 0 0;
    padding: 18px 20px 18px 54px;
    background: rgba(255, 255, 255, .03);
    border: 1px dashed var(--nx-line-2);
    border-radius: var(--nx-radius);
    font-size: 14px;
    line-height: 1.55;
    color: var(--nx-ink-dim);
}
html body.single-product #reviews .woocommerce-verification-required::before,
html body.single-product #reviews .woocommerce-noreviews::before {
    content: "";
    position: absolute;
    left: 20px; top: 50%;
    width: 20px; height: 20px;
    margin-top: -10px;
    background: var(--nx-accent-gold);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@media (max-width: 600px) {
    html body.single-product #review_form #respond { padding: 22px 18px 20px; }
    html body.single-product #review_form #respond .comment-reply-title { font-size: 24px; }
    html body.single-product #review_form #respond input#submit { width: 100%; }
}
