/*
Theme Name: PrismaFind
Theme URI: https://prismafind.com
Author: PrismaFind
Author URI: https://prismafind.com
Description: Tema afiliado de Amazon optimizado para AAWP, con panel de administración, catálogo de productos, categorías estructuradas y diseño moderno y premium.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: prismafind
Tags: e-commerce, affiliate, amazon, aawp, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, grid-layout
*/

/* ================================================================
   VARIABLES Y RESET
   ================================================================ */
:root {
    --pf-primary: #232f3e;
    --pf-accent: #ff9900;
    --pf-primary-dark: #131a22;
    --pf-primary-light: #2d4156;
    --pf-accent-dark: #e88b00;
    --pf-accent-light: #ffb84d;
    --pf-text-dark: #0f1923;
    --pf-text-muted: #565959;
    --pf-text-light: #848688;
    --pf-bg-light: #f7f8fa;
    --pf-bg-white: #ffffff;
    --pf-card-bg: #ffffff;
    --pf-border: #e7e9ec;
    --pf-border-light: #f0f2f5;
    --pf-price: #b12704;
    --pf-success: #2e7d32;
    --pf-warning: #f9a825;
    --pf-error: #c62828;
    --pf-radius-sm: 8px;
    --pf-radius: 12px;
    --pf-radius-lg: 16px;
    --pf-radius-xl: 24px;
    --pf-shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --pf-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --pf-shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --pf-shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --pf-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --pf-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --pf-font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --pf-container: 1280px;
    --pf-header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: var(--pf-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pf-text-dark);
    background: var(--pf-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--pf-font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--pf-text-dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1rem; }

a { color: var(--pf-primary); text-decoration: none; transition: color var(--pf-transition); }
a:hover { color: var(--pf-accent); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1rem 1.5rem; padding: 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 100000;
    background: var(--pf-accent);
    color: #111;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--pf-radius-sm) 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; }

/* ================================================================
   LAYOUT
   ================================================================ */
.pf-container {
    max-width: var(--pf-container);
    margin: 0 auto;
    padding: 0 1.5rem;
}
.pf-narrow { max-width: 800px; }

.pf-site { min-height: 100vh; display: flex; flex-direction: column; }
.pf-site-content { flex: 1; }
.pf-site-main { padding: 2rem 0; }

/* ================================================================
   HEADER
   ================================================================ */
.pf-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pf-primary);
    transition: box-shadow var(--pf-transition);
}
.pf-header-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }

.pf-top-bar {
    background: var(--pf-primary-dark);
    color: #adb5bd;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}
.pf-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pf-top-bar a { color: #adb5bd; }
.pf-top-bar a:hover { color: var(--pf-accent); }
.pf-top-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.pf-top-tagline { opacity: 0.8; }

.pf-social-icons { display: flex; gap: 0.6rem; align-items: center; }
.pf-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #adb5bd;
    transition: all var(--pf-transition);
}
.pf-social-icons a:hover {
    background: var(--pf-accent);
    color: #111;
    transform: translateY(-2px);
}

.pf-header-main {
    background: var(--pf-primary);
    padding: 0.75rem 0;
}
.pf-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pf-mobile-toggle { display: none; }

.pf-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pf-menu-toggle-bar {
    width: 24px; height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all var(--pf-transition);
}

.pf-site-branding { flex-shrink: 0; }
.pf-site-title {
    font-family: var(--pf-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.pf-site-title:hover { text-decoration: none; }
.pf-logo-text { color: #fff; letter-spacing: -0.02em; }
.pf-logo-accent { color: var(--pf-accent); }
.pf-site-logo img { max-height: 48px; width: auto; }

.pf-header-search {
    flex: 1;
    max-width: 500px;
    margin-left: auto;
}

.pf-search-form {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--pf-radius-sm);
    overflow: hidden;
    transition: all var(--pf-transition);
}
.pf-search-form:focus-within {
    background: rgba(255,255,255,0.15);
    border-color: var(--pf-accent);
}
.pf-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    font-family: var(--pf-font-body);
}
.pf-search-input::placeholder { color: rgba(255,255,255,0.5); }
.pf-search-btn {
    background: var(--pf-accent);
    border: none;
    color: #111;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--pf-transition);
}
.pf-search-btn:hover { background: var(--pf-accent-dark); }

.pf-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.pf-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

/* Primary nav */
.pf-primary-nav {
    background: var(--pf-primary-light);
    padding: 0;
}
.pf-primary-nav .pf-container { padding: 0 1.5rem; }
.pf-primary-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}
.pf-primary-nav li { position: relative; }
.pf-primary-nav a {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    transition: all var(--pf-transition);
    position: relative;
}
.pf-primary-nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--pf-accent);
    transition: all var(--pf-transition);
    transform: translateX(-50%);
}
.pf-primary-nav a:hover,
.pf-primary-nav a.active {
    color: var(--pf-accent);
    background: rgba(255,255,255,0.05);
}
.pf-primary-nav a:hover::after,
.pf-primary-nav a.active::after { width: 60%; }

/* Sub-menu */
.pf-primary-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    min-width: 200px;
    border-radius: 0 0 var(--pf-radius-sm) var(--pf-radius-sm);
    box-shadow: var(--pf-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--pf-transition);
    z-index: 100;
}
.pf-primary-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pf-primary-nav .sub-menu a {
    color: var(--pf-text-dark);
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--pf-border-light);
}
.pf-primary-nav .sub-menu a:hover { background: var(--pf-bg-light); color: var(--pf-accent); }

/* Mobile overlay */
.pf-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--pf-transition);
}
.pf-mobile-overlay.active { display: block; opacity: 1; }
body.pf-nav-overflow { overflow: hidden; }

/* ================================================================
   HERO
   ================================================================ */
.pf-hero {
    position: relative;
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-light) 100%);
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}
.pf-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(35,47,62,0.85) 0%, rgba(45,65,86,0.75) 100%);
}
.pf-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.pf-hero-title {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.pf-hero-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.pf-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--pf-radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--pf-font-body);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--pf-transition);
    line-height: 1.4;
}
.pf-btn-primary {
    background: var(--pf-accent);
    color: #111;
}
.pf-btn-primary:hover {
    background: var(--pf-accent-dark);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.3);
}
.pf-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.pf-btn-outline:hover {
    border-color: var(--pf-accent);
    color: var(--pf-accent);
}
.pf-btn-amazon {
    background: var(--pf-accent);
    color: #111;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: var(--pf-radius-sm);
    font-weight: 800;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--pf-transition);
}
.pf-btn-amazon:hover {
    background: var(--pf-accent-dark);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,153,0,0.35);
}
.pf-btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ================================================================
   SECTION TITLES
   ================================================================ */
.pf-section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.pf-section-subtitle {
    text-align: center;
    color: var(--pf-text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

/* ================================================================
   CATEGORY CARDS
   ================================================================ */
.pf-categories { padding: 3.5rem 0; background: #fff; }
.pf-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.pf-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--pf-bg-light);
    border-radius: var(--pf-radius-lg);
    text-decoration: none;
    color: var(--pf-text-dark);
    transition: all var(--pf-transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}
.pf-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,153,0,0.05) 100%);
    opacity: 0;
    transition: opacity var(--pf-transition);
}
.pf-category-card:hover {
    background: #fff;
    border-color: var(--pf-accent);
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-md);
    color: var(--pf-text-dark);
}
.pf-category-card:hover::before { opacity: 1; }
.pf-category-icon {
    width: 72px; height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pf-primary);
    color: var(--pf-accent);
    margin-bottom: 1rem;
    transition: all var(--pf-transition);
}
.pf-category-card:hover .pf-category-icon {
    background: var(--pf-accent);
    color: var(--pf-primary);
    transform: scale(1.1);
}
.pf-cat-mujer .pf-category-icon { background: #8e3a6b; color: #f8b4d9; }
.pf-cat-hombre .pf-category-icon { background: #1a3a5c; color: #6bb6ff; }
.pf-cat-ninas .pf-category-icon { background: #c2185b; color: #f8bbd0; }
.pf-cat-ninos .pf-category-icon { background: #1565c0; color: #90caf9; }
.pf-cat-bebes .pf-category-icon { background: #6a1b9a; color: #ce93d8; }
.pf-category-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.3rem; }
.pf-category-desc { font-size: 0.82rem; color: var(--pf-text-muted); margin-bottom: 0.75rem; line-height: 1.4; }
.pf-category-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--pf-accent-dark);
    background: rgba(255,153,0,0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
}

/* ================================================================
   WELCOME TEXT
   ================================================================ */
.pf-welcome-text {
    padding: 2.5rem 0;
    background: var(--pf-bg-light);
    text-align: center;
}
.pf-welcome-text p {
    font-size: 1.05rem;
    color: var(--pf-text-muted);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ================================================================
   PRODUCT GRID & CARDS
   ================================================================ */
.pf-products { padding: 3rem 0 4rem; }
.pf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pf-product-card {
    background: var(--pf-card-bg);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    border: 1px solid var(--pf-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--pf-transition);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}
.pf-product-card.pf-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.pf-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--pf-shadow-lg);
    border-color: var(--pf-accent);
}

.pf-discount-badge {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    background: var(--pf-price);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.25rem 0.55rem;
    border-radius: var(--pf-radius-sm);
    box-shadow: 0 2px 8px rgba(177,39,4,0.3);
}
.pf-discount-large { font-size: 0.9rem; padding: 0.35rem 0.7rem; }

.pf-prime-badge {
    position: absolute;
    top: 10px; right: 10px;
    z-index: 2;
    background: var(--pf-primary);
    color: var(--pf-accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: var(--pf-radius-sm);
    letter-spacing: 0.03em;
}

.pf-product-image {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.pf-product-image a { display: block; width: 100%; text-align: center; }
.pf-product-image img {
    max-height: 200px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.4s ease;
}
.pf-product-card:hover .pf-product-image img { transform: scale(1.08); }
.pf-no-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pf-bg-light);
    color: var(--pf-text-light);
    font-size: 0.85rem;
}

.pf-product-body {
    padding: 1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pf-product-brand {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}
.pf-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.pf-product-title a { color: var(--pf-text-dark); }
.pf-product-title a:hover { color: var(--pf-accent); }

.pf-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}
.pf-star { color: #ddd; line-height: 1; }
.pf-star-full { color: #ffa41c; }
.pf-star-half {
    color: #ffa41c;
    background: linear-gradient(90deg, #ffa41c 50%, #ddd 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pf-review-count {
    margin-left: 0.4rem;
    font-size: 0.75rem;
    color: var(--pf-text-light);
    font-weight: 500;
}

.pf-product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.pf-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--pf-price);
}
.pf-old-price {
    font-size: 0.9rem;
    color: var(--pf-text-light);
    text-decoration: line-through;
}

.pf-product-excerpt {
    font-size: 0.82rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pf-product-footer { padding: 0 1.25rem 1.25rem; }

/* ================================================================
   SINGLE PRODUCT
   ================================================================ */
.pf-single-main { padding: 1.5rem 0 3rem; }

.pf-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
    color: var(--pf-text-light);
}
.pf-breadcrumb a { color: var(--pf-text-muted); }
.pf-breadcrumb a:hover { color: var(--pf-accent); }
.pf-breadcrumb-sep { opacity: 0.5; }
.pf-breadcrumb-current { color: var(--pf-text-dark); font-weight: 600; }

.pf-single-product { background: #fff; }

.pf-single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-align: left;
}

.pf-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.pf-single-image-wrap {
    position: relative;
    border-radius: var(--pf-radius-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pf-border);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-single-image-wrap img { max-height: 450px; width: auto; margin: 0 auto; }

.pf-single-brand {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pf-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}
.pf-single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.pf-single-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1rem 0;
}
.pf-single-price { font-size: 1.75rem; font-weight: 800; color: var(--pf-price); }
.pf-single-old-price { font-size: 1.1rem; color: var(--pf-text-light); text-decoration: line-through; }
.pf-single-save {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pf-success);
    background: rgba(46,125,50,0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}
.pf-single-prime {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pf-primary);
    margin-bottom: 1.25rem;
}
.pf-single-prime svg { color: var(--pf-accent); }
.pf-single-actions { margin: 1.5rem 0; }
.pf-single-meta {
    font-size: 0.8rem;
    color: var(--pf-text-light);
    margin-top: 1rem;
}
.pf-meta-label { font-weight: 600; }

.pf-single-content {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pf-border);
}
.pf-content-heading {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.pf-single-content p { line-height: 1.7; color: var(--pf-text-muted); }
.pf-single-content h2, .pf-single-content h3 { margin-top: 2rem; }

.pf-affiliate-disclaimer {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(255,153,0,0.06);
    border-left: 4px solid var(--pf-accent);
    border-radius: var(--pf-radius-sm);
    font-size: 0.82rem;
    color: var(--pf-text-muted);
    line-height: 1.5;
}

.pf-single-tags { margin: 2rem 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pf-tags-label { font-size: 0.85rem; font-weight: 600; color: var(--pf-text-muted); margin-right: 0.25rem; }
.pf-tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: var(--pf-bg-light);
    border: 1px solid var(--pf-border);
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--pf-text-muted);
    transition: all var(--pf-transition);
}
.pf-tag:hover { background: var(--pf-accent); color: #111; border-color: var(--pf-accent); }

.pf-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pf-border); }
.pf-aawp-extra { margin: 2rem 0; }

/* ================================================================
   CONTENT LAYOUT (sidebar + main)
   ================================================================ */
.pf-content-layout {
    display: grid;
    gap: 2rem;
}
.pf-content-layout.has-sidebar {
    grid-template-columns: 1fr 320px;
}
.pf-content-layout.no-sidebar {
    grid-template-columns: 1fr;
}

.pf-sidebar { position: sticky; top: calc(var(--pf-header-h) + 1rem); }
.pf-sidebar .widget {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pf-shadow-sm);
}
.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pf-accent);
}

/* ================================================================
   POST LIST (archives, front page, search)
   ================================================================ */
.pf-post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.pf-post-item {
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    padding: 1.25rem;
    transition: all var(--pf-transition);
    display: flex;
    flex-direction: column;
}
.pf-post-item:hover {
    border-color: var(--pf-accent);
    box-shadow: var(--pf-shadow-md);
    transform: translateY(-2px);
}
.pf-post-entry-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--pf-text-light);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pf-border-light);
    text-align: left;
}
.pf-post-entry-title a { color: var(--pf-text-light); }
.pf-post-entry-title a:hover { color: var(--pf-accent); }
.pf-post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.pf-post-thumb {
    margin-bottom: 1rem;
    border-radius: var(--pf-radius-sm);
    overflow: hidden;
    background: var(--pf-bg-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--pf-transition);
}
.pf-post-item:hover .pf-post-thumb img { transform: scale(1.05); }
.pf-post-thumb .pf-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--pf-text-light);
    font-size: 0.8rem;
}
.pf-post-card-info { display: flex; flex-direction: column; flex: 1; }
.pf-post-product-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    text-align: left;
}
.pf-post-product-name a { color: var(--pf-text-dark); }
.pf-post-product-name a:hover { color: var(--pf-accent); }
.pf-post-item-excerpt {
    color: var(--pf-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.pf-post-item-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pf-accent-dark);
    margin-top: auto;
}
.pf-post-item-link:hover { color: var(--pf-accent); }

/* ================================================================
   ARCHIVE HEADER
   ================================================================ */
.pf-archive-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
    background: #fff;
    border-radius: var(--pf-radius-lg);
    box-shadow: var(--pf-shadow-sm);
}
.pf-archive-title { margin-bottom: 0.5rem; }
.pf-archive-description { color: var(--pf-text-muted); font-size: 0.95rem; max-width: 600px; margin: 0 auto; }
.pf-archive-meta {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--pf-text-light);
    font-weight: 600;
}
.pf-search-query { color: var(--pf-accent); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--pf-radius-sm);
    background: #fff;
    border: 1px solid var(--pf-border);
    color: var(--pf-text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--pf-transition);
}
.pf-pagination .page-numbers:hover {
    background: var(--pf-primary);
    color: #fff;
    border-color: var(--pf-primary);
}
.pf-pagination .page-numbers.current {
    background: var(--pf-accent);
    color: #111;
    border-color: var(--pf-accent);
}
.pf-pagination .page-numbers.dots { border: none; background: none; }

/* ================================================================
   NO PRODUCTS
   ================================================================ */
.pf-no-products {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}
.pf-no-products svg { color: var(--pf-text-light); margin: 0 auto 1rem; opacity: 0.4; }
.pf-no-products h2 { margin-bottom: 0.5rem; }
.pf-no-products p { color: var(--pf-text-muted); margin-bottom: 1.5rem; }

/* ================================================================
   404
   ================================================================ */
.pf-404-content { text-align: center; padding: 4rem 1rem; }
.pf-404-title {
    font-size: clamp(5rem, 15vw, 8rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.pf-404-subtitle { font-size: 1.5rem; margin-bottom: 1rem; }
.pf-404-text { color: var(--pf-text-muted); margin-bottom: 1.5rem; }
.pf-404-actions { margin-top: 1.5rem; }

/* ================================================================
   COMMENTS
   ================================================================ */
.pf-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--pf-border); }
.pf-comments-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.pf-comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.pf-comment { padding: 1rem 0; border-bottom: 1px solid var(--pf-border-light); }
.pf-comment-body { display: flex; gap: 1rem; }
.pf-comment-avatar { flex-shrink: 0; }
.pf-comment-avatar img { border-radius: 50%; }
.pf-comment-content { flex: 1; }
.pf-comment-meta { margin-bottom: 0.5rem; }
.pf-comment-author { font-weight: 700; font-size: 0.9rem; }
.pf-comment-date { font-size: 0.78rem; color: var(--pf-text-light); margin-left: 0.5rem; }
.pf-comment-text { font-size: 0.88rem; color: var(--pf-text-muted); line-height: 1.6; }
.pf-comment-reply { margin-top: 0.5rem; }
.pf-comment-reply a { font-size: 0.8rem; font-weight: 600; }
.pf-comment-awaiting { font-style: italic; color: var(--pf-warning); }

.pf-comment-form { margin-top: 1.5rem; }
.pf-comment-field { margin-bottom: 1rem; }
.pf-comment-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.pf-comment-field input,
.pf-comment-field textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    font-family: var(--pf-font-body);
    font-size: 0.9rem;
    transition: border-color var(--pf-transition);
}
.pf-comment-field input:focus,
.pf-comment-field textarea:focus { outline: none; border-color: var(--pf-accent); }

/* ================================================================
   FOOTER
   ================================================================ */
.pf-site-footer {
    background: var(--pf-primary-dark);
    color: #adb5bd;
    margin-top: auto;
}
.pf-footer-widgets { padding: 3rem 0 2rem; }
.pf-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.pf-footer-col .widget-title,
.pf-footer-col h2,
.pf-footer-col h3 {
    color: var(--pf-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.pf-footer-col a { color: #adb5bd; }
.pf-footer-col a:hover { color: var(--pf-accent); }
.pf-footer-col ul { list-style: none; padding: 0; margin: 0; }
.pf-footer-col li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.pf-footer-col p { font-size: 0.85rem; line-height: 1.6; }
.pf-footer-col .pf-social-icons a { background: rgba(255,255,255,0.06); }
.pf-footer-col .pf-search-form { background: rgba(255,255,255,0.06); }

.pf-footer-affiliate {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.pf-footer-affiliate p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 700px;
    font-style: italic;
}
.pf-footer-affiliate-sub { margin-top: 0.3rem !important; font-size: 0.75rem !important; }

.pf-footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 1.25rem 0; }
.pf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.pf-copyright { font-size: 0.8rem; color: #888; margin: 0; }
.pf-copyright a { color: var(--pf-accent); }
.pf-footer-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.pf-footer-nav a { font-size: 0.8rem; color: #888; }
.pf-footer-nav a:hover { color: var(--pf-accent); }

/* ================================================================
   BACK TO TOP
   ================================================================ */
.pf-back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--pf-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--pf-transition);
    z-index: 900;
    box-shadow: var(--pf-shadow-md);
}
.pf-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.pf-back-to-top:hover { background: var(--pf-accent); color: #111; transform: translateY(-3px); }

/* ================================================================
   PAGE TEMPLATE
   ================================================================ */
.pf-page { background: #fff; border-radius: var(--pf-radius-lg); box-shadow: var(--pf-shadow-sm); padding: 2.5rem; }
.pf-page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--pf-accent); }
.pf-page-title { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.pf-page-content { line-height: 1.7; }
.pf-page-content p { color: var(--pf-text-muted); }

/* ================================================================
   AAWP COMPATIBILITY
   ================================================================ */
.aawp .aawp-product {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius);
    box-shadow: var(--pf-shadow);
    margin-bottom: 1.5rem;
    transition: all var(--pf-transition);
    overflow: hidden;
}
.aawp .aawp-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--pf-shadow-lg);
}
.aawp .aawp-product__title { font-size: 1rem; font-weight: 700; color: var(--pf-text-dark); }
.aawp .aawp-product__price { font-size: 1.25rem; font-weight: 800; color: var(--pf-price); }
.aawp .aawp-button {
    background: var(--pf-accent) !important;
    color: #111 !important;
    border: none !important;
    border-radius: var(--pf-radius-sm) !important;
    padding: 0.75rem 1rem !important;
    font-weight: 700 !important;
    transition: all var(--pf-transition) !important;
}
.aawp .aawp-button:hover {
    background: var(--pf-accent-dark) !important;
    transform: translateY(-2px) !important;
}
.aawp .aawp-product__ribbon { background: var(--pf-accent) !important; }
.aawp.aawp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* ================================================================
   CATEGORY WATERMARK BACKGROUNDS
   ================================================================ */
body.category-ninos,
body.category-ninas,
body.category-bebes {
    background-color: #fdfbf7;
    background-image: radial-gradient(rgba(255,153,0,0.06) 1px, transparent 1px), radial-gradient(rgba(35,47,62,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}
body.category-mujer { background: linear-gradient(180deg, #fff5f8 0%, var(--pf-bg-light) 200px); }
body.category-hombre { background: linear-gradient(180deg, #f0f4f8 0%, var(--pf-bg-light) 200px); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes pf-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.pf-hero-content { animation: pf-fade-in 0.6s ease-out; }
.pf-category-card { animation: pf-fade-in 0.5s ease-out backwards; }
.pf-category-grid .pf-category-card:nth-child(1) { animation-delay: 0.05s; }
.pf-category-grid .pf-category-card:nth-child(2) { animation-delay: 0.1s; }
.pf-category-grid .pf-category-card:nth-child(3) { animation-delay: 0.15s; }
.pf-category-grid .pf-category-card:nth-child(4) { animation-delay: 0.2s; }
.pf-category-grid .pf-category-card:nth-child(5) { animation-delay: 0.25s; }

/* ================================================================
   RESPONSIVE — TABLET
   ================================================================ */
@media (max-width: 1024px) {
    .pf-content-layout.has-sidebar { grid-template-columns: 1fr; }
    .pf-sidebar { position: static; }
    .pf-single-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pf-single-image-wrap img { max-height: 350px; }
}

/* ================================================================
   RESPONSIVE — MOBILE
   ================================================================ */
@media (max-width: 768px) {
    .pf-top-bar { display: none; }

    .pf-mobile-toggle { display: block; }
    .pf-search-toggle { display: flex; }
    .pf-header-search {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--pf-primary);
        padding: 0.75rem 1.5rem;
        display: none;
        z-index: 10;
    }
    .pf-header-search.pf-search-visible { display: block; }

    .pf-primary-nav {
        position: fixed;
        top: 0; left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--pf-primary);
        padding: 2rem 1.5rem;
        overflow-y: auto;
        transition: left var(--pf-transition);
        z-index: 1001;
    }
    .pf-primary-nav.pf-nav-open { left: 0; }
    .pf-primary-nav ul { flex-direction: column; gap: 0; }
    .pf-primary-nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .pf-primary-nav a::after { display: none; }
    .pf-primary-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2);
        border-radius: 0;
    }
    .pf-primary-nav .sub-menu a { color: #ccc; padding-left: 1.5rem; }

    .pf-hero { padding: 2.5rem 0; }
    .pf-hero-actions { flex-direction: column; }
    .pf-hero-actions .pf-btn { width: 100%; }

    .pf-category-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    .pf-footer-bottom-inner { flex-direction: column; text-align: center; }
    .pf-footer-nav ul { flex-wrap: wrap; justify-content: center; }

    .pf-page { padding: 1.5rem; }
    .pf-back-to-top { bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
    .pf-category-grid { grid-template-columns: 1fr; }
    .pf-product-grid { grid-template-columns: 1fr; }
    .pf-container { padding: 0 1rem; }
    .pf-single-image-wrap { padding: 1rem; }
    .pf-single-image-wrap img { max-height: 250px; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .pf-site-header, .pf-site-footer, .pf-back-to-top, .pf-mobile-overlay, .pf-primary-nav { display: none !important; }
    .pf-product-card { box-shadow: none; border: 1px solid #ccc; }
    body { background: #fff; }
}
