/* =====================================================================
   Tema JUDO — Federación Navarra de Judo y Deportes Asociados
   Piel: colores, tipografías y fondo gráfico. Se carga después de temas/comun/css/tema.css.

   Dirección "Dojo": papel washi cálido y tinta; cabecera y menú en blanco, limpios;
   el rojo del escudo solo como sello (activo, botón principal, pequeños detalles)
   y el dorado de la corona para medallas y puestos. El oscuro, casi solo en el pie.
   ===================================================================== */

:root {
    --mt-ink: #1d1b1f;
    --mt-ink-soft: #5d5852;
    --mt-bg: #f6f3ee;
    --mt-surface: #ffffff;
    --mt-line: #e5dfd5;
    --mt-night: #1d1b1f;
    --mt-night-2: #2c292e;
    --mt-accent: #d3151c;
    --mt-accent-dark: #a80f15;
    --mt-accent-soft: #f0858a;
    --mt-brand: #1d1b1f;
    --mt-radius: 3px;
    --mt-max: 1240px;
    --mt-font-display: "Archivo Narrow", "Arial Narrow", sans-serif;
    --mt-font-body: "Public Sans", system-ui, sans-serif;
    /* colores derivados (sobre fondo oscuro, pie, etiquetas...) */
    --mt-on-night: #d9d4cd;
    --mt-on-night-strong: #f4f1ec;
    --mt-on-night-soft: #c8c2ba;
    --mt-on-night-mute: #9c968e;
    --mt-on-night-faint: #635e58;
    --mt-night-line: #403c41;
    --mt-night-divider: #35313a;
    --mt-footer-bg: #1d1b1f;
    --mt-footer-ink: #c1bbb3;
    --mt-footer-line: #34303a;
    --mt-accent-tint: #f1ece4;
    --mt-accent-tint-line: #e5dfd5;
    --mt-tag-bg: #efeae2;
    --mt-tag-club-bg: #f6eed6;
    --mt-tag-club-ink: #75590a;
    --mt-date-past: #ddd7cd;
    --mt-zebra: #faf8f4;
    --mt-shadow-rgb: 29, 27, 31;
    --mt-gold: #d4a72c;
}

/* ---------- Cabecera: emblema + nombre en dos niveles ---------- */
.mt-marca { display: flex; align-items: center; gap: 18px; min-width: 0; color: var(--mt-ink); }
.mt-marca:hover, .mt-marca:focus { color: var(--mt-ink); }
.mt-judo .mt-header .mt-marca img { height: 84px; width: auto; }
.mt-marca__texto { display: flex; flex-direction: column; gap: 5px; padding-left: 18px; border-left: 1px solid var(--mt-line); }
.mt-marca__nombre { font: 700 23px/1.02 var(--mt-font-display); letter-spacing: .01em; text-transform: uppercase; }
.mt-marca__sub { font: 600 12px/1.2 var(--mt-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--mt-ink-soft); }
.mt-judo .mt-header__brand { min-height: 108px; }

/* ---------- Menú: blanco, con el activo subrayado en rojo ---------- */
.mt-judo .mt-navbar { background: var(--mt-surface); border-top: 1px solid var(--mt-line); border-bottom: 1px solid var(--mt-line); }
.mt-judo .mt-nav > ul > li > a { color: var(--mt-ink); font-size: 16px; font-weight: 600; letter-spacing: .04em; padding: 16px 12px 15px; }
.mt-judo .mt-nav > ul > li:hover > a, .mt-judo .mt-nav > ul > li:focus-within > a,
.mt-judo .mt-nav > ul > li.is-active > a { color: var(--mt-ink); border-bottom-color: var(--mt-accent); }
.mt-judo .mt-nav .fa-chevron-down { opacity: .45; }
.mt-judo .mt-mega { border-top-color: var(--mt-ink); }
.mt-judo .mt-mega .mt-has-sub > a { color: var(--mt-accent-dark); }

/* ---------- Barra superior: fina, en tinta ---------- */
.mt-judo .mt-topbar { font-size: 13px; }
.mt-judo .mt-topbar .mt-wrap { min-height: 36px; }

/* ---------- Carrusel ---------- */
.mt-judo .mt-slide__caption h2 { font-weight: 700; letter-spacing: .01em; }
.mt-judo .mt-hero__dots button[aria-current="true"] { background: var(--mt-surface); }


/* ---------- Accesos directos: iconos en tinta; el rojo, solo en el primero y al pasar ---------- */
.mt-judo .mt-quick i { color: var(--mt-ink); }
.mt-judo .mt-quick li:first-child a { background: var(--mt-surface); box-shadow: inset 0 3px 0 var(--mt-accent); }
.mt-judo .mt-quick li:first-child i { color: var(--mt-accent); }
.mt-judo .mt-quick a:hover, .mt-judo .mt-quick a:focus-visible,
.mt-judo .mt-quick li:first-child a:hover { background: var(--mt-ink); color: #fff; }
.mt-judo .mt-quick a:hover i, .mt-judo .mt-quick li:first-child a:hover i { color: var(--mt-accent-soft); }

/* ---------- Títulos de sección: fino trazo rojo sobre el título ---------- */
.mt-judo .mt-section__head { border-bottom-width: 1px; }
.mt-judo .mt-section__head h2 { font-size: 38px; letter-spacing: .01em; }
.mt-judo .mt-section__head h2::before {
    content: ""; display: block; width: 28px; height: 3px; margin-bottom: 10px; background: var(--mt-accent);
}
.mt-judo .mt-more { color: var(--mt-ink); }
.mt-judo .mt-more:hover { color: var(--mt-accent-dark); }

/* ---------- Tarjetas ---------- */
.mt-judo .mt-card { border-bottom: 2px solid transparent; }
.mt-judo .mt-card:hover { border-bottom-color: var(--mt-accent); }
.mt-judo .mt-card time, .mt-judo .mt-kicker { color: var(--mt-accent-dark); }

/* ---------- Agenda: fecha en tarjeta blanca, mes en rojo ---------- */
.mt-judo .mt-date { background: var(--mt-surface); color: var(--mt-ink); box-shadow: inset 0 0 0 1px var(--mt-line); }
.mt-judo .mt-date span, .mt-judo .mt-date small { color: var(--mt-accent); }
.mt-judo .mt-grid--pasados .mt-date { background: var(--mt-tag-bg); box-shadow: none; }
.mt-judo .mt-grid--pasados .mt-date span, .mt-judo .mt-grid--pasados .mt-date small { color: var(--mt-ink-soft); }

/* ---------- Mejores resultados: tinta con textura de tatami y puestos en dorado ---------- */
.mt-judo .mt-results {
    background:
        linear-gradient(rgba(29, 27, 31, .94), rgba(29, 27, 31, .94)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='1' y='1' width='58' height='118'/%3E%3Crect x='61' y='1' width='58' height='58'/%3E%3Crect x='61' y='61' width='58' height='58'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 120px 120px;
}
.mt-judo .mt-results li { border-left-color: var(--mt-gold); }
.mt-judo .mt-medal { color: var(--mt-gold); }

/* ---------- Páginas interiores: cabecera clara en vez de una banda oscura ---------- */
.mt-judo .mt-page-head { background: var(--mt-surface); color: var(--mt-ink); border-bottom: 1px solid var(--mt-line); }
.mt-judo .mt-page-head h1 { color: var(--mt-ink); }
.mt-judo .mt-page-head h1::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 14px; background: var(--mt-accent); }
.mt-judo .mt-page-head--slim { background: var(--mt-bg); border-bottom: 0; }
.mt-judo .mt-crumbs { color: var(--mt-ink-soft); }
.mt-judo .mt-crumbs > * + *::before, .mt-judo .mt-crumbs .btn + .btn::before, .mt-judo .mt-crumbs a + .btn::before { color: #b9b2a8; }
.mt-judo .mt-crumbs a, .mt-judo .mt-crumbs .btn { color: var(--mt-ink-soft); }
.mt-judo .mt-crumbs a:hover { color: var(--mt-accent-dark); }
.mt-judo .mt-crumbs .btn:last-child, .mt-judo .mt-crumbs [aria-current] { color: var(--mt-ink); }
.mt-judo .mt-tabs a { border-color: var(--mt-line); color: var(--mt-ink); }
.mt-judo .mt-tabs a[aria-current] { background: var(--mt-ink); border-color: var(--mt-ink); color: #fff; }
.mt-judo .mt-tabs a:hover { border-color: var(--mt-ink); color: var(--mt-ink); }
.mt-judo .mt-tabs a[aria-current]:hover { color: #fff; }

/* ---------- Contenido sin imagen (Vista.Visual): tatami claro con el cinturón rojo ---------- */
.mt-sinfoto {
    position: relative; overflow: hidden;
    background:
        linear-gradient(116deg, transparent 0 58%, rgba(0, 0, 0, .12) 58% 58.6%, var(--mt-accent) 58.6% 63.4%, #9c0d13 63.4% 64%, transparent 64%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%23cfc4ae' stroke-width='2'%3E%3Crect x='1' y='1' width='58' height='118' fill='%23e8e0cf'/%3E%3Crect x='61' y='1' width='58' height='58' fill='%23ece5d6'/%3E%3Crect x='61' y='61' width='58' height='58' fill='%23e5dcca'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 96px,
        #e8e0cf;
}
.mt-card:nth-child(2n) .mt-sinfoto { background-position: 0 0, 48px 0, 0 0; }
.mt-card:nth-child(3n) .mt-sinfoto {
    background:
        linear-gradient(64deg, transparent 0 30%, rgba(0, 0, 0, .12) 30% 30.6%, var(--mt-ink) 30.6% 35.4%, #000 35.4% 36%, transparent 36%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg stroke='%23cfc4ae' stroke-width='2'%3E%3Crect x='1' y='1' width='58' height='118' fill='%23e8e0cf'/%3E%3Crect x='61' y='1' width='58' height='58' fill='%23ece5d6'/%3E%3Crect x='61' y='61' width='58' height='58' fill='%23e5dcca'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 96px,
        #e8e0cf;
}
/* Emblema en marca de agua sobre el tatami */
.mt-sinfoto::after {
    content: ""; position: absolute; right: 7%; bottom: 10%; width: 24%; aspect-ratio: 1;
    background: url("/temas/judo/logo.svg") center / contain no-repeat; opacity: .16; filter: grayscale(1);
}

/* ---------- Pie ---------- */
.mt-judo .mt-footer .fa-solid { color: var(--mt-accent-soft); }

/* ---------- Móvil: el menú se despliega en blanco ---------- */
@media (max-width: 980px) {
    .mt-judo .mt-header .mt-marca img { height: 60px; }
    .mt-judo .mt-header__brand { min-height: 84px; }
    .mt-marca { gap: 12px; }
    .mt-marca__texto { padding-left: 12px; gap: 3px; }
    .mt-marca__nombre { font-size: 18px; }
    .mt-marca__sub { font-size: 10px; letter-spacing: .14em; }
    .mt-judo .mt-navbar { border-top: 0; }
    .mt-judo .mt-nav > ul > li > a { padding: 14px 0; border-bottom: 1px solid var(--mt-line); }
    .mt-judo .mt-nav > ul > li:hover > a, .mt-judo .mt-nav > ul > li.is-active > a { border-bottom-color: var(--mt-line); color: var(--mt-accent-dark); }
    .mt-judo .mt-mega a, .mt-judo .mt-mega ul ul ul a { color: var(--mt-ink-soft); }
    .mt-judo .mt-mega .mt-has-sub > a, .mt-judo .mt-nav > ul > li.mt-nav__movil > a { color: var(--mt-accent-dark); }
}
@media (max-width: 640px) {
    .mt-judo .mt-header .mt-marca img { height: 52px; }
    .mt-marca__nombre { font-size: 16px; }
    .mt-marca__sub { font-size: 9px; }
    .mt-judo .mt-section__head h2 { font-size: 30px; }
}
