:root {
  color-scheme: dark;
  --bg: #0b1326; --surface: #111d33; --text: #f8fafc;
  --muted: #a2afc3; --border: #27344b; --blue: #2563d9; --accent: #78a7ff;
  --radius: 14px; --width: 1120px;
}
/* Base y accesibilidad */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #b6d2ff; outline-offset: 6px; border-radius: 4px; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 12px 20px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
/* Cabecera e introducción editorial */
.header { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--border); }
.brand { font-size: 1.7rem; font-weight: 750; letter-spacing: -.07em; }
.brand span, h2 > span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: .9rem; }
nav a { padding-block: 10px; color: var(--muted); }
nav a:hover { color: var(--text); }
.hero { padding: 76px 0 30px; }
.eyebrow { color: var(--accent); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; }
h1 { max-width: 900px; margin-top: 22px; font-size: clamp(2.7rem, 5.4vw, 4.65rem); line-height: 1.1; font-weight: 600; letter-spacing: -.055em; text-wrap: balance; }
h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); }
.intro { max-width: 530px; margin-top: 26px; color: var(--muted); font-size: 1.125rem; }
.button { display: inline-flex; align-items: center; gap: 38px; background: var(--blue); border: 1px solid #3b75e4; padding: 13px 22px; border-radius: 7px; font-size: .94rem; font-weight: 600; margin-top: 30px; transition: background .2s; }
.button:hover { background: #3072e8; }
.hero-note { display: flex; justify-content: space-between; gap: 20px; padding-top: 58px; color: var(--muted); font-size: .75rem; letter-spacing: .09em; }
/* Colección principal */
.section { padding-block: 38px; }
.explore { border-top: 1px solid var(--border); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.035em; font-weight: 600; }
.section-heading > p { font-size: .875rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card { min-width: 0; background: #020e1e; border: 1px solid #284d74; border-radius: var(--radius); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: #536a8e; }
.card-link { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 760px; height: 100%; border-radius: var(--radius); overflow: hidden; }
.card-image { position: absolute; inset: 0; z-index: -2; }
.card-image img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s; }
.card-mythology .card-image img { height: auto; }
.card-mythology .card-image::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 1; background: linear-gradient(180deg, transparent 65%, #020e1e 100%); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(2,14,30,.12) 40%, rgba(2,14,30,.85) 65%, #020e1e 91%); }
.card:hover img { transform: scale(1.025); }
.card-body { padding: 360px 30px 30px; display: flex; flex-direction: column; }
.topic-icon { width: 44px; height: 44px; margin-bottom: 14px; color: #ffc567; }
.card:nth-child(2) .topic-icon { color: #62e6f4; }
.card:nth-child(3) .topic-icon { color: #ff799e; }
.card:nth-child(4) .topic-icon { color: #b47aff; }
.card-body h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .025em; }
h3 { font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; }
.card-body > p { color: #b3cceb; margin-top: 12px; min-height: 5.2em; font-size: 1.1rem; }
.card-action { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; padding: 12px 18px; border: 1px solid #1688ff; border-radius: 9px; background: rgba(0,51,126,.36); font-size: 1rem; font-weight: 600; transition: background .2s; }
.card-link:hover .card-action { background: rgba(0,77,172,.55); }
.card-action > span[aria-hidden] { font-size: 1.4rem; color: var(--accent); }
/* Sitios secundarios y acerca de */
.creativity { padding-top: 40px; }
.resource { display: flex; align-items: center; gap: 28px; padding: 28px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.resource:hover { border-color: #536a8e; }
.resource-symbol { flex-shrink: 0; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 12px; background: #25324d; color: #b1c8ff; font-size: 3.7rem; line-height: 1; }
.resource h3 { font-size: 1.35rem; }
.resource p, .project p { color: var(--muted); margin-top: 6px; }
.resource-action { margin-left: auto; white-space: nowrap; font-size: .875rem; }
.resource-action > span[aria-hidden] { margin-left: 20px; color: var(--accent); }
.other h2 { font-size: 1.2rem; margin-bottom: 22px; }
.project { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 25px; border-block: 1px solid var(--border); }
.project h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.project:hover h3, .project-action { color: var(--accent); }
.project-action { font-size: .875rem; white-space: nowrap; }
.project p { font-size: .925rem; }
.pending { color: var(--muted); font-size: .8rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; padding-block: 64px 76px; }
.about .eyebrow { grid-column: 1 / -1; margin-bottom: 18px; }
.about h2 { font-size: 2.1rem; }
.about > p:last-child { color: var(--muted); max-width: 450px; align-self: center; }
/* Pie */
.footer { border-top: 1px solid var(--border); padding-block: 32px 26px; }
.footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer nav { gap: 22px; align-items: center; }
.footer-bottom { margin-top: 34px; color: var(--muted); font-size: .8rem; }
.footer-bottom small { font-size: inherit; }
/* Adaptación responsive */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .header { min-height: 90px; gap: 16px; }
  nav { gap: 20px; }
  .hero { padding-top: 52px; }
  .hero-note { padding-top: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .card-grid { gap: 20px; }
  .card-link { min-height: 650px; }
  .card-body { padding: 300px 22px 22px; }
  .resource { flex-wrap: wrap; padding: 24px; gap: 20px; }
  .resource > div { flex: 1; min-width: min(180px, 100%); }
  .resource-action { margin-left: 0; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .about { gap: 20px; }
}
@media (max-width: 560px) {
  .header { flex-wrap: wrap; padding-block: 18px; gap: 8px; }
  .header nav { width: 100%; justify-content: space-between; }
  .hero { padding-top: 38px; }
  h1 { font-size: clamp(2.5rem, 10vw, 3.4rem); }
  .intro { font-size: 1rem; }
  .hero-note { font-size: .7rem; letter-spacing: .03em; }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  h2 { font-size: 1.6rem; }
  .section { padding-block: 28px; }
  .project { align-items: flex-start; flex-direction: column; gap: 14px; }
  .about { grid-template-columns: 1fr; padding-block: 40px 48px; }
  .about .eyebrow { margin: 0; }
  .about h2 { font-size: 1.85rem; }
  .footer nav { gap: 12px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .card:hover, .card:hover img { transform: none; }
}
