/* Iderma Capilar — sistema visual de la línea de tiempo */
:root {
  --navy: #172541;
  --gold: #b18b4c;
  --gold2: #d0b27a;
  --cream: #f5f4ef;
  --white: #fff;
  --ink: #202632;
  --muted: #747986;
  --shadow: 0 24px 60px rgba(18, 29, 48, 0.22);
  --font: "Outfit", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.48;
}
.site-header {
  padding: 32px 5vw 16px;
  text-align: center;
}
  .brand-logo{
    height:84px;
    width:auto;
    display:block;
    margin:0 auto 14px;
    object-fit:contain;
  }
.brand-symbol {
  height: 52px;
  margin: auto auto 8px;
  color: var(--gold);
  font-size: 54px;
  font-weight: 700;
  transform: rotate(18deg);
}
h1 {
	font-family: "Roboto Condensed", sans-serif;
	font-size: 23px;
  margin: 0;
  color: rgba(27,55,94,1.1);
  font-size: clamp(20px, 2.08vw, 30.83px);
  line-height: 1.44;
  color: rgba(27,55,94,1.1);
  font-weight: 700;
  letter-spacing: 6px;
}
.eyebrow {
  margin: 11px 0 ;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.23em;
  font-weight: 500;
  line-height: 1.44;
}
.intro {
  margin: 14px 0 20px;
  color: var(--muted);
  font-size: 16px;
}
.year-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  gap: 52px;
  padding: 14px 20px;
  background: rgba(245, 244, 239, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(177, 139, 76, 0.18);
  overflow-x: auto;
}
.year-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  position: relative;
  white-space: nowrap;
}
.year-nav a:hover,
.year-nav a.active {
  color: var(--gold);
}
.year-nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--gold);
}
main {
  width: min(1480px, 92vw);
  margin: auto;
}
.timeline-section {
  padding: 34px 0 78px;
}
.year-marker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 17px;
  color: var(--navy);
}
.year-marker span {
  font-size: 20px;
  font-weight: 700;
}
.year-marker small {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.process-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 540px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 38px rgba(20, 30, 47, 0.1);
}
.text-panel {
  padding: 31px 25px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 4;
}
.section-kicker {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.text-panel .section-kicker {
  margin-bottom: 10px;
}
.text-panel h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.08;
  font-weight: 500;
}
.copy p {
  margin: 0 0 13px;
  font-size: 13px;
}
.visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
}
.visual-panel {
  position: relative;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  background: #d7d2c8;
  isolation: isolate;
  transition: transform 0.3s, box-shadow 0.3s;
}
.visual-bg {
  position: absolute;
  inset: 0;
  background-image: var(--image),
    linear-gradient(135deg, #e6e1d7, #7c6247 60%, #1c2a44);
  background-size: cover;
  background-position: center;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.visual-panel:hover .visual-bg {
  transform: scale(1.045);
  filter: saturate(1.06);
}
.visual-panel:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 22, 39, 0) 35%,
    rgba(13, 22, 39, 0.84) 100%
  );
  pointer-events: none;
}
.visual-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 24px 23px;
  color: #fff;
  transform: translateY(calc(100% - 30px));
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
  background: linear-gradient(
    180deg,
    rgba(23, 37, 65, 0.02),
    rgba(23, 37, 65, 0.95) 24%
  );
}
.visual-panel:hover .visual-overlay,
.visual-panel.is-open .visual-overlay {
  transform: translateY(0);
}
.visual-overlay span {
  color: var(--gold2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.17em;
}
.visual-overlay h3 {
  margin: 7px 0 8px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
}
.visual-overlay p {
  margin: 0 0 13px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}
.visual-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mini-btn {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  font: 500 14px var(--font);
  text-decoration: none;
  cursor: pointer;
}
.mini-btn.dark {
  background: var(--navy);
  color: #fff;
}
.mini-btn.gold {
  background: var(--gold);
  color: #fff;
}
.visual-empty .visual-bg {
  background-image: linear-gradient(135deg, #e7e3da, #a88d64);
}
.empty-copy {
  position: absolute;
  z-index: 4;
  left: 22px;
  bottom: 20px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.visual-panel.is-open {
  z-index: 20;
  box-shadow: var(--shadow);
  transform: scale(1.012);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 18, 31, 0.66);
  backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  width: min(650px, 92vw);
  max-height: 82vh;
  overflow: auto;
  padding: 36px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.modal-box h3 {
  margin: 8px 0 12px;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.08;
}
.modal-box p {
  font-size: 14px;
}
.modal-close {
  float: right;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  font-size: 25px;
  cursor: pointer;
}

/* NUEVO ADN — Lista editorial */

.adn-list {
  list-style: none;
  counter-reset: adn-counter;
  margin: 1rem 0;
  padding: 0;
}

.adn-list li {
  counter-increment: adn-counter;
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.3rem;
}

.adn-list li::before {
  content: counter(adn-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.15rem;

  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.adn-list h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.adn-list p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.78;
}

/* Separador sutil entre conceptos */
.adn-list li:not(:last-child) {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-links {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 18px;
    margin-top:33px;
  }

  .header-links a {
    font-family:var(--f-sub);
    font-size:0.95rem;
    font-weight:500;
    letter-spacing:0.1em;
    text-transform:uppercase;
    color:var(--ink-soft);
    text-decoration:none;
    padding-bottom:2px;
    border-bottom:1px solid transparent;
    transition:color .25s ease, border-color .25s ease;
  }

  .header-links a:hover {
    color:var(--ink);
    border-color:var(--gold);
  }

  .header-links .link-divider {
    width:3px;
    height:3px;
    border-radius:50%;
    background:var(--line);
  }



/* NUEVO flag — Lista con flag */

.flag-list {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
}

.flag-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.8rem;
}

.flag-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;

  width: 14px;
  height: 14px;

  background-image: url("https://developer.mozilla.org/static/client/flag.a3ec9d1b88184452.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.flag-list h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.flag-list p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.78;
}

.flag-list li:not(:last-child) {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* NUEVO check — Lista con check */

.check-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;

  width: 14px;
  height: 14px;

  background-image: url("https://developer.mozilla.org/static/client/check.0440cf8a72ac2317.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.check-list h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.check-list p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.78;
}

.check-list li:not(:last-child) {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}


.history {
  margin: 10px 0 100px;
  padding: 55px 7vw;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.history h2 {
  margin: 8px 0 28px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  font-weight: 500;
}
.history-copy {
  max-width: 820px;
}
.history-copy p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 17px;
}
.history-end {
  margin-top: 42px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.history-end strong {
  font-size: 24px;
  color: var(--gold2);
  letter-spacing: 0.08em;
}
.history-end span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}
footer {
  width: min(1480px, 92vw);
  margin: auto;
  padding: 28px 0 45px;
  border-top: 1px solid rgba(23, 37, 65, 0.12);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}
footer span:first-child {
  font-weight: 600;
  color: var(--navy);
}
@media (max-width: 900px) {
  .process-card {
    grid-template-columns: 235px 1fr;
  }
  .visual-grid {
    grid-template-columns: 1fr;
  }
  .visual-panel:nth-child(2) {
    display: none;
  }
}
@media (max-width: 650px) {
  html {
    scroll-padding-top: 118px;
  }
  .site-header {
    padding-top: 22px;
  }
  .year-nav {
    justify-content: flex-start;
    gap: 28px;
  }
  .timeline-section {
    padding-bottom: 48px;
  }
  .process-card {
    display: block;
  }
  .text-panel {
    padding: 28px 23px;
  }
  .visual-panel {
    min-height: 330px;
  }
  .visual-overlay {
    transform: translateY(0);
    background: linear-gradient(
      180deg,
      rgba(23, 37, 65, 0.02),
      rgba(23, 37, 65, 0.92) 30%
    );
  }
  .visual-panel:nth-child(2) {
    display: none;
  }
  .history {
    padding: 38px 24px;
    margin-bottom: 55px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}

/* =========================================
   CIERRE 2026 → FUTURO / CRONOLOGÍA SVG
========================================= */
.future-card {
  grid-template-columns: 270px 1fr;
}
.future-grid {
  grid-template-columns: repeat(3, 1fr);
}
.future-panel {
  min-height: 440px;
  background: radial-gradient(
      circle at 80% 18%,
      rgba(208, 178, 122, 0.25),
      transparent 38%
    ),
    linear-gradient(145deg, #172541 0%, #243657 55%, #101a2d 100%);
}
.future-panel:after {
  background: linear-gradient(
    180deg,
    transparent 18%,
    rgba(10, 18, 31, 0.9) 100%
  );
}
.future-number {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  font-size: 68px;
  line-height: 1;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.1);
}
.future-content {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 6;
}
.future-content span {
  color: var(--gold2);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.future-content h3 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 500;
}
.future-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  line-height: 1.55;
}
.future-panel:hover {
  transform: scale(1.015);
  z-index: 10;
  box-shadow: var(--shadow);
}
.future-panel:hover .future-bg {
  transform: none;
}
.history {
  position: relative;
  overflow: hidden;
  padding: 58px 6vw 48px;
}
.history-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.history-head h2 {
  max-width: 760px;
}
.history-lead {
  max-width: 300px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.5;
}
.history-copy {
  max-width: 850px;
  position: relative;
  z-index: 2;
}
.history-copy p {
  font-size: 13px;
  margin-bottom: 12px;
}
.chronology-wrap {
  position: relative;
  margin-top: 48px;
  padding: 28px 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(177, 139, 76, 0.08),
    transparent 58%
  );
}
.chronology-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold2);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
}
.chronology-topline strong {
  font-size: 16px;
  letter-spacing: 0.1em;
}
.chronology-svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 0;
  overflow: visible;
}
.chronology-svg .chrono-node > circle:first-child {
  fill: var(--gold2);
  stroke: #fff;
  stroke-width: 2;
}
.chronology-svg .chrono-node .halo {
  fill: none;
  stroke: rgba(208, 178, 122, 0.28);
  stroke-width: 1;
}
.chronology-svg .chrono-node text {
  fill: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.chronology-svg .chrono-node .chrono-label {
  fill: rgba(255, 255, 255, 0.62);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.chronology-svg .chrono-node.final > circle:first-child {
  fill: #fff;
  stroke: var(--gold2);
}
.chronology-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.16em;
}
@media (max-width: 900px) {
  .future-grid {
    grid-template-columns: 1fr;
  }
  .future-panel {
    min-height: 300px;
  }
  .history-head {
    display: block;
  }
  .history-lead {
    margin-top: -14px;
    max-width: 500px;
  }
  .chronology-wrap {
    overflow-x: auto;
  }
  .chronology-svg {
    min-width: 900px;
  }
}
@media (max-width: 650px) {
  .future-grid {
    grid-template-columns: 1fr;
  }
  .future-panel {
    min-height: 280px;
  }
  .history {
    padding: 42px 24px 34px;
  }
  .chronology-wrap {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .chronology-foot {
    flex-direction: column;
    gap: 6px;
  }
  .history-copy p {
    font-size: 13px;
  }
}

/* Cronología editorial — evolución no lineal */
.chronology-svg .chrono-trail {
  filter: drop-shadow(0 0 5px rgba(208, 178, 122, 0.16));
}
.chronology-svg .chrono-trail-shadow {
  stroke-linecap: round;
}
.chronology-svg .chrono-node.peak > circle:first-child {
  fill: #fff;
  stroke: var(--gold2);
  stroke-width: 2.5;
}
.chronology-svg .chrono-node.inflection > circle:first-child {
  fill: var(--gold2);
  stroke: #fff;
  stroke-width: 2;
}
.chronology-svg .chrono-axis-note line {
  stroke: rgba(208, 178, 122, 0.5);
  stroke-width: 1;
}
.chronology-svg .chrono-axis-note text {
  fill: rgba(255, 255, 255, 0.38);
  font-family: var(--font);
  font-size: 8px;
  letter-spacing: 0.16em;
}
@media (max-width: 900px) {
  .chronology-svg {
    min-width: 980px;
  }
}

.editorial-top{
    position:fixed;
    right:24px;
    bottom:28px;
    z-index:9999;

    display:flex;
    align-items:center;

    width:48px;
    height:48px;

    overflow:hidden;

    border:1px solid rgba(177,139,76,.55);
    border-radius:50%;

    background:rgba(23,37,65,.96);
    color:#fff;

    text-decoration:none;

    box-shadow:0 10px 30px rgba(15,25,42,.25);

    opacity:0;
    visibility:hidden;
    transform:translateY(15px);

    transition:
        width .45s cubic-bezier(.2,.75,.2,1),
        opacity .3s ease,
        transform .35s ease,
        visibility .3s ease,
        background .3s ease;
}

.editorial-top.is-visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    pointer-events:auto;
}

.editorial-top:hover{
    width:145px;
    border-radius:30px;
    background:#243657;
}

.editorial-top-arrow{
    flex:0 0 48px;
    width:48px;

    text-align:center;

    color:#d0b27a;
    font-size:22px;
    line-height:48px;

    transition:transform .4s cubic-bezier(.2,.75,.2,1);
}

.editorial-top:hover .editorial-top-arrow{
    transform:translateY(-4px);
}

.editorial-top-label{
    white-space:nowrap;

    color:#fff;
    font-size:9px;
    font-weight:600;
    letter-spacing:.18em;

    opacity:0;
    transform:translateX(10px);

    transition:
        opacity .25s ease .08s,
        transform .4s cubic-bezier(.2,.75,.2,1) .05s;
}

.editorial-top:hover .editorial-top-label{
    opacity:1;
    transform:translateX(0);
}

/* MINI BUTTONS — SLIDE RIGHT INTERNO */
.mini-btn{position:relative;display:inline-flex;align-items:center;gap:7px;overflow:hidden;isolation:isolate;transition:transform .3s ease,box-shadow .3s ease}.mini-btn::before{content:"";position:absolute;left:-100%;top:0;bottom:0;width:100%;z-index:-1;background:rgba(255,255,255,.14);transition:left .4s cubic-bezier(.2,.75,.2,1)}.mini-btn::after{content:"→";display:inline-block;opacity:0;transform:translateX(-7px);transition:opacity .25s ease,transform .4s cubic-bezier(.2,.75,.2,1)}.mini-btn:hover{transform:translateX(3px);box-shadow:0 6px 15px rgba(15,25,42,.18)}.mini-btn:hover::before{left:0}.mini-btn:hover::after{opacity:1;transform:translateX(0)}
@media(max-width:650px){.editorial-top{right:16px;bottom:18px;width:42px;height:42px}.editorial-top-arrow{flex-basis:42px;width:42px;line-height:42px}.editorial-top:hover{width:42px}.editorial-top-label{display:none}}