/* ============================================================
   BDTC — Ballroom Dance Teacher College Argentina
   Identidad: estudio de baile contemporáneo. Base clara,
   tipografía geométrica de carácter, un acento coral vibrante
   que sugiere movimiento, y bloques de color índigo profundo
   para marcar ritmo entre secciones — no una paleta "de época".
   ============================================================ */

:root{
  --paper:      #f9fafb;
  --paper-2:    #eef2ee;
  --ink:        #2b2138;
  --ink-dim:    #645c74;
  --indigo:     #3a2c4f;
  --indigo-2:   #4b3a64;
  --coral:      #7c9473;
  --coral-dark: #5f7558;
  --coral-soft: #e6ebe2;
  --mauve:      #8b7ca6;
  --mauve-dark: #6c5e88;
  --mauve-light:#cdbfe3;
  --sky:        #dbe8f2;
  --on-dark:    #f5f2f8;
  --on-dark-dim:#c4b8d6;
  --line:       rgba(43,33,56,0.12);
  --line-dark:  rgba(245,242,248,0.18);

  --display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --sans:    "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p{ margin: 0 0 1em; color: var(--ink-dim); max-width: 62ch; }
a{ color: var(--coral-dark); text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}
img{ max-width: 100%; display:block; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------------- Nav ---------------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled{
  background: rgba(250,249,246,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.nav__mark{
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: .45em;
}
.nav__mark small{
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--coral-dark);
  text-transform: uppercase;
}
.nav__links{
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 2.1rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a{
  color: var(--ink);
  font-size: .94rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.nav__links a:hover{ color: var(--coral-dark); }
.nav__links a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after{ transform: scaleX(1); }

.nav__cta{
  background: var(--ink);
  color: var(--on-dark) !important;
  padding: 11px 22px;
  font-size: .88rem;
  font-weight: 600;
  border-radius: 100px;
  transition: background .2s ease, transform .2s ease;
}
.nav__cta::after{ display:none; }
.nav__cta:hover{ background: var(--coral); transform: translateY(-1px); }

.nav__toggle{
  display:none;
  justify-self: end;
  background:none; border:none; color: var(--ink); cursor:pointer;
  width: 32px; height: 24px; position: relative;
}
.nav__toggle span{
  position:absolute; left:0; right:0; height:2px; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav__toggle span:nth-child(1){ top: 2px; }
.nav__toggle span:nth-child(2){ top: 11px; }
.nav__toggle span:nth-child(3){ top: 20px; }
.nav.is-open .nav__toggle{ color: var(--on-dark); }
.nav.is-open .nav__toggle span:nth-child(1){ transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2){ opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3){ transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 860px){
  .nav__links{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 340px);
    background: var(--indigo); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.9rem; padding: 0 2.6rem;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav.is-open .nav__links{ transform: translateX(0); }
  .nav__links a{ font-size: 1.3rem; color: var(--on-dark); }
  .nav__links a:hover{ color: var(--coral); }
  .nav__cta{ display:none; }
  .nav.is-open .nav__cta{
    display:inline-block; position:fixed; bottom: 54px; left: 50%;
    transform: translateX(calc(-50% + min(80vw,340px) / 2));
    background: var(--coral); z-index: 60;
  }
  .nav__toggle{ display:block; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 96px;
  background: var(--paper);
  overflow: hidden;
}
.hero__ribbon{
  position: absolute;
  top: 0;
  right: -6%;
  width: min(60vw, 760px);
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 760px){
  .hero__ribbon{
    top: auto;
    bottom: 0;
    right: -20%;
    width: 150%;
    height: 240px;
    opacity: 0.85;
  }
  .hero__inner{ padding-bottom: 200px; }
}
.hero__inner{
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero__logo{
  width: 50vw;
  max-width: 680px;
  min-width: 280px;
  height: auto;
  border-radius: 18px;
  margin-bottom: 2.2rem;
  box-shadow: 0 24px 60px rgba(43,33,56,0.2);
}
@media (max-width: 760px){
  .hero__logo{ width: 88vw; max-width: 88vw; }
}
.hero__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .9em;
  color: #fff;
  background: var(--indigo);
  border-radius: 100px;
  padding: 20px 36px 20px 22px;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 2.4rem;
  box-shadow: 0 14px 34px rgba(43,33,56,0.24);
}
.hero__eyebrow .dot{ width:14px; height:14px; border-radius:50%; background: var(--coral); display:inline-block; flex: none; }
@media (max-width: 760px){
  .hero__eyebrow{ font-size: 1.15rem; padding: 15px 24px 15px 16px; }
}
.hero h1{
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  margin-bottom: 1.7rem;
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 .accent{ color: var(--coral); }
.hero h1 em{
  display:block;
  font-style: normal;
  color: var(--ink-dim);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
  margin-top: .5em;
  font-family: var(--sans);
}
.hero__lede{
  font-size: 1.18rem;
  max-width: 42ch;
  color: var(--ink-dim);
}
.hero__actions{
  display: flex;
  gap: 1.1rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn--gold{ background: var(--coral); color: #fff; }
.btn--gold:hover{ background: var(--coral-dark); }
.btn--ghost{ border-color: var(--ink); color: var(--ink) !important; }
.btn--ghost:hover{ border-color: var(--coral); color: var(--coral-dark) !important; }

.hero__scroll{
  position: absolute;
  left: var(--pad);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: .8em;
  color: var(--ink-dim);
  font-size: .82rem;
  z-index: 2;
}
.hero__scroll .line{
  width: 56px; height: 2px; background: var(--line);
  position: relative; overflow: hidden; border-radius: 2px;
}
.hero__scroll .line::after{
  content:""; position:absolute; left:-30%; top:0; bottom:0; width: 30%;
  background: var(--coral);
  animation: slide 2.6s ease-in-out infinite;
}
@keyframes slide{ 0%{left:-30%;} 50%{left:100%;} 100%{left:100%;} }
@media (prefers-reduced-motion: reduce){ .hero__scroll .line::after{ animation:none; left:0; width:100%; } }

/* ---------------- Section shells ---------------- */
section{ padding: 7.5rem 0; position: relative; }
.section--curtain{ background: var(--indigo); color: var(--on-dark); }
.section--curtain h2, .section--curtain h3, .section--curtain h4{ color: var(--on-dark); }
.section--curtain p{ color: var(--on-dark-dim); }
.section--curtain .section__num{ color: var(--coral); }
.section--curtain .section__head{ border-bottom-color: var(--line-dark); }
.section--curtain .section__intro{ color: var(--on-dark); }

.section__head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3.6rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.8rem;
}
.section__num{
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  color: var(--coral-dark);
}
.section__head h2{
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  margin-top: .5rem;
}
.section__intro{ font-size: 1.1rem; color: var(--ink); }

/* ---------------- Programa ---------------- */
.paths{
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 3rem;
  margin: 3rem 0 4.5rem;
}
.paths__divider{ background: var(--line); }
.path h3{ font-size: 1.4rem; margin-bottom: .2rem; font-weight: 700; }
.path .path__tag{
  display:block; color: var(--coral-dark); font-weight: 600; font-size: .85rem; margin-bottom: 1rem;
}
.path ul{ margin: 1rem 0 0; padding: 0; list-style: none; }
.path li{
  padding: .6rem 0 .6rem 1.4rem;
  border-top: 1px solid var(--line);
  position: relative;
  color: var(--ink-dim);
  font-size: .97rem;
}
.path li::before{
  content:"";
  position:absolute; left:0; top: 1.2rem;
  width: 7px; height: 7px;
  background: var(--coral); border-radius: 50%;
}
@media (max-width: 760px){
  .paths{ grid-template-columns: 1fr; gap: 2.4rem; }
  .paths__divider{ display:none; }
}

.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.step{
  background: var(--paper);
  padding: 2.1rem 1.7rem;
  position: relative;
}
.step__n{
  font-family: var(--display);
  color: var(--coral);
  font-size: 1.9rem;
  font-weight: 700;
  display:block;
  margin-bottom: .6rem;
}
.step h4{ font-size: 1.02rem; margin-bottom: .4rem; font-weight: 700; }
.step p{ font-size: .9rem; margin: 0; color: var(--ink-dim); }
@media (max-width: 760px){
  .steps{ grid-template-columns: 1fr; border-radius: 14px; }
}

.logistics{
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.logistics h4{ font-size: 1.02rem; color: var(--coral-dark); margin-bottom: .5rem; font-weight: 700; }
.logistics p{ font-size: .95rem; }
@media (max-width: 760px){ .logistics{ grid-template-columns: 1fr; } }

/* ---------------- Fundadora ---------------- */
.founder__photo{
  display: block;
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 0 auto 3.6rem;
}

.founder{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.founder__card{
  background: var(--indigo-2);
  border-radius: 20px;
  padding: 2.6rem;
  position: sticky;
  top: 110px;
}
.founder__card::after{ content:""; display:table; clear:both; }
.founder__card-photo{
  float: right;
  width: clamp(220px, 55%, 310px);
  height: auto;
  margin: 0 -1rem 1rem 1.6rem;
  shape-outside: url('../img/elizabeth-guerrero.png');
  shape-image-threshold: 0.5;
  shape-margin: 1rem;
}
.founder__card .tiny-label{
  color: var(--mauve-light); font-weight: 700; font-size: .85rem; margin-bottom: .7rem; display:block;
}
.founder__card h3{ font-size: 1.8rem; margin-bottom: .3rem; font-weight: 700; }
.founder__card .role{ color: var(--on-dark-dim); font-size: .95rem; margin-bottom: 1.6rem; display:block; }
.founder__card .badge-list{ list-style: none; padding:0; margin: 1.6rem 0 0; display:flex; flex-direction:column; gap:.8rem; clear: both; }
.founder__card .badge-list li{ font-size: .88rem; color: var(--on-dark-dim); padding-left: 1rem; border-left: 2px solid var(--mauve-light); }

.timeline{ list-style: none; margin:0; padding:0; border-left: 2px solid var(--line-dark); }
.timeline li{
  position: relative;
  padding: 0 0 2.2rem 2.1rem;
}
.timeline li::before{
  content:"";
  position:absolute; left: -7px; top: .35rem;
  width: 11px; height: 11px;
  background: var(--indigo); border: 2px solid var(--mauve-light);
  border-radius: 50%;
}
.timeline .yr{
  font-family: var(--display);
  color: var(--mauve-light);
  font-weight: 700;
  font-size: .98rem;
  display:block;
  margin-bottom: .3rem;
}
.timeline p{ margin: 0; font-size: .97rem; }

/* Cronología de Elizabeth (fundadora) — interlineado más compacto */
#fundadora .timeline p{ line-height: 1.35; }
#fundadora .timeline li{ padding-bottom: 1.1rem; }

@media (max-width: 860px){
  .founder{ grid-template-columns: 1fr; }
  .founder__card{ position: static; }
}

@media (max-width: 560px){
  .founder__card-photo{
    float: none;
    display: block;
    width: 200px;
    margin: 0 auto 1.6rem;
  }
}

/* section outside curtain (Trayectoria) uses light timeline — override */
#trayectoria .timeline{ border-left-color: var(--line); }
#trayectoria .timeline li::before{ background: var(--paper); border-color: var(--coral); }
#trayectoria .timeline .yr{ color: var(--coral-dark); }
#trayectoria .timeline p{ color: var(--ink-dim); }
#trayectoria .timeline strong{ color: var(--ink) !important; }

/* ---------------- Trayectoria / afiliaciones ---------------- */
.affiliations{
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1rem;
  margin-top: 1rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.affiliations a,
.affiliations .affiliations__item{
  color: var(--ink) !important;
  font-size: .88rem;
  font-weight: 600;
  background: var(--paper-2);
  border-radius: 100px;
  padding: 9px 16px;
  display: inline-block;
}
.affiliations a:hover{ background: var(--coral-soft); color: var(--coral-dark) !important; }

/* ---------------- Galería ---------------- */
.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border-radius: 20px;
  overflow: hidden;
}
.gallery__cell{
  background: var(--indigo-2);
  padding: 2.6rem 2rem;
  display:flex; flex-direction:column; gap: 1rem; justify-content: space-between;
  min-height: 230px;
  transition: background .2s ease;
}
.gallery__cell:hover{ background: var(--coral); }
.gallery__cell h4{ font-size: 1.15rem; font-weight: 700; }
.gallery__cell p{ font-size: .92rem; margin: 0; color: var(--on-dark-dim); }
.gallery__cell:hover p{ color: rgba(255,255,255,0.85); }
.gallery__cell .go{
  font-size: .88rem;
  font-weight: 600;
  color: var(--on-dark);
  display:flex; align-items:center; gap:.5em;
}
.gallery__cell .go svg{ width: 14px; height: 14px; transition: transform .2s ease; }
.gallery__cell:hover .go svg{ transform: translate(3px,-3px); }
@media (max-width: 860px){ .gallery{ grid-template-columns: 1fr; } }

/* ---------------- Contacto ---------------- */
.contact{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}
.contact h2{ font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1.2rem; font-weight: 700; }
.contact__channels{ list-style:none; padding:0; margin: 2rem 0 0; }
.contact__channels li{ border-top: 1px solid var(--line); }
.contact__channels li:last-child{ border-bottom: 1px solid var(--line); }
.contact__channels a{
  display:flex; justify-content: space-between; align-items:center;
  padding: 1.3rem 0;
  color: var(--ink) !important;
  font-size: 1.1rem;
  font-weight: 600;
}
.contact__channels a span.lbl{ color: var(--ink-dim); font-size: .85rem; font-weight: 500; }
.contact__channels a:hover{ color: var(--coral-dark) !important; }
.contact__channels a:hover span.lbl{ color: var(--coral); }

.contact__social{
  background: var(--paper-2);
  border-radius: 20px;
  padding: 2.6rem;
}
.contact__social h4{ font-size: 1.02rem; margin-bottom: 1.4rem; color: var(--ink); font-weight: 700; }
.social-row{ display:flex; gap: 1rem; flex-wrap: wrap; }
.social-row a{
  width: 44px; height: 44px;
  background: var(--paper);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--ink) !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-row a:hover{ background: var(--coral); color: #fff !important; transform: translateY(-2px); }
.social-row svg{ width: 18px; height: 18px; }

/* ---------------- Footer ---------------- */
footer{
  background: var(--ink);
  padding: 3rem 0 2.2rem;
}
.footer__row{
  display:flex; justify-content: space-between; align-items:center; flex-wrap: wrap; gap: 1.2rem;
}
.footer__mark{ font-family: var(--display); color: var(--on-dark); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: .7rem; }
.footer__logo{ height: 80px; width: auto; border-radius: 8px; display: block; }
.footer__fine{ color: var(--on-dark-dim); font-size: .82rem; }
.footer__fine a{ color: var(--on-dark-dim); }
.footer__fine a:hover{ color: var(--coral); }

/* utility */
.sr-only{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
}
