#cf-nieve { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
html.cf-navidad:not(.cf-quieto):not(.cf-sin-ambiente):not(.cf-en-login) #cf-nieve { display: block; }

.cf-an-temp { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, #16a34a 9%, var(--surface)), color-mix(in srgb, #dc2626 8%, var(--surface))); }
.cf-an-temp-sel { width: auto; max-width: 200px; min-height: 40px; font-size: 13px; font-weight: 700; }
@media (max-width: 420px) { .cf-an-temp { grid-template-columns: 1fr; } .cf-an-temp-sel { max-width: none; width: 100%; } }

.cf-meta-arbol { flex: 0 0 auto; width: 32px; height: 37px; display: block; }
.cf-meta-arbol .cf-arb-e { fill: color-mix(in srgb, var(--t2) 45%, transparent); }
.cf-meta-ok .cf-meta-arbol .cf-arb-e { fill: #facc15; }
.cf-meta-arbol .cf-arb-l { fill: #0f3d22; }
.cf-meta-arbol .cf-arb-on:nth-of-type(4n + 1) { fill: #ef4444; }
.cf-meta-arbol .cf-arb-on:nth-of-type(4n + 2) { fill: #facc15; }
.cf-meta-arbol .cf-arb-on:nth-of-type(4n + 3) { fill: #38bdf8; }
.cf-meta-arbol .cf-arb-on:nth-of-type(4n + 4) { fill: #f472b6; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-meta-arbol .cf-arb-on { animation: cf-arb-titila 1.6s ease-in-out infinite alternate; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-meta-arbol .cf-arb-on:nth-of-type(2n) { animation-delay: .8s; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-meta-arbol .cf-arb-on:nth-of-type(3n) { animation-delay: .4s; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-meta-ok .cf-meta-arbol .cf-arb-e { animation: cf-arb-titila 1.2s ease-in-out infinite alternate; }
@keyframes cf-arb-titila { from { opacity: 1; } to { opacity: .45; } }

html.cf-navidad .pp-masc { overflow: visible; }
html.cf-navidad .pp-masc::before { content: ''; position: absolute; z-index: 1; left: 9px; top: -11px; width: 22px; height: 18px; pointer-events: none; transform: rotate(14deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 26'%3E%3Cpath d='M3 21C6 10 13 3 22 4c4 .5 6 4 5 8l-3-2c-1 6-2 9 0 11z' fill='%23dc2626'/%3E%3Crect x='1' y='19' width='26' height='6' rx='3' fill='%23fff'/%3E%3Ccircle cx='27' cy='12' r='3.4' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
html.cf-navidad.cf-anionuevo .pp-masc::before { left: 8px; top: -13px; width: 16px; height: 18px; transform: rotate(16deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M3 26L12 4l9 22z' fill='%23d946ef'/%3E%3Cpath d='M7.2 16l4.8-1.8 4.8 1.8M5.4 21l6.6-2.4 6.6 2.4' stroke='%23facc15' stroke-width='2' fill='none'/%3E%3Ccircle cx='12' cy='4' r='3' fill='%23facc15'/%3E%3C/svg%3E"); }
html.cf-sin-mascota .pp-masc::before { display: none; }

.cf-nav-ini { margin: 0 2px 10px; }
.cf-nav-ini[hidden], html:not(.cf-navidad) .cf-nav-ini { display: none; }
@media (max-width: 700px) { #cf-app.cf-bp-plegado #cf-nav-ini { display: none; } }
@media (min-width: 701px) { :where(html:not(.cf-clasico)) #cf-app.cf-pc-mios #cf-nav-ini { display: none; } }
.cf-nav-luces { display: flex; height: 26px; overflow: hidden; margin: 0 -2px 6px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 14'%3E%3Cpath d='M0 2Q18 14 36 2' fill='none' stroke='%2394a3b8' stroke-width='1.4' stroke-opacity='.7'/%3E%3C/svg%3E") repeat-x 0 0 / 36px 14px; }
.cf-nav-luces i { flex: 0 0 36px; position: relative; }
.cf-nav-luces i::before { content: ''; position: absolute; left: 15px; top: 6px; width: 6px; height: 4px; border-radius: 1px; background: #475569; }
.cf-nav-luces i::after { content: ''; position: absolute; left: 13px; top: 9px; width: 10px; height: 14px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: #f43f5e; box-shadow: 0 0 9px 1px #f43f5e; }
.cf-nav-luces i:nth-child(4n + 2)::after { background: #facc15; box-shadow: 0 0 9px 1px #facc15; }
.cf-nav-luces i:nth-child(4n + 3)::after { background: #a855f7; box-shadow: 0 0 9px 1px #a855f7; }
.cf-nav-luces i:nth-child(4n + 4)::after { background: #e879f9; box-shadow: 0 0 9px 1px #e879f9; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-nav-luces i::after { animation: cf-nav-luz 1.4s ease-in-out infinite alternate; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-nav-luces i:nth-child(2n)::after { animation-delay: .7s; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-nav-luces i:nth-child(3n)::after { animation-delay: .35s; }
@keyframes cf-nav-luz { from { opacity: 1; } to { opacity: .35; } }
.cf-nav-regalo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border-radius: 16px; text-align: left; font: inherit; color: var(--t1);
  border: 1px solid color-mix(in srgb, #a855f7 35%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, #f43f5e 9%, var(--surface)), color-mix(in srgb, #a855f7 11%, var(--surface))); }
button.cf-nav-regalo { cursor: pointer; }
button.cf-nav-regalo:hover { border-color: #a855f7; }
button.cf-nav-regalo:focus-visible { outline: 2px solid #e879f9; outline-offset: 2px; }
.cf-nav-regalo b { display: block; font-size: 14.5px; font-weight: 800; }
.cf-nav-regalo small { display: block; color: var(--t2); font-size: 12.5px; }
.cf-nav-caja { flex: 0 0 auto; width: 40px; height: 40px; overflow: visible; }
html:not(.cf-quieto):not(.cf-sin-ambiente) button.cf-nav-regalo .cf-nav-caja { animation: cf-nav-mueve 2.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cf-nav-mueve { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }
.cf-nav-abierto .cf-nav-tapa { transform: translate(5px, -6px) rotate(14deg); transform-origin: 36px 18px; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-nav-abierto { animation: cf-nav-abre .45s ease both; }
@keyframes cf-nav-abre { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cf-nav-regalo > span, .cf-nav-abierto > div { flex: 1 1 auto; min-width: 0; }
.cf-nav-pj { flex: 0 0 auto; align-self: flex-end; width: auto; height: 78px; margin: -28px -6px -10px 0; pointer-events: none; }
.cf-nav-abierto .cf-nav-pj { height: 70px; }
html:not(.cf-quieto):not(.cf-sin-ambiente) .cf-nav-pj { animation: cf-nav-pj 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes cf-nav-pj { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-2.5deg); } }
.cf-nav-abierto ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; line-height: 1.35; }
.ae-saludo-box .ae-saludo-nav { flex-basis: 100%; color: color-mix(in srgb, #e879f9 75%, var(--t1)); font-weight: 700; }
