/* ═══ Historia — El Libro de las Alas por capítulos ═══ */
.historia-body { min-height: 100svh; }
.historia-body .feathers { opacity: .5; }

.hnav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); background: linear-gradient(to bottom, var(--blanco) 55%, rgba(247,247,245,0)); }
.hnav__logo img { height: 34px; width: auto; }
.hnav__links { display: flex; gap: 28px; align-items: center; }
.hnav__links a { font-family: var(--oswald); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; transition: opacity .3s; min-height: 44px; display: inline-flex; align-items: center; }
.hnav__links a:hover { opacity: 1; }
.hnav__porte { font-family: var(--corm) !important; font-style: italic; text-transform: none !important; font-size: 17px !important; letter-spacing: .02em !important; }

.hist { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 150px var(--gutter) 90px; }

.hhero { text-align: center; margin-bottom: 64px; }
.hhero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--cinzel); font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--humo); }
.hhero__eyebrow i { display: block; width: 34px; height: 1px; background: var(--linea); }
.hhero__title { font-family: var(--oswald); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 8vw, 104px); line-height: .95; letter-spacing: -.01em; margin: 22px 0 20px; }
.hhero__lead { font-size: clamp(18px, 2vw, 22px); color: var(--ceniza); font-style: italic; }

/* pestañas */
.htabs { display: flex; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.htabs::-webkit-scrollbar { display: none; }
.htab { flex: 1 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 22px; min-height: 76px; text-align: left; position: relative; border-right: 1px solid var(--linea); transition: background .3s, color .3s; }
.htab:last-child { border-right: 0; }
.htab__n { font-family: var(--cinzel); font-size: 12px; letter-spacing: .3em; color: var(--humo); }
.htab__t { font-family: var(--oswald); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.htab:hover { background: rgba(10,10,10,.04); }
.htab.is-on { background: var(--negro); color: var(--frio); }
.htab.is-on .htab__n { color: rgba(229,229,229,.6); }
.htab.is-locked .htab__t { opacity: .45; }
.htab.is-locked .htab__n::after, .htab.is-key .htab__n::after { content: ""; display: inline-block; width: 9px; height: 8px; margin-left: 8px; border: 1.5px solid currentColor; border-radius: 1px; box-shadow: 0 -5px 0 -2.5px var(--blanco), 0 -5px 0 -1px currentColor; vertical-align: -1px; }
.htab.is-on.is-locked .htab__n::after, .htab.is-on.is-key .htab__n::after { box-shadow: 0 -5px 0 -2.5px var(--negro), 0 -5px 0 -1px currentColor; }

/* panel */
.hpanel { padding: 56px 0 0; }
.hpanel__head { text-align: center; margin-bottom: 40px; }
.hpanel__n { font-family: var(--cinzel); font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--humo); }
.hpanel__title { font-family: var(--oswald); font-weight: 600; text-transform: uppercase; font-size: clamp(34px, 5vw, 60px); line-height: 1; margin: 12px 0 10px; }
.hpanel__sub { font-style: italic; font-size: 20px; color: var(--ceniza); }

.hvideo { position: relative; aspect-ratio: 16 / 9; background: var(--negro); overflow: hidden; }
.hvideo video, .hvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.hvideo__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(229,229,229,.6); font-style: italic; font-size: 20px; text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 30%, #2a2c30 0%, #0A0A0A 70%); }
.htext { max-width: 680px; margin: 48px auto 0; font-size: 21px; line-height: 1.55; }
.htext p + p { margin-top: 1.1em; }
.htext:empty { display: none; }

/* candado */
.hlock { max-width: 620px; margin: 0 auto; text-align: center; padding: 48px clamp(20px, 5vw, 56px) 52px; border: 1px solid var(--linea); background: var(--blanco-puro); }
.hlock--closed { background: transparent; border-style: dashed; }
.hlock__icon { width: 30px; height: 24px; margin: 18px auto 26px; border: 2px solid var(--negro); border-radius: 2px; position: relative; }
.hlock__icon::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 16px; height: 14px; margin-left: -10px; border: 2px solid var(--negro); border-bottom: 0; border-radius: 10px 10px 0 0; }
.hlock--closed .hlock__icon, .hlock--closed .hlock__icon::before { border-color: var(--humo); }
.hlock__title { font-family: var(--oswald); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; }
.hlock__lead { margin-top: 14px; color: var(--ceniza); font-size: 19px; }
.hlock__a { border-bottom: 1px solid var(--negro); }
.hlock__links { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hlock__links a { font-family: var(--oswald); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; opacity: .75; transition: opacity .3s; }
.hlock__links a:hover { opacity: 1; }

.hform { margin-top: 30px; text-align: left; }
.hform__label { display: block; font-family: var(--cinzel); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--humo); margin-bottom: 8px; }
.hform__row { display: flex; border-bottom: 1px solid var(--negro); }
.hform__row input { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--cinzel); font-size: 24px; letter-spacing: .18em; padding: 12px 0; outline: none; color: var(--negro); text-transform: uppercase; }
.hform__row input::placeholder { color: rgba(10,10,10,.28); }
.hform__btn { font-family: var(--oswald); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; padding: 12px 0 12px 20px; min-height: 48px; }
.hform__btn:disabled { opacity: .4; cursor: wait; }
.hform__msg { margin-top: 10px; font-style: italic; font-size: 16px; color: var(--humo); min-height: 1.4em; }
.hform__msg.is-error { color: #5A1F2E; }

.hist__foot { margin-top: 90px; text-align: center; font-style: italic; color: var(--humo); font-size: 18px; }

@media (max-width: 760px) {
  .hnav { padding: 14px var(--gutter) 22px; }
  .hist { padding-top: 120px; }
  .hhero { margin-bottom: 44px; }
  .hhero__lead br, .hlock__lead br { display: none; }
  .htabs { margin: 0 calc(var(--gutter) * -1); padding: 0; }
  .htab { padding: 16px 18px; }
  .hpanel { padding-top: 40px; }
  .hvideo { margin: 0 calc(var(--gutter) * -1); }
  .hform__row input { font-size: 20px; letter-spacing: .12em; }
  .hhero__eyebrow, .htab__n, .hpanel__n, .hform__label { font-size: 12px; }
}
