/*
Theme Name: Mentō Toys — Custodi
Description: Tema de campaña navideña para Mentō Toys con integración configurable a Hostinger Ecommerce.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mento-custodi
*/

:root {
  --teal-dark: #087778;
  --brand-dark: #164b4a;
  --holiday-red: #a42342;
}
:focus-visible { outline: 3px solid #205bab; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  background: #fff;
  color: #222;
  padding: 10px 15px;
}
.skip-link:focus { transform: none; }
.hero h1 .accent, .value-heading h2 span { color: var(--teal-dark); }
.hero h1 { max-width: 8.5em; }
.hero p, .lead, .story-copy p, .intro p, .value-heading > p { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.68; }
.hero-actions a:first-child { text-decoration: none; }
.intro, .close { background: #137779; }
.intro p, .intro .script, .close .script { position: relative; z-index: 1; }
.intro::before, .intro::after, .close::before, .close::after { pointer-events: none; }
.intro::before, .intro::after { opacity: .65; }
.story-copy .script { color: #a42356; }
.dots { padding: 3px 5px; gap: 1px; }
.dots button { width: 30px; height: 32px; background: transparent; display: grid; place-items: center; }
.dots button::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #727272; }
.dots button[aria-current="true"] { background: transparent; }
.dots button[aria-current="true"]::after { background: var(--teal-dark); width: 13px; height: 13px; }
.pillar { min-height: 215px; }
.pillar p, .value-cards p { font-size: 14px; }
.story-photo, .story-photo img { height: clamp(340px, 42vw, 530px); min-height: 0; }
.value-custodi { padding-top: 34px; }
.value-cards { margin-bottom: 4px; }
.shop { background: #f4ebe2; }
.shop-inner { align-items: center; }
.shop-images { height: clamp(340px, 39vw, 480px); grid-template-columns: .85fr 1.15fr; }
.shop-images img { min-height: 0; }
.shop-images img:first-child { object-position: 45% center; }
.shop-images img:last-child { object-position: center; }
.swatches { display: flex; gap: 10px; justify-content: center; margin-top: 15px; }
.swatches button {
  border: 1px solid #a08f81;
  background: #fffaf6;
  border-radius: 50px;
  padding: 8px 15px;
  min-height: 44px;
  cursor: pointer;
  font-size: 13px;
  color: #222;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.swatches button[aria-pressed="true"] { border: 2px solid var(--teal-dark); background: #f2faf8; padding-inline: 14px; }
.swatches i { width: 13px; height: 13px; border-radius: 50%; background: #edb7cb; }
.swatches [data-variant="azul"] i { background: #a5c5eb; }
.details { margin-top: 24px; max-width: 510px; border-top: 1px solid #d0c4b8; }
.details details { border-bottom: 1px solid #d0c4b8; }
.details summary { padding: 13px 3px; cursor: pointer; font-size: 14px; font-weight: 600; }
.details p { font-size: 14px; line-height: 1.65; margin: 0 3px 15px; }
.fine { font-size: 13px; color: #56504a; }
.shop-contact { text-decoration: underline; }
.collection { padding: 65px 6%; }
.collection .lead { max-width: 630px; }
.footer { gap: 30px; }
.footer nav { flex-wrap: wrap; }
.footer nav a { display: inline; text-underline-offset: 4px; }
.footer nav a:hover { text-decoration: underline; }
.content-shell { width: min(1120px, 90%); margin: 0 auto; padding: 44px 0 80px; min-height: 55vh; }
.content-shell a:not(.wp-element-button) { text-underline-offset: 3px; }
.preview-price { font-size: 23px; font-weight: 700; margin: 0 0 16px; }
.preview-price small { font-size: 12px; display: inline-block; margin-left: 8px; font-weight: 500; color: #55504a; }
dialog { border: 0; border-radius: 22px; width: min(90%, 450px); padding: 26px; color: #222; background: var(--bg); }
dialog::backdrop { background: #102e2acf; }
.shop dialog h2 { font-size: 26px; letter-spacing: -.03em; }
dialog p { font-size: 15px; line-height: 1.65; }
dialog form { margin: 18px 0 8px; }
@media (max-width: 760px) {
  .site-header { gap: 8px; }
  .site-header .logo { width: clamp(105px, 37vw, 170px); }
  .site-header nav { gap: 0; }
  .site-header nav .pill { white-space: nowrap; }
  .hero { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 58px); }
  .gallery { height: clamp(330px, 109vw, 475px); }
  .intro, .close { padding-block: 60px; }
  .intro::before, .intro::after { display: none; }
  .story, .system, .shop { padding-block: 60px; }
  .story-photo, .story-photo img { height: clamp(320px, 96vw, 420px); }
  .pillar { min-height: auto; padding: 17px 13px; }
  .pillar svg { width: 70px; height: 56px; }
  .pillar h3 { margin-top: 12px; }
  .shop-images { height: clamp(270px, 84vw, 420px); }
  .value-custodi { padding: 24px 6% 55px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Catálogo, pie, privacidad y campaña navideña */
.hostinger-ecommerce-products .hip-card__image { border-radius: 22px; overflow: hidden; background: #f4ebe2; }
.hostinger-ecommerce-products .hip-card__image img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.hostinger-ecommerce-products .hip-card__btn.wp-element-button { border: 1px solid #fbc317; background: #fbc317; color: #222; border-radius: 999px; min-height: 44px; padding: .65rem 1.1rem; font-weight: 700; }
.hostinger-ecommerce-products .hip-card__btn.wp-element-button:hover:not(:disabled) { background: #e9af0c; border-color: #e9af0c; }
.hostinger-ecommerce-products .hip-card__btn.wp-element-button:disabled { opacity: 1; background: #f2e9d4; border-color: #dfd0a9; color: #665a40; cursor: not-allowed; }
.hostinger-ecommerce-categories .hostinger-ecommerce-categories__link { color: #164b4a; border-color: #087778; }
.hostinger-ecommerce-categories .hostinger-ecommerce-categories__link.is-current { color: #fff; background: #087778; border-color: #087778; }
.footer { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 1.5rem 2rem; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-content: center; gap: .5rem 1.35rem; }
.footer nav a, .footer nav button { color: #fff; display: inline-flex; align-items: center; min-height: 44px; white-space: normal; font: inherit; }
.footer nav button { border: 0; background: transparent; padding: 0; cursor: pointer; }
.footer nav button:hover { text-decoration: underline; }
.footer .site-copyright { grid-column: 1/-1; border-top: 1px solid #ffffff52; padding-top: 1rem; margin: 0; }
.footer .site-privacy { grid-column: 1/-1; font-size: .85rem; line-height: 1.55; }
.footer .site-privacy summary { cursor: pointer; width: fit-content; }
.footer .site-privacy a { color: #fff1ad; text-decoration: underline; }
.mento-snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.mento-snow span { position: absolute; top: -1.5rem; left: var(--x); color: #fff; text-shadow: 0 0 2px #476c72; opacity: var(--o); font-size: var(--s); animation: mento-snow-fall var(--t) linear var(--d) infinite; }
@keyframes mento-snow-fall { to { transform: translate3d(32px, calc(100vh + 3rem), 0) rotate(65deg); } }
.mento-cookie { position: fixed; z-index: 999; left: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(27rem, calc(100% - 2rem)); padding: 1rem 1.15rem; border-radius: 18px; border: 1px solid #d9e4df; background: #fffaf6; box-shadow: 0 8px 30px #164b4a29; color: #164b4a; }
.mento-cookie p { margin: .4rem 0 .7rem; font-size: .84rem; line-height: 1.5; }
.mento-cookie a { text-decoration: underline; }
.mento-cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mento-cookie button { min-height: 44px; border-radius: 999px; border: 1px solid #087778; padding: .45rem .8rem; cursor: pointer; background: #fffaf6; color: #164b4a; font-size: .82rem; font-weight: 700; }
.mento-cookie button[data-choice="allow"] { background: #fbc317; border-color: #fbc317; color: #222; }
@media (max-width: 760px) { .footer { grid-template-columns: minmax(0,1fr); gap: .7rem; } .footer nav { justify-content: flex-start; gap: .2rem 1rem; } .mento-snow span:nth-child(n+7) { display: none; } }
@media (prefers-reduced-motion: reduce) { .mento-snow { display: none; } }

.site-header nav a.site-cart-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 44px; min-height: 44px; color: #164b4a; }
@media (max-width: 760px) { .site-header nav a.site-cart-link { margin-inline-start: .35rem; } .site-header nav a.site-cart-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.hostinger-ecommerce-products a[href$="/custodi-nina/"] .hip-card__image img { object-fit: contain; }
