/* =====================================================
   FRANJA DE PRECIOS
   ===================================================== */
.precios-seccion {
    background: #f2f2f2;
    padding: 2.8em 0 2em;
    margin-top: 0;
}

.precios-seccion .btn-primary {
    background: #222;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 11px 28px;
    -webkit-transition: background 0.2s, box-shadow 0.2s;
    transition: background 0.2s, box-shadow 0.2s;
}

.precios-seccion .btn-primary:hover,
.precios-seccion .btn-primary:focus,
.precios-seccion .btn-primary:active {
    background: #000;
    border: none;
    outline: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}

/* =====================================================
   ENCABEZADO DE SECCIÓN DE PRECIOS
   ===================================================== */
.precios-header {
    text-align: center;
    margin-bottom: 1.8em;
}

.precios-header-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 0.5em;
}

.precios-header-titulo {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* =====================================================
   GRID DE PRECIOS POR VARIANTE
   ===================================================== */
.precios-grid-wrap {
    margin-bottom: 1.5em;
}

.precios-grid {
    display: flex;
    flex-wrap: wrap;
}

.precios-grid > div {
    display: flex;
    flex-direction: column;
}

.precio-card {
    position: relative;
    flex: 1;
    border-radius: 10px;
    padding: 20px 20px 20px;
    margin-bottom: 16px;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    border-top: 3px solid #ddd;
}

.precio-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.precio-card--destacada {
    padding-top: 20px;
    border-top-color: #A82624;
    box-shadow: 0 4px 16px rgba(168,38,36,0.13);
}

.precio-card--destacada:hover {
    box-shadow: 0 8px 24px rgba(168,38,36,0.18);
}

.precio-card-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: #A82624;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 12px;
    border-radius: 20px;
}

.precio-card-desc {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.precio-card-tachado {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    color: #bbb;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.precio-card-principal {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3em;
    font-weight: 700;
    color: #A82624;
    line-height: 1.1;
    margin-bottom: 14px;
}

.precio-card-cuotas {
    margin-bottom: 0;
}

.precio-card-cuotas-linea {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
}

.precio-card-cuotas-linea span {
    color: #777;
}

.precio-card-cuota-sep {
    color: #ccc;
}

.precio-card-si {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 20px;
}

.precio-card-stock {
    margin-top: 10px;
    min-height: 20px;
}

.precio-card-stock-badge {
    font-size: 12px;
    color: #4a7c59;
    font-weight: 600;
}

@media (max-width: 991px) {

    /* Ocultar header — ahorra espacio en mobile */
    .precios-header { display: none; }

    .precios-seccion {
        background: #fff;
        padding: 0.6em 0 1em;
    }

    /* Forzar columna única en portrait y landscape, sin offsets de Bootstrap */
    .precios-grid > div {
        width: 100%;
        flex: 0 0 100%;
        margin-left: 0;
    }

    /* Card sin caja — tipografía centrada con separador */
    .precio-card {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        border-bottom: 1px solid #ebebeb;
        padding: 20px 8px;
        margin-bottom: 0;
        text-align: center;
        transition: none;
    }

    .precio-card:hover {
        transform: none;
        box-shadow: none;
    }

    .precios-grid > div:last-child .precio-card {
        border-bottom: none;
    }

    .precio-card-badge { display: none; }

    .precio-card-desc {
        display: block;
        min-height: unset;
        font-size: 18px;
        font-weight: 400;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 6px;
    }

    .precio-card-tachado {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .precio-card-principal {
        font-size: 2.2em;
        margin-bottom: 8px;
    }

    .precio-card-cuotas { margin-bottom: 0; }

    .precio-card-cuotas-linea { font-size: 12px; }

    .precio-card-stock {
        min-height: unset;
        margin-top: 6px;
    }
}

/* =====================================================
   BOTÓN VER MÁS PRODUCTOS
   ===================================================== */
.prd-ver-mas-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 24px;
    border: none;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    -webkit-transition: background 0.2s, -webkit-transform 0.15s;
    transition: background 0.2s, transform 0.15s;
}

.prd-ver-mas-btn:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
    -webkit-transform: scale(1.04);
    transform: scale(1.04);
}

/* =====================================================
   SECCIÓN RESEÑAS
   ===================================================== */
.prod-resenas {
    background: #1a1a1a;
    padding: 3em 0 3.5em;
    margin-top: 2em;
}

.prod-resenas-titulo {
    text-align: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 2em;
}

/* Botones nav slider sobre fondo oscuro */
.prod-resenas .resenas-btn-prev,
.prod-resenas .resenas-btn-next {
    background: #fff;
    color: #222;
}
.prod-resenas .resenas-btn-prev:hover,
.prod-resenas .resenas-btn-next:hover {
    background: #e0e0e0;
}

/* Avatar rojo consistente con el resto del sitio */
.prod-resenas .resena-avatar {
    background: #d63031;
    border-color: #d63031;
}
.prod-resenas .resena-avatar span {
    color: #fff;
}

/* Resumen con max-width centrado */
.prod-resenas .resenas-resumen {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Respuesta con borde izquierdo de marca */
.prod-resenas .resena-respuesta {
    border-left: 3px solid #d63031;
    background: #f9f9f9;
}

@media (max-width: 767px) {
    .prod-resenas {
        padding: 2em 0 2.5em;
    }
}

/* =====================================================
   CARDS "VER MÁS" — grid de reseñas del producto
   ===================================================== */
#resPrdGrid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 0;
    padding: 0 8px;
}

#resPrdGrid .rp-card {
    width: calc(33.333% - 12px);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    #resPrdGrid .rp-card { width: calc(50% - 8px); }
}

@media (max-width: 767px) {
    #resPrdGrid .rp-card { width: 100%; }
}
.rp-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    animation: resFadeIn 0.4s ease both;
}

.rp-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rp-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d63031;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rp-card-meta {
    flex: 1;
    min-width: 0;
}

.rp-nombre {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rp-verificada {
    color: #2e7d32;
    font-size: 13px;
    margin-left: 4px;
}

.rp-fecha {
    font-size: 12px;
    color: #999;
}

.rp-stars {
    font-size: 13px;
    color: #f5a623;
    margin-bottom: 8px;
}

.rp-comentario {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
}

.rp-respuesta {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-left: 3px solid #d63031;
    border-radius: 0 6px 6px 0;
}

.rp-respuesta-titulo {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

.rp-respuesta-texto {
    font-size: 13px;
    color: #555;
    line-height: 1.45;
}
