/* ============================================================
   NAVIDAD: capa de temporada (diciembre a pasado Reyes).
   Para quitarla en enero: borrar en cada página la línea
   <link ... css/navidad.css> (va entre marcas NAVIDAD) y este archivo.
   No cambia colores ni tipografías de la marca.
   ============================================================ */

/* Nieve suave en los apartados con fondo de color: entrada, regalo, turquesas y contacto (solo estilos, sin librerías).
   Dos capas con los copos repartidos de forma irregular, a distinta velocidad y con un leve vaivén. */
.fam-hero::before, .fam-hero::after, #regala::before, #regala::after, .section-teal::before, .section-teal::after, .contact-section::before, .contact-section::after { content: ''; position: absolute; left: -24px; right: -24px; bottom: 0; z-index: 0; pointer-events: none; will-change: transform; }
.fam-hero::before, #regala::before, .section-teal::before, .contact-section::before {
  top: -600px;
  background-image:
    radial-gradient(circle at 174px 96px, rgba(255, 255, 255, 0.63) 0 2.6px, transparent 3.3px),
    radial-gradient(circle at 283px 221px, rgba(255, 255, 255, 0.78) 0 1.7px, transparent 2.4px),
    radial-gradient(circle at 27px 261px, rgba(255, 255, 255, 0.63) 0 1.7px, transparent 2.4px),
    radial-gradient(circle at 226px 490px, rgba(255, 255, 255, 0.68) 0 1.8px, transparent 2.5px),
    radial-gradient(circle at 330px 561px, rgba(255, 255, 255, 0.74) 0 2.5px, transparent 3.2px),
    radial-gradient(circle at 509px 35px, rgba(255, 255, 255, 0.70) 0 3.0px, transparent 3.7px),
    radial-gradient(circle at 100px 347px, rgba(255, 255, 255, 0.73) 0 2.6px, transparent 3.3px),
    radial-gradient(circle at 38px 128px, rgba(255, 255, 255, 0.75) 0 2.7px, transparent 3.4px),
    radial-gradient(circle at 416px 416px, rgba(255, 255, 255, 0.80) 0 2.0px, transparent 2.7px),
    radial-gradient(circle at 382px 176px, rgba(255, 255, 255, 0.64) 0 3.2px, transparent 3.9px),
    radial-gradient(circle at 439px 559px, rgba(255, 255, 255, 0.83) 0 2.4px, transparent 3.1px),
    radial-gradient(circle at 38px 456px, rgba(255, 255, 255, 0.69) 0 1.8px, transparent 2.5px),
    radial-gradient(circle at 151px 250px, rgba(255, 255, 255, 0.91) 0 2.2px, transparent 2.9px);
  background-size: 530px 600px;
  animation: nieveCae 26s linear infinite, nieveVaiven 7s ease-in-out infinite alternate;
}
.fam-hero::after, #regala::after, .section-teal::after, .contact-section::after {
  top: -440px;
  background-image:
    radial-gradient(circle at 385px 71px, rgba(255, 255, 255, 0.78) 0 3.8px, transparent 4.5px),
    radial-gradient(circle at 99px 213px, rgba(255, 255, 255, 0.79) 0 4.4px, transparent 5.1px),
    radial-gradient(circle at 383px 300px, rgba(255, 255, 255, 0.84) 0 4.3px, transparent 5.0px),
    radial-gradient(circle at 141px 30px, rgba(255, 255, 255, 0.77) 0 3.6px, transparent 4.3px),
    radial-gradient(circle at 217px 338px, rgba(255, 255, 255, 0.78) 0 4.1px, transparent 4.8px);
  background-size: 410px 440px;
  animation: nieveCae2 15s linear infinite, nieveVaiven 5s ease-in-out infinite alternate-reverse;
}
@keyframes nieveCae { to { transform: translate3d(0, 600px, 0); } }
@keyframes nieveCae2 { to { transform: translate3d(0, 440px, 0); } }
@keyframes nieveVaiven { from { translate: -14px 0; } to { translate: 14px 0; } }
@media (prefers-reduced-motion: reduce) { .fam-hero::before, .fam-hero::after, #regala::before, #regala::after, .section-teal::before, .section-teal::after, .contact-section::before, .contact-section::after { animation: none; } }
/* la nieve cae por detrás del contenido y no se sale de su apartado */
.section-teal, .contact-section { overflow: hidden; }
#regala > .container, .section-teal > .container, .contact-section > .container { position: relative; z-index: 1; }

/* Nieve posada encima de la foto de la entrada */
.hero-photo-frame { position: relative; }
.hero-photo-frame::before {
  content: ''; position: absolute; z-index: 2; left: -6px; right: -6px; top: -19px; height: 36px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 44' preserveAspectRatio='none'%3E%3Cpath d='M3,26 C1,12 22,6 48,9 C70,1 104,1 128,7 C158,0 196,2 222,8 C252,1 292,1 318,7 C350,3 399,8 397,26 C397,36 384,40 376,32 C370,26 358,26 350,32 C344,40 332,43 326,34 C320,26 300,24 280,28 C262,30 262,41 250,41 C239,41 240,29 226,27 C204,24 184,31 164,30 C150,30 150,38 140,38 C130,38 130,28 116,27 C96,26 76,31 58,30 C46,30 46,40 34,40 C20,41 4,38 3,26 Z' fill='%23fff' stroke='%231a1a2e' stroke-width='2.5' stroke-linejoin='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Bolitas colgando del borde de arriba de la entrada, en los colores de la marca.
   Van justo debajo de la cabecera fija; con la tira de Navidad abierta bajan lo que mide la tira. */
.hero-sunburst::after { content: ''; position: absolute; left: 0; right: 0; top: var(--nav-height); height: 56px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 56'%3E%3Cline x1='34' y1='0' x2='34' y2='9' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='30.5' y='8' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='34' cy='22' r='9' fill='%23FE5976' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cpath d='M29.1,21.1 a5.0,5.0 0 0 1 4.0,-4.0' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' opacity='0.9'/%3E%3Cline x1='108' y1='0' x2='108' y2='24' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='104.5' y='23' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='108' cy='39' r='11' fill='%23fff' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cline x1='186' y1='0' x2='186' y2='13' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='182.5' y='12' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='186' cy='25' r='8' fill='%23b9f0ea' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cpath d='M181.6,24.2 a4.4,4.4 0 0 1 3.6,-3.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' opacity='0.9'/%3E%3Cline x1='262' y1='0' x2='262' y2='28' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='258.5' y='27' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='262' cy='42' r='10' fill='%23FE5976' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cpath d='M256.5,41.0 a5.5,5.5 0 0 1 4.5,-4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' opacity='0.9'/%3E%3C/svg%3E") top center / 300px 56px repeat-x; }
html.xbar-on .hero-sunburst::after { top: calc(var(--nav-height) + 50px); }
body .fam-hero { padding-top: calc(var(--nav-height) + 3.75rem); }
html.xbar-on body .fam-hero { padding-top: calc(var(--nav-height) + 3.25rem + 62px); }
@media (min-width: 761px) { html.xbar-on body .fam-hero { padding-top: calc(var(--nav-height) + 4.25rem + 56px); } }
@media (max-width: 600px) { .hero-sunburst::after { height: 47px; background-size: 250px 47px; } }
/* en los móviles más estrechos la tira ocupa una línea más */
@media (max-width: 380px) {
  html.xbar-on .hero-sunburst::after { top: calc(var(--nav-height) + 66px); }
  html.xbar-on body .fam-hero { padding-top: calc(var(--nav-height) + 3.25rem + 78px); }
}

/* Tarjeta regalo: regalitos y bolas colgando del borde de arriba del bloque rosa.
   Para que cuelguen de un borde recto, en Navidad se esconde la onda de entrada del bloque. */
.wave-divider:has(+ #regala) { display: none; }
#regala { padding-top: 6.25rem; }
#regala > .photo-confetti { display: block; }
#regala > .photo-confetti span { display: none; }
#regala > .photo-confetti::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 78px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 78'%3E%3Cline x1='40' y1='0' x2='40' y2='17' stroke='%231a1a2e' stroke-width='2'/%3E%3Cpath d='M40,23 c-9,-9 -12,3 0,2 c12,1 9,-11 0,-2' fill='%23fff' stroke='%231a1a2e' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='29.0' y='29' width='22' height='17' rx='2' fill='%2307beb8' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Crect x='27.0' y='24' width='26' height='7' rx='2' fill='%2307beb8' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Crect x='37.5' y='24' width='5' height='22' fill='%23fff' stroke='%231a1a2e' stroke-width='1.5'/%3E%3Cline x1='118' y1='0' x2='118' y2='37' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='114.5' y='36' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='118' cy='52' r='11' fill='%23fff' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cline x1='200' y1='0' x2='200' y2='37' stroke='%231a1a2e' stroke-width='2'/%3E%3Cpath d='M200,43 c-9,-9 -12,3 0,2 c12,1 9,-11 0,-2' fill='%2307beb8' stroke='%231a1a2e' stroke-width='2' stroke-linejoin='round'/%3E%3Crect x='188.0' y='49' width='24' height='18' rx='2' fill='%23fff' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Crect x='186.0' y='44' width='28' height='7' rx='2' fill='%23fff' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Crect x='197.5' y='44' width='5' height='23' fill='%2307beb8' stroke='%231a1a2e' stroke-width='1.5'/%3E%3Cline x1='276' y1='0' x2='276' y2='17' stroke='%231a1a2e' stroke-width='2'/%3E%3Crect x='272.5' y='16' width='7' height='5' rx='1.5' fill='%231a1a2e'/%3E%3Ccircle cx='276' cy='30' r='9' fill='%23b9f0ea' stroke='%231a1a2e' stroke-width='2.5'/%3E%3Cpath d='M271.1,29.1 a5.0,5.0 0 0 1 4.0,-4.0' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' opacity='0.9'/%3E%3C/svg%3E") top center / 320px 78px repeat-x; }
@media (max-width: 600px) { #regala { padding-top: 5.25rem; } #regala > .photo-confetti::before { height: 64px; background-size: 262px 64px; } }

/* Con el regalo arriba, las fotos quedan pegadas a Dudas y las dos eran blancas: en Navidad las fotos van sobre el fondo claro.
   Solo actúa mientras las fotos van justo después de Dudas; al devolver el regalo a su sitio deja de aplicarse. */
#faq + .section-white { background: var(--mint); }
#faq + .section-white + .wave-divider.on-white { background: var(--mint); }
