/* Navidad de Plaza PN: rojo, marfil y oro. Solo se carga con el tema activo.
   El fondo, encuadre y colores configurados del hero se conservan. */
html[data-plaza-theme="navidad"] {
    --pn-banner-h: 0px;
    --pn-accent: #ba1635;
    --pn-card-accent: #ba1635;
    --pn-card-border: #e1c9af;
    --pn-card-tint: #fffcf7;
    --christmas-red: #b71937;
    --christmas-ink: #76182c;
    --christmas-gold: #b18c3f;
    --season-pine: #174c3c;
    --season-red: #a51f38;
    --season-gold: #d6ad4b;
    --season-cream: #fff8e8;
    --season-light: #ffd878;
    background-color: #fff8f3 !important;
}

/* Componente único de temporada compartido por la carcasa pública y el panel. */
html[data-plaza-theme="navidad"] .pn-seasonal-trim {
    position: relative;
    z-index: 2;
    display: block;
    height: 36px;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    background: transparent url('./garland.webp') repeat-x center center / auto 36px;
    border-bottom: 2px solid var(--season-red);
}
html[data-plaza-theme="navidad"] .pn-seasonal-trim__lights {
    display: none;
}
html[data-plaza-theme="navidad"] .pn-seasonal-trim__bow {
    position: absolute;
    left: 50%;
    top: -5px;
    width: 26px;
    height: 20px;
    transform: translateX(-50%);
    border-radius: 70% 15% 70% 15%;
    display: none;
}
html[data-plaza-theme="navidad"] .pn-global-header {
    background: color-mix(in srgb, var(--season-cream) 96%, transparent) !important;
    border-color: #d8ba73 !important;
}
html[data-plaza-theme="navidad"] .pn-install-plaza {
    border-color: #d8ba73;
    background: linear-gradient(135deg, #fff9e9, #f8ead0);
}
html[data-plaza-theme="navidad"] .pn-today-bar { background: #fffaf0; }
html[data-plaza-theme="navidad"] .pn-admin-seasonal {
    border-bottom-color: #d8ba73 !important;
    background: #fffaf0 !important;
}
@media (max-width: 767px) {
    .pn-global-header.is-compact .pn-today-bar,
    .pn-global-header.is-compact .pn-seasonal-trim { display: none; }
    .pn-global-header.is-compact > div:first-child { min-height: 52px; }
}
html[data-plaza-theme="navidad"] body { background-color: #fff8f3 !important; }
html[data-plaza-theme="navidad"] :is(#plaza-theme-banner, #plaza-theme-fx) { display: none !important; }

/* La navegación conserva el águila y los enlaces reales. */
html[data-plaza-theme="navidad"] header {
    border-bottom: 1px solid #d4b77a;
    background: #fffaf2 !important;
    color: #76182c !important;
}
html[data-plaza-theme="navidad"] header :is(nav a, summary, strong, .landing-header-action) { color: #76182c !important; }
html[data-plaza-theme="navidad"] .landing-home-header {
    border: 1px solid #d4b77a !important;
    border-top: 4px solid #b71937 !important;
    box-shadow: 0 8px 24px #76182c18 !important;
}
html[data-plaza-theme="navidad"] .landing-home-header .landing-nav-link.is-current {
    background: #9d1933 !important; color: #fffaf2 !important;
}
html[data-plaza-theme="navidad"] .landing-hero-heading { font-family: Georgia, 'Times New Roman', serif; }
html[data-plaza-theme="navidad"] #pn-weather { background: #7e182de8; border: 1px solid #d4b77a; }
/* Algunos logos de subpágina se invertían para el antiguo header azul. */
html[data-plaza-theme="navidad"] header img { filter: none; }

/* Accesos = esferas con casquillo, hilo y reflejo; siguen siendo enlaces. */
html[data-plaza-theme="navidad"] [data-landing-module="quick_links"] {
    border: 1px solid #cfb47a !important;
    border-radius: 14px !important;
    background: #fffaf0 !important;
    box-shadow: 0 12px 25px #76182c13 !important;
}
html[data-plaza-theme="navidad"] .landing-quick-links { padding-top: 37px !important; }
html[data-plaza-theme="navidad"] .landing-quick-link { overflow: visible; }
html[data-plaza-theme="navidad"] .landing-quick-link-icon {
    position: relative;
    width: 54px; height: 54px;
    color: #fff9e8 !important;
    background: radial-gradient(circle at 28% 22%, #ffb8bd, #e73550 27%, #b7092e 65%, #79091f) !important;
    border: 1px solid #eb8794;
    border-radius: 50%;
    box-shadow: inset -4px -5px 8px #68071e55, 0 4px 8px #76182c22 !important;
    transition: transform .2s ease;
}
html[data-plaza-theme="navidad"] .landing-quick-link:nth-child(even) .landing-quick-link-icon {
    background: radial-gradient(circle at 28% 22%, #fff8da, #dfb44f 35%, #a77922 75%, #775011) !important;
    border-color: #e8c978;
}
html[data-plaza-theme="navidad"] .landing-quick-link-icon::before {
    content: ''; position: absolute; width: 13px; height: 8px;
    left: calc(50% - 6.5px); top: -8px; border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, #9e782c, #ffe6a1, #9e782c);
}
html[data-plaza-theme="navidad"] .landing-quick-link-icon::after {
    content: ''; position: absolute; width: 1px; height: 23px;
    left: 50%; top: -31px; background: #b4954c;
}
html[data-plaza-theme="navidad"] .landing-quick-link:hover .landing-quick-link-icon { transform: translateY(-3px); }

/* Superficies y jerarquía de Home y subpáginas, sin alterar sus formularios. */
html[data-plaza-theme="navidad"] :is(.pn-card, .pn-themed-card, .landing-event-card) {
    border-color: #dfcdb5; background-color: #fffcf7; border-radius: 12px;
}
html[data-plaza-theme="navidad"] #landing-module-layout .landing-section-card:not([data-landing-module="join"]) {
    border: 1px solid #dfcdb5 !important;
    border-top: 4px solid #b71937 !important;
    border-radius: 12px !important;
    background: #fffcf7 !important;
    box-shadow: 0 8px 24px #76182c0b !important;
}
html[data-plaza-theme="navidad"] .pn-section-header {
    padding-bottom: 16px; border-bottom: 1px solid #dcc18b; margin-bottom: 20px;
}
html[data-plaza-theme="navidad"] .pn-section-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.2;
    font-weight: 600; color: #76182c !important;
}
html[data-plaza-theme="navidad"] .pn-section-icon {
    background: #a81b35 !important; color: #fff0bd !important;
    border: 1px solid #c09c52; border-radius: 9px;
    box-shadow: 3px 3px 0 #e9d9b5;
}
html[data-plaza-theme="navidad"] .pn-section-header > a { color: #962139; font-size: .8rem; }
html[data-plaza-theme="navidad"] .landing-business-card {
    border-color: #dfcdb5 !important; border-radius: 9px !important;
    background: #fffefb !important; box-shadow: 0 4px 10px #76182c09 !important;
}
html[data-plaza-theme="navidad"] .landing-business-card > div:first-child { height: 170px; border-bottom: 1px solid #e9deca; }
html[data-plaza-theme="navidad"] .landing-business-card > div:last-child { padding: 14px; }
html[data-plaza-theme="navidad"] [role="tablist"] { background: #f1e6d2; }
html[data-plaza-theme="navidad"] [role="tab"][aria-selected="true"] { background: #a81b35 !important; color: #fff !important; }
html[data-plaza-theme="navidad"] [data-placita-composer] { background: #f9efdf; border-color: #dfcdb5; }
html[data-plaza-theme="navidad"] [data-placita-post] { border-left: 3px solid #bd974b; background: #fffefb; }
html[data-plaza-theme="navidad"] [data-placita-post] p.whitespace-pre-line { line-height: 1.75; }
html[data-plaza-theme="navidad"] main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="color"]):not([type="range"]), textarea, select) { border-color: #d9c5a0; }
html[data-plaza-theme="navidad"] main :is(button.bg-brand-700, a.bg-brand-700, button.bg-accent-400, a.bg-accent-400) {
    background: #b71937; color: #fffaf2;
}
html[data-plaza-theme="navidad"] .pn-accent-bg { background-color: #b71937 !important; color: #fffaf2 !important; }
html[data-plaza-theme="navidad"] #pn-weather { background: #7e182de8 !important; border: 1px solid #d4b77a !important; }
html[data-plaza-theme="navidad"] [data-landing-module="radio"] {
    background: #81172c !important; border-color: #c6a05b !important;
}
html[data-plaza-theme="navidad"] [data-landing-module="radio"] :is(h2,p) { color: #fff5df !important; }
html[data-plaza-theme="navidad"] [data-landing-module="radio"] .grid > div { background: #96253b; border-color: #d7ae6755; border-radius: 10px; }
html[data-plaza-theme="navidad"] [data-landing-module="radio"] button { background: #f3dfae !important; color: #70172a !important; }
html[data-plaza-theme="navidad"] [data-landing-module="join"] { background: #962039 !important; border: 1px solid #c6a05b; }
html[data-plaza-theme="navidad"] #site-footer { background: #70172a !important; background-image: none !important; border-top: 5px double #d7b66f; }
html[data-plaza-theme="navidad"] #site-footer :is(h2,h3,p,a) { color: #fff2dc; }
html[data-plaza-theme="navidad"] nav[aria-label="Accesos rápidos"] { background: #fffaf0; border-top: 2px solid #d0af6b; }
html[data-plaza-theme="navidad"] :is(a,button,input,textarea,select):focus-visible { outline: 3px solid #ad2441; outline-offset: 3px; }

/* Arte estático en zonas reservadas. Nunca captura clics ni cubre mensajes. */
.pn-christmas-snowman, .pn-christmas-wreath { pointer-events: none; user-select: none; }
html[data-plaza-theme="navidad"] .pn-christmas-hero { position: relative; padding-bottom: 115px !important; }
.pn-christmas-snowman { position: absolute; right: 16px; bottom: 10px; width: 70px; height: auto; z-index: 1; }
html[data-plaza-theme="navidad"] #landing-module-layout .pn-christmas-wreath-slot { position: relative; margin-top: 20px; padding-top: 42px !important; }
.pn-christmas-wreath { position: absolute; right: 20px; top: -29px; width: 59px; height: 64px; object-fit: contain; z-index: 1; }
/* Subpáginas sin hero: una franja independiente, fuera de los controles. */
.pn-christmas-subpage { position: relative; isolation: isolate; }
.pn-christmas-subpage-wreath { position: absolute; right: 22px; top: 43px; width: 66px; height: 66px; object-fit: contain; pointer-events: none; z-index: 2; }

/* Páginas propias de Plaza: la misma identidad festiva, sin tocar sitios ZIP. */
html[data-plaza-theme="navidad"]:not([data-plaza-section="inicio"]) body {
    background-color: #fff8f3 !important;
    background-image: radial-gradient(circle at 10% 6%,rgba(183,25,55,.06) 0 2px,transparent 3px),radial-gradient(circle at 91% 12%,rgba(177,140,63,.08) 0 2px,transparent 3px) !important;
    background-size: 38px 38px,52px 52px !important;
}
html[data-plaza-theme="navidad"] .pn-christmas-subpage > :not(.pn-christmas-subpage-wreath) { position: relative; z-index: 1; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage .pn-section-header {
    min-height: 92px; padding: 22px 92px 20px 22px; border: 1px solid #d8bd82;
    border-left: 6px solid #a71934; border-bottom: 1px solid #d8bd82; border-radius: 14px;
    background: linear-gradient(105deg,#fffdf8 0%,#fff7e8 72%,#f6e1b5 100%);
    box-shadow: 0 10px 28px rgba(112,23,42,.08);
}
html[data-plaza-theme="navidad"] .pn-christmas-subpage .pn-section-header h2,
html[data-plaza-theme="navidad"] .pn-christmas-subpage h1 { font-family: Georgia,'Times New Roman',serif; color: #76182c !important; letter-spacing: -.015em; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage h1 + p,
html[data-plaza-theme="navidad"] .pn-christmas-subpage .pn-section-header p { color: #70595e !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(article,.pn-card,.pn-themed-card,a.bg-white,div.bg-white) {
    border-color: #e1c9af !important; background-color: #fffefb !important; box-shadow: 0 7px 20px rgba(112,23,42,.055);
}
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(article,.pn-card,a.bg-white) { border-radius: 14px; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(article,a.group,a.flex.flex-col):hover { border-color: #bc8f42 !important; box-shadow: 0 12px 27px rgba(112,23,42,.12) !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage form[method="GET"] { padding: 12px; border: 1px solid #e1c9af; border-radius: 12px; background: #fffaf1; box-shadow: 0 5px 16px rgba(112,23,42,.04); }
html[data-plaza-theme="navidad"] .pn-christmas-subpage a.rounded-full.bg-brand-700,
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(.bg-brand-600,.bg-brand-700) { background-color: #aa1935 !important; color: #fff !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage .bg-slate-100.rounded-full,
html[data-plaza-theme="navidad"] .pn-christmas-subpage a.rounded-full.bg-slate-100 { background: #f5e8d5 !important; color: #6f303b !important; border: 1px solid #e4cfaa; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage .border-dashed { border-color: #d9b970 !important; background: rgba(255,250,241,.72) !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage details { border-color: #ddc69d !important; background: #fffaf1; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(input,textarea,select) { background-color: #fffefb; border-color: #d8c29a !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(input,textarea,select):focus { border-color: #a71934 !important; box-shadow: 0 0 0 3px rgba(167,25,52,.13) !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage :is(.text-brand-700,.text-brand-600) { color: #941a31 !important; }
html[data-plaza-theme="navidad"] .pn-christmas-subpage .bg-brand-900 { background-color: #76182c !important; }
html[data-plaza-theme="navidad"][data-plaza-section="placita"] [data-placita-composer] { border-left: 5px solid #b18c3f; }
html[data-plaza-theme="navidad"][data-plaza-section="pulga"] .pn-christmas-subpage article,
html[data-plaza-theme="navidad"][data-plaza-section="negocios"] .pn-christmas-subpage a.group { border-top: 3px solid #b18c3f !important; }
html[data-plaza-theme="navidad"][data-plaza-section="eventos"] .pn-christmas-subpage article { border-top: 3px solid #aa1935 !important; }
html[data-plaza-theme="navidad"][data-plaza-section="puentes"] .pn-christmas-subpage a.group { border-bottom: 4px solid #aa1935 !important; }
html[data-plaza-theme="navidad"][data-plaza-section="noticias"] .pn-christmas-subpage a.flex.flex-col { border-top: 3px solid #b18c3f !important; }
html[data-plaza-theme="navidad"][data-plaza-section="mascotas"] .pn-christmas-subpage .pn-card { border-left: 4px solid #aa1935 !important; }
#pn-christmas-snow { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 39; }
.pn-christmas-flake { position: absolute; top: -14px; left: var(--snow-x); width: var(--snow-size); height: var(--snow-size); border-radius: 50%; background: #fff; box-shadow: 0 0 2px #9b8790; opacity: .7; animation: pn-christmas-fall var(--snow-duration) linear infinite; animation-delay: var(--snow-delay); }
@keyframes pn-christmas-fall { to { transform: translate3d(35px, 110vh, 0); } }
html[data-plaza-anim="0"] .pn-christmas-flake { animation: none; display: none; }
@media(max-width:767px) {
    .pn-christmas-snowman { width: 56px; right: 10px; bottom: 9px; }
    html[data-plaza-theme="navidad"] .pn-christmas-hero { padding-bottom: 95px !important; }
    .pn-christmas-wreath { right: 10px; top: -23px; width: 47px; height: 50px; }
    html[data-plaza-theme="navidad"] .landing-quick-link-icon { width: 44px; height: 44px; }
    html[data-plaza-theme="navidad"] .pn-section-header h2 { font-size: 1.25rem; }
    html[data-plaza-theme="navidad"] .landing-business-card > div:first-child { height: 150px; }
    .pn-christmas-subpage-wreath { width: 48px; height: 48px; right: 13px; top: 34px; }
    html[data-plaza-theme="navidad"] .pn-christmas-subpage .pn-section-header { min-height: 78px; padding: 16px 64px 15px 15px; }
}
@media(prefers-reduced-motion:reduce) {
    .pn-christmas-flake { display: none; animation: none; }
    html[data-plaza-theme="navidad"] .landing-quick-link-icon { transition: none; }
    html[data-plaza-theme="navidad"] .landing-quick-link:hover .landing-quick-link-icon { transform: none; }
}
