/*
  COLORES: recuperados del CSS público del sitio institucional.
  #46459b: encabezado · #454896: principal · #444a91: pie · #f2b636: acento.
  Logo y favicon: originales del sitio institucional, alojados en assets/.
  Cambiá estas variables para ajustar la apariencia de toda la página.
*/
:root {
  --brand: #46459b;
  --brand-primary: #454896;
  --brand-footer: #444a91;
  --brand-accent: #f2b636;
  --brand-accent-hover: #ffcf69;

  /* Fondo, textos y botones. El fondo oscuro es una variación del violeta. */
  --background-bottom: #343478;
  --text: #ffffff;
  --text-muted: #e0dff5;
  --button-background: #f8f8fc;
  --button-hover: #ffffff;
  --button-text: #29294c;
  --button-caption: #5c5c77;
  --whatsapp-background: #edf8f1;
  --whatsapp-hover: #ffffff;
  --whatsapp-text: #1d6443;
  --focus: #ffe29b;

  /* Tamaño general y forma de los botones. */
  --page-width: 540px;
  --button-radius: 16px;
  --button-gap: 10px;
  --section-gap: 30px;
  --button-shadow: 0 3px 12px rgb(24 22 65 / 10%);
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
  background: var(--background-bottom);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(242 182 54 / 9%), transparent 35%),
    linear-gradient(165deg, var(--brand), var(--brand-footer) 45%, var(--background-bottom));
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(242 182 54 / 22%);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--button-background);
  color: var(--button-text);
  font-weight: 700;
  transform: translateY(-180%);
}

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

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  width: min(100% - 32px, var(--page-width));
  margin-inline: auto;
  padding-top: 30px;
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

.profile {
  margin-bottom: 26px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: 201px;
  max-width: 75%;
  height: auto;
  margin: 0 auto 15px;
}

h1 {
  margin: 0 0 5px;
  font-size: clamp(1.22rem, 4.8vw, 1.5rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.profile p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  text-wrap: balance;
}

/* Pequeñas muestras de color con el violeta, blanco y amarillo de la marca. */
.color-detail {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 16px;
}

.color-detail span {
  width: 23px;
  height: 5px;
  border-radius: 2px;
  background: var(--brand-accent);
}
.color-detail span:nth-child(2) { background: #ffffff; }
.color-detail span:nth-child(3) { background: #b9b8e3; }

.link-section + .link-section { margin-top: var(--section-gap); }

h2 {
  margin: 0 0 12px;
  padding-inline: 4px;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .015em;
}

.section-description {
  margin: -5px 0 13px;
  padding-inline: 4px;
  color: var(--text-muted);
  font-size: .79rem;
  line-height: 1.5;
}

.link-list {
  display: grid;
  gap: var(--button-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li { min-width: 0; }

.link-button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 62px;
  padding: 15px 17px;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: var(--button-radius);
  color: var(--button-text);
  background: var(--button-background);
  box-shadow: var(--button-shadow);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-content {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-text {
  display: block;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -.015em;
}

.link-caption {
  display: block;
  margin-top: 3px;
  color: var(--button-caption);
  font-size: .76rem;
  line-height: 1.45;
}

.icon,
.arrow {
  display: block;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-button > .icon { color: var(--brand-primary); }
.arrow { width: 18px; height: 18px; }

.link-primary {
  min-height: 80px;
  border-color: var(--brand-accent);
  background: var(--brand-accent);
}
.link-primary .link-text { font-size: 1.06rem; font-weight: 750; }
.link-primary .link-caption { color: #45415a; }
.link-primary > .icon { color: var(--button-text); width: 27px; height: 27px; }

.link-whatsapp {
  color: var(--whatsapp-text);
  background: var(--whatsapp-background);
}
.link-whatsapp > .icon { color: var(--whatsapp-text); }

.footer {
  margin-top: 32px;
  padding-top: 23px;
  border-top: 1px solid rgb(255 255 255 / 18%);
  text-align: center;
}

.social-title {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: .82rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 24px;
  font-size: .8rem;
  font-weight: 550;
}
.social-link .icon { width: 21px; height: 21px; }

.footer-brand {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: .7rem;
}

/* Los efectos se aplican solo en dispositivos que tienen un puntero preciso. */
@media (hover: hover) and (pointer: fine) {
  .link-button:hover {
    background: var(--button-hover);
    box-shadow: 0 6px 18px rgb(24 22 65 / 17%);
    transform: translateY(-2px);
  }
  .link-primary:hover { background: var(--brand-accent-hover); }
  .link-whatsapp:hover { background: var(--whatsapp-hover); }
  .social-link:hover { background: rgb(255 255 255 / 12%); }
}

@media (min-width: 600px) {
  .page { padding-top: 42px; padding-bottom: 34px; }
  .link-button { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .link-button { transition: none; }
  .link-button:hover { transform: none; }
}

@media (forced-colors: active) {
  .link-button, .social-link { border: 1px solid ButtonText; }
  a:focus-visible { outline-color: Highlight; }
}

