:root {
  --white: #ffffff;
  --snow: #fcfcfa;
  --pearl: #f6f6f2;
  --ivory: #f1f0e9;
  --mist: #e8e9e5;
  --line: #d7d9d4;
  --ink: #171918;
  --muted: #686e6b;
  --accent: #315f6c;
  --accent-deep: #244853;
  --accent-soft: #dbe8ea;
  --dark: #161918;
  --shadow: 0 8px 22px rgba(18, 24, 22, 0.045);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

body.intro-lock {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* INTRO ----------------------------------------------------------- */

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  opacity: 1;
  visibility: visible;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.site-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(49,95,108,.035), transparent 38%),
    #fff;
}

.site-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video {
  position: relative;
  z-index: 1;
  width: min(420px, 58vw);
  max-height: 55vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  animation: introAppear 480ms ease 120ms forwards;
}

@keyframes introAppear {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ACCESSIBILITY --------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* HEADER ---------------------------------------------------------- */

.utility-bar {
  background: var(--dark);
  color: var(--white);
  font-size: 0.84rem;
}

.utility-inner {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.utility-inner p {
  margin: 0 auto 0 0;
  color: rgba(255,255,255,.74);
}

.utility-inner a {
  text-decoration: none;
  font-weight: 750;
}

.main-header {
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(26, 39, 35, .035);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 740;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--accent);
  transition: right 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

/* STATUS ---------------------------------------------------------- */

.construction-banner {
  background: var(--pearl);
  border-bottom: 1px solid var(--line);
}

.construction-inner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.construction-inner p {
  margin: 0;
  font-size: 0.93rem;
}

.status-dot {
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* HERO ------------------------------------------------------------ */

.hero {
  padding: 96px 0 108px;
  background:
    radial-gradient(circle at 82% 15%, rgba(49,95,108,.08), transparent 26%),
    radial-gradient(circle at 4% 84%, rgba(80,90,85,.05), transparent 25%),
    linear-gradient(135deg, #ffffff 0%, #fafaf7 48%, #f3f4f0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(44px, 8vw, 100px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(4rem, 8vw, 7.2rem);
  letter-spacing: -.055em;
}

.hero-kicker {
  margin: 0 0 28px;
  color: var(--accent-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-style: italic;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 4vw, 3.75rem);
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.55rem;
}

.hero-lead {
  max-width: 720px;
  margin: 0;
  color: #505653;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-deep);
  color: var(--white);
  box-shadow: 0 5px 14px rgba(36,72,83,.10);
}

.button-primary:hover {
  background: #183740;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255,255,255,.82);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  align-content: end;
  justify-items: start;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,235,231,.78)),
    repeating-linear-gradient(45deg, transparent 0 16px, rgba(26,31,29,.025) 17px 18px);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(49,95,108,.17);
}

.hero-visual::before {
  width: 310px;
  height: 310px;
  top: 38px;
  right: -88px;
}

.hero-visual::after {
  width: 205px;
  height: 205px;
  top: 92px;
  right: -25px;
}

.hero-visual span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.62rem;
  font-weight: 700;
}

.hero-visual small {
  color: var(--muted);
}

/* PROJECT --------------------------------------------------------- */

.project-section {
  padding: 112px 0;
  background: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(44px, 8vw, 110px);
}

.project-copy {
  max-width: 730px;
  color: #555c58;
  font-size: 1.08rem;
}

.project-copy p {
  margin-top: 0;
  margin-bottom: 23px;
}

/* VISUAL STRIP ---------------------------------------------------- */

.visual-strip {
  padding: 90px 0 98px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0, rgba(255,255,255,.06), transparent 30%),
    #171a19;
  color: var(--white);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 43px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.visual-strip .section-heading > p:last-child {
  color: rgba(255,255,255,.66);
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.dark-copy > p:last-child {
  color: var(--muted);
}

.marquee {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 6px 0 12px;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.placeholder-card {
  width: 230px;
  height: 165px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.025)),
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(255,255,255,.025) 12px 13px);
}

.placeholder-card span {
  color: #a8c6cd;
  font-size: .8rem;
  font-weight: 850;
}

.placeholder-card p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

/* PILLARS --------------------------------------------------------- */

.pillars-section {
  padding: 108px 0;
  background:
    radial-gradient(circle at 50% -15%, #fff 0 32%, transparent 52%),
    #f7f7f4;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.pillar-card {
  position: relative;
  min-height: 520px;
  padding: 31px;
  overflow: hidden;
  border: 1px solid #dfe2de;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 7px rgba(30,36,33,.022);
}

.pillar-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  top: -55px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: .62;
}

.pillar-number {
  display: block;
  margin-bottom: 52px;
  color: var(--accent);
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.pillar-summary {
  color: var(--ink) !important;
  font-weight: 750;
}

.pillar-card p {
  color: var(--muted);
}

/* CLOSING --------------------------------------------------------- */

.cooperation-section {
  padding: 110px 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(240,242,239,.97));
  border-top: 1px solid var(--line);
}

.cooperation-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: start;
  gap: clamp(46px, 8vw, 105px);
}

.cooperation-copy {
  max-width: 780px;
}

.cooperation-copy p {
  color: #505754;
  font-size: 1.05rem;
}

.closing-lead {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.36rem !important;
}

.closing-line {
  margin-top: 36px;
  color: var(--accent-deep) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem !important;
  font-style: italic;
  font-weight: 700;
}

.signature {
  margin-top: -4px;
  color: var(--muted) !important;
  font-style: italic;
}

.cooperation-note {
  position: sticky;
  top: 30px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.note-label {
  margin-top: 0;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cooperation-note p:last-child {
  color: var(--muted);
}

/* FOOTER ---------------------------------------------------------- */

.site-footer {
  padding: 38px 0;
  background: var(--dark);
  color: var(--white);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: var(--accent-deep);
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  box-shadow: 0 12px 25px rgba(0,0,0,.18);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

@media (max-width: 900px) {
  .utility-inner {
    justify-content: center;
  }

  .utility-inner p {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.98);
    box-shadow: 0 14px 28px rgba(0,0,0,.08);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 13px 0;
  }

  .hero-grid,
  .project-grid,
  .cooperation-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    min-height: auto;
  }

  .pillar-number {
    margin-bottom: 30px;
  }

  .cooperation-note {
    position: static;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 82px;
  }

  .brand-text small {
    display: none;
  }

  .construction-inner {
    padding: 11px 0;
    text-align: left;
  }

  .hero {
    padding: 60px 0 74px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .visual-strip,
  .project-section,
  .pillars-section,
  .cooperation-section {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-video {
    width: min(360px, 72vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .marquee-track {
    width: auto;
    overflow-x: auto;
  }
}


/* BOTÓN FLOTANTE DE LECTURA -------------------------------------- */

.floating-reader {
  position: fixed;
  top: 112px;
  right: 22px;
  z-index: 60;
  min-width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 8px 12px 7px;
  border: 1px solid rgba(49,95,108,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  color: var(--accent-deep);
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(18,24,22,.065);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.floating-reader:hover,
.floating-reader:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49,95,108,.42);
  background: #fff;
  box-shadow: 0 8px 20px rgba(18,24,22,.09);
}

.floating-reader-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-reader span {
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(49,95,108,.28);
}

.contact-email:hover,
.contact-email:focus-visible {
  border-bottom-color: currentColor;
}

.footer-email {
  display: inline-block;
  margin-top: 7px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-email:hover,
.footer-email:focus-visible {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .floating-reader {
    top: 102px;
    right: 14px;
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 8px;
    border-radius: 15px;
  }

  .floating-reader-icon {
    width: 28px;
    height: 28px;
  }

  .floating-reader span {
    display: none;
  }
}

@media (max-width: 620px) {
  .floating-reader {
    top: 94px;
    right: 12px;
  }
}
