/* Únicas como tú — hoja de estilos del sitio estático */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Italic-Variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --c-bg: #ffffff;
  --c-pattern: #f5efef;
  --c-ink: #111111;
  --c-text: #6b6b6b;
  --c-muted: #8a8a8a;
  --c-line: #e6e6e6;
  --c-accent: #0097cf;
  --c-instagram: #262626;
  --c-youtube: #cd201f;
  --c-flickr: #0063dc;
  --f-ui: "Manrope", system-ui, sans-serif;
  --f-text: "Roboto", system-ui, sans-serif;
  --content: 640px;
  --wide: 1180px;
  --gutter: clamp(16px, 4vw, 50px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--c-pattern);
  color: var(--c-ink);
  font-family: var(--f-ui);
  font-weight: 300;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fondo de micros: capa fija que cubre la pantalla (también en iOS),
   con una imagen distinta según el ancho */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--c-pattern) url("../01/fondo_micros-768x512.jpg") center / cover no-repeat;
}
@media (min-width: 769px) {
  body::before { background-image: url("../01/fondo_micros-1024x683.jpg"); }
}
@media (min-width: 1025px) {
  body::before { background-image: url("../01/fondo_micros-1500.jpg"); }
}

img, iframe { max-width: 100%; display: block; border: 0; }

a { color: inherit; }
a:hover, a:focus-visible { color: var(--c-accent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

/* Cabecera */
.site-header {
  padding: 24px var(--gutter) 18px;
  text-align: center;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-logo { display: inline-block; }
.site-logo img {
  width: clamp(200px, 40vw, 280px);
  height: auto;
  margin: 0 auto 12px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.5rem;
  font-size: 1.125rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: .2em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2em; }

/* Contenido */
.page {
  flex: 1;
  width: 100%;
  padding: clamp(16px, 4vw, 48px) clamp(12px, 3vw, 24px);
}
main {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) 64px;
  background: var(--c-bg);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .06);
}

.page-title {
  font-family: var(--f-ui);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 1.75rem;
}

.prose {
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--c-text);
}
.prose p { margin: 0 0 1rem; }
.prose strong { font-weight: 700; }
.prose a { color: var(--c-text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.prose a:hover { color: var(--c-accent); }
.center { text-align: center; }

.quote {
  margin: 2.5rem 0 0;
  font-family: var(--f-text);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
  text-align: center;
  color: var(--c-text);
}

.embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5rem;
  background: #000;
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 3rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .split { grid-template-columns: 1fr 1fr; }
}
.split img { width: 100%; height: auto; }

/* Galería de Programas */
.gallery {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 10px;
}
.gallery a { display: block; overflow: hidden; }
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }

.episode h2 {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2.5rem 0 .75rem;
  color: var(--c-ink);
}
.player { width: 100%; height: 200px; margin: 1.5rem 0; }

/* Redes sociales */
.social {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.social a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  transition: opacity .2s ease, transform .2s ease;
}
.social a:hover, .social a:focus-visible { color: #fff; opacity: .85; transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; fill: currentColor; }
.social .instagram { background: var(--c-instagram); }
.social .youtube { background: var(--c-youtube); }
.social .flickr { background: var(--c-flickr); }

/* Pie */
.site-footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: 40px var(--gutter);
  font-size: 1rem;
}
.site-footer .inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer .small { font-size: .875rem; color: var(--c-muted); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
