@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Source+Sans+3:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #13293d;
  --muted: #536779;
  --paper: #f5f2ea;
  --surface: #ffffff;
  --line: #d9e0e4;
  --accent: #007f86;
  --accent-dark: #005f65;
  --warm: #d9a441;
  --shadow: 0 16px 38px rgb(19 41 61 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 10%, rgb(0 127 134 / 9%), transparent 29rem),
    var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.site-header {
  border-bottom: 1px solid rgb(19 41 61 / 12%);
  background: rgb(255 255 255 / 88%);
}

.header-inner,
main,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.header-inner {
  padding-block: 18px;
}

.brand {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 5px;
  color: #fff;
  background: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

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

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

main {
  flex: 1;
  padding-block: clamp(54px, 8vw, 92px);
}

.hero {
  max-width: 760px;
  margin-bottom: 42px;
}

.eyebrow,
.app-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  min-height: 310px;
  padding: 25px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  color: inherit;
  background: var(--surface);
  box-shadow: 0 6px 20px rgb(19 41 61 / 5%);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.app-card:focus-visible {
  outline: 3px solid var(--warm);
  outline-offset: 4px;
}

.app-number {
  justify-self: end;
  color: #8a9aa6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.app-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-content strong {
  margin: 11px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.42rem, 2.3vw, 1.82rem);
  line-height: 1.18;
}

.app-description {
  color: var(--muted);
  font-size: 0.94rem;
}

.app-arrow {
  color: var(--accent);
  font-size: 1.65rem;
  transition: transform 180ms ease;
}

.app-card:hover .app-arrow {
  transform: translateX(5px);
}

footer {
  color: #dce7eb;
  background: var(--ink);
}

.footer-inner {
  min-height: 104px;
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 420px;
  margin: 0;
  font-size: 0.88rem;
}

.institutional-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
}

.institutional-logos img {
  display: block;
  width: auto;
  max-width: 105px;
  height: 34px;
  object-fit: contain;
}

@media (max-width: 820px) {
  .apps {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 230px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  main,
  .footer-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand-copy span {
    display: none;
  }

  main {
    padding-block: 44px 56px;
  }

  .hero {
    margin-bottom: 30px;
  }

  .app-card {
    min-height: 245px;
    padding: 21px;
  }

  .footer-inner {
    padding-block: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .institutional-logos {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .institutional-logos img {
    max-width: 84px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-arrow {
    transition: none;
  }
}

/* Lenguaje visual compartido con las aplicaciones */
:root {
  --navy: #0A2340;
  --blue: #1A4A7A;
  --mid: #2D6BA0;
  --cyan: #00A8CC;
  --gold: #C8A84B;
  --bg: #EEF2F7;
  --surface: #FFFFFF;
  --border: #C8D8E8;
  --text: #0A2340;
  --muted: #5A7A9A;
  --light: #F7F9FC;
  --shadow: 0 4px 24px rgba(10,35,64,.12);
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
}

.site-header {
  min-height: 64px;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid var(--gold);
  background: var(--navy);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-kicker {
  color: rgba(255,255,255,.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.22);
}

.brand-name {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.header-label {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 3px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

main {
  width: min(1180px, calc(100% - 36px));
  padding-block: clamp(34px, 5vw, 64px);
}

.hero {
  margin-bottom: 30px;
}

.eyebrow,
.app-kicker {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: .1em;
}

h1 {
  margin: 6px 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.08;
}

.intro {
  color: var(--muted);
  font-size: 16px;
}

.apps {
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card {
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card::before {
  content: "Mapa y recursos ETP";
  min-height: 58px;
  display: flex;
  align-items: flex-end;
  padding: 12px 20px;
  background: linear-gradient(135deg,var(--navy),var(--blue) 70%,var(--mid));
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.app-card:hover {
  border-color: var(--mid);
  box-shadow: 0 10px 30px rgba(10,35,64,.18);
}

.app-card:focus-visible {
  outline-color: var(--cyan);
}

.app-number {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app-content {
  padding: 24px 20px 18px;
}

.app-content strong {
  margin: 6px 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2.25vw, 1.85rem);
  line-height: 1.2;
}

.app-description {
  color: var(--muted);
  font-size: 13px;
}

.app-arrow {
  margin: 0 20px 20px;
  justify-self: start;
  min-width: 42px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--navy);
  background: var(--light);
  font-size: 18px;
  line-height: 1;
}

.app-card:hover .app-arrow {
  color: #fff;
  background: var(--navy);
}

.site-footer {
  min-height: 46px;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  color: #fff;
  background: var(--navy);
}

.site-footer > span {
  max-width: 370px;
  color: rgba(255,255,255,.34);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.footer-logos {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logos img {
  width: auto;
  max-width: 95px;
  height: 22px;
  object-fit: contain;
  opacity: .5;
  filter: brightness(0) invert(1);
}

@media (max-width: 980px) {
  .site-header,
  .site-footer { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 12px; }
  .app-card { min-height: 240px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-content strong { font-size: clamp(1.25rem, 3.3vw, 1.55rem); }
  .footer-logos { position: static; transform: none; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .header-label { display: none; }
  .brand { gap: 10px; }
  main { width: calc(100% - 24px); padding-block: 34px 42px; }
  .hero { margin-bottom: 22px; }
  .apps { grid-template-columns: 1fr; }
  .app-card { min-height: 250px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .footer-logos { width: 100%; justify-content: space-between; }
  .footer-logos img { max-width: 80px; height: 20px; }
}
