:root {
  --navy: #152448;
  --blue: #274076;
  --blue-2: #2E74B5;
  --gold: #B58A2A;
  --slate: #667085;
  --ice: #E7EEF5;
  --surface: #F7F9FC;
  --ink: #172033;
  --line: #D7E0EA;
  --white: #FFFFFF;
  --max: 1180px;
  --shadow: 0 18px 45px rgba(21, 36, 72, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Aptos, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 9999;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-tight { padding: 58px 0; }
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; }
.kicker { color: var(--blue-2); font-weight: 800; text-transform: uppercase; letter-spacing: .10em; font-size: .78rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); letter-spacing: -.045em; max-width: 980px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 18px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #44506A; max-width: 800px; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215,224,234,.85);
}
.navbar { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 120px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .95rem; font-weight: 700; color: #36415A; }
.nav-links a { position: relative; padding: 30px 0 26px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; border-radius: 99px; background: var(--gold); }
.nav-cta { background: var(--navy); color: #fff !important; padding: 11px 18px !important; border-radius: 10px; transition: transform .18s ease, background .18s ease; }
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; }

.hero {
  min-height: 690px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(46,116,181,.13), transparent 28%),
    radial-gradient(circle at 74% 74%, rgba(181,138,42,.09), transparent 22%),
    linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}
.hero::after {
  content: "ARG";
  position: absolute; right: -3vw; bottom: -8vw;
  font-weight: 900; font-size: clamp(12rem, 34vw, 31rem); line-height: .8;
  color: rgba(21,36,72,.028); letter-spacing: -.08em; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; padding: 76px 0; }
.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; font-weight: 800; border: 1px solid transparent; transition: .18s ease; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); transform: translateY(-1px); }
.btn-ghost { color: var(--blue); padding-inline: 0; min-height: 0; }

.hero-panel { position: relative; z-index: 2; background: var(--navy); color: #fff; border-radius: 26px; padding: 34px; box-shadow: var(--shadow); overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; top: -45px; right: -30px; }
.hero-panel h3, .hero-panel p { color: #fff; }
.hero-panel .line { height: 1px; background: rgba(255,255,255,.15); margin: 24px 0; }
.hero-panel .micro { font-size: .85rem; color: #CBD5E1; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.hero-panel strong { font-size: 1.4rem; }

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .value { color: var(--navy); font-size: 1.7rem; font-weight: 900; line-height: 1.1; }
.stat .label { color: var(--slate); font-size: .92rem; margin-top: 7px; }

.grid-3, .grid-4, .grid-2 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C4D3E2; }
.card-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ice); color: var(--blue); font-weight: 900; margin-bottom: 18px; }
.card ul { margin: 16px 0 0; padding-left: 18px; color: #4B5870; }
.card li { margin: 7px 0; }
.card-accent { border-top: 4px solid var(--gold); }

.section-alt { background: var(--surface); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead, .section-navy .muted { color: #CCD5E4; }
.section-navy .card { color: var(--ink); }
.section-navy .card h3 { color: var(--navy); }
.section-navy .card p { color: #4B5870; }

.cibelae-strip { background: linear-gradient(120deg, #0d3d67 0%, #0f4d7d 100%); color: #fff; }
.cibelae-grid { display: grid; grid-template-columns: 1fr 330px; gap: 64px; align-items: center; }
.cibelae-strip h2, .cibelae-strip h3 { color: #fff; }
.cibelae-mark { background: #0b4d7d; border-radius: 22px; padding: 20px; box-shadow: 0 20px 55px rgba(0,0,0,.18); }
.cibelae-mark img { width: 100%; border-radius: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); border-radius: 999px; padding: 7px 12px; font-size: .86rem; font-weight: 800; margin-bottom: 18px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D6AF4E; box-shadow: 0 0 0 4px rgba(214,175,78,.18); }

.logo-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-top: 28px; }
.logo-placeholder { min-height: 94px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-weight: 900; color: var(--blue); background: #fff; }
.logo-placeholder small { display: block; font-weight: 600; color: var(--slate); margin-top: 3px; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 34px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.step { padding: 28px; position: relative; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step .num { color: var(--gold); font-weight: 900; letter-spacing: .1em; font-size: .84rem; }

.page-hero { padding: 92px 0 70px; background: linear-gradient(180deg,#fff,#f8fafc); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); max-width: 900px; }
.page-hero .lead { max-width: 820px; }

.feature-list { display: grid; gap: 18px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ice); display: flex; align-items: center; justify-content: center; color: var(--blue); font-weight: 900; }

.manifesto { border: 1px solid rgba(181,138,42,.4); background: #FFFCF4; border-radius: 18px; padding: 28px; }
.manifesto .tag { display: inline-block; color: #7A5B12; background: #F6E7BD; font-weight: 900; border-radius: 999px; padding: 6px 10px; font-size: .82rem; margin-bottom: 14px; }

.quote { border-left: 4px solid var(--gold); padding: 6px 0 6px 22px; font-size: 1.2rem; color: var(--navy); font-weight: 700; max-width: 880px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
label { color: var(--navy); font-weight: 800; font-size: .92rem; }
input, textarea, select { width: 100%; border: 1px solid #C8D3DF; border-radius: 10px; padding: 12px 13px; color: var(--ink); background: #fff; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(46,116,181,.18); border-color: var(--blue-2); }
textarea { min-height: 145px; resize: vertical; }

.cta { background: var(--navy); color: #fff; border-radius: 26px; padding: 52px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem,4vw,3rem); margin-bottom: 8px; }
.cta p { color: #D4DCEA; margin: 0; }
.cta .btn-secondary { border-color: rgba(255,255,255,.3); background: #fff; }

.site-footer { background: #0E1932; color: #D6DDEA; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 44px; }
.footer-brand img { width: 150px; height: auto; object-fit: contain; background: #fff; padding: 8px; border-radius: 8px; }
.footer-title { color: #fff; font-weight: 900; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 20px; font-size: .86rem; color: #9FAABF; }

.cookie-note { display:none; }

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 96px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px 24px; box-shadow: 0 20px 40px rgba(21,36,72,.08); }
  .nav-links.open { display: grid; gap: 4px; }
  .nav-links a { padding: 12px 0; }
  .nav-links a[aria-current="page"]::after { bottom: 5px; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .menu-toggle { display: block; }
  .hero-grid, .cibelae-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-panel { max-width: 640px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .logo-row { grid-template-columns: repeat(3,1fr); }
  .cta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 68px 0; }
  .hero-grid { padding: 56px 0; gap: 36px; }
  .hero-panel { padding: 26px; }
  .stats-grid, .grid-2, .grid-4, .steps, .form-grid, .logo-row { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .step, .step:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .cta { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .page-hero { padding: 64px 0 52px; }
  .brand img { width: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* v0.4 - Refuerzo controlado del dorado de marca */
:root {
  --gold-soft: #F6E7BD;
  --gold-faint: #FFFCF4;
  --gold-dark: #7A5B12;
}

/* El dorado gana presencia como acento, sin competir con el azul principal. */
.site-header {
  border-top: 3px solid var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  box-shadow: 0 8px 20px rgba(181, 138, 42, .16);
}
.nav-cta:hover {
  background: #C59A36;
  color: var(--navy) !important;
}

.hero-panel {
  border-top: 4px solid var(--gold);
}
.hero-panel .micro {
  color: #E3C269;
}

.btn-secondary {
  border-color: rgba(181,138,42,.62);
}
.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.card-number,
.feature-icon {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.stats {
  box-shadow: inset 0 3px 0 rgba(181,138,42,.72);
}

.section-navy .kicker,
.section-navy .eyebrow {
  color: #E3C269;
}

.logo-placeholder:hover {
  border-color: rgba(181,138,42,.7);
}

.step .num {
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 12px;
}

.form-card {
  border-top: 4px solid var(--gold);
}

.cta {
  border: 1px solid rgba(181,138,42,.5);
  box-shadow: inset 0 4px 0 rgba(181,138,42,.85);
}
.cta .btn-secondary {
  border-color: var(--gold);
}

.site-footer {
  border-top: 4px solid var(--gold);
}
.footer-title {
  color: #E3C269;
}
.footer-links a:hover {
  color: #E3C269;
}

@media (max-width: 980px) {
  .nav-links {
    border-top: 2px solid rgba(181,138,42,.34);
  }
}

/* v0.5: mayor contraste en el bloque institucional CIBELAE. */
.cibelae-strip .lead {
  color: #F7FAFC !important;
  opacity: 1;
}


/* v0.6 - Ecosistema tecnológico con logotipos oficiales y marca horizontal aprobada */
.brand img {
  width: 174px;
  height: auto;
}
.footer-brand img {
  width: 220px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.logo-row {
  gap: 16px;
  align-items: stretch;
}
.technology-logo-card {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 7px 20px rgba(21,36,72,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.technology-logo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181,138,42,.65);
  box-shadow: 0 14px 30px rgba(21,36,72,.08);
}
.technology-logo-media {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.technology-logo-media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}
.technology-logo-card small {
  display: block;
  color: var(--slate);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.technology-note {
  margin-top: 16px;
  text-align: center;
}
@media (max-width: 980px) {
  .brand img { width: 160px; }
}
@media (max-width: 640px) {
  .brand img { width: 148px; }
  .footer-brand img { width: 210px; max-height: 46px; }
  .technology-logo-card { min-height: 118px; }
  .technology-logo-media { height: 58px; }
}


/* v0.7 - Dirección corporativa en footer */
.footer-address {
  margin-top: 18px;
  max-width: 560px;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
}
/* v0.8 - Carrusel del ecosistema tecnológico */
.tech-carousel {
  --tech-visible: 3;
  margin-top: 36px;
}
.tech-carousel-viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 18px;
}
.tech-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.tech-carousel-slide {
  flex: 0 0 calc(100% / var(--tech-visible));
  min-width: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
.tech-carousel-slide img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: contain;
  object-position: center;
  padding: 28px 34px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(21,36,72,.045);
}
.tech-carousel-controls {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.tech-carousel-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(181,138,42,.55);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.tech-carousel-arrow:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
  transform: translateY(-1px);
}
.tech-carousel-arrow:focus-visible,
.tech-carousel-dot:focus-visible {
  outline: 3px solid rgba(46,116,181,.28);
  outline-offset: 2px;
}
.tech-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
.tech-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.tech-carousel-dot[aria-current="true"] {
  width: 28px;
  background: var(--gold);
}
@media (max-width: 900px) {
  .tech-carousel { --tech-visible: 2; }
  .tech-carousel-slide img { height: 132px; padding: 26px 30px; }
}
@media (max-width: 580px) {
  .tech-carousel { --tech-visible: 1; }
  .tech-carousel-slide { padding: 0 6px; }
  .tech-carousel-slide img { height: 128px; padding: 24px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-carousel-track { transition: none; }
}


/* v0.9 - Restablecer logotipo ARG INNOVA anterior */
.brand img {
  width: 120px;
  height: auto;
}
.footer-brand img {
  width: 150px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}
@media (max-width: 980px) {
  .brand img { width: 120px; }
}
@media (max-width: 640px) {
  .brand img { width: 112px; }
  .footer-brand img { width: 145px; max-height: none; }
}


/* v0.13 - Recursos enlazables y plantillas editoriales */
.resource-card {
  display: flex;
  flex-direction: column;
}
.resource-card .resource-link {
  margin-top: auto;
  align-self: flex-start;
}
.resource-article-hero .article-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.resource-article-hero .article-back:hover {
  text-decoration: underline;
}
.article-status {
  display: inline-flex;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(181,138,42,.42);
  border-radius: 999px;
  background: var(--gold-faint);
  color: var(--gold-dark);
  font-size: .84rem;
  font-weight: 700;
}
.article-layout {
  max-width: 980px;
}
.article-body {
  display: grid;
  gap: 24px;
}
.article-section {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.article-section h2 {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}
.article-section p:last-child,
.article-section ul:last-child {
  margin-bottom: 0;
}
.article-section ul {
  margin: 14px 0 0;
  padding-left: 1.35rem;
}
.article-section li + li {
  margin-top: 8px;
}
.article-placeholder {
  border-style: dashed;
  background: var(--gold-faint);
}
@media (max-width: 640px) {
  .article-section {
    padding: 22px 20px;
  }
}
