/* ==========================================================================
   CLATSE 2027 — Ushuaia, Argentina
   Identidad derivada del póster oficial de la Primera Circular:
   azul marino #1B3A6B · celeste #2E9BD6 · naranja #E87722 · base blanca
   ========================================================================== */

:root {
  --navy: #1B3A6B;
  --navy-dark: #122A50;
  --sky: #2E9BD6;
  --sky-soft: #E3F1FA;
  --orange: #E87722;
  --orange-soft: #FDEEDF;
  --ink: #2B3A55;
  --muted: #5B6B85;
  --light: #E8ECEF;
  --white: #FFFFFF;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 42, 80, .12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1480px, 94%); margin-inline: auto; }

/* Escala progresiva: en pantallas grandes todo el layout amplía proporcionalmente */
@media (min-width: 1440px) { html { font-size: 17.5px; } }
@media (min-width: 1680px) { html { font-size: 18.5px; } }
@media (min-width: 1920px) { html { font-size: 19.5px; } }
@media (min-width: 2300px) { html { font-size: 21px; } }

/* ---------- utilidades ---------- */
.kicker {
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .4rem;
}
.kicker-light { color: #9CCBEA; }

.section { padding: 4.5rem 0; }
.section-alt { background: #F4F7FA; }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); }

.section-head { max-width: 720px; margin-bottom: 2.2rem; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  color: var(--navy);
  line-height: 1.2;
}
.section-head-light h2 { color: var(--white); }
.section-sub { margin-top: .8rem; color: var(--muted); }

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

.note {
  margin-top: 1.6rem;
  padding: .8rem 1.1rem;
  background: var(--sky-soft);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  align-items: start;
}
.two-col p + p { margin-top: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .92rem;
}
.site-nav a:hover { color: var(--sky); }
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: .45rem 1rem;
  border-radius: 999px;
  transition: background .2s;
}
.nav-cta:hover { background: #cf6516; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- hero ---------- */
.hero {
  background-size: cover;
  background-position: center 38%;
  color: var(--white);
  padding: 5.5rem 0 3.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 2.4rem;
  align-items: center;
}
.hero-logo {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(5, 15, 32, .35);
  padding: 1rem 1.2rem;
}
.hero-logo img { width: 100%; height: auto; }
.hero-content { max-width: 860px; }
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(.8rem, 1.6vw, .95rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #CDE4F4;
  margin-bottom: .6rem;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: .02em;
  line-height: 1.02;
}
.hero-motto {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--white);
  margin: 1rem 0 1.8rem;
}
.motto-line { width: 130px; flex: none; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8rem;
  margin-bottom: 1.8rem;
}
.meta-item {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  backdrop-filter: blur(4px);
}
.meta-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #A9CDE6;
  font-weight: 600;
}
.meta-value { font-weight: 600; font-size: .98rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(232, 119, 34, .35); }
.btn-primary:hover { background: #cf6516; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.section .btn-ghost, .section-alt .btn-ghost { border-color: var(--navy); color: var(--navy); }
.section .btn-ghost:hover { background: rgba(27, 58, 107, .06); }

/* countdown */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: .7rem;
  flex-wrap: wrap;
}
.cd-box {
  background: rgba(255, 255, 255, .95);
  color: var(--navy);
  border-radius: 10px;
  padding: .55rem .9rem;
  min-width: 74px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.cd-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1.1; }
.cd-label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd-caption { color: #CDE4F4; font-size: .85rem; margin-left: .4rem; padding-bottom: .5rem; }

/* ---------- instituciones ---------- */
.institutions { background: var(--white); padding: 2.2rem 0; border-bottom: 1px solid var(--light); }
.institutions-title {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.1rem 0 .5rem;
}
.institutions-title:first-child { margin-top: 0; }
.inst-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.inst-badge {
  border: 1px solid var(--light);
  background: #F8FAFC;
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .85rem;
}
.inst-strong { background: var(--navy); color: var(--white); border-color: var(--navy); }
.inst-badge strong { color: var(--navy); }
.inst-badge em { color: var(--orange); font-style: normal; font-weight: 600; font-size: .78rem; }

/* ---------- el congreso ---------- */
.fact-list { list-style: none; display: grid; gap: .8rem; }
.fact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
}
.fact-num {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--orange);
  font-size: 1.35rem;
  min-width: 64px;
  text-align: center;
}

.editions { margin-top: 2.8rem; }
.editions-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}
.editions-track {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: stretch;
}
.editions-track li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .55rem .95rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--light);
  position: relative;
}
.editions-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--sky);
}
.ed-year { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem; }
.ed-place { font-size: .78rem; color: var(--muted); }
.editions-track li.ed-current { background: var(--orange); border-color: var(--orange); }
.ed-current .ed-year, .ed-current .ed-place { color: var(--white); }
.ed-current .ed-place { font-weight: 600; }

/* ---------- fotos ---------- */
.photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.photo-card.tall img { aspect-ratio: 4 / 4.4; }
.photo-card figcaption {
  padding: .6rem .9rem;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--light);
}

/* ---------- áreas ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
}
.area-card {
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sky);
}
.area-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.area-card p { font-size: .92rem; color: var(--muted); }
.area-highlight::before { background: var(--orange); }
.area-highlight { background: linear-gradient(135deg, var(--orange-soft), #FFF9F2); }

.formats {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .8rem;
}
.format-item {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.format-item span { font-size: .85rem; color: var(--muted); }

/* ---------- timeline ---------- */
.timeline { list-style: none; max-width: 760px; }
.timeline li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.timeline li:last-child { border-bottom: 0; }
.tl-date {
  font-family: var(--font-head);
  font-weight: 700;
  color: #9CCBEA;
  letter-spacing: .02em;
}
.tl-event { color: var(--white); font-weight: 600; }
.tl-note { grid-column: 2; font-size: .88rem; color: #B9CFE4; margin-top: -.3rem; }
.tl-final {
  margin-top: .6rem;
  background: rgba(232, 119, 34, .16);
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.tl-final .tl-date { color: var(--orange); }

/* ---------- ushuaia ---------- */
.photos-grid { margin-bottom: 1.4rem; }
.travel-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; }
.travel-item {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.travel-item h3 { font-family: var(--font-head); font-size: .98rem; color: var(--navy); margin-bottom: .4rem; }
.travel-item p { font-size: .92rem; color: var(--muted); }

/* ---------- primera circular ---------- */
.circular-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 2.6rem;
  align-items: center;
}
.circular-poster {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light);
  transition: transform .2s;
}
.circular-poster:hover { transform: translateY(-4px); }
.circular-side h3 { font-family: var(--font-head); color: var(--navy); font-size: 1.25rem; margin-bottom: .6rem; }
.circular-side p { color: var(--muted); margin-bottom: 1rem; }
.check-list { list-style: none; margin-bottom: 1.5rem; display: grid; gap: .5rem; }
.check-list li { padding-left: 1.7rem; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .05rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- cta final ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--navy-dark) 0%, #0C1F3D 100%);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-line { width: min(680px, 90%); margin: 0 auto 1.2rem; display: block; }
.cta-final h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }
.cta-final > .container > p:not(.cta-contact) { color: #C4D6E9; max-width: 560px; margin: 0 auto 1.6rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.8rem; }
.cta-contact { font-size: .95rem; color: #C4D6E9; }
.cta-contact a { color: #9CCBEA; font-weight: 600; text-decoration: none; }
.cta-contact a:hover { text-decoration: underline; }
.contact-note { font-size: .78rem; opacity: .7; }

/* ---------- footer ---------- */
.site-footer { background: #0A1B35; color: #A7B7CC; padding: 2.6rem 0 1.6rem; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; margin-bottom: 1.8rem; }
.footer-logo {
  display: block;
  background: var(--white);
  border-radius: 10px;
  padding: .5rem .7rem;
  height: 78px;
  width: auto;
  margin-bottom: .9rem;
}
.footer-title { font-family: var(--font-head); color: var(--white); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.2rem; display: grid; gap: .5rem; }
.credits { font-size: .76rem; opacity: .75; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- pantallas grandes: ampliar al maximizar ---------- */
@media (min-width: 1440px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 410px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { max-width: 880px; }
  .circular-wrap { grid-template-columns: minmax(260px, 500px) 1fr; }
}

@media (min-width: 1920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 470px; }
  .brand-logo { height: 56px; }
  .footer-logo { height: 92px; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-logo { order: -1; width: min(240px, 72vw); margin-bottom: 1.6rem; }
}
@media (max-width: 880px) {
  .two-col, .circular-wrap { grid-template-columns: 1fr; }
  .circular-poster { max-width: 380px; margin-inline: auto; }
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .tl-note { grid-column: 1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .brand-logo { height: 40px; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--light);
    box-shadow: 0 14px 24px rgba(18, 42, 80, .12);
    display: none;
    padding: .4rem 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1.4rem; }
  .nav-cta { border-radius: 0; margin: .3rem 1rem .5rem; text-align: center; padding-block: .7rem; }
  .hero { padding: 4rem 0 2.8rem; }
  .cd-caption { width: 100%; margin: .4rem 0 0; padding: 0; }
  .editions-track li:not(:last-child)::after { display: none; }
  .editions-track { gap: .5rem; }
}
