/* Layout: contenedor, tipografía, secciones, cabecera, pie */
.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--gutter)
}

h1,
h2,
h3,
p {
  margin: 0
}

h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance
}

h3 {
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  text-wrap: balance
}

.script {
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent)
}

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent)
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch
}

section {
  padding-block: clamp(56px, 8vw, 104px)
}

.alt {
  background: var(--bg-alt)
}


/* header */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px
}

.brand {
  flex: none;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 4px 10px
}

.brand img {
  flex: none;
  height: 56px;
  width: auto;
  max-width: none;
  display: block
}

.links {
  display: flex;
  gap: clamp(14px, 1.7vw, 22px);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase
}

.links a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--muted)
}

.links a:hover {
  color: var(--ink)
}

.menu-btn,
.menu-only {
  display: none
}

.menu-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  transition: background .2s, color .2s
}

.menu-btn:hover,
header.menu-open .menu-btn {
  background: var(--ink);
  color: var(--bg)
}

.bars {
  position: relative;
  display: block;
  width: 18px;
  height: 14px
}

.bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s, opacity .2s
}

.bars i:nth-child(1) {
  top: 0
}

.bars i:nth-child(2) {
  top: 6px
}

.bars i:nth-child(3) {
  top: 12px
}

header.menu-open .bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

header.menu-open .bars i:nth-child(2) {
  opacity: 0
}

header.menu-open .bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

/* menú desplegable: tablet y celular */
@media(max-width:1060px) {
  .menu-btn {
    display: grid
  }

  .menu-only {
    display: block
  }

  .links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px max(var(--gutter), calc((100% - 1160px) / 2 + var(--gutter))) 22px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 40px -28px rgba(0, 35, 82, .4);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    font-size: .9rem;
    letter-spacing: .08em;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s
  }

  header.menu-open .links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s, transform .2s
  }

  .links a {
    padding: 17px 2px;
    border-top: 1.5px solid var(--line);
    color: var(--ink);
    font-weight: 700
  }

  .links a:first-child {
    border-top: 0
  }

  .links a:hover,
  .links a:focus-visible {
    color: var(--accent)
  }
}

/* en celular Instagram va dentro del menú, para que quepan logo, Inscribirme y el botón */
@media(max-width:480px) {
  .nav-r .igbtn {
    display: none
  }
}



footer {
  background: var(--bg-alt);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-size: .8rem
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between
}

footer .legal {
  display: block;
  margin-top: 0;
  padding-top: 0
}

footer .legal-in {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .66rem
}

footer .legal p {
  margin: 0
}

footer .legal a {
  font-weight: 700;
  text-underline-offset: 3px
}


/* utilidades */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important
  }
}
