:root {
    --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --font-heading: 'Oswald', 'Open Sans', sans-serif;
    --color-text: #333333;
    --color-heading: #1a1a1a;
    --color-red: #d62828;
    --color-red-dark: #b71c1c;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e5e5e5;
    --color-light: #5f676e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Red de seguridad: evita scroll horizontal por desbordes puntuales
   (no crea contenedor de scroll, así el header sticky sigue funcionando) */
html,
body {
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Enlace de salto: invisible hasta que recibe el foco con el teclado */
.skip-link {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 200;
    padding: 0.8rem 1.5rem;
    background: var(--color-heading);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transform: translate(-50%, -130%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
}

/* Foco visible en todo lo interactivo (por defecto rojo sobre fondo claro) */
:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid var(--color-red);
    outline-offset: 3px;
}

/* El destino del enlace de salto no necesita anillo de foco */
main:focus,
main:focus-visible {
    outline: none;
}

.btn-primary:focus-visible,
.btn-download:focus-visible,
.share-btn:focus-visible {
    outline-color: #111111;
}

.hero :focus-visible {
    outline-color: #ffffff;
}

.container {
    width: min(1140px, 92vw);
    margin: 0 auto;
}

.container.narrow {
    width: min(900px, 92vw);
}

.aft-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.aft-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.7rem 0;
    min-height: 80px;
}

.aft-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aft-brand-link {
    display: flex;
    align-items: center;
}

.aft-logo {
    height: 58px;
    width: auto;
}

.aft-brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.aft-site-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-heading);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.aft-site-desc {
    font-size: 0.78rem;
    color: var(--color-light);
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.aft-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.aft-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.aft-menu a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-heading);
    padding: 0.4rem 0;
}

.aft-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
}

.aft-menu a:hover {
    color: var(--color-red);
}

.aft-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--color-heading);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.nav-toggle:hover {
    background: var(--color-bg-alt);
}

.nav-toggle-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.nav-toggle-inner,
.nav-toggle-inner::before,
.nav-toggle-inner::after {
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform 200ms ease, background 200ms ease, opacity 200ms ease;
}

.nav-toggle-inner::before,
.nav-toggle-inner::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-inner {
    display: block;
}

.nav-toggle-inner::before {
    top: -6px;
}

.nav-toggle-inner::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-inner::after {
    top: 0;
    transform: rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    color: #ffffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/foto-hero.jpg');
    background-image: image-set(
        url('assets/foto-hero.webp') type('image/webp'),
        url('assets/foto-hero.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    filter: grayscale(0.5);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.88) 38%, rgba(10, 10, 10, 0.75) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1140px, 92vw);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    max-width: 880px;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.46em;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(0.3rem, 7vw, 1.6rem);
    font-size: clamp(2.6rem, 9vw, 6rem);
    line-height: 1.06;
    color: #ffffff;
}

.hero-subtitle {
    font-size: clamp(1.08rem, 2.6vw, 1.32rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* Cuenta atrás integrada en el hero, con el mismo lenguaje visual */
.hero-countdown {
    width: min(100%, 660px);
    margin-top: clamp(0.4rem, 1.5vw, 0.9rem);
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-countdown .countdown-label {
    margin-bottom: clamp(0.7rem, 2vw, 1rem);
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-countdown .countdown-label span {
    color: #ff6b6b;
}

.hero-countdown .countdown-item {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.hero-countdown .countdown-item:last-child {
    border-color: rgba(255, 107, 107, 0.55);
}

.hero-countdown .countdown-num {
    color: #ffffff;
}

.hero-countdown .countdown-unit {
    color: rgba(255, 255, 255, 0.72);
}

.hero-countdown .countdown.is-finished .countdown-num {
    color: #ff6b6b;
}

.convocatoria-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--color-border);
    padding: clamp(2rem, 6vw, 3.6rem);
    background: linear-gradient(135deg, rgba(214, 40, 40, 0.06), transparent 60%);
}

/* Las pestañas de idioma quedan pegadas al texto al que pertenecen */
.convocatoria-card > .lang-switch {
    margin: 0 0 clamp(0.9rem, 2vw, 1.2rem);
}

.convocatoria-card > .convocatoria-text {
    margin: 0 0 clamp(1.8rem, 5vw, 2.8rem);
}

.convocatoria-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
}

.convocatoria-text p {
    margin: 0;
    font-size: 1.05rem;
}

.convocatoria-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.4rem);
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border-top: 3px solid var(--color-red);
    background: #ffffff;
    text-align: center;
}

.convocatoria-cta-text {
    margin: 0;
    font-size: 0.98rem;
    color: var(--color-light);
}

.convocatoria-media {
    align-self: stretch;
    width: 100%;
}

.convocatoria-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.6rem, 4vw, 2.2rem);
}

.convocatoria-grid[hidden] {
    display: none;
}

/* Panel de convocatoria en inglés: slider a ancho completo, 1 por página */
.convocatoria-slider {
    width: 100%;
}

.convocatoria-slider[hidden] {
    display: none;
}

.convocatoria-slider .convocatoria-figure {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

.convocatoria-slider .media-card {
    width: 100%;
}

.convocatoria-figure {
    flex: 1 1 300px;
    max-width: 100%;
}

.convocatoria-figure .media-card-media {
    aspect-ratio: 3 / 4;
    background: #ffffff;
}

/* Los carteles en inglés son 1132x1600: reservan su altura antes de cargar,
   así las dos páginas del slider miden lo mismo desde el principio */
.convocatoria-slider .convocatoria-figure .media-card-media {
    aspect-ratio: 1132 / 1600;
}

.convocatoria-figure .media-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.convocatoria-figure .btn-download {
    width: 100%;
    height: 3.25rem;
    flex: 0 0 auto;
}

.convocatoria-grid .convocatoria-figure figcaption {
    justify-content: flex-end;
}

.countdown {
    display: block;
}

.countdown-label {
    margin: 0 0 clamp(0.9rem, 2.5vw, 1.3rem);
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 3vw, 1.55rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--color-heading);
}

.countdown-label span {
    color: var(--color-red);
    font-weight: 700;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.5rem, 2vw, 1.1rem);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: clamp(0.8rem, 2.5vw, 1.4rem) 0.4rem;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
}

.countdown-item:last-child {
    border-color: rgba(214, 40, 40, 0.55);
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 6.5vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-heading);
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    margin-top: clamp(0.3rem, 1vw, 0.5rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.68rem, 1.6vw, 0.78rem);
    color: var(--color-light);
    text-align: center;
}

.countdown.is-finished .countdown-num {
    color: var(--color-red);
}

.share-block {
    margin-top: clamp(1.6rem, 5vw, 2.6rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-title {
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-light);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    font-family: var(--font-family);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-heading);
    cursor: pointer;
    transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    border-color: transparent;
}

.share-whatsapp:hover { background: #25d366; }
.share-telegram:hover { background: #229ed9; }
.share-x:hover { background: #111111; }
.share-facebook:hover { background: #1877f2; }
.share-copy:hover { background: var(--color-red); }

.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.share-icon svg {
    width: 100%;
    height: 100%;
}

.share-btn.is-copied {
    background: var(--color-heading);
    color: #ffffff;
    border-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.26em;
    border: 1px solid transparent;
    transition: all 200ms ease;
}

.btn-primary {
    background: var(--color-red);
    color: #ffffff;
}

/* Efecto bandera antifascista: capa negra diagonal al hover/focus */
.btn-primary,
.btn-download {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 0;
}

.btn-primary::before,
.btn-download::before {
    content: "";
    position: absolute;
    top: 0;
    right: -160%;
    width: 100%;
    height: 100%;
    background: #111111;
    transform: skewX(-35deg);
    transition: right 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1;
}

.btn-primary > span,
.btn-download > span {
    position: relative;
    z-index: 2;
    text-align: center;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before,
.btn-primary:active::before,
.btn-download:hover::before,
.btn-download:focus-visible::before,
.btn-download:active::before {
    right: -50%;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background: var(--color-red);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.92);
}

.btn-ghost:hover {
    background: #ffffff;
    color: var(--color-heading);
    transform: translateY(-2px);
}

.section {
    padding: clamp(3.6rem, 9vw, 7rem) 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: clamp(2.6rem, 7vw, 4.4rem);
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.5em;
    font-size: 0.8rem;
    color: var(--color-red);
}

.section-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: clamp(0.3rem, 5vw, 1.3rem);
    font-size: clamp(2.1rem, 6vw, 4rem);
    color: var(--color-heading);
}

.section-lead {
    text-transform: uppercase;
    letter-spacing: 0.38em;
    font-size: 0.82rem;
    color: var(--color-light);
}

.entry-content {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    font-size: 1.08rem;
    text-align: justify;
}

.entry-content .lead {
    text-align: center;
    font-size: clamp(1.18rem, 3vw, 1.64rem);
}

.entry-content .manifest-link {
    color: var(--color-red-dark);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.entry-content .manifest-link:hover {
    color: var(--color-heading);
}

.entry-content .manifest-link:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
    border-radius: 2px;
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 0.9rem;
    color: var(--color-heading);
    margin-top: 0.6rem;
}

.entry-content ul {
    display: grid;
    gap: 1.4rem;
    list-style: none;
    padding-left: 0;
    margin-top: 0.6rem;
}

.entry-content li {
    position: relative;
    padding: 1.1rem 1.8rem 1.1rem 3.2rem;
    border: 1px solid var(--color-border);
    background: #ffffff;
    line-height: 1.9;
}

.entry-content li::before {
    content: "";
    position: absolute;
    left: 1.3rem;
    top: 50%;
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    background: var(--color-red);
    transform: translateY(-50%);
}

.manifest-list li {
    border-color: rgba(214, 40, 40, 0.4);
    background: linear-gradient(90deg, rgba(214, 40, 40, 0.12) 0%, rgba(214, 40, 40, 0.06) 100%);
}

.manifiesto-hero {
    margin: 0 0 clamp(1.4rem, 4vw, 2rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.manifiesto-hero img {
    width: min(880px, 100%);
    margin: 0 auto;
    height: auto;
    border-radius: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.manifiesto-hero figcaption {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.76rem;
    color: var(--color-light);
}

.manifiesto-download {
    display: flex;
    justify-content: center;
    margin: -1rem 0 0.5rem;
}

.lang-switch {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 0 clamp(1.5rem, 4vw, 2rem);
}

.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-heading);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
    text-align: center;
}

@media (max-width: 640px) {
    /* En móvil cada idioma ocupa todo el ancho y van uno debajo de otro */
    .lang-switch {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 1fr;
        align-items: stretch;
    }

    .lang-switch-btn {
        width: 100%;
        min-width: 0;
        padding-inline: 0.55rem;
    }
}

.lang-switch-btn.is-active {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-red);
}

.lang-switch-btn:disabled,
.lang-switch-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-ghost-dark {
    background: transparent;
    color: var(--color-heading);
    border: 1px solid var(--color-border);
}

.btn-ghost-dark:hover {
    background: var(--color-heading);
    color: #ffffff;
    transform: translateY(-2px);
}

.entry-content .closing {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: clamp(1rem, 2vw, 1.24rem);
    margin-top: 1rem;
}

.author-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    align-self: center;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--color-red);
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-red);
    background: rgba(214, 40, 40, 0.05);
    margin-top: 0.4rem;
}

.author-label svg {
    display: block;
    width: 16px;
    height: 16px;
}

.media-slider {
    width: 100%;
}

.media-slider .swiper-wrapper {
    align-items: stretch;
}

.media-slider .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.media-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: 0 40px 70px -60px rgba(17, 17, 17, 0.8);
    width: 100%;
    height: 100%;
}

.media-slider .swiper-slide {
    height: 100%;
}

.media-slider .swiper-wrapper {
    align-items: stretch;
}

.media-card-media {
    width: 100%;
    aspect-ratio: 420 / 595;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Evita que la imagen imponga su ancho natural dentro del flex
   (causa típica de desbordes horizontales con imágenes grandes) */
.media-card-media > a,
.media-card-media > picture {
    min-width: 0;
    max-width: 100%;
}

.media-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.media-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

@media (min-width: 780px) {
    .media-slider.is-pair .media-nav {
        display: none;
    }
}

.slider-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding-bottom: 0.15rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--color-heading);
    background: #ffffff;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

.slider-arrow:hover:not(.is-disabled) {
    background: var(--color-red);
    color: #ffffff;
    border-color: var(--color-red);
}

.slider-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
}

.slider-dots.swiper-pagination {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
}

.slider-dots.swiper-pagination.swiper-pagination-lock {
    display: flex;
}

.slider-dot {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 1;
}

/* El punto visible va dentro de un área táctil de 24x24 px */
.slider-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7b848c;
    transform: translate(-50%, -50%);
    transition: background 200ms ease, transform 200ms ease;
}

.slider-dot.is-active {
    background: transparent;
}

.slider-dot.is-active::after {
    background: var(--color-red);
    transform: translate(-50%, -50%) scale(1.3);
}


.media-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #ffffff;
}

.dudas-grid {
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.2rem);
}

#dudas .section-header h2 {
    font-size: clamp(2.1rem, 6vw, 4rem);
    letter-spacing: clamp(0.12rem, 1.4vw, 0.45rem);
}

.dudas-card .media-card-media {
    aspect-ratio: auto;
    background: #ffffff;
}

.dudas-card .media-card-media img {
    width: 100%;
    height: auto;
}

.dudas-card .btn-download {
    width: 100%;
    height: 3.25rem;
    flex: 0 0 auto;
}

.dudas-grid .dudas-card figcaption {
    justify-content: flex-end;
}

@media (min-width: 780px) {
    .dudas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.media-card figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: clamp(1rem, 2vw, 1.4rem);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.76rem;
    text-align: center;
    width: 100%;
    flex: 1 1 auto;
}

.media-card figcaption > span {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.25rem;
    min-height: 3.25rem;
    padding: 0 1.8rem;
    line-height: 1;
    background: var(--color-red);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.84rem;
    transition: background 200ms ease, transform 200ms ease;
    align-self: center;
    border: 0;
}

.btn-download > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(1px);
}

.btn-download:hover,
.btn-download:focus-visible,
.btn-download:active {
    background: var(--color-red);
    transform: translateY(-2px);
}

.btn-download:focus-visible {
    outline: 2px solid var(--color-red-dark);
    outline-offset: 3px;
}

.callout {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border: 1px solid var(--color-border);
    padding: clamp(2.2rem, 7vw, 4.2rem);
    background: linear-gradient(180deg, rgba(214, 40, 40, 0.06), transparent);
}

.callout-actions {
    display: flex;
    justify-content: center;
}

.aft-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    background: #ffffff;
    text-align: center;
}

.footer-text {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.78rem;
    color: var(--color-light);
}

@media (max-width: 980px) {
    .aft-header-inner {
        flex-wrap: wrap;
        align-items: center;
        gap: 0.8rem 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .aft-nav {
        order: 3;
        width: 100%;
        display: none;
        border-top: 1px solid var(--color-border);
        margin-top: 0.4rem;
        overflow: hidden;
    }

    .aft-nav.is-open {
        display: flex;
    }

    .aft-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    .aft-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .aft-menu li:last-child {
        border-bottom: none;
    }

    .aft-menu a {
        display: block;
        width: 100%;
        padding: 0.9rem 0;
        font-size: 0.86rem;
    }

    .aft-menu a::after {
        display: none;
    }

    .media-card figcaption {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 780px) {
    .hero-content {
        align-items: center;
        text-align: center;
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-countdown {
        margin-inline: auto;
    }

    .entry-content h3,
    .share-title {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .countdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero h1 {
        letter-spacing: 0.12em;
    }

    /* En móvil el aire de la sección de convocatoria se reduce
       para que el contenido gane ancho útil */
    .convocatoria-card {
        padding: 1.1rem;
    }

    .convocatoria-card > .lang-switch {
        margin-bottom: 0.95rem;
    }

    .convocatoria-card > .convocatoria-text {
        margin-bottom: 1.6rem;
    }

    .convocatoria-cta {
        padding: 1.15rem 1rem;
    }

    .share-block {
        margin-top: 1.6rem;
    }

    .hero-kicker,
    .section-kicker,
    .section-lead,
    .entry-content h3,
    .share-title {
        letter-spacing: 0.16em;
    }

    .section-header h2 {
        letter-spacing: 0.1em;
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }

    .entry-content li {
        padding: 0.95rem 1.2rem 0.95rem 2.8rem;
    }

    .entry-content li::before {
        left: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .btn-primary:hover,
    .btn-primary:focus-visible,
    .btn-primary:active,
    .btn-ghost:hover,
    .btn-download:hover,
    .btn-download:focus-visible,
    .btn-download:active,
    .share-btn:hover {
        transform: none;
    }
}
