/* =========================================================
   Fundación Enlata — hoja de estilos
   Sitio estático, responsive, optimizado para Google Ad Grants
   ========================================================= */

:root {
  /* Paleta OFICIAL — Manual de Identidad "EN LATA." */
  --blue: #3f1fdb;         /* Azul eléctrico (Pantone 2370 CP) — acción primaria, foco, enlaces */
  --blue-dark: #2c14a8;    /* hover de enlaces/botones */
  --magenta: #e500da;      /* Magenta (Pantone 226 CP) — acentos, CTA, bloques (solo grande) */
  --magenta-dark: #b800af; /* magenta para texto pequeño sobre blanco */
  --ink: #000000;          /* negro de marca (manual: ink #000000) — texto, bordes, sombras */
  --indigo: #1a0f5c;       /* azul profundo para degradados oscuros */

  /* Alias de compatibilidad (el sitio se construyó con estos nombres) */
  --coral: var(--blue);          /* acento principal -> azul de marca */
  --coral-dark: var(--blue-dark);
  --teal: var(--magenta);        /* acento secundario -> magenta de marca */
  --amber: var(--magenta);

  --paper: #ffffff;
  --mist: #f6f5fb;         /* fondo claro / secciones alternas */
  --line: #e7e4f5;
  --muted: #6b6b75;
  --text: #2b2b30;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -20px rgba(10, 10, 10, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(10, 10, 10, 0.22);
  --display: "Anton", "Arial Narrow", system-ui, sans-serif; /* titulares (alt. MachineStd) */
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif; /* texto (alt. MADE Tommy) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word; /* salvaguarda: palabras/URLs largas nunca desbordan */
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Foco accesible de marca (teclado) */
:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 2px;
  border-radius: 4px;
}
.section.ink :focus-visible, .hero :focus-visible, .site-footer :focus-visible {
  outline-color: #fff;
}

/* Salto al contenido (lector de pantalla / teclado) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 400; line-height: 1.04;
  color: var(--ink); margin: 0 0 0.5em; text-transform: uppercase; letter-spacing: 0.01em;
  text-wrap: balance; overflow-wrap: break-word; hyphens: auto;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 0.5em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Marcadores de contenido pendiente ---------- */
.pending {
  display: inline-block;
  background: repeating-linear-gradient(45deg, #fff4e0, #fff4e0 8px, #ffe9c2 8px, #ffe9c2 16px);
  border: 1px dashed var(--amber);
  color: #8a5a00;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.85em;
  font-weight: 600;
}
.pending-block {
  background: #fffaf0;
  border: 1px dashed var(--amber);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: #8a5a00;
  font-size: 0.95rem;
}
.contact-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.contact-list a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

/* ---------- FAQ (acordeón nativo) ---------- */
.faq details {
  background: #fff;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--radius-sm);
  padding: 2px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--magenta);
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary {
  color: var(--blue);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.faq details a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--indigo); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral-dark); }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.25rem; }
.brand:hover { text-decoration: none; }
.brand .brand-logo {
  height: 38px; width: auto; display: block; flex: 0 0 auto;
  transition: transform 0.2s var(--ease);
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand .brand-logo--icon { height: 42px; }
.brand small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text); font-weight: 600; padding: 8px 14px; border-radius: 8px; font-size: 0.96rem;
}
.nav-links a:hover { background: var(--mist); text-decoration: none; }
.nav-links a.active { color: var(--coral-dark); }
.nav-cta { margin-left: 6px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  font-size: 1.5rem; color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.25s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 520px at 86% -12%, rgba(229, 0, 218, 0.45), transparent 60%),
    radial-gradient(760px 520px at 2% 112%, rgba(63, 31, 219, 0.58), transparent 58%),
    linear-gradient(135deg, #120a3a, var(--ink) 78%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: 0.5; pointer-events: none;
}
/* Salpicadura de spray (elemento gráfico del Manual "EN LATA.") */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: clamp(190px, 24vw, 330px); aspect-ratio: 1;
  top: -8%; right: -7%; opacity: 0.72; transform: rotate(12deg);
  background-color: var(--magenta);
  -webkit-mask: url(../img/brand/splat.svg) no-repeat center / contain;
          mask: url(../img/brand/splat.svg) no-repeat center / contain;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0; max-width: 820px; }
.hero h1 { color: #fff; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; margin-bottom: 22px;
}
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: rgba(255,255,255,0.9); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { margin-top: 36px; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

/* ---------- Secciones ---------- */
.section { padding: clamp(54px, 8vw, 96px) 0; }
.section.mist { background: var(--mist); }
.section.ink { background: var(--ink); color: #fff; }
.section.ink h2, .section.ink h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { display: inline-block; position: relative; }
/* Trazo de brocha bajo el titular (elemento gráfico del Manual "EN LATA.") */
.section-head h2::after {
  content: ""; display: block; height: 13px; margin: 8px auto 0;
  width: clamp(110px, 42%, 220px);
  background-color: var(--magenta);
  -webkit-mask: url(../img/brand/brush.svg) no-repeat center / 100% 100%;
          mask: url(../img/brand/brush.svg) no-repeat center / 100% 100%;
}
.section.ink .section-head h2::after { background-color: var(--magenta); }
.section-head .kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700;
  color: var(--magenta-dark); margin-bottom: 10px;
}
.section-head .kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 14px; height: 14px; margin-right: 7px; margin-top: -2px;
  background-color: var(--blue);
  -webkit-mask: url(../img/brand/splat.svg) no-repeat center / contain;
          mask: url(../img/brand/splat.svg) no-repeat center / contain;
}
.section.ink .section-head .kicker { color: var(--teal); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.ink .section-head p { color: rgba(255,255,255,0.78); }

/* ---------- Impacto / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.section.ink .stat { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--coral); line-height: 1; }
.section.ink .stat .num { color: var(--teal); }
.stat .label { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-top: 8px; }
.section.ink .stat .label { color: rgba(255,255,255,0.8); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
/* Fila de stats con texto (IAvanza): tamaño uniforme número/palabra */
.stats-compact .num { font-size: clamp(1.5rem, 4.2vw, 2rem); }

/* ---------- Grid de tarjetas / programas ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(63,31,219,0.12), rgba(229,0,218,0.14)); color: var(--blue);
  border: 1px solid rgba(63,31,219,0.14);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }
/* Iconos monoline de marca dentro de los badges (reemplazan emojis) */
.ico svg { width: 26px; height: 26px; stroke: var(--blue); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero .eyebrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------- Bloque destacado (IAvanza) ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.feature .panel {
  background: linear-gradient(135deg, var(--indigo), var(--ink));
  color: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.feature .panel h2 { color: #fff; }
.pill-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.pill-list li { display: flex; gap: 12px; align-items: flex-start; }
.pill-list .dot { color: var(--teal); font-weight: 900; }

/* ---------- Eventos ---------- */
.event {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 14px;
}
.event .date {
  text-align: center; background: var(--mist); border-radius: var(--radius-sm); padding: 10px;
}
.event .date .d { font-size: 1.6rem; font-weight: 900; color: var(--coral); line-height: 1; }
.event .date .m { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
.event h3 { margin: 0 0 4px; }
.event .meta { color: var(--muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 640px) {
  .event { grid-template-columns: 70px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Aliados ---------- */
.allies { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ally {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; color: var(--ink);
}

/* ---------- CTA banda ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--coral), var(--amber));
  color: #fff; border-radius: var(--radius); padding: clamp(36px, 6vw, 64px);
  text-align: center; box-shadow: var(--shadow);
}
.cta-band::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 220px; height: 220px; right: -50px; top: -54px; transform: rotate(-12deg);
  background-color: rgba(255,255,255,0.16);
  -webkit-mask: url(../img/brand/splat2.svg) no-repeat center / contain;
          mask: url(../img/brand/splat2.svg) no-repeat center / contain;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--coral-dark); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.member { text-align: center; }
.member .avatar {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 14px; object-fit: cover;
  background: linear-gradient(135deg, var(--indigo), var(--teal));
  display: grid; place-items: center; color: #fff; font-size: 2.4rem; font-weight: 800;
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.member h3 { margin: 0 0 2px; }
.member .role { color: var(--coral-dark); font-weight: 600; font-size: 0.92rem; }

/* ---------- Galería ---------- */
.gallery-grid {
  columns: 4 240px;
  column-gap: 14px;
}
.gallery-grid .tile {
  break-inside: avoid; margin-bottom: 14px; border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; position: relative; background: var(--mist);
  border: 0; padding: 0; width: 100%; display: block;
}
.gallery-grid .tile img { width: 100%; transition: transform 0.4s var(--ease); }
.gallery-grid .tile:hover img { transform: scale(1.05); }
.gallery-grid .tile::after {
  content: "🔍"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15,27,51,0.35); color: #fff; font-size: 1.5rem; opacity: 0; transition: 0.25s;
}
.gallery-grid .tile:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,12,24,0.92);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: 0.2s;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox .lb-close { top: 22px; right: 22px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: rgba(255,255,255,0.78); padding: 60px 0 30px; }
.site-footer::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 300px; height: 300px; right: -70px; bottom: -90px; transform: rotate(6deg);
  background-color: var(--blue); opacity: 0.4;
  -webkit-mask: url(../img/brand/splat.svg) no-repeat center / contain;
          mask: url(../img/brand/splat.svg) no-repeat center / contain;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: grid; place-items: center; color: #fff;
}
.social a:hover { background: var(--coral); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 0.86rem;
}

/* ---------- Utilidades de animación ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.lead-muted { color: var(--muted); font-size: 1.1rem; }

/* Límite de líneas para contenido dinámico (evita que nombres/títulos largos rompan el layout) */
.clamp-1, .clamp-2, .clamp-3 {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
/* Aplicado de forma preventiva donde entrarán datos reales */
.member h3 { overflow-wrap: anywhere; }
.member .role { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ally { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Imagen simulada (placeholder mientras se cargan fotos) ---------- */
.media-sim {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: var(--radius);
  border: 2px dashed rgba(63, 31, 219, 0.35);
  background:
    repeating-linear-gradient(135deg, rgba(63,31,219,0.06) 0 14px, rgba(229,0,218,0.06) 14px 28px),
    var(--mist);
  color: var(--blue-dark);
  min-height: 240px;
  padding: 20px;
  overflow: hidden;
}
.media-sim .ico-lg { font-size: 2.4rem; }
.media-sim .cap { font-weight: 600; font-size: 0.9rem; margin-top: 6px; }
.media-sim .tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px;
}
.media-sim.ratio-wide { aspect-ratio: 16 / 9; min-height: 0; }
.media-sim.ratio-sq { aspect-ratio: 1 / 1; min-height: 0; }
.media-sim.ratio-tall { aspect-ratio: 3 / 4; min-height: 0; }
.media-sim.avatar { border-radius: 50%; width: 140px; height: 140px; min-height: 0; margin: 0 auto 14px; }

/* ---------- Imagen real (foto cargada en secciones) ---------- */
.media-real {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  box-shadow: var(--shadow);
}
.media-real img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-real.ratio-wide { aspect-ratio: 16 / 9; }
.media-real.ratio-sq { aspect-ratio: 1 / 1; }
.media-real.ratio-tall { aspect-ratio: 3 / 4; }

/* Galería simulada */
.gallery-sim { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .gallery-sim { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-sim { grid-template-columns: repeat(2, 1fr); } }
