/* ═══════════ BASE ═══════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --p2-bg: #ffffff;
  --p2-dark: #121226;
  --p2-primary: #6d28d9;
  --p2-primary-2: #4c1d95;
  --p2-accent: #f59e0b;
  --p2-text: #1f2937;
  --p2-muted: #6b7280;
  --p2-border: #e5e7eb;
  --p2-radius: 16px;
  --p2-shadow: 0 10px 30px rgba(18,18,38,0.08);
}
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--p2-text); line-height: 1.6; background: var(--p2-bg); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
.p2-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════ HEADER ═══════════ */
.p2-header { position: sticky; top: 0; z-index: 100; background: var(--p2-dark); padding: 14px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.p2-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.p2-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.p2-logo-img { display: block; height: 56px !important; width: auto; max-width: 280px; }
.p2-logo-badge { font-size: 24px; }
.p2-logo-text { font-size: 22px; font-weight: 800; color: #fff; }
.p2-logo-text span { color: var(--p2-accent); }
.p2-nav { display: flex; gap: 8px; align-items: center; }
.p2-nav ul { list-style: none; display: flex; gap: 8px; align-items: center; margin: 0; padding: 0; }
.p2-nav li { position: relative; }
.p2-nav a { color: #d1d5db !important; font-weight: 500; font-size: 13px; letter-spacing: .03em; white-space: nowrap; transition: color .2s, transform .2s, text-shadow .2s; display: inline-block; }
.p2-nav a:hover { color: var(--p2-accent) !important; transform: translateY(-3px); text-shadow: 0 0 14px rgba(245,158,11,0.55); }
.p2-nav a { position: relative; }
.p2-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; border-radius: 2px; background: var(--p2-accent); transition: right .25s ease; }
.p2-nav a:hover::after { right: 0; }
/* Submenú (Categorías) */
.p2-nav li.menu-item-has-children > ul.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--p2-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 8px 0; min-width: 220px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 200; flex-direction: column; gap: 0; }
.p2-nav li.menu-item-has-children:hover > ul.sub-menu { display: flex; }
.p2-nav li.menu-item-has-children > ul.sub-menu li { width: 100%; }
.p2-nav li.menu-item-has-children > ul.sub-menu a { display: block; padding: 8px 18px; font-size: 13px; }
.p2-nav li.menu-item-has-children > ul.sub-menu a:hover { background: rgba(255,255,255,0.08); }
.p2-header-actions { display: flex; gap: 10px; align-items: center; }
.p2-cart { position: relative; color: #fff; font-size: 20px; }
.p2-cart-count { position: absolute; top: -6px; right: -10px; background: var(--p2-accent); color: #000; font-size: 11px; font-weight: 700; border-radius: 50%; padding: 1px 6px; }

/* ═══════════ BUSCADOR HEADER ═══════════ */
.p2-header-search { flex: 0 1 200px; }
.p2-search-form { display: flex; align-items: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 50px; padding: 4px 6px 4px 14px; transition: border-color .2s, background .2s; min-width: 0; }
.p2-search-form:focus-within { border-color: var(--p2-primary); background: rgba(255,255,255,0.12); }
.p2-search-input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; min-width: 0; }
.p2-search-input::placeholder { color: #9ca3af; }
.p2-search-btn { background: var(--p2-primary); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.p2-search-btn:hover { background: var(--p2-primary-2); }

/* Desplegable de resultados en vivo */
.p2-header-search { position: relative; }
.p2-search-results {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid rgba(0,0,0,0.1); border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2); z-index: 300; overflow: hidden;
  max-height: 380px; overflow-y: auto;
}
.p2-search-results.open { display: block; }
.p2-search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.p2-search-item:last-child { border-bottom: none; }
.p2-search-item:hover { background: #f5f3ff; }
.p2-search-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.p2-search-thumb-ph { background: #e5e7eb; }
.p2-search-item-info { display: flex; flex-direction: column; min-width: 0; }
.p2-search-item-title { color: #121226; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p2-search-item-price { color: var(--p2-primary); font-size: 12px; font-weight: 600; }
.p2-search-empty { padding: 14px; color: #6b7280; font-size: 13px; text-align: center; }

/* ═══════════ MENÚ MÓVIL (hamburguesa) ═══════════ */
.p2-nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: none; cursor: pointer;
  padding: 8px; margin-left: 4px;
}
.p2-nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.p2-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.p2-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.p2-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.p2-mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--p2-dark); border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); padding: 16px 20px 24px;
  z-index: 200; max-height: 80vh; overflow-y: auto;
}
.p2-mobile-menu.open { display: block; }
.p2-mobile-nav a { display: block; color: #d1d5db; font-size: 16px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); text-decoration: none; }
.p2-mobile-nav a:hover { color: #fff; }
.p2-mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.p2-mobile-nav .sub-menu { padding-left: 16px; }
.p2-mobile-nav .sub-menu a { font-size: 14px; color: #9ca3af; }
.p2-mobile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.p2-mobile-search { margin-top: 16px; }
.p2-mobile-search .p2-search-form { background: rgba(255,255,255,0.1); }
/* El buscador del header ya se muestra arriba en móvil (2ª fila), así que el del menú
   desplegable sería un duplicado. Se oculta por defecto (ya no hace falta). */
.p2-mobile-search { display: none; }
.p2-btn-block { display: block; text-align: center; width: 100%; }
@media (min-width: 981px) { .p2-mobile-menu { display: none !important; } }

/* ═══════════ BLOQUE DE DESCARGA (ficha producto) ═══════════ */
.p2-dl-block {
  margin: 40px 0; background: #fff; border: 1px solid #e8e8f0; border-radius: 20px;
  padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.p2-dl-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.p2-dl-head h2 { font-size: 24px; color: #121226; margin: 0; }
.p2-dl-downloads { background: #f5f3ff; color: var(--p2-primary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; }
.p2-dl-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.p2-dl-badge { display: inline-flex; align-items: center; gap: 6px; background: #f8f8ff; border: 1px solid #e8e8f0; padding: 8px 16px; border-radius: 10px; font-size: 14px; color: #444; }
.p2-dl-badge strong { color: #121226; }
.p2-dl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p2-dl-btn {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px;
  text-decoration: none; transition: transform .2s, box-shadow .2s; border: 2px solid transparent;
}
.p2-dl-btn:hover { transform: translateY(-2px); text-decoration: none; }
.p2-dl-btn-icon { font-size: 24px; flex-shrink: 0; }
.p2-dl-btn-text { display: flex; flex-direction: column; }
.p2-dl-btn-text strong { font-size: 16px; }
.p2-dl-btn-text small { font-size: 12px; opacity: .8; margin-top: 2px; }
.p2-dl-btn-primary { background: var(--p2-primary); color: #fff !important; box-shadow: 0 4px 16px rgba(109,40,217,0.3); }
.p2-dl-btn-primary:hover { box-shadow: 0 8px 24px rgba(109,40,217,0.4); }
.p2-dl-btn-free { background: #fff; color: #121226 !important; border-color: #e8e8f0; }
.p2-dl-btn-free:hover { border-color: var(--p2-primary); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.p2-dl-btn-locked { background: #fff; color: #121226 !important; border: 2px dashed #c7c7d9; box-shadow: none; }
.p2-dl-btn-locked:hover { box-shadow: none; transform: none; border-color: #6b7280; }
.p2-dl-links-member { justify-content: flex-start; margin-top: 24px; }
.p2-dl-note { margin-top: 18px; font-size: 13px; color: #6b7280; }

/* Addons incluidos (solo miembros del Club) */
.p2-dl-addons { margin-top: 24px; padding: 18px 20px; background: #f8f7ff; border: 1px solid #e8e4f7; border-radius: 14px; }
.p2-dl-addons-title { font-size: 15px; font-weight: 700; color: #121226; margin: 0 0 12px; }
.p2-dl-addons-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.p2-dl-addon { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.p2-dl-addon-name { font-weight: 600; color: #121226; flex: 1; min-width: 160px; }
.p2-dl-addon-ver { font-size: 12px; color: #6b7280; background: #eef0f6; padding: 2px 8px; border-radius: 10px; }
.p2-dl-addon-dl { font-size: 13px; color: var(--p2-primary); text-decoration: none; font-weight: 600; padding: 4px 12px; border: 1px solid #d8d0f0; border-radius: 16px; transition: all .2s; }
.p2-dl-addon-dl:hover { background: var(--p2-primary); color: #fff !important; border-color: var(--p2-primary); }

/* Características / garantías (como la web original) */
.p2-dl-features {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.p2-dl-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #444; }
.p2-dl-features li strong { color: #121226; }
.p2-dl-feat-ico { color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* CTA suscripción + enlaces */
.p2-dl-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.p2-dl-btn-sub {
  background: linear-gradient(135deg, #6d28d9, #4c1d95); color: #fff !important;
  box-shadow: 0 6px 20px rgba(109,40,217,0.35); justify-content: center; text-align: center;
}
.p2-dl-btn-sub:hover { box-shadow: 0 10px 28px rgba(109,40,217,0.45); }
.p2-dl-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.p2-dl-link {
  font-size: 13px; color: var(--p2-primary); text-decoration: none; font-weight: 600;
  padding: 6px 14px; border: 1px solid #e8e8f0; border-radius: 20px; transition: all .2s;
}
.p2-dl-link:hover { border-color: var(--p2-primary); background: #f5f3ff; }

@media (max-width: 560px) {
  .p2-dl-buttons { grid-template-columns: 1fr; }
  .p2-dl-block { padding: 24px; }
  .p2-dl-features { grid-template-columns: 1fr; }
}

/* ═══════════ THANK YOU (confirmación de compra) ═══════════ */
.p2-thankyou { text-align: center; max-width: 640px; margin: 0 auto; padding: 30px 0; }
.p2-thankyou-hero { margin-bottom: 28px; }
.p2-thankyou-icon { font-size: 64px; margin-bottom: 16px; }
.p2-thankyou-hero h2 { font-size: 32px; color: #121226; margin: 0 0 8px; }
.p2-thankyou-sub { font-size: 16px; color: #6b7280; margin: 0; }
.p2-thankyou-sub strong { color: #121226; }
.p2-thankyou-tip { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 16px; padding: 20px 24px; margin-bottom: 24px; text-align: left; }
.p2-thankyou-tip strong { display: block; font-size: 16px; margin-bottom: 6px; }
.p2-thankyou-tip p { margin: 0; font-size: 14px; line-height: 1.6; }
.p2-thankyou-tip a { color: var(--p2-primary); font-weight: 600; }
.p2-thankyou-details { background: #fff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 24px; margin-bottom: 20px; text-align: left; }
.p2-thankyou-details h2 { font-size: 18px; color: #121226; }
.p2-thankyou-details .woocommerce-order-details { margin-top: 16px; }
.p2-thankyou-details .shop_table { border: 1px solid #e8e8f0; border-radius: 8px; overflow: hidden; width: 100%; }
.p2-thankyou-details .shop_table th { background: #f9fafb; }
.p2-thankyou-email { font-size: 14px; color: #6b7280; margin-bottom: 28px; }
.p2-thankyou-email strong { color: #121226; }
.p2-thankyou-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.p2-thankyou-actions .p2-btn { text-decoration: none; }
.p2-thankyou-testimonio { margin-top: 32px; padding-top: 24px; border-top: 1px dashed #e8e8f0; text-align: left; }
.p2-thankyou-testimonio h3 { margin-bottom: 6px; }
.p2-thankyou-testimonio > p { color: #6b7280; font-size: 14px; margin-bottom: 16px; }
/* Ficha plugin GPL */
.p2-single-gpl { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; background: #fff; border: 1px solid #e8e8f0; border-radius: 20px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.p2-single-gpl-thumb { background: #f6f5fb; border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.p2-single-gpl-thumb img { width: 100%; height: auto; object-fit: contain; }
.p2-single-gpl-info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.p2-single-gpl-info .p2-btn { margin-top: 8px; }
.p2-single-gpl-content { margin-top: 28px; background: #fff; border: 1px solid #e8e8f0; border-radius: 20px; padding: 28px; }
.p2-single-gpl-content h2 { font-size: 22px; color: #121226; margin: 24px 0 12px; }
.p2-single-gpl-content h2:first-child { margin-top: 0; }
.p2-single-gpl-content p { line-height: 1.7; color: #4b5563; }
@media (max-width: 700px) { .p2-single-gpl { grid-template-columns: 1fr; } }
.p2-thankyou-agencia { border-left: 4px solid #0ea5e9; }
.p2-thankyou-autoupd { border-left: 4px solid #22c55e; }
.p2-thankyou-club { border-left: 4px solid var(--p2-primary); }
.p2-thankyou-video { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #d1d5db; }
.p2-btn-video { background: #dc2626; }
.p2-btn-video:hover { background: #b91c1c; }
.p2-thankyou-error { text-align: center; padding: 40px 20px; }
.p2-thankyou-error h2 { font-size: 24px; color: #121226; }
.p2-thankyou-error p { color: #6b7280; margin-bottom: 24px; }
.p2-btn-outline { background: transparent; color: #121226 !important; border-color: #d1d5db; }
.p2-btn-outline:hover { border-color: var(--p2-primary); }

/* ═══════════ 404 ═══════════ */
.p2-404 { text-align: center; padding: 40px 0; }
.p2-404-code { font-size: 90px; font-weight: 800; color: var(--p2-primary); line-height: 1; margin-bottom: 12px; }
.p2-404-title { font-size: 30px; color: #121226; margin: 0 0 12px; }
.p2-404-text { color: #6b7280; font-size: 16px; max-width: 480px; margin: 0 auto 28px; }
.p2-404-search { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 30px; }
.p2-404-search input { flex: 1; padding: 14px 18px; border: 1px solid #e8e8f0; border-radius: 50px; font-size: 15px; }
.p2-404-search input:focus { outline: none; border-color: var(--p2-primary); }
.p2-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.p2-404-popular h3 { font-size: 20px; color: #121226; margin-bottom: 20px; }

/* ═══════════ BOTONES ═══════════ */
.p2-btn { display: inline-block; padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: 15px; transition: all .25s; border: 2px solid transparent; cursor: pointer; text-align: center; }
.p2-btn-primary { background: var(--p2-primary); color: #fff !important; box-shadow: 0 6px 20px rgba(109,40,217,0.35); }
.p2-btn-primary:hover { background: var(--p2-primary-2); transform: translateY(-2px); }
.p2-btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.4); }
.p2-btn-ghost:hover { background: rgba(255,255,255,0.1); }
.p2-btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.5); }
.p2-btn-sm { padding: 9px 20px; font-size: 14px; }
.p2-btn:hover { }

/* ═══════════ HERO ═══════════ */
.p2-hero { background: linear-gradient(135deg, var(--p2-dark) 0%, #1e1b4b 50%, #312e81 100%); color: #fff; text-align: center; padding: 90px 0 70px; }
.p2-eyebrow { display: inline-block; background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.4); color: var(--p2-accent); padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.p2-hero-title { font-size: 56px; font-weight: 800; line-height: 1.1; margin-bottom: 20px; color: #ffffff !important; }
.p2-hero-sub { font-size: 19px; color: #c7d2fe !important; max-width: 620px; margin: 0 auto 32px; }
.p2-hero p { color: #c7d2fe !important; }
.p2-eyebrow { color: var(--p2-accent) !important; }
.p2-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.p2-hero-trust { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 36px; color: #a5b4fc; font-size: 14px; }

/* ═══════════ STATS ═══════════ */
.p2-stats { background: var(--p2-accent); padding: 30px 0; }
.p2-stats .p2-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.p2-stat { display: flex; flex-direction: column; }
.p2-stat-num { font-size: 30px; font-weight: 800; color: #000; }
.p2-stat span { font-weight: 500; color: #1f2937; }

/* ═══════════ SECCIONES ═══════════ */
.p2-section-title { font-size: 34px; font-weight: 800; margin-bottom: 8px; text-align: center; color: var(--p2-dark); }
.p2-section-sub { text-align: center; color: var(--p2-muted); margin-bottom: 40px; }

/* ═══════════ OFERTAS (3 propuestas) ═══════════ */
.p2-offers { padding: 70px 0; }
.p2-offers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.p2-card { background: #fff; border: 1px solid var(--p2-border); border-radius: var(--p2-radius); padding: 30px; box-shadow: var(--p2-shadow); display: flex; flex-direction: column; text-align: center; transition: transform .25s; }
.p2-card:hover { transform: translateY(-6px); }
.p2-card-highlight { border: 2px solid var(--p2-primary); position: relative; }
.p2-card-highlight::before { content: "⭐ Más popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--p2-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 50px; }
.p2-card-icon { font-size: 42px; margin-bottom: 12px; }
.p2-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.p2-card-price { font-size: 34px; font-weight: 800; color: var(--p2-primary); margin: 8px 0; }
.p2-card-price small { font-size: 16px; color: var(--p2-muted); font-weight: 500; }
.p2-card-desc { font-size: 14px; color: var(--p2-muted); margin-bottom: 18px; }
.p2-card-list { list-style: none; text-align: left; margin-bottom: 24px; flex-grow: 1; }
.p2-card-list li { padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }

/* ═══════════ CATEGORÍAS ═══════════ */
.p2-cats { background: #f9fafb; padding: 70px 0; }
.p2-cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p2-cat { background: #fff; border-radius: var(--p2-radius); padding: 28px; text-align: center; box-shadow: var(--p2-shadow); transition: transform .25s; font-weight: 600; }
.p2-cat:hover { transform: translateY(-4px); }
.p2-cat-icon { font-size: 34px; display: block; margin-bottom: 8px; }

/* ═══════════ PRODUCTOS DESTACADOS ═══════════ */
.p2-featured { padding: 70px 0; }
.p2-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p2-product { background: #fff; border: 1px solid var(--p2-border); border-radius: var(--p2-radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.p2-product:hover { transform: translateY(-4px); box-shadow: var(--p2-shadow); }
.p2-product-thumb { aspect-ratio: 1/1; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.p2-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p2-product-body { padding: 14px; }
.p2-product-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.p2-product-price { font-size: 14px; font-weight: 700; color: var(--p2-primary); }

/* ═══════════ TESTIMONIOS ═══════════ */
.p2-testimonials { padding: 70px 0; background: linear-gradient(180deg, #fff, #f5f3ff); }
.p2-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.p2-testi { background: #fff; border-radius: var(--p2-radius); padding: 24px; box-shadow: var(--p2-shadow); }
.p2-testi p { font-style: italic; margin-bottom: 12px; }
.p2-testi span { font-size: 13px; font-weight: 600; color: var(--p2-primary); }
/* Formulario de testimonios */
.p2-testi-form { max-width: 520px; margin: 40px auto 0; background: #fff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.p2-testi-form h3 { margin: 0 0 16px; font-size: 20px; color: var(--p2-dark); }
.p2-testi-form textarea, .p2-testi-form input { width: 100%; padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.p2-testi-form textarea { height: 90px; resize: vertical; }
.p2-testi-form .p2-btn { width: 100%; }
.p2-testi-ok { color: #16a34a; font-weight: 600; text-align: center; }
.p2-testi-err { color: #dc2626; font-weight: 600; text-align: center; }

/* ═══════════ FAQ ═══════════ */
.p2-faq { padding: 70px 0; max-width: 800px; margin: 0 auto; }
.p2-faq-item { border: 1px solid var(--p2-border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.p2-faq-q { width: 100%; background: #f9fafb; border: none; padding: 18px 22px; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; }
.p2-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.p2-faq-a p { padding: 0 22px 18px; color: var(--p2-muted); }
.p2-faq-item.open .p2-faq-a { max-height: 300px; }

/* ═══════════ CTA FINAL ═══════════ */
.p2-cta { background: linear-gradient(135deg, var(--p2-primary), var(--p2-primary-2)); color: #fff; text-align: center; padding: 70px 0; }
.p2-cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.p2-cta p { margin-bottom: 26px; color: #d1d5db; }
.p2-cta .p2-btn { background: var(--p2-accent); color: #000 !important; }

/* ═══════════ PÁGINAS DE CONVERSIÓN (Club / AutoUpdater / Agencia) ═══════════ */
.p2-page { padding: 70px 0; }
.p2-page-hero { background: linear-gradient(135deg, var(--p2-dark) 0%, #1e1b4b 50%, #312e81 100%); color: #fff; text-align: center; padding: 90px 0 70px; }
.p2-page-hero h1 { font-size: 46px; font-weight: 800; margin-bottom: 14px; color: #ffffff !important; }
.p2-page-hero p { color: #c7d2fe !important; max-width: 640px; margin: 0 auto; font-size: 18px; }
.p2-page-block-title { font-size: 34px; font-weight: 800; text-align: center; color: var(--p2-dark); margin-bottom: 8px; }
.p2-page-block-sub { text-align: center; color: var(--p2-muted); margin-bottom: 44px; }

/* Features grid (qué incluye) */
.p2-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 60px; }
.p2-feat { background: #fff; border: 1px solid var(--p2-border); border-radius: var(--p2-radius); padding: 26px; box-shadow: var(--p2-shadow); }
.p2-feat-icon { font-size: 34px; margin-bottom: 12px; display: block; }
.p2-feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.p2-feat p { font-size: 14px; color: var(--p2-muted); }

/* Pricing table */
.p2-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.p2-plan { background: #fff; border: 1px solid var(--p2-border); border-radius: var(--p2-radius); padding: 32px; box-shadow: var(--p2-shadow); text-align: center; display: flex; flex-direction: column; transition: transform .25s; }
.p2-plan:hover { transform: translateY(-6px); }
.p2-plan-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--p2-muted); margin-bottom: 6px; }
.p2-plan-price { font-size: 44px; font-weight: 800; color: var(--p2-dark); margin: 8px 0 2px; }
.p2-plan-price small { font-size: 15px; color: var(--p2-muted); font-weight: 500; }
.p2-plan-original { text-decoration: line-through; color: var(--p2-muted); font-size: 16px; }
.p2-plan-desc { color: var(--p2-muted); font-size: 14px; margin-bottom: 20px; }
.p2-plan ul { list-style: none; text-align: left; margin-bottom: 24px; flex-grow: 1; }
.p2-plan li { padding: 9px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.p2-plan-featured { border: 2px solid var(--p2-primary); box-shadow: 0 16px 40px rgba(109,40,217,0.2); position: relative; }
.p2-plan-featured::before { content: "⭐ Recomendado"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--p2-primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 50px; white-space: nowrap; }
.p2-plan-note { text-align: center; font-size: 13px; color: var(--p2-muted); margin-top: 18px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* Comparativa simple */
.p2-compare { margin-top: 40px; }
.p2-compare-row { display: grid; grid-template-columns: 1fr 2fr 2fr 2fr; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--p2-border); font-size: 14px; }
.p2-compare-row.header { font-weight: 700; background: var(--p2-dark); color: #fff; border-radius: 10px 10px 0 0; }
.p2-compare-row .cell-title { font-weight: 600; }
.p2-compare-row .yes { color: #059669; font-weight: 700; }
.p2-compare-row .no { color: #d1d5db; }

/* Badges de pago/gratis */
.p2-method-badge { display: inline-block; background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; padding: 3px 10px; border-radius: 50px; font-size: 12px; font-weight: 600; margin-right: 6px; margin-bottom: 6px; }

/* Paso a paso */
.p2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0; }
.p2-step { text-align: center; background: #f9fafb; border-radius: var(--p2-radius); padding: 24px; }
.p2-step-num { width: 40px; height: 40px; background: var(--p2-primary); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 12px; }
.p2-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.p2-step p { font-size: 13px; color: var(--p2-muted); }

/* Responsive pricing */
@media (max-width: 980px) {
  .p2-pricing, .p2-feat-grid, .p2-steps { grid-template-columns: 1fr; }
  .p2-compare-row { grid-template-columns: 1fr 1fr 1fr; }
  .p2-compare-row .cell-title { grid-column: 1 / -1; }
  .p2-page-hero h1 { font-size: 32px; }
}

/* ═══════════ TIENDA / CATÁLOGO ═══════════ */
.p2-shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.p2-shop-count { color: var(--p2-muted); font-size: 14px; }
.p2-shop-order select { padding: 8px 12px; border: 1px solid var(--p2-border); border-radius: 8px; font-size: 14px; background: #fff; }
ul.products { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; }
/* Neutralizar pseudo-elementos de WooCommerce que ocupan celdas del grid */
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after,
ul.products::before, ul.products::after { content: none !important; display: none !important; }
/* Neutralizar el CSS nativo de WooCommerce que encoge las tarjetas */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products li.first, .woocommerce-page ul.products li.first,
.woocommerce ul.products li.last, .woocommerce-page ul.products li.last { clear: none !important; }
.woocommerce ul.products li.product a, .woocommerce-page ul.products li.product a { text-decoration: none; }
/* Tarjeta de producto — diseño moderno */
.p2-product, .woocommerce ul.products li.product .p2-product {
    background: #fff; border: 1px solid var(--p2-border); border-radius: 16px;
    overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column; height: 100%;
}
.p2-product:hover, .woocommerce ul.products li.product .p2-product:hover {
    transform: translateY(-4px); box-shadow: 0 12px 30px rgba(109,40,217,.12); border-color: var(--p2-primary);
}
.p2-product-link { display: flex; flex-direction: column; height: 100%; }
.p2-product-thumb { aspect-ratio: 1/1; background: #f6f5fb; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.p2-product-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; padding: 8px; }
.p2-product:hover .p2-product-thumb img { transform: scale(1.05); }
.p2-product-noimg { font-size: 48px; }
.p2-product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.p2-product-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; color: var(--p2-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p2-product-version { display: block; font-size: 12px; color: var(--p2-muted); margin-bottom: 8px; }
.p2-product-price { font-size: 15px; font-weight: 700; color: var(--p2-primary); margin-top: auto; }
.p2-product-price del { color: var(--p2-muted); font-weight: 400; margin-right: 4px; }
.p2-product-price ins { text-decoration: none; }
/* Botón sutil de suscripción en la tarjeta */
.p2-product-cta {
    display: inline-block; margin-top: auto; padding: 8px 14px; border-radius: 8px;
    background: var(--p2-primary); color: #fff; font-size: 13px; font-weight: 600;
    text-align: center; transition: background .2s, transform .2s;
}
.p2-product:hover .p2-product-cta { background: var(--p2-primary-2); transform: translateY(-1px); }
.woocommerce-pagination { margin-top: 30px; text-align: center; }
.woocommerce-pagination .page-numbers { display: inline-flex; gap: 6px; list-style: none; }
.woocommerce-pagination .page-numbers li a, .woocommerce-pagination .page-numbers li span { display: inline-block; padding: 8px 14px; border: 1px solid var(--p2-border); border-radius: 8px; color: var(--p2-text); }
.woocommerce-pagination .page-numbers li span.current { background: var(--p2-primary); color: #fff; border-color: var(--p2-primary); }

/* ═══════════ FICHA DE PRODUCTO ═══════════ */
.p2-breadcrumb { font-size: 13px; color: var(--p2-muted); margin-bottom: 24px; }
.p2-breadcrumb a { color: var(--p2-primary); }
.p2-breadcrumb span { margin: 0 6px; }
.p2-single-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.p2-single-gallery { }
.p2-single-mainimg { border: 1px solid var(--p2-border); border-radius: var(--p2-radius); overflow: hidden; background: #f9fafb; }
.p2-single-mainimg img { width: 100%; height: auto; display: block; }
.p2-single-noimg { font-size: 80px; text-align: center; padding: 60px 0; }
.p2-single-title { font-size: 34px; font-weight: 800; color: var(--p2-dark); margin-bottom: 10px; }
.p2-single-short { color: var(--p2-muted); font-size: 16px; margin-bottom: 16px; }
.p2-single-price { font-size: 30px; font-weight: 800; color: var(--p2-primary); margin-bottom: 20px; }
.p2-single-price del { color: var(--p2-muted); font-weight: 400; font-size: 22px; margin-right: 8px; }
.p2-single-price ins { text-decoration: none; }
.p2-badge-ok { display: inline-block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.p2-badge-lock { display: inline-block; background: #fef3c7; color: #92400e; border: 1px solid #fde68a; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; }
.p2-contact-wrap { max-width: 640px; margin: 0 auto; }
.p2-contact-form { display: flex; flex-direction: column; gap: 16px; }
.p2-contact-field { display: flex; flex-direction: column; gap: 6px; }
.p2-contact-field label { font-weight: 600; font-size: 14px; color: var(--p2-dark); }
.p2-contact-field input, .p2-contact-field textarea { padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; font-family: inherit; }
.p2-contact-field input:focus, .p2-contact-field textarea:focus { outline: none; border-color: var(--p2-primary); box-shadow: 0 0 0 3px rgba(109,40,217,0.1); }
.p2-contact-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.p2-contact-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 600; }
.p2-gpl-intro { max-width: 760px; margin: 0 auto 20px; }
.p2-gpl-intro h2 { font-size: 24px; color: var(--p2-dark); margin-bottom: 12px; }
.p2-gpl-intro h4 { font-size: 18px; color: var(--p2-dark); margin: 20px 0 10px; }
.p2-gpl-intro p { color: var(--p2-muted); line-height: 1.7; margin-bottom: 12px; }
.p2-gpl-intro ol { padding-left: 20px; color: var(--p2-muted); line-height: 1.7; }
.p2-gpl-intro li { margin-bottom: 8px; }
.p2-product-version { display: block; font-size: 13px; color: var(--p2-primary); font-weight: 600; margin-bottom: 4px; }
.p2-product-date { display: block; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.p2-product-cta {
  display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 8px;
  background: var(--p2-primary); color: #fff !important; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.p2-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p2-blog-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; text-decoration: none; transition: box-shadow 0.2s, transform 0.2s; }
.p2-blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.p2-blog-thumb img { width: 100%; height: 160px; object-fit: cover; }
.p2-blog-body { padding: 16px; }
.p2-blog-date { font-size: 12px; color: var(--p2-muted); }
.p2-blog-body h3 { font-size: 17px; color: var(--p2-dark); margin: 8px 0 6px; line-height: 1.3; }
.p2-blog-body p { font-size: 14px; color: var(--p2-muted); line-height: 1.5; }
.p2-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.p2-pagination .page-numbers { padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 8px; color: var(--p2-dark); text-decoration: none; font-size: 14px; }
.p2-pagination .page-numbers.current { background: var(--p2-primary); color: #fff; border-color: var(--p2-primary); }
@media (max-width: 768px) { .p2-blog-grid { grid-template-columns: 1fr; } }
.p2-single-hint { font-size: 14px; color: var(--p2-muted); margin-bottom: 12px; }
.p2-single-addtocart { margin-bottom: 24px; }
.p2-single-addtocart .cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.p2-single-addtocart .quantity input { width: 70px; padding: 12px; border: 1px solid var(--p2-border); border-radius: 8px; font-size: 16px; }
.p2-single-addtocart .single_add_to_cart_button { background: var(--p2-primary); color: #fff !important; border: none; padding: 14px 30px; border-radius: 50px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all .25s; }
.p2-single-addtocart .single_add_to_cart_button:hover { background: var(--p2-primary-2); transform: translateY(-2px); }
.p2-single-addtocart .variations { margin-bottom: 16px; }
.p2-single-addtocart .variations select { padding: 10px 12px; border: 1px solid var(--p2-border); border-radius: 8px; font-size: 15px; }
.p2-single-addtocart .reset_variations { font-size: 13px; color: var(--p2-primary); }
.p2-single-trust { list-style: none; margin-top: 8px; }
.p2-single-trust li { padding: 6px 0; font-size: 14px; color: var(--p2-text); }
.p2-single-desc { margin-top: 50px; border-top: 1px solid var(--p2-border); padding-top: 30px; }
.p2-single-desc h2 { font-size: 24px; font-weight: 700; color: var(--p2-dark); margin-bottom: 16px; }
.p2-single-desc-content { color: var(--p2-text); line-height: 1.7; }
.p2-single-desc-content h2, .p2-single-desc-content h3 { margin: 20px 0 10px; }
.p2-single-desc-content ul { padding-left: 20px; margin: 10px 0; }

/* ═══════════ CARRITO / CHECKOUT ═══════════ */
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; margin-bottom: 24px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 1px solid var(--p2-border); padding: 12px; text-align: left; }
.woocommerce table.shop_table th { background: #f9fafb; font-weight: 600; }
.woocommerce .button, .woocommerce button.button, .woocommerce input.button { background: var(--p2-primary); color: #fff !important; border: none; padding: 12px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; }
.woocommerce .button:hover, .woocommerce button.button:hover { background: var(--p2-primary-2); }
.woocommerce .button.alt, .woocommerce button.button.alt { background: var(--p2-accent); color: #000 !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: 12px; border: 1px solid var(--p2-border); border-radius: 8px; width: 100%; }
.woocommerce form .form-row label { font-weight: 600; margin-bottom: 4px; display: block; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; }
.woocommerce-message { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.woocommerce-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.woocommerce-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ═══════════ CARRITO / CHECKOUT / MI CUENTA (p2) ═══════════ */
.p2-page-title { font-size: 32px; color: #121226; margin: 8px 0 24px; }
.p2-cart-empty { text-align: center; padding: 60px 20px; background: #fff; border: 1px solid #e8e8f0; border-radius: 20px; }
.p2-cart-empty-icon { font-size: 56px; margin-bottom: 16px; }
.p2-cart-empty h2 { font-size: 24px; color: #121226; margin: 0 0 8px; }
.p2-cart-empty p { color: #6b7280; margin: 0 0 24px; }
.p2-cart-wrap, .p2-checkout-wrap, .p2-myaccount-wrap { background: #fff; border: 1px solid #e8e8f0; border-radius: 20px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.p2-cart-wrap .woocommerce-cart-form { display: flex; flex-direction: column; }
.p2-cart-wrap .cart_totals { background: #f8f8ff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 24px; margin-top: 24px; }
.p2-cart-wrap .cart_totals h2 { font-size: 20px; color: #121226; margin: 0 0 16px; }
.p2-cart-wrap .cart_totals .shop_table { border: none; }
.p2-cart-wrap .cart_totals .shop_table th, .p2-cart-wrap .cart_totals .shop_table td { border: none; border-bottom: 1px solid #e8e8f0; }
.p2-cart-wrap .cart_totals .order-total th, .p2-cart-wrap .cart_totals .order-total td { font-size: 18px; font-weight: 700; color: #121226; }
.p2-cart-wrap .cart_totals .checkout-button { display: block; text-align: center; background: var(--p2-primary); color: #fff !important; padding: 16px; border-radius: 50px; font-weight: 700; font-size: 16px; text-decoration: none; margin-top: 16px; }
.p2-cart-wrap .cart_totals .checkout-button:hover { background: var(--p2-primary-2); }
.p2-cart-wrap .coupon { display: flex; gap: 8px; margin-bottom: 16px; }
.p2-cart-wrap .coupon input { flex: 1; padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; }
.p2-cart-wrap .coupon button { background: #f3f4f6; color: #121226 !important; border: 1px solid #e8e8f0; padding: 12px 20px; border-radius: 8px; font-weight: 600; }
.p2-cart-wrap .actions .button { background: #f3f4f6; color: #121226 !important; border: 1px solid #e8e8f0; }
.p2-cart-wrap .product-remove a { color: #ef4444; font-size: 20px; text-decoration: none; }
.p2-cart-wrap .product-thumbnail img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.p2-cart-wrap .quantity input { width: 60px; padding: 8px; border: 1px solid #e8e8f0; border-radius: 8px; }

/* Checkout */
.p2-checkout-wrap .woocommerce-checkout { display: flex; flex-wrap: wrap; gap: 32px; }
.p2-checkout-wrap #customer_details { flex: 1 1 55%; min-width: 280px; }
.p2-checkout-wrap #order_review { flex: 1 1 35%; min-width: 280px; background: #f8f8ff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 24px; align-self: flex-start; }
.p2-checkout-wrap #order_review h3 { font-size: 20px; color: #121226; margin: 0 0 16px; }
.p2-checkout-wrap #order_review .shop_table { border: none; }
.p2-checkout-wrap #order_review .shop_table th, .p2-checkout-wrap #order_review .shop_table td { border: none; border-bottom: 1px solid #e8e8f0; }
.p2-checkout-wrap #order_review .order-total th, .p2-checkout-wrap #order_review .order-total td { font-size: 18px; font-weight: 700; color: #121226; }
.p2-checkout-wrap #place_order { width: 100%; background: var(--p2-primary); color: #fff !important; padding: 16px; border-radius: 50px; font-weight: 700; font-size: 16px; }
.p2-checkout-wrap #place_order:hover { background: var(--p2-primary-2); }
.p2-checkout-wrap .woocommerce-billing-fields h3, .p2-checkout-wrap .woocommerce-shipping-fields h3 { font-size: 20px; color: #121226; margin: 0 0 16px; }
.p2-checkout-wrap .form-row { margin-bottom: 16px; }
.p2-checkout-wrap .form-row input.input-text, .p2-checkout-wrap .form-row select, .p2-checkout-wrap .form-row textarea { padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; width: 100%; font-size: 15px; }
.p2-checkout-wrap .form-row label { font-weight: 600; color: #121226; margin-bottom: 4px; display: block; }
.p2-checkout-wrap .wc_payment_methods { list-style: none; padding: 0; margin: 0 0 16px; }
.p2-checkout-wrap .wc_payment_methods li { padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; margin-bottom: 8px; background: #fff; }
.p2-checkout-wrap .wc_payment_methods label { font-weight: 600; color: #121226; }

/* Mi cuenta */
/* Grid de 2 columnas SOLO cuando el usuario está logueado (hay nav lateral).
   En la página de login (anónimo) el formulario se muestra a ancho completo. */
.p2-myaccount-logged .woocommerce { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
/* Neutralizar los floats/anchuras nativos de WooCommerce que rompen el grid
   (.woocommerce-account .woocommerce-MyAccount-navigation{float:left;width:30%}
    .woocommerce-account .woocommerce-MyAccount-content{float:right;width:68%}) */
.p2-myaccount-logged .woocommerce-MyAccount-navigation { float: none !important; width: auto !important; grid-column: 1; }
.p2-myaccount-logged .woocommerce-MyAccount-content { float: none !important; width: auto !important; grid-column: 2; }
.p2-myaccount-logged .woocommerce-MyAccount-navigation { background: #fff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 12px; position: sticky; top: 90px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); min-width: 0; }
.p2-myaccount-logged .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.p2-myaccount-logged .woocommerce-MyAccount-navigation li a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; color: #4b5563; font-weight: 500; text-decoration: none; transition: background .2s, color .2s; }
.p2-myaccount-logged .woocommerce-MyAccount-navigation li.is-active a, .p2-myaccount-logged .woocommerce-MyAccount-navigation li a:hover { background: var(--p2-primary); color: #fff; }
.p2-myaccount-logged .woocommerce-MyAccount-content { background: #fff; border: 1px solid #e8e8f0; border-radius: 16px; padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.p2-myaccount-logged .woocommerce-form-login, .p2-myaccount-logged .woocommerce-form-register { max-width: 420px; }
.p2-myaccount-logged .woocommerce-form-login .form-row, .p2-myaccount-logged .woocommerce-form-register .form-row { margin-bottom: 16px; }
.p2-myaccount-logged .woocommerce-form-login input, .p2-myaccount-logged .woocommerce-form-register input { padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; width: 100%; }
.p2-myaccount-logged .woocommerce-form-login .button, .p2-myaccount-logged .woocommerce-form-register .button { background: var(--p2-primary); color: #fff !important; padding: 14px 28px; border-radius: 50px; font-weight: 600; }
.p2-myaccount-logged .woocommerce-MyAccount-content .shop_table { border: 1px solid #e8e8f0; border-radius: 8px; overflow: hidden; }
.p2-myaccount-logged .woocommerce-MyAccount-content .shop_table th { background: #f9fafb; }
.p2-myaccount-logged .woocommerce-MyAccount-content .button { background: var(--p2-primary); color: #fff !important; padding: 10px 20px; border-radius: 50px; font-weight: 600; font-size: 13px; }
/* Login anónimo: formulario centrado a ancho razonable */
.p2-myaccount-anon .woocommerce { max-width: 480px; margin: 0 auto; }
.p2-myaccount-anon .woocommerce-form-login, .p2-myaccount-anon .woocommerce-form-register { max-width: 100%; }
/* Neutralizar las columnas de WooCommerce (col-1/col-2 con float) en el login */
.p2-myaccount-anon .u-column1, .p2-myaccount-anon .u-column2,
.p2-myaccount-anon .col-1, .p2-myaccount-anon .col-2 { float: none !important; width: 100% !important; }
.p2-myaccount-anon .woocommerce-form-login .form-row, .p2-myaccount-anon .woocommerce-form-register .form-row { margin-bottom: 16px; }
.p2-myaccount-anon .woocommerce-form-login input, .p2-myaccount-anon .woocommerce-form-register input { padding: 12px; border: 1px solid #e8e8f0; border-radius: 8px; width: 100%; }
.p2-myaccount-anon .woocommerce-form-login .button, .p2-myaccount-anon .woocommerce-form-register .button { background: var(--p2-primary); color: #fff !important; padding: 14px 28px; border-radius: 50px; font-weight: 600; }
@media (max-width: 900px) {
  .p2-myaccount-logged .woocommerce { grid-template-columns: 1fr; }
  .p2-myaccount-logged .woocommerce-MyAccount-navigation { position: static; }
  .p2-myaccount-logged .woocommerce-MyAccount-navigation ul { flex-direction: row; flex-wrap: wrap; }
}

/* Descargas (Mi cuenta) */
.p2-downloads-container { background: #fff; border: 1px solid #e8e8f0; border-radius: 20px; padding: 32px; }
.p2-downloads-count { font-size: 15px; color: #6b7280; margin-bottom: 20px; }
.p2-downloads-subtitle { font-size: 18px; font-weight: 700; color: var(--p2-dark); margin: 28px 0 16px; padding-top: 20px; border-top: 1px dashed #e8e8f0; }
.p2-downloads-count strong { color: #121226; }
.p2-downloads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.p2-download-card { display: flex; align-items: center; gap: 14px; border: 1px solid #e8e8f0; border-radius: 14px; padding: 16px; transition: all .2s; background: #fafafa; }
.p2-download-card:hover { border-color: var(--p2-primary); box-shadow: 0 4px 16px rgba(109,40,217,0.08); }
.p2-download-card-icon { font-size: 28px; flex-shrink: 0; }
.p2-download-card-info { flex: 1; min-width: 0; }
.p2-download-card-info h3 { font-size: 14px; color: #121226; margin: 0 0 4px; line-height: 1.3; }
.p2-download-remaining { font-size: 12px; color: #6b7280; }
.p2-download-btn { background: var(--p2-primary); color: #fff !important; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background .2s; }
.p2-download-btn:hover { background: var(--p2-primary-2); }
.p2-downloads-empty { text-align: center; padding: 40px 20px; }
.p2-downloads-empty-icon { font-size: 48px; margin-bottom: 12px; }
.p2-downloads-empty h2 { font-size: 22px; color: #121226; margin: 0 0 8px; }
.p2-downloads-empty p { color: #6b7280; margin: 0 0 20px; max-width: 420px; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) {
  .p2-downloads-grid { grid-template-columns: 1fr; }
  .p2-downloads-container { padding: 20px; }
}
@media (max-width: 768px) {
  .p2-checkout-wrap .woocommerce-checkout { flex-direction: column; }
  .p2-cart-wrap, .p2-checkout-wrap, .p2-myaccount-wrap { padding: 20px; }
  .p2-myaccount-wrap .woocommerce-MyAccount-navigation ul { flex-direction: column; }
}

/* Responsive tienda/ficha */
@media (max-width: 980px) {
  ul.products { grid-template-columns: repeat(2, 1fr); }
  .p2-single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  ul.products { grid-template-columns: 1fr; }
}



/* ═══════════ FOOTER ═══════════ */
.p2-footer { background: var(--p2-dark); color: #c7cbd8; padding-top: 50px; }
.p2-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.p2-footer-brand .p2-logo-text { font-size: 24px; }
.p2-footer-brand p { margin-top: 12px; font-size: 14px; color: #9ca3af; max-width: 260px; }
.p2-footer-logo { display: block; margin-top: 16px; max-width: 200px; height: auto; }

.p2-footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.p2-footer-col a { display: block; color: #9ca3af; font-size: 14px; padding: 5px 0; transition: color .2s; }
.p2-footer-col a:hover { color: #fff; }
.p2-footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
.p2-footer-bottom p { font-size: 13px; color: #6b7280; }
.p2-footer-bottom a { color: #9ca3af; }
.p2-footer-bottom a:hover { color: #fff; }
.p2-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.p2-footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 50%; font-size: 17px; transition: all .2s; }
.p2-footer-social a:hover { background: var(--p2-primary); transform: translateY(-2px); }
.p2-footer-links a { display: block; }
.p2-footer-payments { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.p2-footer-payments-inner { display: flex; justify-content: center; }
.p2-footer-pay-badges { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.p2-pay-badge { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: #c7cbd8; font-size: 13px; padding: 6px 14px; border-radius: 20px; }
.p2-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .p2-footer-bottom-inner { flex-direction: column; text-align: center; }
  .p2-footer-payments { padding: 14px 0; }
}

/* ═══════════ ÚLTIMAS ACTUALIZACIONES (filas estilo web original) ═══════════ */
.p2-ult-list { display: flex; flex-direction: column; gap: 14px; }
.p2-ult-row {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 2px dashed #c4c4d4; border-radius: 14px;
  padding: 14px 20px; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.p2-ult-row:hover { border-color: var(--p2-primary); box-shadow: 0 4px 20px rgba(109,40,217,0.12); }
.p2-ult-thumb { flex-shrink: 0; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #f3f4f6; display: flex; align-items: center; justify-content: center; }
.p2-ult-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p2-ult-name { flex: 1; font-weight: 700; font-size: 15px; color: #121226; text-transform: uppercase; letter-spacing: .3px; }
.p2-ult-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.p2-ult-ver { font-size: 13px; color: #6b7280; }
.p2-ult-ver strong { color: #121226; }
.p2-ult-date { font-size: 12px; color: #9ca3af; }
.p2-ult-cta {
  flex-shrink: 0; background: var(--p2-primary); color: #fff !important;
  padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 13px;
  text-decoration: none; transition: background .2s;
}
.p2-ult-cta:hover { background: var(--p2-primary-2); }
@media (max-width: 640px) {
  .p2-ult-row { flex-wrap: wrap; gap: 10px; }
  .p2-ult-name { flex: 1 1 100%; }
  .p2-ult-meta { flex-direction: row; align-items: center; gap: 12px; text-align: left; }
  .p2-ult-cta { width: 100%; text-align: center; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1280px) {
  .p2-offers-grid, .p2-testi-grid { grid-template-columns: 1fr; }
  .p2-products-grid { grid-template-columns: repeat(2, 1fr); }
  .p2-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .p2-nav { display: none; }
  .p2-hero-title { font-size: 38px; }
  .p2-stats .p2-container { grid-template-columns: repeat(2, 1fr); }
  .p2-footer-grid { grid-template-columns: 1fr 1fr; }
  .p2-nav-toggle { display: flex; }
}
/* En pantallas muy anchas, el header usa más ancho para que el menú completo quepa sin desbordar */
@media (min-width: 1440px) {
  .p2-header-inner { max-width: 1320px; }
}
@media (max-width: 700px) {
  .p2-header-actions .p2-btn { display: none; }
  .p2-header-search { flex: 1 1 auto; }
  .p2-header-inner { gap: 10px; }
  .p2-logo-img { height: 40px !important; max-width: 150px; }
  /* MÓVIL: header en 2 filas para que el buscador quede arriba (visible) como en PC:
     fila 1 = logo + carrito + hamburguesa, fila 2 = buscador a ancho completo.
     El .p2-header-search (posicionado relative) se ordena al final y ocupa todo el ancho. */
  .p2-header-inner { flex-wrap: wrap; }
  .p2-header-search { order: 99; flex: 1 1 100%; margin-top: 4px; }
}
@media (max-width: 560px) {
  .p2-products-grid { grid-template-columns: 1fr; }
  .p2-header-actions .p2-btn { display: none; }
  .p2-header-search { flex: 1 1 auto; }
  .p2-header-inner { gap: 12px; }
  .p2-logo-text { font-size: 16px; }
  .p2-logo-img { height: 40px !important; max-width: 190px; }
  /* Aplicar también en el breakpoint de 560px para que el buscador se mantenga a ancho completo */
  .p2-header-inner { flex-wrap: wrap; }
  .p2-header-search { order: 99; flex: 1 1 100%; margin-top: 4px; }
}
@media (max-width: 420px) {
  .p2-logo-img { max-width: 110px; }
  .p2-header-search { flex: 1 1 100%; margin-top: 4px; }
  .p2-header-inner { gap: 8px; }
}

/* Grupos de planes AutoUpdater */
.p2-group-title { font-size: 26px; font-weight: 800; color: var(--p2-dark); margin: 44px 0 4px; text-align: center; }
.p2-group-sub { text-align: center; color: var(--p2-muted); font-size: 15px; margin-bottom: 6px; }
.p2-group-title:first-of-type { margin-top: 24px; }

/* Contacto: tipos de solicitud (Contacto / Pedir plugin / Actualizar) */
.p2-contact-label { display:block; font-weight:600; color:var(--p2-dark,#111827); margin-bottom:8px; font-size:14px; }
.p2-req { color:#dc2626; }
.p2-contact-tabs { display:flex; flex-wrap:wrap; gap:10px; }
.p2-contact-tab { flex:1 1 190px; display:flex; align-items:center; gap:8px; padding:12px 14px; border:1px solid var(--p2-border,#e5e7eb); border-radius:10px; cursor:pointer; font-size:14px; font-weight:600; background:#fff; color:var(--p2-dark,#111827); transition:border-color .15s, background .15s; }
.p2-contact-tab:hover { border-color:var(--p2-primary,#6d28d9); }
.p2-contact-tab.is-active { border-color:var(--p2-primary,#6d28d9); background:#f5f3ff; box-shadow:0 0 0 2px rgba(109,40,217,.12); }
.p2-contact-tab input { accent-color:var(--p2-primary,#6d28d9); margin:0; }
.p2-contact-form select { width:100%; padding:12px 14px; border:1px solid var(--p2-border,#e5e7eb); border-radius:10px; font-size:15px; background:#fff; color:var(--p2-dark,#111827); }
.p2-contact-field small { color:var(--p2-muted,#6b7280); font-weight:400; font-size:12px; }
