/* Shared typography and global components for every public page. */
/* Inicio solo utiliza el scroll del documento; evita una segunda barra en body. */
body.home-page {
  overflow-x:clip;
  overflow-y:visible;
}

body.home-page.locked {
  overflow:hidden;
}

html.is-scroll-locked {
  overflow:hidden!important;
  overscroll-behavior:none;
}

:is(h1,h2,h3,h4),
:is(h1,h2,h3,h4) em,
:is(h1,h2,h3,h4) strong,
.newsletter-copy h2,
.journal-signoff blockquote {
  font-family:var(--font-display,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif)!important;
}

:is(h1,h2,h3,h4) em {
  font-style:normal;
  font-weight:inherit;
}

.newsletter-section {
  content-visibility:auto;
  contain-intrinsic-size:360px;
}
.language-switcher--standalone {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 18px auto 0;
}

/* El mismo selector de idioma de Inicio en todas las cabeceras. */
.language-switcher {
  display:inline-flex;
  align-items:center;
  gap:3px;
  flex:none;
  padding:3px;
  border:1px solid rgba(49,95,34,.16);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  box-shadow:0 5px 16px rgba(24,32,24,.06);
}

.language-switcher button {
  min-width:38px;
  min-height:32px;
  padding:0 9px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#596454;
  font-family:var(--font-display,"Segoe UI",system-ui,sans-serif);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  transition:color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.language-switcher button:hover { color:#315f22; transform:translateY(-1px); }
.language-switcher button.is-active {
  color:#17230f;
  background:#86bf22;
  box-shadow:0 4px 10px rgba(49,95,34,.16);
}

/* El botón conserva su tamaño; el símbolo de WhatsApp mide 50 x 50 px. */
.whatsapp-float svg {
  display:block;
  flex:none;
  width:50px!important;
  height:50px!important;
}

/* Iconos oficiales para la versión clásica de Nuestras tiendas. */
.store-social-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:18px 0 4px;
}

.store-social-link {
  isolation:isolate;
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  height:48px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.38);
  border-radius:50%;
  color:#fff;
  box-shadow:0 8px 20px rgba(21,35,26,.18);
  transition:transform .28s cubic-bezier(.2,.9,.25,1.35),box-shadow .28s ease,filter .28s ease;
}

.store-social-link::after {
  content:"";
  position:absolute;
  inset:-35% auto -35% -65%;
  z-index:-1;
  width:44%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.55),transparent);
  transform:skewX(-18deg);
  transition:transform .55s ease;
}

.store-social-link:hover,
.store-social-link:focus-visible {
  outline:none;
  filter:saturate(1.08);
  transform:translateY(-4px) scale(1.06);
  box-shadow:0 13px 27px rgba(21,35,26,.27);
}

.store-social-link:hover::after,
.store-social-link:focus-visible::after { transform:translateX(390%) skewX(-18deg); }
.store-social-link svg { display:block; width:25px; height:25px; fill:currentColor; }
.store-social-link img { display:block; width:31px; height:31px; object-fit:contain; filter:brightness(0) invert(1); }
.store-social-link-instagram { background:radial-gradient(circle at 30% 107%,#fdf497 0 5%,#fd5949 43%,#d6249f 62%,#285aeb 100%); }
.store-social-link-tiktok { background:#111; box-shadow:2px 0 0 #fe2c55,-2px 0 0 #25f4ee,0 8px 20px rgba(21,35,26,.18); }
.store-social-link-wallapop { background:#13c1ac; }

/* Los nombres de las redes se muestran siempre en negro y sin subrayado. */
.store-network,
.store-network:hover,
.store-network:focus,
.store-network:focus-visible,
.store-network:visited {
  text-decoration:none!important;
}

.store-network .store-network-label,
.store-network:hover .store-network-label,
.store-network:focus .store-network-label,
.store-network:focus-visible .store-network-label,
.store-network:visited .store-network-label {
  color:#111!important;
  text-decoration:none!important;
}

/* Escaparates de Wallapop destacados en la portada. */
.home-marketplaces {
  color:#111;
  background:#fff;
  border-bottom:1px solid #d8e4d0;
  padding:clamp(48px,6vw,78px) 0;
}

.home-marketplaces-header {
  max-width:790px;
  margin-bottom:30px;
}

.home-marketplaces-header h2 {
  color:#111;
  margin:9px 0 13px;
}

.home-marketplaces-header p {
  color:#596454;
  max-width:680px;
  margin:0;
}

.home-wallapop-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.home-wallapop-link,
.home-wallapop-link:hover,
.home-wallapop-link:focus,
.home-wallapop-link:focus-visible,
.home-wallapop-link:visited {
  color:#111!important;
  text-decoration:none!important;
}

.home-wallapop-link {
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  min-height:98px;
  padding:17px;
  background:#f7faf4;
  border:1px solid #d8e4d0;
  border-radius:8px;
  box-shadow:0 7px 20px rgba(24,32,24,.07);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.home-wallapop-link:hover,
.home-wallapop-link:focus-visible {
  border-color:#13c1ac;
  box-shadow:0 12px 28px rgba(19,193,172,.15);
  transform:translateY(-3px);
}

.home-wallapop-icon {
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  background:#e3faf7;
  border-radius:50%;
}

.home-wallapop-icon img {
  width:36px;
  height:36px;
  object-fit:contain;
}

.home-wallapop-link strong,
.home-wallapop-link small {
  color:#111;
  text-decoration:none;
  display:block;
}

.home-wallapop-link strong { font-size:16px; line-height:1.2; }
.home-wallapop-link small { color:#596454; margin-top:5px; font-size:12px; }
.home-wallapop-link > b { color:#13a997; font-size:18px; }

@media (max-width:900px) {
  .home-wallapop-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:560px) {
  .home-marketplaces { padding:42px 0; }
  .home-marketplaces-header { margin-bottom:22px; }
  .home-wallapop-grid { grid-template-columns:1fr; }
  .home-wallapop-link { min-height:88px; }
}

@media (max-width:760px) {
  .nav-links .language-switcher { width:100%; justify-content:stretch; }
  .nav-links .language-switcher button { flex:1; }
}

@media (prefers-reduced-motion:reduce) {
  .store-social-link,
  .store-social-link::after { transition:none; }
  .store-social-link:hover,
  .store-social-link:focus-visible { transform:none; }
}

/* Global motion language: entrances, depth, feedback and page changes. */
.scroll-progress {
  position:fixed;
  z-index:1000;
  inset:0 0 auto;
  height:3px;
  pointer-events:none;
}

.scroll-progress span {
  display:block;
  width:100%;
  height:100%;
  background:linear-gradient(90deg,#86bf22,#dff4aa 50%,#315f22);
  box-shadow:0 0 16px rgba(134,191,34,.62);
  transform:scaleX(var(--scroll-progress,0));
  transform-origin:left;
  will-change:transform;
}

.main-nav {
  transition:background .35s ease,box-shadow .35s ease,border-color .35s ease,transform .35s cubic-bezier(.16,1,.3,1)!important;
}

.main-nav.is-scrolled {
  background:rgba(255,255,255,.93)!important;
  border-color:rgba(49,95,34,.14)!important;
  box-shadow:0 12px 38px rgba(23,63,42,.12)!important;
}

.brand img { transition:transform .55s cubic-bezier(.16,1,.3,1),filter .35s ease; }
.brand:hover img { filter:drop-shadow(0 8px 10px rgba(49,95,34,.18)); transform:rotate(-3deg) scale(1.06); }

.nav-links a { position:relative; overflow:hidden; }
.nav-links a::after {
  content:"";
  position:absolute;
  right:12px;
  bottom:5px;
  left:12px;
  height:2px;
  border-radius:999px;
  background:#86bf22;
  transform:scaleX(0);
  transform-origin:right;
  transition:transform .35s cubic-bezier(.16,1,.3,1);
}
.nav-links a::after { display:none; }
.nav-links a,.nav-links a:hover,.nav-links a.is-active { text-decoration:none!important; }

.menu-toggle span { transition:transform .35s cubic-bezier(.16,1,.3,1),opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; transform:scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

.btn,
button,
.product-contact-link,
.home-wallapop-link {
  isolation:isolate;
  position:relative;
  overflow:hidden;
}

.btn::after,
.product-contact-link::after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-80% auto -80% -42%;
  width:28%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent);
  transform:skewX(-18deg);
  transition:transform .7s cubic-bezier(.16,1,.3,1);
}
.btn:hover::after,.product-contact-link:hover::after { transform:translateX(600%) skewX(-18deg); }

.motion-ripple {
  position:absolute;
  z-index:4;
  width:12px;
  height:12px;
  pointer-events:none;
  border-radius:50%;
  background:rgba(255,255,255,.6);
  transform:translate(-50%,-50%) scale(0);
  animation:motionRipple .65s ease-out forwards;
}

.cursor-aura {
  position:fixed;
  z-index:999;
  top:0;
  left:0;
  width:320px;
  height:320px;
  pointer-events:none;
  opacity:0;
  border-radius:50%;
  background:radial-gradient(circle,rgba(134,191,34,.105),rgba(134,191,34,.025) 42%,transparent 70%);
  transform:translate3d(calc(var(--cursor-x,0px) - 50%),calc(var(--cursor-y,0px) - 50%),0);
  transition:opacity .35s ease;
  will-change:transform;
  mix-blend-mode:multiply;
}
.cursor-aura.is-active { opacity:1; }
.cursor-aura { display:none!important; }

.catalog-price-note {
  margin:-18px 0 30px;
  border:1px solid #d5e2ce;
  border-left:3px solid #86bf22;
  border-radius:6px;
  background:#f6f9f3;
  box-shadow:none;
  color:#40503c;
  padding:12px 15px;
  font-size:15px;
  line-height:1.45;
  text-align:left;
}
.catalog-price-note strong { display:block; margin-bottom:2px; color:#244b2c; font-size:1em; text-transform:none; letter-spacing:0; }
.image-lightbox-nav { width:auto!important; min-width:88px; padding:0 12px!important; font-size:13px!important; }

.product-rich-text p:first-child { margin-top:0; }
.product-rich-text p:last-child { margin-bottom:0; }
.product-rich-text ul,.product-rich-text ol { padding-left:1.4em; }
.product-delivery-notice { border:2px solid #315f22; background:#edf6e7; color:#173f2a; border-radius:8px; padding:16px 18px; }
.product-delivery-notice strong { display:block; margin-bottom:6px; }
.product-card,.product-card:hover,.product-card:focus-visible,.product-card:focus-within { transform:none!important; transition:none!important; }
.product-card .product-image,.product-card:hover .product-image { transform:none!important; transition:none!important; }
.product-card::before,.product-card::after { display:none!important; animation:none!important; transition:none!important; }
#catalogGrid .catalog-location-group,
#catalogGrid .catalog-location-group.reveal,
#catalogGrid .catalog-location-group.reveal.is-visible,
#catalogGrid .product-card {
  content-visibility:visible!important;
  opacity:1!important;
  filter:none!important;
  transform:none!important;
  animation:none!important;
  transition:none!important;
}

@media (prefers-reduced-motion:no-preference) {
  .motion-enabled main { animation:motionPageIn .8s cubic-bezier(.16,1,.3,1) both; }

  .motion-enabled .hero { isolation:isolate; }
  .motion-enabled .hero-content { transform:translate3d(var(--hero-x,0),var(--hero-y,0),0); transition:transform .35s ease-out; }
  .motion-enabled .hero-content h1,
  .motion-enabled .hero-content > p,
  .motion-enabled .hero-content .hero-actions {
    opacity:0;
    animation:motionHeroRise .9s cubic-bezier(.16,1,.3,1) forwards!important;
  }
  .motion-enabled .hero-content h1 { animation-delay:.08s!important; }
  .motion-enabled .hero-content > p { animation-delay:.23s!important; }
  .motion-enabled .hero-content .hero-actions { animation-delay:.38s!important; }

  .motion-enabled .hero-content h1 {
    clip-path:inset(0 0 100% 0);
    animation-name:motionHeroTitle!important;
    animation-duration:1.05s!important;
  }

  .motion-enabled .reveal {
    opacity:0;
    transform:translate3d(0,42px,0) scale(.985);
    transition:opacity .78s ease,transform .92s cubic-bezier(.16,1,.3,1)!important;
    transition-delay:calc(var(--reveal-index,0) * 65ms)!important;
    will-change:opacity,transform;
  }
  .motion-enabled .reveal[data-reveal-direction="left"] { transform:translate3d(-30px,28px,0) scale(.985); }
  .motion-enabled .reveal[data-reveal-direction="right"] { transform:translate3d(30px,28px,0) scale(.985); }
  .motion-enabled .reveal.is-visible,
  .motion-enabled .reveal.is-visible[data-reveal-direction] { opacity:1; transform:translate3d(0,0,0) scale(1); }

  .motion-enabled img[data-motion-ready="true"] {
    transform:translate3d(0,var(--motion-y,0),0) scale(1.075);
    will-change:transform;
    transition:transform .15s linear;
  }

  .motion-enabled .product-card,
  .motion-enabled .home-feature-card,
  .motion-enabled .store-card,
  .motion-enabled .blog-card,
  .motion-enabled .home-wallapop-link,
  .motion-enabled .seo-card,
  .motion-enabled .store-network { position:relative; overflow:hidden; }

  .motion-enabled :is(.product-card,.home-feature-card,.store-card,.blog-card,.home-wallapop-link,.seo-card,.store-network)::before {
    content:"";
    display:block;
    position:absolute;
    z-index:3;
    inset:0;
    opacity:0;
    pointer-events:none;
    background:radial-gradient(260px circle at var(--pointer-x,50%) var(--pointer-y,50%),rgba(255,255,255,.38),transparent 64%);
    transition:opacity .3s ease;
  }
  .motion-enabled :is(.product-card,.home-feature-card,.store-card,.blog-card,.home-wallapop-link,.seo-card,.store-network):hover::before { opacity:1; }

  .motion-enabled :is(.product-card,.home-feature-card,.store-card,.blog-card,.home-wallapop-link,.seo-card,.store-network) {
    transform-style:preserve-3d;
    transition:transform .42s cubic-bezier(.16,1,.3,1),box-shadow .42s ease,border-color .3s ease!important;
  }

  .motion-enabled .product-card,
  .motion-enabled .product-card:hover,
  .motion-enabled .product-card.is-visible:hover,
  .motion-enabled .product-card:not(.reveal):hover {
    transition:none!important;
    transform:none!important;
    box-shadow:0 5px 18px rgba(23,63,42,.07)!important;
  }

  .motion-enabled :is(.product-card,.home-feature-card,.store-card,.blog-card,.home-wallapop-link,.seo-card,.store-network).is-visible:hover,
  .motion-enabled :is(.product-card,.home-feature-card,.store-card,.blog-card,.home-wallapop-link,.seo-card,.store-network):not(.reveal):hover {
    transform:perspective(950px) translateY(-7px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
    box-shadow:0 24px 54px rgba(23,63,42,.2);
  }

  .motion-enabled .section-header.is-visible h2,
  .motion-enabled .editorial-heading.is-visible h2 {
    animation:motionHeadingReveal .9s cubic-bezier(.16,1,.3,1) both;
  }

  .motion-enabled .product-detail-visual.has-image .product-image,
  .motion-enabled .gallery-thumb img {
    transition:transform .65s cubic-bezier(.16,1,.3,1),filter .45s ease;
  }

  .motion-enabled .product-detail-visual.has-image:hover .product-image,
  .motion-enabled .gallery-thumb:hover img {
    transform:scale(1.045);
    filter:saturate(1.07) contrast(1.03);
  }

  .motion-enabled .impact-item.is-visible > strong,
  .motion-enabled .process-step.is-visible .step-number { animation:motionNumberPop .75s cubic-bezier(.2,1.7,.4,1) both; }

  .motion-enabled details[open] > :not(summary) { animation:motionDetails .42s cubic-bezier(.16,1,.3,1) both; }
  .motion-enabled input:focus,.motion-enabled textarea:focus,.motion-enabled select:focus { transition:box-shadow .25s ease,border-color .25s ease,transform .25s ease; transform:translateY(-1px); }
}

@keyframes motionPageIn { from{opacity:0;transform:scale(.992);filter:blur(5px)} to{opacity:1;transform:none;filter:blur(0)} }
@keyframes motionHeroRise { from{opacity:0;transform:translate3d(0,34px,0);filter:blur(6px)} to{opacity:1;transform:none;filter:blur(0)} }
@keyframes motionHeroTitle { from{opacity:0;clip-path:inset(0 0 100% 0);transform:translate3d(0,48px,0);filter:blur(8px)} to{opacity:1;clip-path:inset(0);transform:none;filter:blur(0)} }
@keyframes motionHeadingReveal { from{opacity:0;letter-spacing:.025em;transform:translateY(24px);filter:blur(5px)} to{opacity:1;letter-spacing:inherit;transform:none;filter:blur(0)} }
@keyframes motionNumberPop { from{opacity:0;transform:scale(.55) rotate(-7deg)} to{opacity:1;transform:scale(1) rotate(0)} }
@keyframes motionDetails { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
@keyframes motionRipple { to{opacity:0;transform:translate(-50%,-50%) scale(18)} }

@media (max-width:760px) and (prefers-reduced-motion:no-preference) {
  .motion-enabled .reveal,
  .motion-enabled .reveal[data-reveal-direction] { transform:translate3d(0,25px,0) scale(.99); }
  .motion-enabled .reveal.is-visible,
  .motion-enabled .reveal.is-visible[data-reveal-direction] { transform:none; }
  .motion-enabled img[data-motion-ready="true"] { transform:scale(1.025); transition:transform .5s ease; }
  .cursor-aura { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  .scroll-progress,.cursor-aura { display:none!important; }
  .reveal,.reveal.is-visible { opacity:1!important; transform:none!important; filter:none!important; }
  img[data-motion-ready="true"],.hero-content { transform:none!important; }
  .motion-ripple { display:none; }
}

/* Aviso de cookies: regla final compartida por todas las plantillas.
   Evita que hojas antiguas o especificas de pagina colapsen el texto. */
.cookie-banner {
  position:fixed;
  z-index:2147483647!important;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:24px;
  color:#fff;
  background:#102f21;
  isolation:isolate;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

.cookie-banner .cookie-copy {
  position:relative;
  z-index:3;
  display:grid!important;
  grid-template-columns:42px minmax(0,1fr);
  align-items:start;
  gap:15px;
  width:100%;
  min-width:0;
  opacity:1!important;
  visibility:visible!important;
}

.cookie-banner .cookie-copy > div {
  display:block!important;
  min-width:0;
  opacity:1!important;
  visibility:visible!important;
}

.cookie-banner #cookieBannerTitle {
  display:block!important;
  margin:0;
  color:#fff!important;
  font-size:17px;
  line-height:1.3;
  opacity:1!important;
  visibility:visible!important;
}

.cookie-banner .cookie-copy p {
  display:block!important;
  max-width:690px;
  margin:5px 0 0;
  color:rgba(255,255,255,.92)!important;
  font-size:14px;
  line-height:1.5;
  overflow-wrap:anywhere;
  opacity:1!important;
  visibility:visible!important;
}

.cookie-banner .cookie-policy-link {
  display:inline-block!important;
  margin-top:7px;
  color:#d7e9b2!important;
  font-size:13px;
  line-height:1.4;
  text-decoration:underline;
  text-underline-offset:3px;
  opacity:1!important;
  visibility:visible!important;
}

.cookie-banner .cookie-actions {
  position:relative;
  z-index:3;
  display:flex;
  flex:0 0 auto;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

@media (max-width:760px) {
  .cookie-banner {
    grid-template-columns:1fr;
    align-items:start;
    gap:16px;
    max-height:calc(100dvh - 24px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }

  .cookie-banner .cookie-actions {
    display:grid;
    grid-template-columns:1fr;
    width:100%;
  }
}

@media (max-width:420px) {
  .cookie-banner .cookie-copy {
    grid-template-columns:1fr;
    gap:10px;
  }
}

.footer-web-design {
  display:inline-flex;
  align-items:center;
  gap:12px;
  width:fit-content;
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
}

.footer-web-design img {
  display:block;
  width:132px;
  height:32px;
  box-sizing:content-box;
  padding:7px 11px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:7px;
  background:#fff;
  object-fit:contain;
  box-shadow:0 5px 16px rgba(0,0,0,.2);
  transition:transform .18s ease, box-shadow .18s ease;
}

.footer-web-design:hover,
.footer-web-design:focus-visible {
  color:#fff;
}

.footer-web-design:hover img,
.footer-web-design:focus-visible img {
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.28);
}

@media (max-width:420px) {
  .footer-web-design {
    align-items:flex-start;
    flex-direction:column;
  }
}
