﻿/*
Theme Name: MegaChristmas
Theme URI: https://megachristmas.store
Author: MegaChristmas
Author URI: https://megachristmas.store
Description: Tema mínimo "Festivo moderno" para MegaChristmas. Sin page builders ni frameworks de CSS. El catálogo se alimenta del tipo de contenido "producto".
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: megachristmas
*/

/* ---------- Tokens ---------- */
:root {
	--accent: #c8102e; /* Se puede cambiar en Apariencia → Personalizar → Colores */
	--accent-dark: #a30d25;
	--cream: #fff4e4;
	--cream-soft: #ffe9d6;
	--ink: #1b1b1b;
	--green: #0f5b3a;
	--gold: #f2b632;
	--muted: #d9cfbf;
	--font-display: 'Bricolage Grotesque', 'Figtree', sans-serif;
	--font-body: 'Figtree', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h, 88px) + 8px); }
html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h, 88px) + 40px); }
body { margin: 0; font-family: var(--font-body); background: var(--cream); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site { max-width: 1440px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; background: var(--cream); overflow-x: clip; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.btn--green { height: 48px; padding: 0 24px; background: var(--green); color: var(--cream); font-size: 15px; }
.btn--cream { height: 56px; padding: 0 32px; background: var(--cream); color: var(--accent-dark); font-size: 16px; }
.btn--outline { height: 48px; padding: 0 24px; border: 3px solid var(--ink); font-size: 15px; }
.link-underline { font-size: 16px; font-weight: 700; color: var(--cream); border-bottom: 2px solid var(--cream); padding-bottom: 3px; }

/* ---------- Header ---------- */
/* El encabezado queda fijo arriba al hacer scroll y se compacta (clase .is-scrolled desde catalogo.js). */
/* Con la barra negra de WordPress (solo usuarios conectados) el encabezado se pega debajo de ella. */
body.admin-bar { --adminbar-h: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar-h: 46px; } }
@media (max-width: 600px) { body.admin-bar { --adminbar-h: 0px; } }
.site-header { position: sticky; top: var(--adminbar-h, 0px); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 0 40px; flex-shrink: 0; background: var(--cream); transition: min-height .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { min-height: 68px; box-shadow: 0 6px 18px rgba(27, 27, 27, 0.1); }
.site-header.is-scrolled .brand__logo { width: 56px; height: 56px; }
.brand { display: flex; align-items: center; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: var(--cream); font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.brand--logo { padding: 0; background: none; border-radius: 50%; }
.brand__logo { display: block; width: 80px; height: 80px; filter: drop-shadow(0 4px 10px rgba(27, 27, 27, 0.18)); transition: width .2s ease, height .2s ease; }
.main-nav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 16px; font-weight: 600; }

/* ---------- Hero ---------- */
/* "Inicio" (#inicio) lleva siempre al tope exacto de la página. */
#inicio { scroll-margin-top: 100vh; }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 640px; margin: 16px 40px 56px; padding: 0 72px; border-radius: 40px; background: var(--accent); overflow: hidden; flex-shrink: 0; }
.hero__dot { position: absolute; border-radius: 50%; background: rgba(255, 244, 228, 0.14); }
.hero__dot--a { left: -60px; bottom: -80px; width: 240px; height: 240px; }
.hero__dot--b { left: 520px; top: -70px; width: 150px; height: 150px; }
.hero__content { position: relative; max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
/* .hero__badge es el H1 de la página (se ve como etiqueta); .hero__title es la frase grande decorativa. */
.hero__badge { align-self: flex-start; margin: 0; padding: 8px 18px; border-radius: 999px; background: var(--cream); color: var(--accent-dark); font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.3; text-transform: uppercase; }
.hero__title { margin: 0; font-family: var(--font-display); font-size: 112px; font-weight: 800; letter-spacing: -0.03em; line-height: 0.95; color: var(--cream); }
.hero__text { margin: 0; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--cream-soft); }
.hero__actions { display: flex; align-items: center; gap: 20px; }
.hero__art { position: relative; width: 500px; height: 500px; flex-shrink: 0; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.hero__art svg { width: 270px; height: auto; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.hero__sticker { position: absolute; right: -10px; top: 20px; width: 132px; height: 132px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; transform: rotate(-12deg); font-family: var(--font-display); font-size: 17px; font-weight: 800; line-height: 1.1; }

/* ---------- Cinta de categorías ---------- */
.ticker { position: relative; z-index: 1; flex-shrink: 0; margin: 8px -24px; padding: 18px 0; overflow: hidden; transform: rotate(-1.5deg); background: var(--green); color: var(--cream); border-block: 4px solid var(--gold); box-shadow: 0 12px 0 rgba(27, 27, 27, 0.12); font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.ticker__track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none; }
.ticker__group li { display: flex; align-items: center; gap: 32px; padding-right: 32px; }
.ticker__group li:nth-child(even) { color: var(--gold); }
.ticker__star { flex-shrink: 0; color: var(--gold); }
.ticker__group li:nth-child(even) .ticker__star { color: var(--cream); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track { animation: none; }
}

/* ---------- Catálogo ---------- */
.catalog { display: flex; flex-direction: column; gap: 40px; padding: 88px 40px; flex-shrink: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 72px; }
.catalog__note { margin: 10px 0 0; font-size: 15px; opacity: .8; }
.catalog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog__empty { margin: 0; font-size: 19px; }
.catalog__filters { position: sticky; top: calc(var(--adminbar-h, 0px) + var(--header-h, 0px)); z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; margin-block: -12px; padding-block: 12px; background: var(--cream); }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 3px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 700 16px var(--font-body); cursor: pointer; }
.filter:hover { background: rgba(27, 27, 27, 0.06); }
.filter.is-active { background: var(--ink); color: var(--cream); }
.filter__count { font-size: 13px; opacity: .7; }
.catalog__group { display: flex; flex-direction: column; gap: 24px; }
.catalog__group[hidden] { display: none; }
.catalog__group-title { font-size: 44px; }

.product-card { position: relative; display: flex; flex-direction: column; border-radius: 32px; overflow: hidden; }
.product-card__badge { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); box-shadow: 0 4px 12px rgba(27, 27, 27, 0.25); font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.03em; line-height: 1.1; text-transform: uppercase; pointer-events: none; }
.product-card__badge svg { flex-shrink: 0; color: var(--accent); }
/* --card-bg / --card-fg: colores de fondo y texto de cada variante (el botón "Ver detalle" los invierte). */
.product-card--accent { --card-bg: var(--accent); --card-fg: var(--cream); background: var(--accent); color: var(--cream); }
.product-card--green { --card-bg: var(--green); --card-fg: var(--cream); background: var(--green); color: var(--cream); }
.product-card--gold { --card-bg: var(--gold); --card-fg: var(--ink); background: var(--gold); color: var(--ink); }
.product-card--outline { --card-bg: var(--cream); --card-fg: var(--ink); border: 3px solid var(--ink); color: var(--ink); }
.product-card__media { aspect-ratio: 2 / 3; background: rgba(27, 27, 27, 0.08); }
.product-card__media--wide { aspect-ratio: 4 / 3; }
.product-card__media--square { aspect-ratio: 1 / 1; }
/* Encuadre un poco hacia arriba para no cortar la estrella de los árboles. */
.product-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.product-card__zoom { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.product-card__zoom-icon { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(27, 27, 27, 0.7); color: var(--cream); display: flex; align-items: center; justify-content: center; }
.product-card__zoom:hover .product-card__zoom-icon, .product-card__zoom:focus-visible .product-card__zoom-icon { background: var(--ink); }

/* ---------- Foto ampliada ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(27, 27, 27, 0.88); }
.lightbox__img { display: block; width: auto; height: auto; max-width: min(94vw, 1200px); max-height: 88vh; border-radius: 20px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 30px; line-height: 1; cursor: pointer; }
.product-colors { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.product-colors__label { margin-right: 4px; font-size: 15px; }
.product-colors__swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.product-colors__note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; line-height: 1.4; opacity: .85; }
.product-card__colors { padding: 20px 28px 0; }
.swatch { width: 32px; height: 32px; padding: 0; border: 3px solid var(--cream); border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 2px rgba(27, 27, 27, 0.25); cursor: pointer; }
.swatch.is-active { box-shadow: 0 0 0 3px currentColor; }
.swatch:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.product-card__body { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px; min-width: 0; }
.product-card__ref { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: .8; }
.product-card__title { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; }
.product-card__desc { margin: 0; font-size: 15px; line-height: 1.5; }
.product-card__from { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.product-card__from span { font-size: 16px; }
.product-card__from strong { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.product-card__title a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.product-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.product-card__btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.product-card__btn svg { width: 20px; height: 20px; }
.product-card__btn--detail { background: var(--card-fg); color: var(--card-bg); }
.product-card__btn--wa { border: 2px solid currentColor; }

/* ---------- Página de detalle del producto ---------- */
.product-page { display: flex; flex-direction: column; gap: 32px; padding: 24px 40px 88px; flex-shrink: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: rgba(27, 27, 27, 0.7); }
.breadcrumb a:hover { opacity: 1; color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.product-detail__gallery { position: sticky; top: calc(var(--adminbar-h, 0px) + var(--header-h, 0px) + 16px); display: flex; flex-direction: column; gap: 12px; }
.product-detail__media { position: relative; display: block; width: 100%; max-height: 80vh; margin: 0; padding: 0; border: 0; border-radius: 32px; overflow: hidden; background: rgba(27, 27, 27, 0.06); cursor: zoom-in; }
.product-detail__img { width: 100%; height: 100%; object-fit: contain; }
.product-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.product-thumbs__item { width: 76px; height: 76px; padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden; background: none; cursor: pointer; }
.product-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs__item.is-active { border-color: var(--ink); }
.product-detail__info { display: flex; flex-direction: column; gap: 22px; }
.product-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill { padding: 6px 14px; border-radius: 999px; background: var(--green); color: var(--cream); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.pill--special { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--ink); }
.pill--special svg { color: var(--accent); }
.product-detail__ref { font-size: 14px; font-weight: 700; opacity: .7; }
.product-detail__title { font-size: 56px; }
.product-detail__from { margin: -8px 0 0; font-size: 18px; }
.product-detail__from strong { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent); }
.product-detail__desc { margin: 0; font-size: 18px; line-height: 1.6; }
.product-detail__content { font-size: 16px; line-height: 1.6; }
.product-detail__block { display: flex; flex-direction: column; gap: 12px; }
.product-detail__label { margin: 0; font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0; }
.size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.size-option { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 2px solid rgba(27, 27, 27, 0.2); border-radius: 18px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.size-option span { font-size: 15px; }
.size-option strong { font-size: 18px; }
.size-option:hover { border-color: var(--ink); }
.size-option.is-active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.size-guide { padding: 16px 16px 12px; border: 2px solid rgba(27, 27, 27, 0.12); border-radius: 22px; background: #fffaf2; }
.size-guide__scroll { overflow-x: auto; }
.size-guide__svg { display: block; width: 100%; height: auto; font-family: var(--font-body); }
.size-guide__grid { stroke: rgba(27, 27, 27, 0.12); stroke-width: 1; stroke-dasharray: 4 5; }
.size-guide__floor { stroke: var(--ink); stroke-width: 2; }
/* Tamaños en unidades del dibujo (se reduce ~30 % al mostrarse en la columna). */
.size-guide__axis { fill: rgba(27, 27, 27, 0.6); font-size: 17px; }
.size-guide__person { fill: rgba(27, 27, 27, 0.35); }
.size-guide__label { fill: var(--ink); font-size: 21px; font-weight: 700; }
.size-guide__label--muted { fill: rgba(27, 27, 27, 0.65); }
.size-guide__sub { fill: rgba(27, 27, 27, 0.6); font-size: 16px; }
.size-guide__tree { cursor: pointer; }
.size-guide__hit { fill: transparent; }
.size-guide__leaf { fill: var(--green); transition: fill .2s ease, opacity .2s ease; }
.size-guide__trunk { fill: #8a5a2b; }
.size-guide__marker { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; opacity: 0; transition: opacity .2s ease; }
.size-guide__tree:hover .size-guide__leaf { fill: #13744a; }
.size-guide.has-selection .size-guide__tree { opacity: .35; transition: opacity .2s ease; }
.size-guide.has-selection .size-guide__tree.is-active { opacity: 1; }
.size-guide__tree.is-active .size-guide__marker { opacity: 1; }
.size-guide__tree.is-active .size-guide__label { fill: var(--accent); }
.size-guide__caption { margin: 8px 0 0; font-size: 13px; opacity: .7; }
.product-detail__price { margin: 0; font-size: 18px; }
.product-detail__price strong { margin-left: 6px; font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--accent); }
.product-detail__colors .product-colors__label { font-weight: 700; font-size: 16px; }
.btn-wa { display: flex; align-items: center; justify-content: center; gap: 12px; height: 62px; padding: 0 32px; border-radius: 999px; background: #25d366; color: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { opacity: 1; filter: brightness(1.05); }
.btn-wa svg { width: 26px; height: 26px; }
.product-detail__tax { margin: -6px 0 0; font-size: 15px; }
.product-detail__hint { margin: -10px 0 0; font-size: 14px; line-height: 1.5; opacity: .75; }
.product-detail__perks { display: grid; gap: 10px; margin: 0; padding: 20px 0 0; border-top: 2px dashed rgba(27, 27, 27, 0.15); list-style: none; font-size: 15px; }
.product-detail__perks li::before { content: "★"; margin-right: 10px; color: var(--gold); }
.product-detail__perks a { text-decoration: underline; text-underline-offset: 3px; }
.link-back { align-self: flex-start; padding-bottom: 2px; border-bottom: 2px solid; font-weight: 700; }
.related { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.related h2 { font-size: 44px; }

/* ---------- Nosotros ---------- */
/* ---------- Preguntas frecuentes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; padding: 24px 40px 72px; flex-shrink: 0; }
.faq__intro h2 { margin-bottom: 20px; font-size: 48px; }
.faq__intro p { margin: 0 0 14px; font-size: 18px; line-height: 1.6; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 3px solid var(--ink); border-radius: 22px; background: #fffaf2; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex-shrink: 0; font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; }

.about { display: flex; align-items: center; gap: 64px; padding: 40px 40px 88px; flex-shrink: 0; }
.about h2 { width: 640px; flex-shrink: 0; font-size: 64px; }
.about__box { display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 3px solid var(--ink); border-radius: 32px; }
.about__box p { margin: 0; font-size: 19px; line-height: 1.6; }
.about__box .about__quote { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.about__tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { padding: 10px 18px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.tag--green { background: var(--green); color: var(--cream); }
.tag--gold { background: var(--gold); }
.tag--accent { background: var(--accent); color: var(--cream); }

/* ---------- Contacto / footer ---------- */
.site-footer { flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 72px 40px 40px; background: var(--ink); color: var(--cream); }
.site-footer__main { display: flex; flex-direction: column; gap: 40px; }
.site-footer h2 { font-size: 100px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.contact-item { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--gold); padding-top: 14px; }
.contact-item__label { font-size: 14px; color: var(--muted); }
.contact-item__value { font-size: 18px; font-weight: 700; }
.social { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.social__label { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.social__list { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.social__link { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--ink); transition: background .2s ease, transform .2s ease; }
.social__link:hover, .social__link:focus-visible { opacity: 1; background: var(--gold); transform: translateY(-3px); }
.social__link svg { width: 26px; height: 26px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 244, 228, 0.15); }
.site-footer__copy { font-size: 14px; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.site-footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal a:hover { opacity: 1; color: var(--cream); }

/* ---------- Páginas de texto (privacidad, términos) ---------- */
.page-text { display: flex; flex-direction: column; gap: 24px; padding: 24px 40px 88px; flex-shrink: 0; }
.page-text__article { width: 100%; max-width: 820px; margin: 0 auto; padding: 48px 56px; border: 3px solid var(--ink); border-radius: 32px; background: #fffaf2; }
.page-text__title { margin-bottom: 28px; font-size: 52px; }
.page-text__content { font-size: 17px; line-height: 1.7; }
.page-text__content h2 { margin: 36px 0 12px; font-size: 26px; letter-spacing: -0.01em; }
.page-text__content p { margin: 0 0 14px; }
.page-text__content ul { margin: 0 0 14px; padding-left: 22px; }
.page-text__content li { margin-bottom: 6px; }
.page-text__content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.page-text__lead { font-size: 19px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 50; width: 62px; height: 62px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(27, 27, 27, 0.28); transition: transform .2s ease; }
.wa-float:hover { opacity: 1; transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float__label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.wa-float, .wa-float__label, .social__link, .site-header, .brand__logo { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.hero { flex-direction: column; justify-content: center; padding: 56px 40px; }
	.hero__art { width: 400px; height: 400px; }
	.hero__art svg { width: 216px; }
	.catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about { flex-direction: column; align-items: stretch; gap: 32px; }
	.faq { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.about h2 { width: auto; }
}
@media (max-width: 900px) {
	/* En celular, logo y menú en una sola fila para que el encabezado fijo ocupe poco. */
	.site-header { gap: 12px; min-height: 72px; padding: 8px 16px; }
	.site-header.is-scrolled { min-height: 60px; }
	.brand__logo { width: 52px; height: 52px; }
	.site-header.is-scrolled .brand__logo { width: 44px; height: 44px; }
	.main-nav ul { gap: 16px; font-size: 14px; }
	.hero { margin: 8px 16px 40px; padding: 48px 24px; border-radius: 28px; }
	.hero__title { font-size: 64px; }
	.hero__text { font-size: 18px; }
	.hero__art { width: 300px; height: 300px; }
	.hero__art svg { width: 160px; }
	.hero__sticker { width: 104px; height: 104px; font-size: 14px; }
	.ticker { margin: 0 -12px; padding: 12px 0; font-size: 20px; }
	.ticker__group li { gap: 20px; padding-right: 20px; }
	.ticker__star { width: 16px; height: 16px; }
	.catalog { padding: 56px 16px; }
	.section-head h2 { font-size: 48px; }
	.page-text { padding: 16px 16px 56px; }
	.page-text__article { padding: 28px 22px; border-radius: 24px; }
	.page-text__title { font-size: 34px; }
	.page-text__content { font-size: 16px; }
	.page-text__content h2 { font-size: 22px; }
	.catalog__group-title { font-size: 32px; }
	.filter { height: 42px; padding: 0 16px; font-size: 15px; }
	.product-card__body { padding: 22px; }
	.product-card__title { font-size: 26px; }
	.product-card__colors { padding: 18px 22px 0; }
	.product-page { padding: 16px 16px 56px; gap: 24px; }
	.product-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.product-detail__gallery { position: static; }
	.product-detail__media { border-radius: 24px; }
	.product-detail__title { font-size: 38px; }
	.related h2 { font-size: 32px; }
	.about { padding: 24px 16px 56px; }
	.faq { padding: 8px 16px 48px; }
	.faq__intro h2 { font-size: 34px; }
	.faq__item summary { padding: 16px 18px; font-size: 16px; }
	.faq__item p { padding: 0 18px 18px; }
	.about h2 { font-size: 44px; }
	.about__box { padding: 28px; }
	.site-footer { padding: 56px 16px 32px; }
	.site-footer h2 { font-size: 64px; }
	.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
	.main-nav ul { gap: 11px; font-size: 13px; }
}
@media (max-width: 600px) {
	.catalog__grid { grid-template-columns: minmax(0, 1fr); }
	.contact-grid { grid-template-columns: minmax(0, 1fr); }
}
