/* Tema común de magnaua.es: Montserrat, negros #0E0E0E/#161616, granate #6D0D1D, amarillo #FFD43B, rosa #E6B7BF.
   Ajusta las clases de Tailwind de las páginas antiguas al estilo de la campaña. */
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', Arial, Helvetica, sans-serif; background: #0E0E0E; color: #fff; -webkit-font-smoothing: antialiased; }
body h1, body h2 { font-weight: 900 !important; letter-spacing: -.01em; text-transform: uppercase; line-height: 1.05; }
body h3 { font-weight: 800; }
body .text-magna-primary { color: #FFD43B; }
body .hover\:text-magna-primary:hover, body .hover\:text-magna-primaryDark:hover { color: #FFD43B; }
body .bg-white { background-color: #222222; }
body .bg-white\/95, body .bg-white\/98 { background-color: rgba(14,14,14,.95); }
body .bg-white\/50 { background-color: rgba(34,34,34,.8); }
body .bg-magna-primary\/10 { background-color: rgba(255,212,59,.12); }
body .text-magna-bg { color: #fff; }
body [class*="border-magna-burgundy"] { border-color: rgba(109,13,29,.95); }
body article[class*="rounded-2xl"], body .rounded-2xl.border { border-width: 2px; }
body nav.sticky { border-bottom: 1px solid rgba(255,255,255,.08) !important; }
body .shadow-md, body .shadow-sm { box-shadow: none; }
body a[class*="rounded-full"][class*="bg-magna-primary"] { text-transform: uppercase; letter-spacing: .04em; font-weight: 800; }
body a.bg-white[class*="rounded-full"] { background: #fff; color: #6D0D1D; }
body a.bg-white[class*="rounded-full"]:hover { background: #FFD43B; color: #0E0E0E; }
body :focus-visible { outline: 3px solid #FFD43B; outline-offset: 3px; }

/* Curso 2025-2026 (eventos) */
.act-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.act-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #E6B7BF; margin: 0 0 6px; }
.act-search { width: min(320px, 100%); min-height: 46px; border-radius: 40px; border: 2px solid #ffffff22; background: #0E0E0E; color: #fff; padding: 10px 18px; font: inherit; }
.act-search:focus { border-color: #FFD43B; outline: none; }
.act-filters { display: grid; gap: 10px; margin-bottom: 8px; }
.act-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.act-chip { flex: none; border: 2px solid #ffffff22; background: #222; color: #fff; border-radius: 40px; padding: 8px 14px; font-weight: 700; font-size: .85rem; cursor: pointer; white-space: nowrap; }
.act-chip:hover { border-color: #ffffff66; }
.act-chip[aria-pressed="true"] { background: #6D0D1D; border-color: #6D0D1D; }
.act-count { color: #E6B7BF; font-weight: 700; font-size: .85rem; margin: 6px 0 0; }
.act-month { font-weight: 900; text-transform: uppercase; font-size: 1.3rem; color: #FFD43B; margin: 30px 0 14px; letter-spacing: .02em; }
.act-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.act-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; background: #222; border: 2px solid #6D0D1D; border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s; content-visibility: auto; contain-intrinsic-size: 300px 420px; }
.act-card:hover { transform: translateY(-3px); border-color: #FFD43B; }
.act-card:focus-visible { outline: 3px solid #FFD43B; outline-offset: 3px; }
.act-thumb { position: relative; aspect-ratio: 4 / 5; background: #161616; }
.act-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-noimg { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.act-tag { position: absolute; left: 10px; top: 10px; background: #FFD43B; color: #0E0E0E; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; border-radius: 20px; padding: 4px 10px; }
.act-tag-inline { position: static; display: inline-block; margin: 0 0 10px; }
.act-body { padding: 14px 14px 16px; }
.act-date { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #E6B7BF; margin: 0 0 4px; }
.act-title { font-weight: 800; font-size: 1rem; line-height: 1.25; color: #fff; margin: 0 0 6px; }
.act-facus { font-size: .8rem; color: #bdb5b6; margin: 0; }
.act-empty { color: #E6B7BF; padding: 30px 0; }
#act-dialog { border: 0; padding: 0; border-radius: 20px; background: #161616; color: #fff; width: min(920px, calc(100% - 24px)); max-height: calc(100vh - 32px); }
#act-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
#act-dialog-body { display: grid; grid-template-columns: 1fr 1fr; }
.act-dlg-img { width: 100%; height: 100%; max-height: calc(100vh - 32px); object-fit: cover; background: #0E0E0E; }
.act-dlg-info { padding: 28px 26px; overflow: auto; max-height: calc(100vh - 32px); }
.act-dlg-info h2 { font-size: 1.6rem; margin: 0 0 14px; }
.act-dlg-info p { color: #dcd5d6; margin: 0 0 12px; line-height: 1.6; }
.act-meta { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-weight: 700; }
.act-ig { display: inline-block; margin: 8px 8px 0 0; background: #6D0D1D; color: #fff; border-radius: 40px; padding: 11px 20px; font-weight: 800; }
.act-ig:hover { background: #8A1328; }
.act-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #0E0E0E; color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 2; }
@media (max-width: 1000px) { .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } #act-dialog-body { grid-template-columns: 1fr; } .act-dlg-img { max-height: 55vh; } .act-dlg-info { max-height: none; } #act-dialog { overflow: auto; } }
