/* ==========================================================================
   KANAI · FAMTRIP G2G 2026 — Riviera Maya
   Light / beige editorial theme · groups2go teal accents
   ========================================================================== */

:root {
  /* Brand */
  --teal: #21916d;
  --teal-dark: #176b50;
  --teal-light: #3fb8a8;
  --aqua: #4bb7c4;
  --aqua-deep: #2c8f9e;
  --teal-rgb: 33, 145, 109;

  /* Surfaces — warm beige */
  --beige: #f3e7d3;
  --beige-soft: #f7eedd;
  --beige-deep: #ecdcc1;
  --cream: #fffaf1;
  --paper: #fffdf8;

  /* Ink */
  --ink: #243029;
  --ink-soft: #4a5950;
  --ink-faint: #7d8a82;
  --line: rgba(36, 48, 41, 0.12);

  /* Effects */
  --shadow-sm: 0 4px 14px rgba(36, 48, 41, 0.08);
  --shadow-md: 0 14px 40px rgba(36, 48, 41, 0.12);
  --shadow-lg: 0 28px 70px rgba(36, 48, 41, 0.18);
  --shadow-teal: 0 18px 40px rgba(var(--teal-rgb), 0.28);

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography helpers ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 60ch;
}
.center .lead { margin-left: auto; margin-right: auto; }
.note { color: var(--ink-faint); font-size: 0.92rem; }
.rule {
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
  margin: 1.25rem auto 1.75rem;
}
.rule--left { margin-left: 0; }
.pull {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
  color: var(--teal-dark);
  margin-bottom: 1.4rem;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); }
.container--narrow { max-width: var(--container-narrow); }
.center { text-align: center; }
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: var(--beige-soft); }
.section--alt::before, .section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line);
}
.section--alt::before { top: 0; } .section--alt::after { bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 0.95rem 2rem; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn--primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 24px 50px rgba(var(--teal-rgb), 0.36); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.btn--block { width: 100%; padding: 1.1rem; font-size: 1.02rem; }
.btn__spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--teal);
  border-bottom: 1.5px solid transparent; transition: border-color 0.25s, gap 0.25s;
}
.link-arrow:hover { border-color: var(--teal); }

/* ==========================================================================
   INTRO
   ========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  overflow: hidden; background: var(--teal-dark);
}
.intro__bg { position: absolute; inset: -4%; background-size: cover; background-position: center; transform: scale(1.1); filter: saturate(1.05); }
.intro__veil { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(23,107,80,0.55), rgba(15,60,46,0.92)); }
.intro__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); opacity: 0; }
.intro__ring--1 { width: 240px; height: 240px; }
.intro__ring--2 { width: 380px; height: 380px; border-color: rgba(255,255,255,0.3); }
.intro__ring--3 { width: 540px; height: 540px; border-color: rgba(255,255,255,0.18); }
.intro__core { position: relative; text-align: center; display: grid; gap: 1rem; justify-items: center; opacity: 0; }
.intro__g2g { width: 130px; opacity: 0.95; }
.intro__logo { width: clamp(200px, 42vw, 360px); }
.intro__tagline { color: #fff; letter-spacing: 0.4em; font-size: 0.7rem; font-weight: 500; opacity: 0.85; }
.intro__skip {
  position: absolute; bottom: 2rem; right: 2rem; background: rgba(255,255,255,0.14);
  color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1.1rem; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.82rem; cursor: pointer; backdrop-filter: blur(6px); transition: background 0.25s;
}
.intro__skip:hover { background: rgba(255,255,255,0.28); }
body.intro-done .intro { display: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s, padding 0.35s;
  padding: 1.1rem 0;
}
#navbar.scrolled { background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(14px); box-shadow: 0 2px 24px rgba(36,48,41,0.08); padding: 0.6rem 0; }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-logo img { height: 34px; transition: filter 0.35s; }
/* On transparent nav over hero, force logo white via filter */
#navbar:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.6rem); }
.nav-links a { font-size: 0.86rem; font-weight: 500; color: var(--ink); padding: 0.4rem 0.2rem; position: relative; transition: color 0.25s; }
#navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--teal); transition: width 0.3s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
#navbar:not(.scrolled) .nav-links a:not(.nav-cta)::after { background: #fff; }
.nav-cta { background: var(--teal); color: #fff !important; padding: 0.55rem 1.3rem !important; border-radius: 999px; text-shadow: none !important; box-shadow: var(--shadow-sm); transition: background 0.25s, transform 0.25s; }
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
#navbar:not(.scrolled) .nav-toggle span { background: #fff; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 1100; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__content {
  position: absolute; inset: 0; background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.4rem;
  transform: translateY(-100%); transition: transform 0.5s var(--ease);
}
.mobile-menu.open .mobile-menu__content { transform: translateY(0); }
.mobile-menu__close { position: absolute; top: 1.6rem; right: 1.6rem; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.mobile-menu__close span { position: absolute; top: 50%; left: 8px; width: 24px; height: 2px; background: #fff; }
.mobile-menu__close span:first-child { transform: rotate(45deg); } .mobile-menu__close span:last-child { transform: rotate(-45deg); }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.mobile-menu__link { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; color: #fff; opacity: 0.95; }
.mobile-menu__link--cta { margin-top: 0.8rem; background: #fff; color: var(--teal-dark); padding: 0.6rem 1.8rem; border-radius: 999px; font-size: 1.3rem; }
.mobile-menu__footer { position: absolute; bottom: 2rem; text-align: center; color: rgba(255,255,255,0.85); }
.mobile-menu__footer img { height: 26px; filter: brightness(0) invert(1); margin: 0 auto 0.5rem; }
.mobile-menu__footer p { font-size: 0.8rem; letter-spacing: 0.1em; }

/* ==========================================================================
   HERO
   ========================================================================== */
#hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; }
.hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); will-change: transform; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,60,46,0.45) 0%, rgba(15,60,46,0.2) 35%, rgba(15,60,46,0.55) 100%); }
.hero__content { position: relative; z-index: 2; padding: 6rem 1.5rem 4rem; display: grid; justify-items: center; gap: 0.4rem; }
.hero__g2g { width: 120px; filter: brightness(0) invert(1); opacity: 0.95; margin-bottom: 0.6rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(4rem, 14vw, 9rem); line-height: 0.92; letter-spacing: 0.01em;
  text-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.hero__famtrip { width: clamp(220px, 40vw, 360px); margin-top: -0.3rem; filter: drop-shadow(0 6px 20px rgba(0,0,0,0.3)); }
.hero__meta { display: flex; align-items: center; gap: 0.7rem; color: #fff; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; font-size: clamp(0.8rem, 1.6vw, 1rem); margin-top: 0.8rem; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }
.hero__dot { color: var(--aqua); }

/* Countdown */
.countdown { display: flex; align-items: flex-start; justify-content: center; gap: clamp(0.4rem, 1.5vw, 1rem); margin: 1.8rem 0 2rem; }
.cd-unit { display: grid; justify-items: center; gap: 0.4rem; }
.cd-num {
  font-family: var(--font-display); font-weight: 600; color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; min-width: clamp(2.4rem, 8vw, 4.2rem);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); border-radius: 14px;
  padding: 0.5rem 0.7rem; backdrop-filter: blur(8px); transition: transform 0.3s var(--ease-spring);
}
.cd-num.flip { transform: scale(1.12); }
.cd-lab { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.cd-sep { font-family: var(--font-display); font-size: clamp(1.8rem, 5vw, 3rem); color: rgba(255,255,255,0.5); align-self: center; margin-top: -0.6rem; }
.countdown-finished { color: #fff; font-family: var(--font-display); font-style: italic; font-size: 1.4rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 0.6rem; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 44px; border: 2px solid rgba(255,255,255,0.6); border-radius: 999px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ==========================================================================
   REVEAL (GSAP / fallback)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(34px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.no-gsap .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   ABOUT / HOTELS
   ========================================================================== */
.hotels-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.hotel-tile { background: var(--cream); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.hotel-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.hotel-tile__img { height: 230px; background-size: cover; background-position: center; transition: transform 0.6s var(--ease); }
.hotel-tile:hover .hotel-tile__img { transform: scale(1.06); }
.hotel-tile__body { padding: 1.6rem 1.8rem 2rem; }
.hotel-tile__kicker { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.hotel-tile__body h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 0.3rem 0 0.6rem; line-height: 1.15; }
.hotel-tile__body p { color: var(--ink-soft); font-weight: 300; }

/* ==========================================================================
   FILOSOFIA + CIRCLE FRAME
   ========================================================================== */
.filosofia { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.filosofia__media { display: grid; place-items: center; }
.circle-frame { position: relative; width: min(420px, 80vw); aspect-ratio: 1; }
.circle-frame__img { position: absolute; inset: 7%; border-radius: 50%; background-size: cover; background-position: center; box-shadow: var(--shadow-md); }
.circle-frame__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--teal); opacity: 0.6; animation: spin-slow 40s linear infinite; }
.circle-frame__ring::before, .circle-frame__ring::after { content: ""; position: absolute; border-radius: 50%; }
.circle-frame__ring::before { inset: 4%; border: 1px dashed rgba(var(--teal-rgb), 0.4); }
.circle-frame__stars { position: absolute; inset: 0; border-radius: 50%; }
.circle-frame__stars::before, .circle-frame__stars::after {
  content: "✦"; position: absolute; color: var(--teal); font-size: 1.1rem; opacity: 0.8;
}
.circle-frame__stars::before { top: 2%; left: 50%; transform: translateX(-50%); }
.circle-frame__stars::after { bottom: 6%; right: 12%; color: var(--aqua); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.filosofia__text p { color: var(--ink-soft); margin-bottom: 1rem; font-weight: 300; }

/* ==========================================================================
   AGENDA
   ========================================================================== */
.agenda-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.day-card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; overflow: hidden; }
.day-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal), var(--aqua)); }
.day-card__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.day-card__dow { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--teal-dark); }
.day-card__date { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--ink); line-height: 1; }
.day-card__date small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.timeline { display: grid; gap: 0.85rem; }
.timeline li { display: grid; grid-template-columns: 56px 1fr; gap: 0.9rem; align-items: start; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 56px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-left: -3.5px; box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.15); }
.t-time { font-weight: 600; font-size: 0.82rem; color: var(--aqua-deep); font-variant-numeric: tabular-nums; padding-top: 1px; }
.t-act { color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; padding-left: 0.7rem; }

/* ==========================================================================
   EXPERIENCIAS
   ========================================================================== */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 880px; margin-left: auto; margin-right: auto; }
.exp-card { background: var(--paper); border-radius: var(--radius-lg); padding: 2.4rem 2rem; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.exp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.exp-card lord-icon { margin: 0 auto 1rem; }
.exp-card h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
.exp-card p { color: var(--ink-soft); font-weight: 300; }

/* ==========================================================================
   DRESS CODE
   ========================================================================== */
.dress-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 880px; margin-left: auto; margin-right: auto; }
.dress-card { background: var(--cream); border-radius: var(--radius-lg); padding: 2.6rem 2rem; text-align: center; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dress-card__icon { width: 70px; height: 70px; margin: 0 auto 1.1rem; display: grid; place-items: center; border-radius: 50%; background: rgba(var(--teal-rgb), 0.1); color: var(--teal); }
.dress-card__icon svg { width: 32px; height: 32px; }
.dress-card__when { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--aqua-deep); font-weight: 600; }
.dress-card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 0.2rem 0 0.6rem; }
.dress-card p { color: var(--ink-soft); font-weight: 300; }

/* ==========================================================================
   FIFA
   ========================================================================== */
.fifa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 2rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.fifa-day { background: var(--paper); border-radius: var(--radius-lg); padding: 1.7rem 1.8rem 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.fifa-day__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--teal-dark); padding-bottom: 0.8rem; margin-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.match-list { display: grid; gap: 0.2rem; }
.match-list li { display: grid; grid-template-columns: 48px 1fr auto 1fr; align-items: center; gap: 0.5rem; padding: 0.6rem 0.2rem; border-bottom: 1px solid rgba(36,48,41,0.06); }
.match-list li:last-child { border-bottom: 0; }
.m-time { font-weight: 600; font-size: 0.8rem; color: var(--aqua-deep); font-variant-numeric: tabular-nums; }
.m-team { font-size: 0.92rem; font-weight: 500; }
.m-team--r { text-align: right; }
.m-vs { font-family: var(--font-display); font-style: italic; color: var(--ink-faint); font-size: 0.85rem; }
.match--hl { background: rgba(var(--teal-rgb), 0.07); border-radius: 10px; margin: 0.15rem -0.4rem; padding-left: 0.6rem; padding-right: 0.6rem; }
.match--hl .m-team { color: var(--teal-dark); font-weight: 700; }

/* ==========================================================================
   FORM
   ========================================================================== */
.reg-form { margin-top: clamp(2rem, 4vw, 3rem); }
.reg-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: 1.6rem; background: var(--paper); box-shadow: var(--shadow-sm); }
.reg-block legend { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--teal-dark); padding: 0 0.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.4rem; }
.field { margin-bottom: 1.15rem; display: flex; flex-direction: column; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.req { color: #c0563f; }
.field input[type="text"], .field input[type="email"], .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.15); }
.field textarea { resize: vertical; min-height: 56px; }
.hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.35rem; font-weight: 300; }
.err { font-size: 0.78rem; color: #c0563f; margin-top: 0.35rem; min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: #c0563f; }

/* radios */
.radio-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--cream); transition: all 0.2s; font-weight: 500; font-size: 0.92rem; }
.radio input { accent-color: var(--teal); }
.radio:has(input:checked) { border-color: var(--teal); background: rgba(var(--teal-rgb), 0.1); color: var(--teal-dark); }

/* file */
.file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-btn { display: inline-flex !important; align-items: center; gap: 0.6rem; padding: 0.8rem 1.3rem; background: var(--cream); border: 1.5px dashed var(--teal); border-radius: 12px; color: var(--teal-dark); cursor: pointer; font-weight: 600 !important; transition: background 0.2s; }
.file-btn:hover { background: rgba(var(--teal-rgb), 0.08); }
.file-btn svg { width: 20px; height: 20px; }
.file-field.has-file .file-btn { border-style: solid; color: var(--teal); }

.cond { animation: fade-down 0.3s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.form-msg { padding: 0.9rem 1.1rem; border-radius: 12px; font-size: 0.9rem; margin-bottom: 1rem; }
.form-msg--error { background: rgba(192,86,63,0.12); color: #9c4026; border: 1px solid rgba(192,86,63,0.3); }
.form-disclaimer { text-align: center; color: var(--ink-faint); font-size: 0.8rem; margin-top: 1rem; font-weight: 300; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 1.5rem; background: rgba(15,60,46,0.6); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal__card { background: var(--paper); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem); max-width: 460px; width: 100%; text-align: center; position: relative; box-shadow: var(--shadow-lg); animation: pop 0.4s var(--ease-spring); }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal__close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; font-size: 1.8rem; color: var(--ink-faint); cursor: pointer; line-height: 1; }
.modal__card h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 0.6rem 0 0.4rem; color: var(--teal-dark); }
.modal__card p { color: var(--ink-soft); }
.modal__code { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: 0.2em; color: var(--teal); background: rgba(var(--teal-rgb),0.08); border-radius: 12px; padding: 0.6rem 1rem; margin: 1rem auto; display: inline-block; }
.modal__qr { margin: 1rem auto; }
.modal__qr img { width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); }
.modal__note { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 1.2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer { background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%); color: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; text-align: center; }
.footer__inner { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 0.7rem; justify-items: center; }
.footer__logo { height: 40px; filter: brightness(0) invert(1); }
.footer__tag { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; opacity: 0.9; }
.footer__event { font-weight: 500; letter-spacing: 0.04em; margin-top: 0.4rem; }
.footer__legal { font-size: 0.78rem; opacity: 0.75; font-weight: 300; max-width: 52ch; margin-top: 0.6rem; }
.footer__copy { font-size: 0.78rem; opacity: 0.7; margin-top: 0.8rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); width: 100%; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .filosofia { grid-template-columns: 1fr; }
  .filosofia__media { order: -1; }
  .rule--left { margin-left: auto; margin-right: auto; }
  .filosofia__text { text-align: center; }
}
@media (max-width: 720px) {
  .hotels-grid, .agenda-grid, .exp-grid, .dress-grid, .fifa-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  #hero { min-height: 100svh; }
  .hero__photo { background-image: url('img/kanai/hero-mobile.jpg') !important; }
  .cd-num { border-radius: 10px; }
}
@media (max-width: 420px) {
  .match-list li { grid-template-columns: 40px 1fr auto 1fr; gap: 0.3rem; }
  .m-team { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
