:root {
  --ink: #12151c;
  --muted: #5c6573;
  --line: #e4e7ec;
  --paper: #f6f4ef;
  --white: #ffffff;
  --navy: #0e1f33;
  --navy-2: #16324f;
  --cyan: #1ec8c8;
  --coral: #ff5c3a;
  --sand: #efe8dc;
  --header-h: 72px;
  --max: 1120px;
  --font: "DM Sans", system-ui, sans-serif;
  --logo: "Syne", "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: 1.02rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-2);
}

a:hover {
  color: var(--coral);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2.5rem, 760px);
}

.center {
  text-align: center;
}

.lead {
  color: var(--muted);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.lead.light {
  color: rgba(255, 255, 255, 0.72);
}

/* Topbar */
.topbar {
  background: var(--coral);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(100% - 1.5rem, 1200px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-family: var(--logo);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  color: var(--coral);
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0.55rem;
}

.site-nav a:hover {
  color: var(--coral);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--coral);
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #e84a2a;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 4rem;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: #0a1624;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.45;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 22, 36, 0.88) 0%, rgba(14, 36, 56, 0.72) 55%, rgba(14, 31, 51, 0.9) 100%),
    radial-gradient(ellipse 70% 50% at 75% 15%, rgba(30, 200, 200, 0.22), transparent 55%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 85%);
  animation: gridDrift 28s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--cyan);
}

.hero h1 {
  margin: 0;
  font-family: var(--logo);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-lead {
  margin: 1.1rem 0 1.6rem;
  max-width: 28rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.topic-chips {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-chips li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0;
}

.hero-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.hero-meta dd {
  margin: 0.2rem 0 0;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-tint {
  background: var(--paper);
}

.section-dark {
  background: var(--navy);
  color: #fff;
}

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

.section-kicker.center {
  text-align: center;
}

.section h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 1rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  margin: 0;
  overflow: hidden;
}

.about-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* Companies that attended — compact, near end */
.section-companies,
.section-sponsors {
  background: var(--white);
  border-top: 1px dashed #d0d4db;
  border-bottom: 1px dashed #d0d4db;
  padding-block: 1.5rem;
}

.section-companies .lead,
.section-sponsors .lead {
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.companies-title {
  font-family: var(--logo);
  font-weight: 800;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.companies-title span {
  color: var(--coral);
}

.companies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.75rem;
  max-width: 520px;
  margin-inline: auto;
}

.company-logo {
  flex: 0 0 48px;
  width: 48px;
  max-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  border: 1px solid #ebebeb;
  padding: 0.2rem;
  overflow: hidden;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.company-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.company-more {
  display: none;
}

.companies-grid.is-expanded .company-more {
  display: flex;
}

.btn-companies {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-companies:hover {
  background: #e0482a;
  color: #fff;
}

/* Sponsors & Partners tiers — compact */
.sponsor-block {
  text-align: center;
  margin-top: 0.85rem;
}

.sponsor-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-style: italic;
  color: #9aa0a8;
  font-weight: 400;
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.15rem;
}

.sponsor-row img {
  height: 24px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
}

.sponsor-block:first-of-type .sponsor-row img {
  height: 30px;
  max-width: 110px;
}

.sponsor-cta {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #d0d4db;
  max-width: 420px;
  margin-inline: auto;
}

.sponsor-cta h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.sponsor-cta p {
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}

.about-media figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.region-grid-photos article {
  padding: 0;
  overflow: hidden;
}

.region-grid-photos img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.region-grid-photos h3 {
  margin: 0.85rem 1rem 0.35rem;
}

.region-grid-photos p {
  margin: 0 1rem 1rem;
}


.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.region-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem 1.1rem;
  transition: transform 0.25s ease;
}

.region-grid article:hover {
  transform: translateY(-3px);
}

.region-grid h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
}

.region-grid p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.split-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem;
}

.stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-top: 2px solid var(--cyan);
}

.stat-num {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-num::after {
  content: "+";
}

.stat-label {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.roles {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Tracks */
.tracks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.track {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.track img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.track h3 {
  margin: 1rem 1.1rem 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.1rem;
}

.track p {
  margin: 0 1.1rem 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.workshop-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.workshop-split figure {
  margin: 0;
}

.workshop-split img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.workshop-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.workshop-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  padding-left: 1.1rem;
  position: relative;
}

.workshop-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--cyan);
}

.speakers-preview {
  display: none;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.speaker {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.speaker img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: #e8ecf1;
}

/* Ajustes finos por foto para que el rostro quede centrado */
.speaker img[src*="speaker-1"] { object-position: center 22%; }
.speaker img[src*="speaker-2"] { object-position: center 20%; }
.speaker img[src*="speaker-3"] { object-position: center 28%; }
.speaker img[src*="speaker-4"] { object-position: center 15%; }
.speaker img[src*="speaker-5"] { object-position: center 30%; }
.speaker img[src*="speaker-6"] { object-position: center 18%; }

.speaker h3 {
  margin: 0.9rem 1rem 0.2rem;
  font-size: 1rem;
  font-weight: 700;
}

.speaker p {
  margin: 0 1rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.gallery-grid figure {
  margin: 0;
  background: #111;
  position: relative;
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.speaker-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.speaker-card span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--cyan));
  margin-bottom: auto;
}

.speaker-card p {
  margin: 0.75rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border-color: var(--coral);
  box-shadow: 0 0 0 1px var(--coral);
}

.price-card h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.2rem;
}

.price-tag {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 1.2rem;
  vertical-align: super;
}

.price.alt {
  font-size: 2rem;
}

.price-card ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.price-card li {
  margin-bottom: 0.35rem;
}

.fineprint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Forms */
.form {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.form.compact {
  margin-top: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.form label.full {
  grid-column: 1 / -1;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.75rem;
  border: 1px solid #c9ced6;
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--coral);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0.65rem 0 0.25rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: #0a121c;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-family: var(--logo);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--coral);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--cyan);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 0px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .site-header {
    position: sticky;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .region-grid,
  .tracks,
  .pricing,
  .stats,
  .speakers-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .company-logo {
    flex: 0 0 42px;
    width: 42px;
    max-width: 42px;
    height: 42px;
  }

  .split-cta,
  .about-split,
  .workshop-split,
  .region-hero {
    grid-template-columns: 1fr;
  }

  .sponsor-row img {
    height: 22px;
  }
}

@media (max-width: 560px) {
  .region-grid,
  .tracks,
  .pricing,
  .stats,
  .form-grid,
  .speakers-preview,
  .speakers-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .company-logo {
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }
}
