/* Identidad y continuidad visual del kit aprobado. */
:root {
  --navy: #081C29;
  --navy-dark: #06151f;
  --ink: #eef3f0;
  --muted: #a8bdc2;
  --gold: #D6B66C;
  --cream: #081C29;
  --line: #ffffff1b;
  --teal: #76B9BB;
  --panel: #102a38;
}
body { background: var(--navy); color: var(--ink); }
html { scroll-padding-top: 110px; }
.menu-toggle { display: none; }
a, button { -webkit-tap-highlight-color: transparent; }
.sidebar {
  position: sticky; top: 0; inset: 0 0 auto; width: 100%; min-height: 92px;
  padding: 15px max(32px, calc((100vw - 1216px)/2));
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 30px; background: #081c29f2; border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px); box-shadow: none;
}
.brand { font-size: 23px; gap: 13px; letter-spacing: 2.5px; flex-shrink: 0; }
.brand img { width: 54px; height: 54px; }
.brand small { color: var(--gold); font-size: 6.8px; letter-spacing: 1.35px; }
.menu-content { display: flex; flex: initial; flex-direction: row; align-items: center; }
.nav-label, .sidebar-bottom { display: none; }
#nav { display: flex; align-items: center; gap: 9px; }
nav a { color: #b5c6ca; padding: 11px 16px; font-size: 12px; margin: 0; border-radius: 24px; }
#nav a .icon { display: none; }
nav a.active { color: var(--gold); background: #d6b66c0d; }
nav a.active:after { display: none; }
.workspace { margin: 0; }
.topbar { max-width: 1216px; margin: auto; height: 53px; padding: 0; border: 0; font-size: 11px; }
.top-right { gap: 26px; }
.free-label { color: #91aeb5; font-size: 8px; letter-spacing: 1.3px; }
.private-dot { background: var(--teal); width: 5px; height: 5px; }
.progress-link { color: #bcd1d3; font-size: 11px; }
.progress-link span { border-color: #76b9bb3b; color: var(--teal); }
main { max-width: 1216px; padding: 12px 0 52px; min-height: calc(100vh - 230px); }
main:focus { outline: none; }
footer { max-width: 1216px; margin: auto; padding: 25px 0; color: #91a9b0; font-size: 10px; }
.footer-line { color: #476570; }
.toast { left: 50%; background: var(--teal); color: var(--navy); font-weight: 600; }
.btn { min-height: 45px; border-radius: 7px; font-size: 12px; }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #e7ca88; }
.btn-dark, .btn-white { background: var(--teal); color: var(--navy); }
.btn-dark:hover, .btn-white:hover { background: #95cacc; }
.btn-light { color: #e6efeb; background: #ffffff03; border-color: #8fb5b441; }
.btn-text, .quiet-link { color: var(--teal); }
.welcome-hero {
  position: relative; isolation: isolate; min-height: 390px; overflow: hidden;
  border-radius: 22px; border: 1px solid #76b9bb24;
  display: grid; grid-template-columns: 1.04fr 1.1fr;
  background: #0c2532;
}
.welcome-copy { position: relative; z-index: 3; padding: 38px 20px 34px 38px; }
.welcome-copy .eyebrow { color: var(--gold); font-size: 9px; letter-spacing: 2.4px; }
.welcome-title {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(36px, 4vw, 54px); font-weight: 700;
  line-height: 1.08; letter-spacing: -1.6px; margin: 17px 0 15px;
  text-transform: none; color: #eef4f0;
}
.welcome-title span { color: var(--teal); }
.welcome-lead { font-size: 14px; line-height: 1.7; max-width: 350px; color: #bbced1; margin: 0 0 24px; }
.welcome-copy .button-row { gap: 19px; }
.welcome-copy .quiet-link { color: #c6d9d9; font-size: 12px; display: inline-flex; align-items: center; min-height: 44px; }
.welcome-picture { position: relative; margin: 0; min-width: 0; }
.welcome-picture img { width: 100%; height: 100%; object-fit: cover; object-position: 53% center; }
.welcome-picture:before {
  content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0c2532 0%, #0c2532a6 13%, transparent 40%),
    linear-gradient(0deg, #0c2532d9 0%, transparent 27%);
}
.welcome-picture figcaption { position: absolute; bottom: 19px; right: 24px; z-index: 2; font-size: 8px; color: #e9e8d3; letter-spacing: .8px; }
.resource-strip { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; background: #102a38; padding: 22px 10px; margin: 18px 0 35px; }
.resource-strip a { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 1px 15px; border-right: 1px solid var(--line); border-radius: 0; }
.resource-strip a:last-child { border-right: 0; }
.resource-strip .icon { width: 27px; height: 27px; color: var(--gold); stroke-width: 1.2; }
.resource-strip strong { display: block; font-size: 13px; font-weight: 600; color: #e0ebe8; }
.resource-strip small { display: block; font-size: 10px; color: #93afb6; margin-top: 3px; }
.resource-strip a:hover strong { color: var(--teal); }
.journeys { position: relative; }
.journeys .section-head { margin: 0; align-items: center; }
.section-head h2 { font: 600 29px/1.2 'Segoe UI', sans-serif; letter-spacing: -.7px; margin-bottom: 8px; }
.section-head p { font-size: 12px; color: #91acb4; }
.journey-hint { display: flex; gap: 7px; align-items: center; color: #8ca8b1; font-size: 10px; }
.journey-hint .icon { width: 14px; height: 14px; }
.journey-carousel { position: relative; outline-offset: -3px; padding-top: 8px; }
.carousel-stage {
  --slide-width: 382px; --slide-shift: 310px;
  position: relative; width: 100%; height: 425px; overflow: hidden;
  perspective: 1400px; transform-style: preserve-3d;
  touch-action: pan-y; cursor: grab; user-select: none;
}
.carousel-stage[data-dragging='true'] { cursor: grabbing; }
.journey-card {
  width: var(--slide-width); min-height: 359px; position: absolute;
  left: calc(50% + var(--drag-offset, 0px)); top: 28px;
  border: 1px solid #a7c0bd52; border-radius: 18px;
  overflow: hidden; background: #132f3d;
  box-shadow: 0 20px 35px #0005;
  transform: translateX(-50%); transform-origin: center;
  transition: transform .5s cubic-bezier(.2,.75,.2,1), opacity .35s, border-color .35s, box-shadow .35s;
}
.journey-card[data-position='active'] { z-index: 3; opacity: 1; border-color: #d6b66ca6; transform: translateX(-50%) translateZ(30px); box-shadow: 0 24px 40px #0007, 0 0 30px #76b9bb0a; }
.journey-card[data-position='prev'] { z-index: 1; opacity: .72; transform: translateX(calc(-50% - var(--slide-shift))) rotateY(25deg) scale(.89); }
.journey-card[data-position='next'] { z-index: 1; opacity: .72; transform: translateX(calc(-50% + var(--slide-shift))) rotateY(-25deg) scale(.89); }
.journey-card:hover { border-color: #d6b66ca6; }
.journey-picture { position: relative; height: 164px; overflow: hidden; background: #234752; }
.journey-picture img { width: 100%; height: 100%; object-fit: cover; object-position: var(--image-position, center); pointer-events: none; }
.journey-picture:after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #132f3d, transparent 68%); }
.journey-card[data-slide='0'] .journey-picture img { object-position: left 44%; }
.journey-card[data-slide='1'] .journey-picture img { object-position: center 65%; }
.journey-card[data-slide='2'] .journey-picture img { object-position: right 35%; }
.journey-index { position: absolute; top: 17px; left: 19px; z-index: 1; background: #081c29c2; color: #d8c38e; border: 1px solid #d6b66c57; border-radius: 20px; padding: 3px 9px; font-size: 9px; letter-spacing: 1px; }
.journey-body { position: relative; padding: 0 25px 24px; margin-top: -1px; }
.journey-tag { color: var(--teal); font-size: 8px; letter-spacing: 1.7px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.journey-body h3 { font-size: 21px; letter-spacing: -.5px; line-height: 1.15; margin: 0 0 11px; font-weight: 600; }
.journey-body p { font-size: 12px; line-height: 1.65; color: #b1c6cc; margin-bottom: 19px; min-height: 40px; }
.journey-body .btn { width: 100%; min-height: 42px; font-size: 11px; background: #ffffff08; border-color: #91b8b540; color: #d8e7e6; }
.journey-card[data-position='active'] .journey-body .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.carousel-controlbar { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: -4px; }
.carousel-arrow { display: grid; place-items: center; width: 43px; height: 43px; background: #ffffff06; color: #c7d9d9; border: 1px solid #76b9bb36; border-radius: 50%; }
.carousel-arrow:hover { background: #76b9bb18; color: var(--gold); }
.carousel-arrow .icon { width: 18px; height: 18px; }
.carousel-arrow.prev .icon { transform: rotate(180deg); }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 9px; }
.carousel-dot { width: 27px; height: 40px; border: 0; padding: 12px 5px; background: none; color: transparent; }
.carousel-dot:before { content: ''; display: block; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: #55727e; transition: background .2s; }
.carousel-dot[aria-pressed='true']:before { background: var(--gold); width: 20px; border-radius: 5px; }
.carousel-caption { text-align: center; font-size: 10px; color: #91aeb6; margin: 8px 0 30px; }
.recommendation { background: linear-gradient(100deg, #13323e, #102a38); border: 1px solid #76b9bb24; border-radius: 12px; padding: 25px 29px; }
.recommendation .eyebrow { color: var(--gold); }
.recommendation h3 { font: 500 24px/1.2 'Segoe UI', sans-serif; color: #e6efec; }
.recommendation p { font-size: 12px; }
.quote { color: #a1bec2; border-left-color: var(--gold); font-size: 19px; margin-top: 28px; }
.quote small { color: #799aa6; }
.page-heading { padding-top: 14px; }
.page-heading h1 { font: 650 46px/1.12 'Segoe UI', sans-serif; letter-spacing: -1.9px; color: #edf2ef; }
.page-heading p { color: var(--muted); }
.page-heading .eyebrow, .page-heading .back { color: var(--teal); }
.panel, .resource-card, .step-row { background: var(--panel); border-color: var(--line); }
.panel h2, .panel h3 { color: #e2ece8; }
.panel p, .panel li { color: #aac1c5; }
.panel .eyebrow { color: var(--gold); }
.step-row strong { color: #dfebe7; }
.step-row small { color: #95b1b8; }
.step-n { background: #76b9bb1a; color: var(--teal); }
.step-row.complete .step-n { background: #76b9bb; color: var(--navy); }
.notes { color: #d6e6e4; background: #081c2999; border-color: #76b9bb3d; }
.notes::placeholder { color: #7c9ca7; }
.save-status { color: #8caab3; }
.day { background: #081c2977; color: #b3cbce; border-color: #76b9bb25; }
.day.active { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.small-note { color: #91afb9!important; }
.meter { background: #24434c; }
.meter span { background: var(--teal); }
.notice { background: #132e39; color: #a1bdc2; border-left-color: var(--gold); }
.search input { color: #e7efeb; background: var(--panel); border-color: #76b9bb33; }
.search input::placeholder { color: #89a7af; }
.search .icon { color: #8fb1b6; }
.filter { background: #102a3877; border-color: #76b9bb2e; color: #a9c3c8; }
.filter.active { color: var(--navy); background: var(--teal); border-color: var(--teal); }
.resource-cover { background: #163d43; }
.resource-cover.video { background: #403b2e; }
.resource-cover.lectura { background: #203b51; }
.resource-cover.biblioteca { background: #34364c; }
.cover-word, .resource-cover .cover-word { color: #b9d9d5; }
.resource-cover.video .cover-word { color: #d9c590; }
.resource-cover.lectura .cover-word { color: #acc9df; }
.resource-cover.biblioteca .cover-word { color: #c6bfdc; }
.cover-icon .icon { color: #a7c8c7; }
.bookmark { background: #081c2944; color: #c9dcdb; border-color: #b3c6bb38; }
.bookmark.active { background: var(--gold); color: var(--navy); }
.tag { color: #8eafb6; }
.resource-body h3 { color: #e3ece9; }
.resource-body p { color: #aac0c5; }
.resource-bottom { border-color: var(--line); }
.empty { background: var(--panel); border-color: #76b9bb33; }
.stat { background: #12313b; border-color: #76b9bb24; }
.stat strong { color: var(--gold); }
.stat span { color: #a9c0c6; }
.tab { color: #a1bcc3; }
.detail-cover { background: #143d43; }
.detail-cover.video { background: #403b2e; }
.detail-cover.lectura { background: #203b51; }
.detail-cover.biblioteca { background: #34364c; }
.detail-cover .cover-word { color: #b7d3d2; }
.detail-cover .icon { color: var(--teal); }
.external-note { background: #76b9bb0c; color: #a7c7c6; }
.about-hero { background: #153441; border: 1px solid var(--line); }
.about-hero h2 { color: var(--gold); }
.about-hero p { color: #bed0d2; }
.project-cover { margin: 0 0 28px; height: 265px; border-radius: 15px; overflow: hidden; position: relative; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.project-cover figcaption { position: absolute; bottom: 12px; right: 16px; background: #081c29b3; color: #dbe5da; font-size: 8px; border-radius: 4px; padding: 3px 7px; }
.project-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 25px; }
.project-pillars .panel { padding: 25px; }
.project-pillars .icon { color: var(--gold); margin-bottom: 15px; width: 27px; height: 27px; }
.project-pillars h2 { font: 600 22px 'Segoe UI', sans-serif; }
.project-paths { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 24px; }
dialog { color: var(--ink); background: #13303d; border: 1px solid #76b9bb40; }
dialog p { color: var(--muted); }
.noscript { left: 0; color: var(--navy); }
@media (max-width: 1280px) {
  .sidebar { padding-inline: 30px; }
  main, .topbar, footer { margin-inline: 30px; }
  .welcome-copy { padding-left: 37px; }
  .welcome-title { font-size: 50px; }
  .carousel-stage { --slide-width: 350px; --slide-shift: 286px; }
}
@media (max-width: 1000px) {
  .sidebar { gap: 15px; }
  #nav { gap: 0; }
  #nav a { padding: 10px 13px; font-size: 11px; }
  .brand { font-size: 21px; }
  .welcome-title { font-size: 44px; }
  .welcome-hero { min-height: 370px; grid-template-columns: 1.1fr 1fr; }
  .welcome-copy { padding: 36px 0 32px 30px; }
  .welcome-lead { font-size: 13px; max-width: 290px; }
  .welcome-copy .button-row { gap: 8px; }
  .welcome-copy .btn { padding: 11px 14px; font-size: 11px; }
  .carousel-stage { --slide-width: 330px; --slide-shift: 244px; }
  .journey-body h3 { font-size: 20px; }
  .resource-strip { padding: 20px 5px; }
  .resource-strip a { gap: 10px; padding-inline: 10px; }
  .resource-strip strong { font-size: 12px; }
}
@media (max-width: 760px) {
  .sidebar { min-height: 72px; padding: 11px 22px; flex-direction: column; align-items: stretch; gap: 0; }
  .brand { align-self: flex-start; font-size: 21px; gap: 11px; }
  .brand img { width: 50px; height: 50px; }
  .brand small { font-size: 6px; }
  .menu-toggle { display: block; right: 23px; top: 14px; width: 44px; height: 44px; color: #c7dbdb; border-color: #76b9bb50; }
  .menu-content { display: none; padding-top: 12px; }
  .sidebar.open .menu-content { display: block; }
  #nav { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding-bottom: 4px; }
  #nav a { padding: 12px 16px; border-radius: 5px; font-size: 14px; min-height: 48px; }
  .topbar { height: 40px; margin-inline: 22px; padding: 0; }
  .free-label { display: inline; font-size: 7px; letter-spacing: .8px; }
  .top-right { gap: 16px; }
  .progress-link { font-size: 10px; }
  main { margin-inline: 22px; padding-top: 8px; }
  footer { margin-inline: 22px; }
  .welcome-hero { min-height: 360px; grid-template-columns: 1.2fr 1fr; border-radius: 16px; }
  .welcome-copy { padding: 32px 0 28px 26px; }
  .welcome-copy .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .welcome-title { font-size: 38px; }
  .welcome-lead { max-width: 270px; font-size: 14px; }
  .welcome-picture img { object-position: 61% center; }
  .welcome-picture figcaption { right: 12px; bottom: 12px; font-size: 6px; }
  .welcome-copy .button-row { flex-direction: column; align-items: flex-start; gap: 9px; }
  .resource-strip { margin-bottom: 29px; }
  .resource-strip a { gap: 8px; }
  .resource-strip .icon { width: 20px; height: 20px; }
  .resource-strip strong { font-size: 10px; }
  .resource-strip small { font-size: 8px; }
  .section-head h2 { font-size: 25px; }
  .journey-hint { display: none; }
  .carousel-stage { --slide-width: 310px; --slide-shift: 225px; height: 426px; }
  .journey-body { padding-inline: 22px; }
  .page-heading h1 { font-size: 38px; }
  .project-pillars { grid-template-columns: 1fr; gap: 12px; }
  .project-cover { height: 220px; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 92px; }
  .sidebar { padding-inline: 16px; }
  .menu-toggle { right: 16px; }
  main { margin-inline: 16px; padding-top: 4px; padding-bottom: 35px; }
  .topbar, footer { margin-inline: 16px; }
  .topbar { height: 38px; font-size: 10px; }
  .free-label { display: none; }
  .progress-link { min-height: 38px; font-size: 11px; }
  .welcome-hero { display: flex; flex-direction: column; min-height: 0; border-radius: 16px; }
  .welcome-copy { padding: 0 22px 22px; margin-top: -13px; }
  .welcome-title { font-size: 32px; line-height: 1.1; letter-spacing: -.9px; margin: 12px 0; }
  .welcome-copy .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .welcome-lead { font-size: 14px; line-height: 1.55; max-width: none; margin-bottom: 14px; }
  .welcome-picture { position: relative; inset: auto; order: -1; height: 155px; flex: 0 0 155px; }
  .welcome-picture img { object-position: center 43%; opacity: 1; }
  .welcome-picture:before { background: linear-gradient(0deg, #0c2532 0%, #0c253250 24%, transparent 55%); }
  .welcome-picture figcaption { color: #e0e9e5; background: #081c29a6; padding: 3px 6px; border-radius: 4px; top: 10px; bottom: auto; right: 10px; font-size: 8px; }
  .welcome-copy .button-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px 15px; align-items: center; }
  .welcome-copy .btn { font-size: 12px; padding: 12px 14px; min-height: 48px; }
  .welcome-copy .quiet-link { font-size: 12px; min-height: 44px; }
  .resource-strip { padding: 13px 4px; margin-top: 12px; margin-bottom: 25px; border-radius: 12px; }
  .resource-strip a { flex-direction: column; text-align: center; gap: 5px; padding: 0 4px; min-height: 68px; }
  .resource-strip .icon { width: 22px; height: 22px; }
  .resource-strip strong { font-size: 12px; }
  .resource-strip small { font-size: 10px; line-height: 1.35; margin-top: 3px; }
  .section-head h2 { font-size: 24px; line-height: 1.2; }
  .section-head p { font-size: 13px; line-height: 1.5; }
  .journeys .section-head .quiet-link { display: none; }
  .carousel-stage { --slide-width: min(300px, calc(100vw - 70px)); --slide-shift: 235px; height: 440px; margin-inline: -16px; width: calc(100% + 32px); }
  .journey-card { min-height: 374px; top: 24px; border-radius: 16px; }
  .journey-picture { height: 138px; }
  .journey-body { padding: 0 20px 20px; }
  .journey-body h3 { font-size: 21px; line-height: 1.2; }
  .journey-body p { font-size: 13px; line-height: 1.55; min-height: 61px; margin-bottom: 16px; }
  .journey-tag { font-size: 9px; line-height: 1.5; letter-spacing: 1px; }
  .journey-body .btn { min-height: 48px; font-size: 12px; padding-inline: 10px; }
  .journey-card[data-position='prev'], .journey-card[data-position='next'] { opacity: .6; }
  .carousel-controlbar { margin-top: -2px; gap: 16px; }
  .carousel-arrow { width: 48px; height: 48px; }
  .carousel-dot { width: 44px; height: 44px; }
  .carousel-dots { gap: 0; }
  .carousel-caption { font-size: 12px; margin-bottom: 27px; }
  .recommendation { padding: 23px; }
  .recommendation h3 { font-size: 22px; }
  .recommendation p { font-size: 13px; }
  .quote { font-size: 17px; }
  .page-heading h1 { font-size: 29px; letter-spacing: -.9px; }
  .project-cover { height: 200px; }
  .project-paths { flex-direction: column; align-items: stretch; }
  .search input, .notes { font-size: 16px; }
  .filter, .tab, .bookmark, .day { min-height: 44px; }
  .day-grid { grid-template-columns: repeat(5, 1fr); }
  .btn { min-height: 48px; }
  .toast { left: 50%; }
}
@media (max-width: 350px) {
  .welcome-copy { padding-inline: 18px; }
  .welcome-title { font-size: 29px; }
  .welcome-copy .button-row { gap: 1px 8px; }
  .welcome-copy .btn { padding-inline: 11px; font-size: 11px; }
  .welcome-copy .quiet-link { font-size: 11px; }
  .brand { font-size: 19px; }
  .brand img { width: 45px; height: 45px; }
  .brand small { font-size: 5.4px; }
  .carousel-stage { --slide-shift: 200px; height: 470px; }
  .journey-body { padding-inline: 17px; }
  .journey-body h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card, .carousel-dot:before { transition: none; }
  .carousel-stage { scroll-behavior: auto; }
}
