/* =============================================
   VARIABLES — Glacom blue + From Zero to Here gold
   ============================================= */
:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface-2: #18181f;
  --blue: #1a7fc4;
  --blue-light: #3ba0e6;
  --blue-dark: #0e5a8f;
  --gold: #e6b422;
  --gold-light: #f0cc55;
  --gold-dark: #c49a1a;
  --text: #eaeaf0;
  --text-dim: #9a9ab0;
  --border: rgba(255,255,255,0.06);
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

/* =============================================
   UTILITIES
   ============================================= */
.hidden { display: none !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reveal animation */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-logos a {
  display: flex;
  align-items: center;
}

.logo-glacom {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.logo-fzth {
  height: 26px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.logo-sep {
  font-size: 0.9rem;
  color: var(--text-dim);
  opacity: 0.3;
  font-weight: 300;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-left { flex: 1; }
.hero-right { flex: 0 0 320px; display: flex; justify-content: center; }

.hero-tags {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tag-gold {
  background: var(--gold);
  color: #0a0a0f;
}

.tag-outline {
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  background: transparent;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.detail svg { color: var(--gold); flex-shrink: 0; }

/* Primary button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 3rem;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.3s;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 180, 34, 0.3);
}

/* Hero visual — animated concentric rings */
.hero-visual {
  position: relative;
  width: 280px;
  height: 280px;
}

.v-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.v-ring-1 {
  width: 280px; height: 280px;
  border-color: rgba(26, 127, 196, 0.15);
  animation: ringPulse 4s ease-in-out infinite;
}
.v-ring-2 {
  width: 200px; height: 200px;
  border-color: rgba(230, 180, 34, 0.2);
  animation: ringPulse 4s ease-in-out 0.8s infinite;
}
.v-ring-3 {
  width: 120px; height: 120px;
  border-color: rgba(26, 127, 196, 0.3);
  animation: ringPulse 4s ease-in-out 1.6s infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.v-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
}

.v-num {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.v-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

/* =============================================
   ARC NARRATIVO
   ============================================= */
.arc {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.arc-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.arc-step {
  text-align: center;
}

.arc-n {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.arc-w {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.arc-arrow {
  color: var(--text-dim);
  opacity: 0.4;
  flex-shrink: 0;
}

/* =============================================
   WORKSHOP BLOCKS
   ============================================= */
.blocks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 0.8rem;
  letter-spacing: -0.3px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bcard {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.bcard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.bcard-gold::before { background: linear-gradient(90deg, var(--gold), var(--blue)); }
.bcard-blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.bcard-mix::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.bcard:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.bcard-num {
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.12;
  line-height: 1;
}

.bcard-time {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bcard-who {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bcard h3 {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.bcard p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.bcard-take {
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.bcard-gold .bcard-take {
  background: rgba(230, 180, 34, 0.08);
  border-left: 3px solid var(--gold);
}

.bcard-blue .bcard-take {
  background: rgba(26, 127, 196, 0.08);
  border-left: 3px solid var(--blue);
}

.bcard-mix .bcard-take {
  background: rgba(230, 180, 34, 0.06);
  border-left: 3px solid var(--gold-dark);
}

.bcard-take strong { color: var(--gold); }

/* =============================================
   SPEAKERS
   ============================================= */
.speakers {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.spk {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.spk:hover {
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.spk-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.spk-giulia { background-image: url('people/giulia.jpeg'); }
.spk-nicola { background-image: url('people/nicola.jpeg'); }

.spk-info h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.spk-co {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.8rem;
}

.co-glacom {
  background: rgba(26, 127, 196, 0.15);
  color: var(--blue-light);
}

.co-fzh {
  background: rgba(230, 180, 34, 0.15);
  color: var(--gold-light);
}

.spk-info p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.spk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-light);
  transition: color 0.2s;
}

.spk-link:hover { color: var(--gold); }

/* =============================================
   VIDEO
   ============================================= */
.video-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.video-player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transition: transform 0.3s;
}

.video-player:hover { transform: scale(1.01); }

.video-thumb {
  width: 100%;
  height: auto;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-player:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 30px rgba(230, 180, 34, 0.4);
}

.play-btn svg { margin-left: 3px; }

/* Video popup */
.vid-popup {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.vid-popup-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.vid-close {
  position: absolute;
  top: -40px; right: 0;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.vid-close:hover { color: var(--gold); }

.vid-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   REGISTRATION
   ============================================= */
.registro {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.reg-wrap {
  display: flex;
  gap: 3rem;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.reg-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.reg-left { flex: 1; }

.reg-left h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.reg-left > p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.reg-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reg-perks li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}

.reg-right {
  flex: 0 0 320px;
}

.reg-right input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.reg-right input::placeholder {
  color: var(--text-dim);
}

.reg-right input:focus {
  outline: none;
  border-color: var(--gold);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* =============================================
   SUCCESS / ERROR
   ============================================= */
.ok-msg {
  text-align: center;
  padding: 2rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 180, 34, 0.2);
}

.ok-msg h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.ok-msg p { margin-bottom: 0.5rem; }

.ok-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.share-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.sh-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.sh-btn:hover { transform: translateY(-2px); opacity: 0.9; }

.sh-li { background: #0077b5; color: #fff; }
.sh-cp { background: rgba(255,255,255,0.1); color: var(--text); }

.err-msg {
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(220, 50, 50, 0.1);
  border: 1px solid rgba(220, 50, 50, 0.3);
  color: #ef4444;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Hero CTAs row */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 3rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.25s;
}

.btn-video:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* =============================================
   POPUP FORM
   ============================================= */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.popup-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-size: 1.8rem;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.popup-close:hover { color: var(--gold); }

.popup-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.popup-box > p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.popup-box input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.popup-box input::placeholder { color: var(--text-dim); }
.popup-box input:focus { outline: none; border-color: var(--gold); }

/* =============================================
   ¿NO PUEDES?
   ============================================= */
.nopuedes {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.nopuedes-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.nopuedes-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.nopuedes-box p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 3rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.25s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--gold);
  color: #0a0a0f;
  transform: translateY(-2px);
}

/* =============================================
   FAB
   ============================================= */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0a0f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(230, 180, 34, 0.25);
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(230, 180, 34, 0.35);
}

.fab-hide {
  opacity: 0;
  transform: translateY(80px);
  pointer-events: none;
}

.fab-ico { flex-shrink: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-content { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-right { flex: none; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-tags { justify-content: center; }
  .hero-details { justify-content: center; }
  .hero-cta { margin: 0 auto; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 0.8rem; }
  .hero h1 { font-size: 2.4rem; }

  .blocks-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .speakers-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }

  .reg-wrap { flex-direction: column; gap: 2rem; padding: 2rem; }
  .reg-right { flex: none; width: 100%; }
  .reg-left { text-align: center; }
  .reg-perks { align-items: center; }
}

@media (max-width: 600px) {
  .hero { padding: 1.5rem 1rem 3rem; }
  .hero-logos { max-width: 220px; margin-bottom: 2rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero-visual { width: 200px; height: 200px; }
  .v-ring-1 { width: 200px; height: 200px; }
  .v-ring-2 { width: 140px; height: 140px; }
  .v-ring-3 { width: 80px; height: 80px; }
  .v-num { font-size: 3rem; }

  .arc-w { font-size: 1.1rem; }
  .arc-flow { gap: 0.6rem; }
  .arc-arrow svg { width: 24px; }

  .section-head h2 { font-size: 1.8rem; }

  .bcard { padding: 1.5rem; }
  .bcard h3 { font-size: 1.15rem; }

  .spk { flex-direction: column; align-items: center; text-align: center; }
  .spk-photo { width: 80px; height: 80px; }

  .reg-wrap { padding: 1.5rem; }
  .reg-left h2 { font-size: 1.5rem; }

  .fab { padding: 0.7rem 1.1rem; font-size: 0.8rem; bottom: 1rem; right: 1rem; }
}