.pp-contenedor {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.pp-titulo { margin-bottom: 1.5rem; }

.pp-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.pp-categorias a {
    background: #f1f1f1;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.pp-categorias a:hover { background: #e0e0e0; }

.pp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pp-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}
.pp-item:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.pp-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pp-item h2 { font-size: 1.1rem; padding: 0.75rem 1rem 0; margin: 0; }
.pp-item p { padding: 0 1rem 1rem; font-size: 0.9rem; color: #555; }

/* Producto individual */
.pp-producto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
.pp-producto__imagen img { width: 100%; border-radius: 8px; }
.pp-producto__info h1 { margin-top: 0; }
.pp-descripcion { margin: 1rem 0; }

.pp-tiendas { margin-top: 2rem; }
.pp-tiendas h3 { margin-bottom: 1rem; }

.pp-boton-tienda {
    display: inline-block;
    margin: 0.25rem 0.5rem 0.25rem 0;
    padding: 0.75rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}
.pp-boton-tienda:hover { background: #005a87; }

@media (max-width: 768px) {
    .pp-producto { grid-template-columns: 1fr; }
}

/* =========================================
   PRODUCTOS
   ========================================= */
   
.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained:has(div.pp-contenedor) {
    background-image: radial-gradient(rgb(238, 245, 255) 0%, rgb(248, 250, 252) 100%);
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.pp-contenedor {
    max-width: 1300px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pp-titulo-principal {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a202c;
}

/* Filtros de Categorías (opcional, arriba) */
.pp-filtros-categorias {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.pp-filtros-categorias a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: #f7fafc;
    transition: 0.3s;
}
.pp-filtros-categorias a:hover {
    background: #1a202c;
    color: #fff;
}

/* GRID */
.pp-grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* TARJETA */
.pp-tarjeta {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pp-tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    border-color: rgba(253, 187, 20, 0.3);
}

/* Etiqueta amarilla */
.pp-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #facc15; /* Amarillo de la imagen */
    color: #1a202c;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Imagen */
.pp-tarjeta-imagen {
    display: block;
    background: #f8fafc;
    padding: 2rem;
    text-align: center;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-tarjeta-imagen img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.pp-tarjeta:hover .pp-tarjeta-imagen img {
    transform: scale(1.05);
}

/* Cuerpo de la tarjeta */
.pp-tarjeta-cuerpo {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pp-tarjeta-categoria {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #718096;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.pp-tarjeta-titulo {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}
.pp-tarjeta-titulo a {
    color: #1a202c;
    text-decoration: none;
}

.pp-tarjeta-excerpt {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Footer: Peso y Botón */
.pp-tarjeta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
    margin-top: auto;
}

.pp-tarjeta-peso {
    font-size: 0.9rem;
    color: #718096;
}

.pp-boton-vermas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border: 2px solid #1a202c;
    border-radius: 50px;
    color: #1a202c;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pp-boton-vermas span {
    font-size: 1.2rem;
    line-height: 1;
}

.pp-boton-vermas:hover {
    background: #1a202c;
    color: #ffffff;
}

/* Paginación */
.pp-paginacion {
    margin-top: 4rem;
    text-align: center;
}

/* =========================================
   FILTROS DE CATEGORÍAS
   ========================================= */
.pp-filtros-wrapper {
    margin-bottom: 3rem;
    text-align: center;
}

.pp-filtros-padres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pp-filtro-btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #e2e8f0;
    color: #475569;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pp-filtro-btn:hover {
    background-color: #c6cbd1;
}

.pp-filtro-btn.activo {
    background-color: #1a202c; /* Negro elegante */
    color: #ffffff;
    border-color: #1a202c;
}

/* Subcategorías */
.pp-filtros-hijas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0; /* Línea divisoria */
}

.pp-subfiltro-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #ffffff;
    color: #1a202c;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pp-subfiltro-btn:hover {
    border-color: #1a202c;
}

.pp-subfiltro-btn.activo {
    background-color: #facc15; /* Amarillo de la marca */
    color: #1a202c;
    border-color: #facc15;
}

/* =========================================
   VISTA INDIVIDUAL DEL PRODUCTO
   ========================================= */
.pp-single-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    align-items: start;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Columna de la Imagen */
.pp-single-imagen-wrapper {
    position: relative;
    background: #f8fafc;
    border-radius: 16px;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e2e8f0;
    min-height: 400px;
}

.pp-single-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pp-single-imagen-wrapper:hover .pp-single-img {
    transform: scale(1.05);
}

.pp-badge-single {
    top: 20px;
    right: 20px;
    font-size: 0.85rem;
    padding: 8px 18px;
}

/* Columna de Información */
.pp-single-info-col {
    padding-top: 1rem;
}

.pp-single-categoria {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #718096;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.pp-single-titulo {
    font-size: 3rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.pp-single-peso {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.pp-single-descripcion {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Tiendas */
.pp-single-tiendas-wrapper {
    background: #fffdf5; /* Un tono muy suave de amarillo */
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.pp-single-tiendas-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.pp-single-tiendas-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pp-btn-tienda {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1a202c;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pp-btn-tienda:hover {
    background: #facc15;
    color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.4);
}

/* Botón Volver */
.pp-single-volver {
    margin-top: 2rem;
}

.pp-btn-volver {
    display: inline-block;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.pp-btn-volver:hover {
    color: #1a202c;
}

/* Responsive */
@media (max-width: 900px) {
    .pp-single-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pp-single-titulo {
        font-size: 2.2rem;
    }
    .pp-single-imagen-wrapper {
        padding: 1.5rem;
        min-height: 300px;
    }
}

/* =========================================
   VISTA INDIVIDUAL (HERO SECTION)
   ========================================= */
.pp-hero-section {
    background-image: radial-gradient(rgb(238, 245, 255) 0%, rgb(248, 250, 252) 100%);
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 4rem;
    border-radius: 0;
    max-width: 100%;
    font-family: Nunito;
}

/* Imagen del producto */
.pp-hero-imagen-col {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.pp-hero-imagen-col::after {
    /* Sombra difuminada detrás del producto */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    filter: blur(25px);
    border-radius: 50%;
    z-index: 1;
}

.pp-hero-img {
    max-height: 650px;
    max-width:450px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(11, 37, 69, 0.18));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pp-hero-img:hover {
    transform: scale(1.04) rotate(-1deg);
}

/* Columna de Textos */
.pp-hero-info-col {
    max-width: 650px;
    text-align: left;
}

.pp-hero-categoria {
    background: var(--amarillo-coposa);
    font-size: 12px;
    padding: 8px;
    display: inline-block;
    border-radius: 100px;
    font-weight: bold;
}

.pp-hero-titulo {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0b2545;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 0rem;
    letter-spacing: -1px;
}

.pp-hero-peso {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 2rem;
    display: block;
}

/* Si el título tiene un span, lo pintamos de azul (opcional) */
.pp-hero-titulo span {
    color: #1a365d;
}

.pp-hero-descripcion {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.pp-hero-descripcion p {
    margin-bottom: 1.5rem;
}

/* Botón Principal (Azul oscuro con pin) */
.pp-hero-acciones {
    margin-bottom: 2rem;
}

.pp-btn-principal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0f3272; /* Azul oscuro corporativo */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(15, 50, 114, 0.3);
}

.pp-btn-principal:hover {
    background: #0a2454;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 50, 114, 0.4);
    color: #ffffff;
}

/* Otras tiendas */
.pp-otras-tiendas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pp-otras-tiendas p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
}

.pp-btn-secundario {
    display: inline-block;
    background: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.pp-btn-secundario:hover {
    background: #1a365d;
    color: #ffffff;
}

/* Botón Volver */
.pp-hero-volver {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.pp-btn-volver {
    display: inline-flex;
    align-items: center;
    color: #718096;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pp-btn-volver:hover {
    color: #0f3272; 
    transform: translateX(-5px);
}

/* Responsive para móviles y tablets */
@media (max-width: 1024px) {
    .pp-hero-section {
        padding: 4rem 2rem;
        gap: 2rem;
    }
    .pp-hero-titulo {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .pp-hero-section {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        text-align: center;
    }
    .pp-hero-imagen-col {
        justify-content: center;
    }
    .pp-hero-img {
        max-height: 400px;
    }
    .pp-hero-info-col {
        margin: 0 auto;
        text-align: center;
    }
    .pp-hero-titulo {
        font-size: 2.2rem;
    }
    .pp-hero-acciones {
        display: flex;
        justify-content: center;
    }
    .pp-otras-tiendas {
        justify-content: center;
    }
}