:root {
  --navy-950: #04172a;
  --navy-900: #07223a;
  --navy-850: #0a2b47;
  --navy-800: #103b5e;
  --blue: #25a9d8;
  --cyan: #4fd7e5;
  --green: #23672b;
  --green-2: #4f973d;
  --gold: #d69a16;
  --gold-2: #f3bf38;
  --cream: #f7f7f2;
  --ink: #142033;
  --muted: #5e6877;
  --line: rgba(7, 34, 58, 0.15);
  --shadow: 0 20px 55px rgba(4, 23, 42, 0.18);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-140%);
  background: #fff;
  color: var(--navy-950);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(7, 34, 58, 0.08);
}
.header-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(270px, 390px) 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: block; align-self: stretch; }
.brand img { height: 100%; width: auto; max-width: 390px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; justify-content: center; gap: clamp(20px, 2.5vw, 44px); align-items: center; }
.main-nav a { position: relative; padding: 15px 0; color: #172033; font-size: 15px; white-space: nowrap; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: #9d6a00; }
.header-actions { display: flex; gap: 14px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 13px 21px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid rgba(79, 215, 229, .45); outline-offset: 3px; }
.button-outline { border-color: #24542b; color: #244a28; background: #fff; }
.button-outline:hover { background: #f1f8f1; box-shadow: 0 12px 25px rgba(35,103,43,.15); }
.button-primary { color: #fff; background: linear-gradient(135deg, #326f29, #155522); box-shadow: 0 12px 28px rgba(28, 93, 37, .25); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(28, 93, 37, .35); }
.button-icon { font-size: 20px; line-height: 1; }
.mobile-menu-button { display: none; }

.hero {
  position: relative;
  min-height: 535px;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,24,44,.98) 0%, rgba(4,28,50,.92) 43%, rgba(4,28,50,.43) 72%, rgba(4,28,50,.12) 100%),
    url("assets/hero-landscape.jpg") center/cover no-repeat;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(3,23,42,.78));
  pointer-events: none;
}
.hero-shell {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 535px;
  display: grid;
  grid-template-columns: 47% 53%;
  align-items: center;
}
.hero-copy { padding: 55px 0 54px; max-width: 680px; color: #fff; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.dark { color: #1a7e93; }
.hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.1vw, 67px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 860;
  text-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.hero h1 span { color: var(--gold-2); }
.hero p { max-width: 620px; margin: 22px 0 0; color: #eff8ff; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; }
.button-hero {
  min-width: 260px;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  color: #fff;
  background: linear-gradient(135deg, #4a8d35, #246828);
  border-color: rgba(255,255,255,.85);
  padding: 14px 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,.24);
}
.button-hero .button-icon { position: absolute; opacity: 0; }
.button-hero strong { font-size: 15px; text-transform: uppercase; letter-spacing: .02em; }
.button-hero small, .button-video small { font-size: 13px; font-weight: 500; opacity: .88; }
.button-video {
  min-width: 250px;
  color: #fff;
  background: rgba(4, 25, 47, .62);
  border-color: rgba(255,255,255,.8);
  padding: 12px 20px;
}
.button-video span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.play-icon { width: 36px; height: 36px; border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; font-size: 14px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d9f7ff;
  background: rgba(24, 104, 126, .2);
  border: 1px solid rgba(79,215,229,.26);
  font-size: 12px;
  font-weight: 700;
}
.hero-links a:hover { background: rgba(79,215,229,.18); }

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 535px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.hero-visual img {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  height: 510px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.04);
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 100%);
}
.visual-orbit { position: absolute; border: 1px solid rgba(75,215,229,.35); border-radius: 50%; animation: orbit 18s linear infinite; }
.orbit-one { width: 470px; height: 470px; right: 70px; top: 32px; }
.orbit-two { width: 580px; height: 260px; right: 5px; bottom: 36px; transform: rotate(-8deg); animation-direction: reverse; animation-duration: 24s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.central-platform-link {
  position: absolute;
  z-index: 4;
  right: 42px;
  bottom: 34px;
  padding: 12px 16px;
  border-radius: 13px;
  color: #fff;
  background: rgba(2, 24, 43, .82);
  border: 1px solid rgba(79,215,229,.5);
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  font-size: 12px;
  text-align: right;
}
.central-platform-link strong { color: var(--cyan); }

.apps-section { background: #f8f8f5; padding: 0 30px 24px; }
.section-heading {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  transform: translateY(-2px);
}
.section-heading span { height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.section-heading span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.section-heading span::after { content: "◆"; position: absolute; right: -4px; top: -10px; color: var(--gold); }
.section-heading span:last-child::after { left: -4px; right: auto; }
.section-heading h2 { margin: 10px 0; color: var(--navy-950); font-size: clamp(22px, 2.3vw, 32px); text-transform: uppercase; letter-spacing: .06em; }
.apps-grid {
  max-width: 1460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.apps-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 14px;
  border: 1px solid rgba(7, 34, 58, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(3, 25, 43, .08);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.app-card:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(3,25,43,.16); border-color: rgba(30,130,151,.32); }
.card-header { min-height: 64px; display: grid; grid-template-columns: 44px 36px 1fr; gap: 8px; align-items: start; }
.app-number { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 850; border-radius: 50%; box-shadow: inset 0 -5px 12px rgba(0,0,0,.12); }
.app-number.green { background: linear-gradient(145deg, #438841, #1c5b2b); }
.app-number.gold { background: linear-gradient(145deg, #dba827, #b87906); }
.app-number.navy { background: linear-gradient(145deg, #244e7e, #09274e); }
.app-symbol { color: #174f28; font-size: 27px; line-height: 1.4; text-align: center; }
.app-card h3 { margin: 0; color: #13202c; font-size: 16px; line-height: 1.22; text-transform: uppercase; }
.app-card > p { flex: 1; margin: 10px 0 12px; color: #23303d; font-size: 14px; line-height: 1.35; }
.card-media { position: relative; overflow: hidden; border-radius: 10px; background: var(--navy-950); }
.card-media img { width: 100%; height: 122px; object-fit: cover; transition: transform .32s ease, opacity .32s ease; }
.card-media span {
  position: absolute; inset: auto 0 0;
  display: flex; align-items: center; justify-content: center;
  min-height: 38px;
  padding: 8px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(2,20,36,.94));
  font-size: 12px; font-weight: 800;
  transform: translateY(100%);
  transition: transform .24s ease;
}
.card-media:hover img { transform: scale(1.06); opacity: .76; }
.card-media:hover span, .card-media:focus-visible span { transform: translateY(0); }

.integration-band { background: linear-gradient(90deg, #061b31, #082845 52%, #061b31); color: #fff; }
.integration-shell { max-width: 1460px; margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); }
.integration-item { display: flex; align-items: center; gap: 15px; min-height: 104px; padding: 20px 28px; border-right: 1px solid rgba(255,255,255,.18); transition: background .2s ease; }
.integration-item:last-child { border-right: 0; }
.integration-item:hover { background: rgba(44, 145, 165, .14); }
.integration-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; font-size: 26px; }
.integration-item span:last-child { display: flex; flex-direction: column; gap: 4px; }
.integration-item strong { font-size: 15px; }
.integration-item small { color: #dbe9f3; font-size: 13px; line-height: 1.4; }

.impact-section { padding: 82px 32px; background: #fff; }
.impact-shell { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.impact-copy h2, .about-section h2 { margin: 0 0 18px; color: var(--navy-950); font-size: clamp(34px, 4vw, 57px); line-height: 1.03; letter-spacing: -.035em; }
.impact-copy p, .about-section p { color: var(--muted); font-size: 18px; line-height: 1.65; }
.impact-copy .button { margin-top: 12px; }
.impact-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.metric { min-height: 175px; padding: 26px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #f7fbfc, #fff); box-shadow: 0 14px 34px rgba(5,37,61,.08); }
.metric strong { color: var(--green); font-size: 52px; line-height: 1; }
.metric span { margin-top: 12px; color: var(--navy-800); font-weight: 700; }

.about-section { padding: 70px 32px; background: #f6f7f3; border-top: 1px solid var(--line); }
.about-shell { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr auto; gap: 44px; align-items: center; }
.about-section h2 { font-size: clamp(31px, 3.5vw, 49px); }
.about-section p { font-size: 16px; }
.button-outline-dark { border-color: var(--navy-800); color: var(--navy-900); background: #fff; white-space: nowrap; }
.button-outline-dark:hover { background: var(--navy-900); color: #fff; }

.site-footer { padding: 22px 28px; background: #fff; border-top: 1px solid var(--line); }
.footer-shell { max-width: 1460px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; color: #4a5360; font-size: 13px; }
.footer-tags { text-transform: uppercase; letter-spacing: .08em; }
.footer-tags span { margin: 0 8px; }
.footer-credit { text-align: center; }
.footer-links { display: flex; gap: 15px; }
.footer-links a:hover { color: var(--green); }

.modal { width: min(680px, calc(100% - 28px)); border: 0; padding: 0; border-radius: 22px; box-shadow: 0 30px 90px rgba(2,18,31,.38); }
.modal::backdrop { background: rgba(2, 17, 30, .72); backdrop-filter: blur(6px); }
.modal-card { position: relative; padding: 34px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef4f5; color: var(--navy-900); font-size: 28px; cursor: pointer; }
.modal-card h2 { margin: 4px 0 20px; color: var(--navy-950); font-size: 36px; line-height: 1.05; }
.modal-steps { display: grid; gap: 10px; }
.modal-steps div { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #f3f7f7; }
.modal-steps strong { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .13s; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (max-width: 1240px) {
  .header-shell { grid-template-columns: 285px 1fr; min-height: 88px; }
  .brand img { max-width: 285px; }
  .header-actions { display: none; }
  .apps-grid, .apps-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-shell { grid-template-columns: 1fr 1fr; }
  .about-shell .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 980px) {
  .header-shell { grid-template-columns: 1fr auto; }
  .mobile-menu-button {
    display: inline-flex;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .mobile-menu-button span { width: 22px; height: 2px; background: var(--navy-900); }
  .main-nav {
    position: fixed;
    left: 16px; right: 16px; top: 82px;
    display: none;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 12px; border-radius: 10px; }
  .main-nav a:hover { background: #eef6f6; }
  .main-nav a::after { display: none; }
  .hero-shell { grid-template-columns: 1fr; width: min(760px, calc(100% - 36px)); }
  .hero-copy { max-width: none; padding-bottom: 10px; }
  .hero-visual { min-height: 420px; justify-content: center; }
  .hero-visual img { height: 420px; width: 100%; object-fit: contain; mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .central-platform-link { right: 18px; bottom: 18px; }
  .apps-grid, .apps-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .integration-shell { grid-template-columns: repeat(2, 1fr); }
  .integration-item:nth-child(2n) { border-right: 0; }
  .impact-shell { grid-template-columns: 1fr; }
  .about-shell { grid-template-columns: 1fr; }
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .header-shell { width: calc(100% - 20px); min-height: 74px; }
  .brand img { max-width: 245px; height: 72px; object-fit: cover; object-position: left center; }
  .hero { min-height: auto; }
  .hero-shell { width: calc(100% - 28px); min-height: auto; }
  .hero-copy { padding: 42px 0 12px; }
  .eyebrow { font-size: 10px; }
  .hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .button-hero, .button-video { width: 100%; min-width: 0; }
  .hero-visual { min-height: 300px; }
  .hero-visual img { height: 300px; }
  .visual-orbit { display: none; }
  .central-platform-link { left: 14px; right: 14px; bottom: 10px; text-align: center; }
  .apps-section { padding: 0 14px 18px; }
  .section-heading { grid-template-columns: 1fr; text-align: center; }
  .section-heading span { display: none; }
  .section-heading h2 { font-size: 21px; }
  .apps-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .card-media img { height: 155px; }
  .integration-shell { grid-template-columns: 1fr; }
  .integration-item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .impact-section { padding: 58px 18px; }
  .impact-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 130px; padding: 18px; }
  .metric strong { font-size: 42px; }
  .about-section { padding: 50px 18px; }
  .site-footer { padding: 22px 16px; }
  .footer-tags { line-height: 1.9; }
  .modal-card { padding: 28px 20px; }
  .modal-card h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* ================================================================
   CATÁLOGO DE VISORES
   Añadidos para que la portada funcione como entrada a los diez
   visores: entradilla de sección, datos de cada tarjeta y el estado
   de los que aún no tienen dirección publicada.
   ================================================================ */

.section-lead {
  max-width: 78ch;
  margin: -6px auto 26px;
  padding: 0 18px;
  text-align: center;
  color: #46525f;
  font-size: 15px;
  line-height: 1.6;
}
.section-lead strong { color: var(--navy-900); }

/* Los tres datos que distinguen a cada visor de un vistazo. */
.card-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 12px;
  padding: 0;
}
.card-facts li {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(7, 34, 58, .14);
  background: #f4f7f3;
  color: #2c4a34;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Sección territorial: se separa visualmente sin cambiar de lenguaje. */
.territorial-section {
  background: linear-gradient(180deg, #f5f8f4, #ffffff);
  border-top: 1px solid rgba(7, 34, 58, .08);
}
.territorial-section .app-number {
  font-size: 17px;
  background: linear-gradient(145deg, #2c7f8f, #10485c);
}
.territorial-section .app-number.gold { background: linear-gradient(145deg, #dba827, #b87906); }
.territorial-section .app-number.navy { background: linear-gradient(145deg, #244e7e, #09274e); }
.territorial-section .app-card h3 { font-size: 15px; }

/* Visor sin dirección publicada: se dice, no se enlaza a la nada. */
.app-card { position: relative; }
.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(214, 154, 22, .16);
  border: 1px solid rgba(214, 154, 22, .4);
  color: #8a6208;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
}
.card-media.proximamente { cursor: default; filter: grayscale(.55); }
.card-media.proximamente img { opacity: .55; }
.card-media.proximamente span { transform: translateY(0); background: rgba(2, 20, 36, .8); }
.card-media.proximamente:hover img { transform: none; }

@media (max-width: 1240px) {
  .integration-shell { grid-template-columns: repeat(3, 1fr); }
  .integration-item:nth-child(3n) { border-right: 0; }
}

@media (max-width: 760px) {
  .apps-grid, .apps-grid-3 { grid-template-columns: 1fr; }
  .integration-shell { grid-template-columns: 1fr; }
  .integration-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .integration-item:last-child { border-bottom: 0; }
  .section-lead { font-size: 14px; text-align: left; }
  .card-facts li { font-size: 10.5px; }
}


/* ================================================================
   IDENTIDAD OFICIAL FEJUC + CELESTE Y AUTENTICACIÓN
   ================================================================ */
.header-shell { grid-template-columns: minmax(360px, 480px) 1fr auto; min-height: 96px; }
.brand-cluster { display:flex; align-items:center; gap:14px; min-width:0; }
.brand-fejuc, .brand-celeste { display:flex; align-items:center; transition:transform .2s ease, filter .2s ease; }
.brand-fejuc:hover, .brand-celeste:hover { transform:translateY(-2px); filter:drop-shadow(0 8px 14px rgba(4,23,42,.16)); }
.brand-fejuc img { width:78px; height:78px; object-fit:contain; }
.brand-divider { width:1px; height:58px; background:linear-gradient(transparent, rgba(7,34,58,.28), transparent); }
.brand-celeste { min-height:60px; padding:7px 12px; border-radius:14px; background:#061f32; box-shadow:0 9px 24px rgba(4,23,42,.16); }
.brand-celeste img { width:min(278px, 100%); height:auto; }
.header-actions button { white-space:nowrap; }

.about-shell { grid-template-columns:minmax(360px, .9fr) 1.1fr; gap:55px; }
.about-identity { display:grid; grid-template-columns:112px 1fr; gap:24px; align-items:center; }
.about-logo { width:112px; height:112px; border-radius:50%; background:#fff; box-shadow:0 16px 38px rgba(4,23,42,.14); }
.about-logo img { width:100%; height:100%; object-fit:contain; }
.about-content p { margin:0 0 14px; line-height:1.72; }
.about-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.footer-credit a { color:#fff; font-weight:800; text-decoration:underline; text-underline-offset:3px; }

.auth-modal { width:min(590px, calc(100% - 24px)); }
.auth-card { padding:34px; }
.auth-brandline { display:flex; align-items:center; gap:14px; margin-bottom:18px; padding-right:40px; }
.auth-brandline img:first-child { width:58px; height:58px; border-radius:50%; }
.auth-brandline span { width:1px; height:40px; background:var(--line); }
.auth-brandline img:last-child { width:230px; max-width:calc(100% - 82px); border-radius:9px; }
.auth-intro { color:#536171; line-height:1.6; margin:-8px 0 20px; }
.auth-status { min-height:0; margin:0 0 14px; padding:0; border-radius:10px; font-size:13px; line-height:1.45; }
.auth-status:not(:empty) { padding:11px 13px; background:#edf5f7; color:#17485a; border:1px solid #cce2e8; }
.auth-status[data-type="warning"] { background:#fff7df; color:#775a0b; border-color:#f0d68b; }
.auth-status[data-type="error"] { background:#fff0f0; color:#8b2222; border-color:#efb8b8; }
.auth-status[data-type="success"] { background:#edf8ef; color:#1d652a; border-color:#b8dfbf; }
.auth-google { width:100%; min-height:50px; display:flex; justify-content:center; align-items:center; gap:12px; border:1px solid #cbd5df; border-radius:12px; background:#fff; color:#1d2938; font-weight:800; cursor:pointer; }
.auth-google:hover { background:#f7fafc; box-shadow:0 8px 22px rgba(4,23,42,.08); }
.google-mark { width:26px; height:26px; display:grid; place-items:center; border-radius:50%; color:#fff; background:conic-gradient(#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0); font-weight:900; }
.auth-separator { display:flex; align-items:center; gap:12px; margin:18px 0; color:#738091; font-size:12px; }
.auth-separator::before,.auth-separator::after { content:""; height:1px; flex:1; background:#d9e1e7; }
.auth-form { display:grid; gap:14px; }
.auth-form label { display:grid; gap:7px; color:#24364a; font-size:13px; font-weight:800; }
.auth-form input { width:100%; min-height:48px; padding:0 14px; border:1px solid #c8d4dd; border-radius:11px; color:#13263a; background:#fff; outline:none; }
.auth-form input:focus { border-color:#27a7c8; box-shadow:0 0 0 4px rgba(39,167,200,.13); }
.auth-submit { width:100%; margin-top:2px; }
.auth-secondary { display:flex; justify-content:space-between; gap:12px; margin-top:14px; }
.auth-secondary button { border:0; padding:4px 0; background:transparent; color:#176b82; font-size:12px; font-weight:800; cursor:pointer; }
.auth-secondary button:hover { text-decoration:underline; }
.auth-setup-note { margin:18px 0 0; padding:12px; border-radius:10px; background:#f5f7f9; color:#667382; font-size:11px; line-height:1.5; }
.auth-setup-note code { color:#0c5268; }

@media (max-width: 1240px) {
  .header-shell { grid-template-columns:minmax(330px, 430px) 1fr; }
  .brand-fejuc img { width:68px; height:68px; }
  .brand-celeste img { width:245px; }
}
@media (max-width: 980px) {
  .header-shell { grid-template-columns:1fr auto; }
  .brand-cluster { gap:9px; }
  .brand-fejuc img { width:58px; height:58px; }
  .brand-divider { height:44px; }
  .brand-celeste { min-height:50px; padding:5px 9px; }
  .brand-celeste img { width:210px; }
  .about-shell { grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .brand-fejuc img { width:48px; height:48px; }
  .brand-divider { height:36px; }
  .brand-celeste img { width:165px; }
  .brand-celeste { min-height:43px; border-radius:10px; }
  .about-identity { grid-template-columns:78px 1fr; gap:16px; }
  .about-logo { width:78px; height:78px; }
  .auth-card { padding:26px 18px; }
  .auth-brandline img:last-child { width:190px; }
  .auth-secondary { flex-direction:column; align-items:flex-start; }
}


/* ================================================================
   ECOSISTEMA CENTRAL CON IA, VISORES TERRITORIALES Y PIE INSTITUCIONAL
   ================================================================ */
.ecosystem-central-link {
  width: min(370px, calc(100% - 42px));
  right: 28px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 19px 22px 17px;
  border-radius: 20px;
  text-align: left;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 55, 75, .96), rgba(11, 112, 91, .95)),
    radial-gradient(circle at 85% 15%, rgba(94, 245, 224, .32), transparent 35%);
  border: 1px solid rgba(116, 246, 226, .72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255,255,255,.18);
  overflow: hidden;
}
.ecosystem-central-link::after {
  content: "→";
  position: absolute;
  right: 18px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  font-size: 22px;
  transition: transform .22s ease, background .22s ease;
}
.ecosystem-central-link:hover { transform: translateY(-4px); border-color: #bafff3; box-shadow: 0 26px 60px rgba(0,0,0,.46); }
.ecosystem-central-link:hover::after { transform: translateX(4px); background: rgba(255,255,255,.24); }
.ecosystem-central-link .ecosystem-kicker { color: #adfff2; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.ecosystem-central-link strong { max-width: 285px; color: #fff; font-size: 22px; line-height: 1.08; }
.ecosystem-central-link small { max-width: 290px; color: #e8fffb; font-size: 12px; line-height: 1.45; }
.ecosystem-central-link .ecosystem-url { margin-top: 7px; color: #8ff7e9; font-size: 13px; font-weight: 900; }
.button-central-ai {
  margin-left: 10px;
  color: #fff;
  background: linear-gradient(135deg, #0b6a72, #087a50);
  border-color: rgba(7, 92, 83, .55);
  box-shadow: 0 12px 28px rgba(6, 95, 78, .2);
}
.button-central-ai:hover { box-shadow: 0 17px 34px rgba(6,95,78,.3); }

.territorial-section .app-card { overflow: hidden; padding: 16px; border-color: rgba(9, 57, 77, .16); }
.territorial-section .card-media { margin-top: 3px; border: 1px solid rgba(34, 137, 161, .22); box-shadow: 0 10px 24px rgba(4,31,50,.12); }
.territorial-section .card-media img { height: 220px; object-fit: cover; object-position: center; }
.territorial-section .card-media::before {
  content: "Visor territorial · IGJC 250 m";
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2,24,43,.82);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.site-footer { padding: 0; color: #e8f4fa; background: #061d31; border-top: 4px solid #c99113; }
.footer-main {
  max-width: 1460px;
  margin: 0 auto;
  padding: 42px 32px 34px;
  display: grid;
  grid-template-columns: minmax(330px, 1.1fr) 1.9fr;
  gap: 56px;
  align-items: start;
}
.footer-brand-panel { display: grid; gap: 18px; }
.footer-brand-lockup { display: flex; align-items: center; gap: 16px; }
.footer-brand-lockup > span { width: 1px; height: 56px; background: linear-gradient(transparent, rgba(255,255,255,.35), transparent); }
.footer-fejuc-logo { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; background: #fff; }
.footer-celeste-logo { width: min(275px, 100%); padding: 8px 12px; border-radius: 12px; background: #082940; }
.footer-brand-panel p { max-width: 590px; margin: 0; color: #bfd0dc; font-size: 14px; line-height: 1.65; }
.footer-ai-cta {
  display: grid;
  gap: 3px;
  max-width: 560px;
  padding: 16px 18px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(10,101,104,.8), rgba(12,119,68,.88));
  border: 1px solid rgba(112,241,216,.42);
  transition: transform .22s ease, box-shadow .22s ease;
}
.footer-ai-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 32px rgba(0,0,0,.23); }
.footer-ai-cta span { color: #a9f6ea; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.footer-ai-cta strong { font-size: 16px; line-height: 1.25; }
.footer-ai-cta small { color: #b8fff3; font-weight: 800; }
.footer-nav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.footer-nav-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-nav-grid h3 { margin: 0 0 5px; color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.footer-nav-grid a { color: #bfd0dc; font-size: 13px; line-height: 1.35; transition: color .2s ease, transform .2s ease; }
.footer-nav-grid a:hover { color: #6ce8da; transform: translateX(3px); }
.footer-bottom {
  padding: 20px 32px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  align-items: center;
  background: #041522;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom > * { max-width: 1460px; }
.footer-tags { color: #a9bdc9; font-size: 11px; line-height: 1.65; text-transform: uppercase; letter-spacing: .09em; }
.footer-copyright { display: grid; gap: 4px; text-align: right; }
.footer-copyright strong { color: #fff; font-size: 12px; }
.footer-copyright span { color: #a9bdc9; font-size: 11px; line-height: 1.5; }

@media (max-width: 1120px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav-grid { grid-template-columns: repeat(4, 1fr); }
  .button-central-ai { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 760px) {
  .ecosystem-central-link { left: 12px; right: 12px; bottom: 8px; width: auto; padding: 15px 17px; }
  .ecosystem-central-link strong { font-size: 18px; }
  .territorial-section .card-media img { height: 205px; }
  .footer-main { padding: 34px 20px 28px; gap: 34px; }
  .footer-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; padding: 18px 20px; text-align: center; }
  .footer-copyright { text-align: center; }
  .footer-brand-lockup { align-items: center; }
  .footer-fejuc-logo { width: 62px; height: 62px; }
  .footer-celeste-logo { width: 210px; }
}
@media (max-width: 480px) {
  .footer-nav-grid { grid-template-columns: 1fr; }
  .footer-brand-lockup { gap: 10px; }
  .footer-brand-lockup > span { height: 42px; }
  .footer-fejuc-logo { width: 50px; height: 50px; }
  .footer-celeste-logo { width: 175px; }
}


/* Refinamiento institucional: cabecera y pie de página */
.button-open-platform {
  position: relative;
  min-width: 198px;
  min-height: 64px;
  padding: 10px 18px 10px 12px;
  gap: 12px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(115, 255, 221, .48);
  border-radius: 17px;
  background:
    radial-gradient(circle at 18% 18%, rgba(111,255,222,.32), transparent 30%),
    linear-gradient(135deg, #0a8f78 0%, #08715f 46%, #064d43 100%);
  box-shadow: 0 15px 34px rgba(4, 105, 87, .28), inset 0 1px 0 rgba(255,255,255,.22);
  isolation: isolate;
}
.button-open-platform::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -45%;
  width: 42%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .5s ease;
  z-index: -1;
}
.button-open-platform:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(172,255,236,.75);
  box-shadow: 0 20px 42px rgba(4, 105, 87, .38), 0 0 0 4px rgba(14,164,139,.10);
}
.button-open-platform:hover::after { left: 115%; }
.open-platform-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 12px;
  color: #083f37;
  background: linear-gradient(145deg, #d8fff5, #7cebd2);
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
  font-size: 22px;
  font-weight: 900;
}
.open-platform-copy { display: grid; gap: 1px; text-align: left; line-height: 1.05; }
.open-platform-copy strong { font-size: 15px; letter-spacing: .01em; }
.open-platform-copy small { color: #c8fff2; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.footer-brand-panel { gap: 16px; }
.footer-brand-lockup { gap: 18px; min-height: 106px; }
.footer-fejuc-link {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  flex: 0 0 106px;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(214,154,22,.72);
  box-shadow: 0 15px 34px rgba(0,0,0,.28), 0 0 0 5px rgba(255,255,255,.06);
  transition: transform .22s ease, box-shadow .22s ease;
}
.footer-fejuc-link:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 20px 40px rgba(0,0,0,.34), 0 0 0 6px rgba(79,215,229,.10); }
.footer-fejuc-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
}
.footer-brand-lockup > span { height: 72px; opacity: .88; }
.footer-celeste-logo { width: min(300px, 100%); padding: 10px 14px; border: 1px solid rgba(79,215,229,.16); box-shadow: 0 12px 27px rgba(0,0,0,.16); }
.footer-brand-panel p { max-width: 625px; }

@media (max-width: 1180px) {
  .button-open-platform { min-width: 176px; min-height: 58px; padding-right: 14px; }
  .open-platform-icon { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width: 760px) {
  .button-open-platform { width: 100%; min-width: 0; justify-content: center; }
  .footer-brand-lockup { min-height: 90px; }
  .footer-fejuc-link { width: 86px; height: 86px; flex-basis: 86px; }
  .footer-fejuc-logo { width: 78px; height: 78px; }
  .footer-celeste-logo { width: 230px; }
}
@media (max-width: 480px) {
  .footer-brand-lockup { align-items: center; }
  .footer-fejuc-link { width: 72px; height: 72px; flex-basis: 72px; padding: 3px; }
  .footer-fejuc-logo { width: 65px; height: 65px; }
  .footer-celeste-logo { width: min(205px, calc(100vw - 132px)); }
}
