*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/cinzel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/cinzel-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/cinzeldecorative-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/cinzeldecorative-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/cinzeldecorative-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cinzel Decorative';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/cinzeldecorative-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ice-50:  #f0fbff;
  --ice-100: #d4f0ff;
  --ice-200: #a8e4ff;
  --ice-300: #7dd8f8;
  --ice-400: #56c8f0;
  --ice-500: #1a9fd4;
  --ice-600: #0d6ea8;
  --ice-700: #063d6b;
  --ice-800: #042844;
  --ice-900: #02152e;
  --frost: #c8f0ff;
  --gold: #d4a843;
  --gold-bright: #f0c850;
  --steel: #2a3540;
  --steel-dark: #1a2028;
  --bg: #050d18;
}

body {
  font-family: 'Cinzel', Georgia, serif;
  background: var(--bg);
  color: var(--ice-100);
  overflow-x: hidden;
}

/* ===== Snowfall ===== */
@keyframes snowfall {
  0%   { transform: translateY(-10px) translateX(0px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(100vh) translateX(80px); opacity: 0; }
}
.snow-particle {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #c8eeff 60%, transparent 100%);
  animation: snowfall linear infinite;
  pointer-events: none;
  z-index: 30;
}

/* ===== Float / Glow ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes iceGlow {
  0%, 100% { filter: drop-shadow(0 0 8px #a8e4ff) drop-shadow(0 0 20px #56c8f088); }
  50%     { filter: drop-shadow(0 0 16px #c8f0ff) drop-shadow(0 0 40px #7dd8f8bb); }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px #a8e4ff, 0 0 30px #56c8f0, 0 0 60px #1a9fd4aa; }
  50%      { text-shadow: 0 0 20px #c8f0ff, 0 0 50px #7dd8f8, 0 0 90px #4bbde8bb; }
}
@keyframes dividerGlow {
  0%, 100% { opacity: 0.6; box-shadow: 0 0 8px #56c8f044; }
  50%      { opacity: 1;   box-shadow: 0 0 18px #56c8f0aa; }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 12px #56c8f044, inset 0 0 8px #a8e4ff22; }
  50%      { box-shadow: 0 0 28px #7dd8f8aa, inset 0 0 16px #a8e4ff33; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Frost Divider ===== */
.frost-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #56c8f044 15%, #a8e4ff 40%, #ffffff 50%, #a8e4ff 60%, #56c8f044 85%, transparent 100%);
  animation: dividerGlow 3s ease-in-out infinite;
}

/* ===== Logo ===== */
.logo-float { animation: float 5s ease-in-out infinite, iceGlow 4s ease-in-out infinite; }

/* ===== Nav ===== */
.nav-link {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-200);
  padding: 0.6rem 1.2rem;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--frost);
  text-shadow: 0 0 12px var(--ice-300);
  text-decoration: underline;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ice-300), transparent);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav-link:hover::after {
  width: 80%;
  left: 10%;
}
.nav-link.active {
  color: var(--frost);
  text-shadow: 0 0 12px var(--ice-300);
}
.nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; }
.reveal.visible { animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
/* No-JS fallback: if JS fails or is disabled, show everything */
.no-js .reveal { opacity: 1; animation: none; }
/* Mobile: reveal elements immediately to prevent tall sections from staying hidden */
@media (max-width: 768px) {
  .reveal { opacity: 1; animation: fadeInUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050d18; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #1a3a5a, #0d6ea8); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #2a5a7a, #1a9fd4); }

/* ===== Footer ===== */
.site-footer {
  position: relative;
  z-index: 20;
  padding: 0;
  background: linear-gradient(180deg, #050d18 0%, #020a14 100%);
  border-top: 1px solid #1a3a5a44;
  overflow: hidden;
}
.site-footer-bg {
  position: relative;
  width: 100%;
  min-height: 340px;
  background-image: url('/assets/fondo_botton_website.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-footer-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 60% at center, rgba(2,10,20,0.78) 0%, rgba(2,10,20,0.45) 50%, transparent 100%);
  pointer-events: none;
}
.site-footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  max-width: 640px;
}
.site-footer-disclaimer {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.78rem;
  color: #6fa8c8;
  letter-spacing: 0.1em;
  max-width: 500px;
  line-height: 1.6;
}
.site-footer-copy {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  color: #4a6580;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}
@media (max-width: 640px) {
  .site-footer-bg { min-height: 280px; }
  .site-footer-content { padding: 1.75rem 1.25rem; gap: 1rem; }
}

/* ===== Footer Links & Social ===== */
.site-footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.site-footer-link {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.75rem;
  color: var(--ice-300);
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  background: none; border: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.site-footer-link:hover {
  color: var(--frost);
  text-shadow: 0 0 8px rgba(86,200,240,0.3);
}
.site-footer-sep { color: #3a5070; font-size: 0.75rem; }
.site-footer-social { display: flex; gap: 0.75rem; justify-content: center; margin-top: 0.25rem; }
.site-footer-social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  color: var(--ice-300); background: transparent;
  border: 1px solid #2a4060; border-radius: 50%;
  transition: all 0.3s ease;
}
.site-footer-social-link:hover {
  color: var(--frost); border-color: var(--frost);
  box-shadow: 0 0 14px rgba(86,200,240,0.3);
  transform: translateY(-2px);
}

/* ===== Legal Modal ===== */
.legal-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,10,20,0.85);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.legal-modal-backdrop.open { opacity: 1; visibility: visible; }
.legal-modal {
  position: relative;
  width: min(680px, 92vw);
  max-height: 85vh;
  background: linear-gradient(180deg, #0a1828 0%, #050d18 100%);
  border: 1px solid rgba(86,200,240,0.25);
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(86,200,240,0.15), 0 0 30px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.legal-modal-backdrop.open .legal-modal { transform: scale(1); }
.legal-modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid rgba(86,200,240,0.15);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.legal-modal-title {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--frost);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(86,200,240,0.3);
}
.legal-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--ice-300);
  line-height: 1; padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}
.legal-modal-close:hover { color: var(--frost); }
.legal-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #b0c4d8;
}
.legal-modal-body h3 {
  font-family: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold);
  margin-top: 1.5rem; margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin-bottom: 0.75rem; }
.legal-modal-body ul { margin: 0 0 0.75rem 1.25rem; }
.legal-modal-body li { margin-bottom: 0.5rem; }
.legal-modal-body strong { color: var(--frost); }
.legal-modal-body code {
  background: rgba(86,200,240,0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.8em;
  color: var(--ice-200);
}
.legal-important {
  background: rgba(212,168,67,0.06);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.25rem;
}
.legal-important-title {
  font-family: 'Cinzel Decorative', Georgia, serif;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}
.legal-footer-note {
  color: #5a7090;
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 1.5rem;
}
.legal-modal-footer {
  padding: 1rem 1.75rem 1.25rem;
  border-top: 1px solid rgba(86,200,240,0.15);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.legal-modal-note {
  font-size: 0.72rem;
  color: #5a7090;
  letter-spacing: 0.05em;
}
.legal-modal-accept {
  background: linear-gradient(135deg, var(--ice-600), var(--ice-500));
  color: #fff;
  border: none;
  padding: 0.6rem 1.75rem;
  border-radius: 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.legal-modal-accept:hover {
  box-shadow: 0 0 20px rgba(86,200,240,0.4);
  transform: translateY(-1px);
}

/* ===== Layout utilities ===== */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }
.right-0 { right: 0; }
.top-0.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.w-auto { width: auto; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.min-h-screen { min-height: 100vh; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-4 { padding-bottom: 1rem; }
.p-2 { padding: 0.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.ml-auto { margin-left: auto; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.pointer-events-none { pointer-events: none; }
.transition-all { transition: all 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.animate-bounce { animation: float 2s ease-in-out infinite; }
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
}
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}
.page-hidden .snow-particle { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .snow-particle { display: none; }
  .logo-float { animation: none; }
}

/* ===== Back-to-top button ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(86,200,240,0.35);
  background: linear-gradient(135deg, rgba(13,110,168,0.7) 0%, rgba(2,14,30,0.85) 100%);
  backdrop-filter: blur(6px);
  color: var(--ice-200);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--frost);
  color: var(--frost);
  box-shadow: 0 0 18px rgba(86,200,240,0.35);
}
@media (max-width: 640px) {
  .back-to-top { bottom: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
}
