@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/dm-sans-latin.woff2") format("woff2");
}

:root {
  /* Marca: colores y dirección del degradado del CSS público de Cinema Devoto. */
  --brand-red: #cc3333;
  --brand-blue: #000833;
  --brand-teal: #37aea0;
  /* El velo azul inferior mantiene legible el pie sobre el turquesa. */
  --page-gradient: linear-gradient(180deg, #00083300 76%, #00083366), linear-gradient(200deg, var(--brand-red), var(--brand-blue) 75%, var(--brand-teal));

  /* Textos, superficies y botones destacados. */
  --text: #ffffff;
  --text-soft: #fff3f7;
  --surface: #050c2b52;
  --surface-hover: #050c2b75;
  --border: #ffffff38;
  --primary-surface: #fff5f0;
  --primary-text: #702539;
  --whatsapp-surface: #b7f0e6;
  --whatsapp-text: #103d39;
  --focus: #fff1a6;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--brand-blue);
  /* Un único fondo, extendido sobre la altura total de la página. */
  background-image: var(--page-gradient);
  background-repeat: no-repeat;
  font-family: "DM Sans", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
svg { display: block; flex-shrink: 0; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon, .arrow {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow { width: 18px; height: 18px; opacity: .8; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--brand-blue);
  background: white;
  border-radius: 6px;
  transform: translateY(-180%);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.page {
  width: min(540px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 36px 28px;
  padding-top: max(36px, env(safe-area-inset-top));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}
.profile { text-align: center; margin-bottom: 28px; }
.brand-logo {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}
h1 { margin: 0; font-size: 27px; font-weight: 750; line-height: 1.25; letter-spacing: -.7px; }
.profile p { margin: 7px 0 0; color: var(--text-soft); font-size: 13px; }
main { scroll-margin-top: 24px; }
.link-section + .link-section { margin-top: 28px; }
h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  line-height: 1.5;
  text-transform: uppercase;
}
h2::after { content: ""; flex: 1; height: 1px; background: #ffffff28; }
.link-list { display: grid; gap: 9px; padding: 0; margin: 0; list-style: none; }
.link-list li { min-width: 0; }
.link-card {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 15px;
  min-height: 64px;
  padding: 17px 20px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.link-text { font-size: 15px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.link-detail { display: inline-block; font-size: 13px; font-weight: 400; }
.link-primary { background: var(--primary-surface); color: var(--primary-text); border-color: var(--primary-surface); }
.link-primary .link-text, .link-whatsapp .link-text { font-weight: 750; }
.link-whatsapp { background: var(--whatsapp-surface); color: var(--whatsapp-text); border-color: var(--whatsapp-surface); }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.social-link .icon { width: 21px; height: 21px; }
.site-footer { margin-top: 21px; color: var(--text-soft); font-size: 11px; text-align: center; }
.site-footer p { margin: 4px 0 0; }
.site-footer p + p { font-size: 12px; }

@media (hover: hover) {
  .link-card:hover, .social-link:hover { background: var(--surface-hover); border-color: #ffffff80; }
  .link-primary:hover { background: #ffffff; border-color: #ffffff; }
  .link-whatsapp:hover { background: #d2fff6; border-color: #d2fff6; }
}
@media (max-width: 380px) {
  .page { width: calc(100% - 32px); padding-top: max(26px, env(safe-area-inset-top)); }
  .link-card { gap: 12px; padding-inline: 15px; }
  .link-text { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .link-card, .social-link { transition: none; }
}
@media (forced-colors: active) {
  .link-card, .social-link { border-color: LinkText; }
  :focus-visible { outline-color: Highlight; }
}
