/*
Theme Name: Pixelia Merch
Theme URI: https://pixeliamerch.cl
Author: Pixelia Merch
Description: Tema propio, ligero y editable para Pixelia Merch, compatible con Gutenberg y WooCommerce.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: pixelia-merch
*/

:root {
  --pm-color-primary: #6d28d9;
  --pm-color-secondary: #ec4899;
  --pm-color-text: #18181b;
  --pm-color-muted: #71717a;
  --pm-color-bg: #ffffff;
  --pm-color-surface: #f6f5fb;
  --pm-color-border: #e4e4e7;
  --pm-font-heading: "Inter", system-ui, sans-serif;
  --pm-font-body: "Inter", system-ui, sans-serif;
  --pm-container: 1200px;
  --pm-radius: 14px;
  --pm-shadow: 0 12px 35px rgb(24 24 27 / 8%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pm-color-bg);
  color: var(--pm-color-text);
  font-family: var(--pm-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pm-color-primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--pm-color-secondary); }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  color: var(--pm-color-text);
  font-family: var(--pm-font-heading);
  line-height: 1.15;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.25rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
p { margin: 0 0 1.25em; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--pm-color-border);
  border-radius: calc(var(--pm-radius) * .65);
  background: #fff;
  color: var(--pm-color-text);
}
button, .button, .wp-element-button, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.15rem;
  border: 0;
  border-radius: var(--pm-radius);
  background: var(--pm-color-primary);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
button:hover, .button:hover, .wp-element-button:hover, .wp-block-button__link:hover {
  color: #fff;
  opacity: .9;
  transform: translateY(-1px);
}
.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;
}
.pm-container { width: min(calc(100% - 2rem), var(--pm-container)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--pm-color-border);
  background: color-mix(in srgb, var(--pm-color-bg) 92%, transparent);
}
.site-header.is-sticky { position: sticky; top: 0; backdrop-filter: blur(14px); }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 78px; }
.site-branding { display: flex; align-items: center; min-width: 0; margin-right: auto; }
.custom-logo-link { display: inline-flex; }
.custom-logo { width: auto; max-height: 52px; }
.site-title { margin: 0; font-size: 1.25rem; font-weight: 800; }
.site-title a { color: inherit; text-decoration: none; }
.site-description { margin: .15rem 0 0; color: var(--pm-color-muted); font-size: .82rem; }
.primary-menu { display: flex; align-items: center; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.primary-menu ul { list-style: none; }
.primary-menu a { color: var(--pm-color-text); font-weight: 650; text-decoration: none; }
.primary-menu a:hover { color: var(--pm-color-primary); }
.menu-toggle { display: none; padding: .55rem .75rem; }
.site-main { min-height: 55vh; }
.entry-shell { padding-block: clamp(2.5rem, 6vw, 6rem); }
.entry-header { margin-bottom: 2rem; }
.entry-content::after { display: table; clear: both; content: ""; }
.entry-content > :where(:not(.alignwide):not(.alignfull)) { max-width: var(--pm-container); margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { width: min(calc(100% - 2rem), 1440px); max-width: 1440px; margin-right: auto; margin-left: auto; }
.entry-content > .alignfull { width: 100%; max-width: none; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content .wp-block-group { padding-block: clamp(2rem, 5vw, 5rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding-bottom: 4rem; }
.post-card { overflow: hidden; border: 1px solid var(--pm-color-border); border-radius: var(--pm-radius); background: #fff; box-shadow: var(--pm-shadow); }
.post-card__content { padding: 1.25rem; }
.post-card__title { font-size: 1.35rem; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-meta { color: var(--pm-color-muted); font-size: .875rem; }
.site-footer { margin-top: 3rem; padding-block: 2.5rem; border-top: 1px solid var(--pm-color-border); background: var(--pm-color-surface); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; color: var(--pm-color-muted); font-size: .9rem; }
.footer-menu { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--pm-color-text); text-decoration: none; }
.woocommerce .woocommerce-breadcrumb { color: var(--pm-color-muted); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { border-radius: var(--pm-radius); }
.woocommerce span.onsale { min-width: auto; min-height: auto; padding: .35rem .6rem; border-radius: 999px; background: var(--pm-color-secondary); line-height: 1.2; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--pm-color-primary); font-weight: 750; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--pm-color-primary); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--pm-color-primary); }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { margin: .2rem; border-radius: 8px; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .site-navigation { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; padding: 1rem; border: 1px solid var(--pm-color-border); border-radius: var(--pm-radius); background: #fff; box-shadow: var(--pm-shadow); }
  .site-navigation.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: .35rem; }
  .primary-menu a { display: block; padding: .65rem; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .post-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .site-footer__inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Portada temporal Pixelia Merch. El HTML permanece editable en la página Inicio. */
.home .site-header,.home .site-footer{display:none}.home .site-main{min-height:100vh}.home .entry-content>*{margin-top:0}.home .entry-content>:where(:not(.alignwide):not(.alignfull)){max-width:none}
.pm-coming{--ink:#24152f;--purple:#7038ed;--pink:#ed3f91;--coral:#ff745f;position:relative;min-height:100svh;overflow:hidden;padding:0 clamp(1.2rem,5vw,5rem);background:#fffaf4;color:var(--ink);isolation:isolate}
.pm-bg{position:absolute;inset:0;z-index:-2;overflow:hidden;background-image:radial-gradient(#6f38ed22 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(to bottom,transparent,#000 20%,transparent)}.pm-bg:after{position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");content:'';opacity:.2}.pm-bg i{position:absolute;border-radius:50%;filter:blur(2px)}.pm-bg i:first-child{top:-18rem;right:-12rem;width:44rem;height:44rem;background:radial-gradient(circle,#f6c5ef,#e7d4ff 60%,transparent 61%)}.pm-bg i:last-child{bottom:-20rem;left:-16rem;width:38rem;height:38rem;background:radial-gradient(circle,#ffd8c7,transparent 68%)}
.pm-top{display:flex;align-items:center;justify-content:space-between;width:min(100%,1440px);min-height:100px;margin:auto}.pm-brand{display:flex;align-items:center;gap:.8rem;color:var(--ink);font-size:clamp(1rem,2vw,1.25rem);font-weight:900;letter-spacing:.11em;text-decoration:none}.pm-brand b{color:var(--pink)}.pm-mark{position:relative;display:grid;place-items:center;width:42px;height:42px;transform:rotate(-8deg)}.pm-mark i{position:absolute;width:25px;height:25px;border-radius:8px;background:var(--purple);transform:rotate(45deg)}.pm-mark i:nth-child(2){width:16px;height:16px;margin:-23px 0 0 24px;background:var(--pink)}.pm-mark i:nth-child(3){width:10px;height:10px;margin:23px 0 0 -24px;background:var(--coral)}.pm-status{display:flex;align-items:center;gap:.6rem;padding:.6rem .9rem;border:1px solid #24152f1c;border-radius:999px;background:#ffffffa8;font-size:.78rem;font-weight:750;backdrop-filter:blur(10px)}.pm-status i{width:8px;height:8px;border-radius:50%;background:#39ba77;box-shadow:0 0 0 5px #39ba7722;animation:pm-pulse 2s infinite}
.pm-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(480px,1.1fr);align-items:center;gap:clamp(2rem,7vw,8rem);width:min(100%,1440px);min-height:calc(100svh - 190px);margin:auto;padding:2rem 0 4rem}.pm-copy{z-index:2;max-width:690px}.pm-kicker{margin:0 0 1.5rem;color:var(--purple);font-size:.78rem;font-weight:850;letter-spacing:.16em}.pm-coming h1{margin:0;color:var(--ink);font-size:clamp(4rem,8.2vw,8.5rem);font-weight:900;line-height:.83;letter-spacing:-.075em}.pm-coming h1 em{position:relative;color:transparent;font-style:normal;-webkit-text-stroke:2px var(--pink)}.pm-coming h1 em:after{position:absolute;right:.05em;bottom:-.05em;left:.08em;height:.11em;border-radius:50%;background:var(--coral);content:'';opacity:.55;transform:rotate(-2deg)}.pm-lead{max-width:600px;margin:2rem 0 1.5rem;color:#65596c;font-size:clamp(1.05rem,1.5vw,1.3rem);line-height:1.65}.pm-chips{display:flex;flex-wrap:wrap;gap:.55rem}.pm-chips span{padding:.45rem .75rem;border:1px solid #7138ed29;border-radius:999px;background:#fff;color:#50425a;font-size:.78rem;font-weight:700;box-shadow:0 5px 18px #4225550d}.pm-notice{display:inline-flex;align-items:center;gap:.9rem;margin-top:2.1rem;padding:.85rem 1.1rem .85rem .85rem;border-radius:18px;background:var(--ink);color:#fff;box-shadow:0 18px 45px #21152e2e}.pm-notice>b{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--purple),var(--pink));font-size:1.2rem}.pm-notice strong,.pm-notice small{display:block}.pm-notice strong{font-size:.88rem}.pm-notice small{color:#cfc5d6;font-size:.7rem}
.pm-scene{position:relative;min-height:650px;perspective:1200px}.pm-blob{position:absolute;inset:8% 2% 5% 8%;border-radius:46% 54% 62% 38%/38% 40% 60% 62%;background:linear-gradient(145deg,#7837ee,#a744ec 38%,#ec3d91 70%,#ff7662);box-shadow:inset 0 0 90px #ffffff2e,0 50px 100px #7138ed40;transform:rotate(-4deg)}.pm-blob:before{position:absolute;inset:8%;border:1px solid #ffffff38;border-radius:inherit;content:''}.pm-star{position:absolute;z-index:8;color:#fff;font-size:2rem;text-shadow:0 8px 25px #21152e40;animation:pm-spin 8s linear infinite}.pm-star-a{top:7%;left:47%}.pm-star-b{right:3%;bottom:37%;color:#ffdc62;font-size:1.3rem}
.pm-shirt{position:absolute;top:10%;left:5%;z-index:3;width:350px;height:350px;filter:drop-shadow(0 30px 25px #26103d38);transform:rotate(-8deg);animation:pm-shirt-float 6s ease-in-out infinite}.pm-shirt>div{position:absolute;top:35px;left:55px;display:flex;align-items:center;flex-direction:column;width:235px;height:295px;padding-top:105px;border-radius:40px;background:linear-gradient(110deg,#fdf7ed,#fff 58%,#eadfda);clip-path:polygon(20% 0,36% 12%,64% 12%,80% 0,100% 18%,85% 38%,79% 31%,84% 100%,16% 100%,21% 31%,15% 38%,0 18%);color:var(--purple);font-size:1.45rem;font-weight:900;letter-spacing:.08em}.pm-shirt span,.pm-shirt b,.pm-shirt i{display:block}.pm-shirt b{color:var(--pink);font-size:.7rem;letter-spacing:.25em}.pm-shirt i{margin-top:.6rem;color:var(--coral);font-size:1.5rem}
.pm-mug{position:absolute;right:0;bottom:2%;z-index:5;width:285px;height:265px;filter:drop-shadow(0 30px 25px #26103d38);transform:rotate(8deg);animation:pm-mug-float 7s 1s ease-in-out infinite}.pm-mug>div{position:absolute;top:20px;left:5px;z-index:2;display:flex;align-items:center;flex-direction:column;justify-content:center;width:200px;height:210px;border-radius:18px 18px 35px 35px;background:linear-gradient(110deg,#fff,#f8ede8 75%,#dac9c2)}.pm-mug b{display:grid;place-items:center;width:72px;height:72px;border-radius:22px;background:linear-gradient(135deg,var(--purple),var(--pink));color:#fff;font-size:2.5rem;transform:rotate(-6deg)}.pm-mug small{margin-top:.7rem;color:var(--ink);font-size:.55rem;font-weight:800;letter-spacing:.08em}.pm-mug>i{position:absolute;top:65px;right:0;width:100px;height:120px;border:25px solid #f2e6e1;border-left:0;border-radius:0 60px 60px 0}
.pm-tags{position:absolute;top:13%;right:3%;z-index:4;width:205px;height:230px;filter:drop-shadow(0 25px 20px #26103d38);animation:pm-tags-float 8s 2s ease-in-out infinite}.pm-tags>div{position:absolute;display:grid;place-items:center;width:122px;height:170px;padding:1rem;border-radius:12px 12px 20px 20px;text-align:center}.pm-tags>div:before{position:absolute;top:12px;width:14px;height:14px;border:4px solid #ffffff80;border-radius:50%;content:''}.pm-tag-back{top:20px;right:7px;background:var(--coral);color:#fff;font-size:.9rem;font-weight:900;transform:rotate(16deg)}.pm-tag-front{top:44px;left:3px;background:var(--ink);color:#fff;transform:rotate(-12deg)}.pm-tag-front i{width:30px;height:3px;margin-top:22px;background:var(--pink)}.pm-tag-front b{font-size:.75rem;letter-spacing:.12em}.pm-tag-front small{color:#cbb8d7;font-size:.55rem;letter-spacing:.18em}
.pm-badge{position:absolute;bottom:12%;left:2%;z-index:6;display:grid;place-items:center;width:122px;height:122px;border:2px solid #ffffffaa;border-radius:50%;background:var(--ink);color:#fff;box-shadow:0 20px 40px #21152e40;transform:rotate(-12deg)}.pm-badge:after{position:absolute;inset:7px;border:1px dashed #ffffff5c;border-radius:50%;content:''}.pm-badge b,.pm-badge small{z-index:1;display:block;text-align:center}.pm-badge b{margin-top:1.1rem;font-size:1.35rem}.pm-badge small{margin-top:-1rem;color:#e8dcef;font-size:.52rem;letter-spacing:.1em;text-transform:uppercase}
.pm-bottom{position:relative;z-index:3;display:flex;justify-content:space-between;gap:1rem;width:min(100%,1440px);margin:-54px auto 0;padding:1.1rem 0;border-top:1px solid #21152e19;color:#786e7e;font-size:.7rem;letter-spacing:.04em}.pm-bottom a{color:var(--ink);font-weight:700;text-decoration:none}
@keyframes pm-shirt-float{50%{transform:translateY(-16px) rotate(-5deg)}}@keyframes pm-mug-float{50%{transform:translateY(-14px) rotate(5deg)}}@keyframes pm-tags-float{50%{transform:translateY(-18px) rotate(3deg)}}@keyframes pm-spin{to{transform:rotate(360deg)}}@keyframes pm-pulse{50%{box-shadow:0 0 0 9px #39ba770d}}
@media(max-width:1050px){.pm-grid{grid-template-columns:1fr;padding-top:4rem}.pm-copy{max-width:760px}.pm-scene{width:min(100%,680px);min-height:610px;margin:-1rem auto 2rem}.pm-bottom{margin-top:0}}
@media(max-width:620px){.pm-coming{padding-inline:1rem}.pm-top{min-height:82px}.pm-status{padding:.55rem;font-size:0}.pm-grid{min-height:auto;padding:3rem 0 2rem}.pm-coming h1{font-size:clamp(3.6rem,20vw,5.6rem)}.pm-lead{font-size:1rem}.pm-scene{min-height:470px;transform:scale(.8);transform-origin:top center;margin-bottom:-6rem}.pm-shirt{left:-5%}.pm-tags{right:-8%}.pm-bottom{align-items:center;flex-direction:column;text-align:center}}
