/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-card: #f7f7f7;
  --bg-card-hover: #f0f0f0;
  --border: #e8e8e8;
  --border-light: #d4d4d4;
  --text: #0a0a0a;
  --text-muted: #666666;
  --text-faint: #aaaaaa;
  --accent: #0a0a0a;
  --accent-2: #444444;
  --accent-mid: #888888;
  --accent-glow: rgba(0, 0, 0, 0.06);
  --glass-surface: rgba(255, 255, 255, 0.42);
  --glass-surface-strong: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.04),
    inset 1px 1px 0 rgba(255, 255, 255, 0.95),
    inset -1px -1px 0 rgba(0, 0, 0, 0.06),
    inset 0 0 18px rgba(255, 255, 255, 0.2);
  --font: 'Instrument Serif', serif;
  --mono: 'Space Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Flow field background */
#flowfield-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid var(--glass-border);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 17px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.btn-nav {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: all 0.2s;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 120px 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.partner-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.partner-tag span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 4px;
}

.partner-tag img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.hero h1 {
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -3px;
  margin-bottom: 24px;
  color: var(--text);
}

.accent {
  color: var(--accent-mid);
}

.hero-desc {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.4;
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

/* Event card */
.event-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.34));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 36px 40px 40px;
  position: relative;
  overflow: hidden;
  max-width: 560px;
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  box-shadow: var(--glass-shadow);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.event-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.event-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--text-muted);
}

.meta-icon {
  font-size: 16px;
}

.event-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Hero right / 3D chart */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

#chart3d {
  width: 100%;
  max-width: 500px;
  height: 420px;
  display: block;
}

.chart-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 12px;
  text-align: center;
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.2;
}

.scroll-arrow:hover {
  color: var(--text);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-block;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3));
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.98),
    inset -1px -1px 0 rgba(0, 0, 0, 0.08),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.1),
    inset 1px 1px 0 rgba(255, 255, 255, 1),
    inset -1px -1px 0 rgba(0, 0, 0, 0.08),
    inset 0 0 14px rgba(255, 255, 255, 0.24);
}

.btn-outline {
  display: inline-block;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 64px;
}

/* Section dividers */
.speakers-section,
.proposito-section,
.equipo-section,
.registro-section {
  border-top: 1px solid var(--border);
}

/* ============================================
   SPEAKERS
   ============================================ */
.speakers-section .section-tag,
.speakers-section .section-title,
.speakers-section .section-sub {
  text-align: center;
}

.speakers-section .section-tag {
  font-size: 14px;
  letter-spacing: 3px;
}

.speakers-section .section-title {
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: -2px;
}

.speakers-section .section-sub {
  font-size: 22px;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.speaker-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: all 0.2s;
}

.speaker-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.speaker-img-wrap {
  flex-shrink: 0;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.speaker-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.speaker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.speaker-info h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.2;
}

.speaker-role {
  font-size: 12px;
  color: var(--accent-mid);
  font-family: var(--mono);
  margin-bottom: 0;
}

.company-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.speaker-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.speaker-stats li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.speaker-stats li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============================================
   SPONSORS
   ============================================ */
.sponsors-section {
  border-top: 1px solid var(--border);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.sponsor-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
}

.sponsor-item:hover {
  border-color: var(--border-light);
}

.sponsor-logo {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sponsor-tier {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sponsor-cta .sponsor-logo {
  color: var(--text-faint);
  font-size: 16px;
  margin-bottom: 16px;
}

/* ============================================
   PROPÓSITO
   ============================================ */
.proposito-section {
  text-align: center;
}

.proposito-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.proposito-sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 64px;
}

.proposito-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.proposito-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.28));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: var(--glass-shadow);
  transition: all 0.2s;
}

.proposito-card:hover {
  border-color: rgba(255, 255, 255, 0.84);
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 0, 0, 0.06);
}

.proposito-icon {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.proposito-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.proposito-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   FOTOS CARRUSEL
   ============================================ */
.fotos-section {
  padding-left: 0;
  padding-right: 0;
  max-width: 100%;
  overflow: hidden;
}

.fotos-section .section-tag,
.fotos-section .section-title {
  padding-left: 80px;
}

.carousel-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

.attendee-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}

.attendee-card:hover {
  transform: translateY(-3px);
}

.attendee-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.attendee-info {
  padding: 12px 14px;
}

.attendee-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-role {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-left {
  animation: scrollLeft 20s linear infinite;
}

.track-right {
  animation: scrollRight 24s linear infinite;
}

@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.carousel-track:hover {
  animation-play-state: paused;
}

/* ============================================
   EQUIPO
   ============================================ */
.equipo-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 48px;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 740px;
  margin: 0 auto;
}

.equipo-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  box-shadow: var(--glass-shadow);
  transition: all 0.2s;
}

.equipo-card:hover {
  border-color: rgba(255, 255, 255, 0.84);
  transform: translateY(-4px);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.08),
    inset 1px 1px 0 rgba(255, 255, 255, 0.96),
    inset -1px -1px 0 rgba(0, 0, 0, 0.06);
}

.equipo-img-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 24px;
  border: 2px solid var(--border-light);
}

.equipo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.equipo-zoom img {
  transform: scale(1.25);
  transform-origin: center top;
}

.equipo-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.equipo-role {
  font-size: 13px;
  font-family: var(--mono);
  color: var(--accent-mid);
}

/* ============================================
   REGISTRO
   ============================================ */
.registro-section {
  background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, transparent 50%);
}

.registro-inner {
  max-width: 540px;
}

.registro-inner h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.registro-inner > p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.registro-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.registro-form input {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.registro-form input::placeholder {
  color: var(--text-faint);
}

.registro-form input:focus {
  border-color: var(--accent);
}

.registro-note {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.66);
  padding: 40px 80px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
}

.footer-inner {
  display: flex;
  justify-content: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 40px 60px;
    text-align: left;
  }

  .hero-right {
    display: none;
  }

  .speakers-grid {
    grid-template-columns: 1fr;
  }

  .proposito-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 60px 40px;
  }

  footer {
    padding: 32px 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .fotos-section .section-tag,
  .fotos-section .section-title {
    padding-left: 40px;
  }
}

@media (max-width: 640px) {
  nav {
    padding: 14px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 90px 20px 80px;
  }

  /* Hide 3D logo on mobile */
  .hero-right {
    display: none;
  }

  .section {
    padding: 60px 20px;
  }

  .equipo-grid {
    grid-template-columns: 1fr;
  }

  .sponsors-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proposito-cards {
    grid-template-columns: 1fr;
  }

  .proposito-stats {
    grid-template-columns: 1fr 1fr;
  }

  footer {
    padding: 28px 20px;
  }

  .fotos-section .section-tag,
  .fotos-section .section-title {
    padding-left: 20px;
  }

  /* Bigger arrow on mobile */
  .scroll-arrow {
    bottom: 28px;
  }

  .scroll-arrow svg {
    width: 42px;
    height: 42px;
    stroke-width: 1;
  }

  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(12px); }
  }
}
