/* =========================================================
   CLUB DE TIRO LA JARA — Hoja de estilos principal
   Sistema de diseño:
   - Tipografía: Oswald (titulares, carácter "stencil/militar")
                 Inter (texto de cuerpo, alta legibilidad)
   - Color: tonos tierra + blanco hueso + un único acento vivo
            (terracota) inspirado en la diana del logo
   - Motivo recurrente: la cruz de mira (crosshair) como
            elemento estructural, ahora protagonista en el
            banner superior (diana + impactos de bala)
   ========================================================= */

:root {
  /* --- Paleta de color (token system) --- */
  --color-bg:        #F7F4EC; /* blanco hueso, como el pétalo de la jara */
  --color-bg-soft:   #EFEAE0;
  --color-ink:       #1A1C1A; /* negro carbón, no puro */
  --color-ink-soft:  #4A4A47;
  --color-wood:      #6B5544; /* marrón culata/madera */
  --color-sage:      #8C9A6E; /* verde jara apagado */
  --color-accent:    #C2410C; /* terracota — único acento vivo */
  --color-accent-soft: #C2410C1A;
  --color-border:    #1A1C1A22;

  /* --- Tipografía --- */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Espaciado / layout --- */
  --max-width: 1200px;
  --side-menu-width: 320px;
  --radius: 2px; /* casi sin redondeo: estética de precisión, no orgánica */
  --banner-height: 220px; /* alto del banner superior: ancho de pantalla, sin ser excesivo */

  /* --- Transiciones --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET BÁSICO ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Respeta usuarios que prefieren reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   BANNER SUPERIOR — ancho completo de pantalla
   Diana con líneas marcadas + impactos de bala (SVG propio)
   ========================================================= */
.top-banner {
  position: relative;
  width: 100%;
  /* Un poco más grande que el tercio anterior, manteniendo el ancho completo */
  aspect-ratio: 5 / 1;
  overflow: hidden;
  background: var(--color-ink);
  border-bottom: 3px solid var(--color-ink);
}

.top-banner__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   BOTÓN MENÚ HAMBURGUESA — lateral izquierdo, debajo del banner
   ========================================================= */
.menu-toggle {
  position: fixed;
  top: calc(var(--banner-height) + 20px);
  left: 24px;
  width: 52px;
  height: 52px;
  background: var(--color-ink);
  border: none;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle:hover { background: var(--color-accent); }

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.menu-toggle__bar {
  width: 24px;
  height: 2px;
  background: var(--color-bg);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Animación a "X" cuando el menú está abierto */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   OVERLAY — oscurece el contenido cuando el menú está abierto
   ========================================================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease);
  z-index: 900;
}

.menu-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   MENÚ LATERAL IZQUIERDO — empieza debajo del banner
   ========================================================= */
.side-menu {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  height: calc(100% - var(--banner-height));
  width: var(--side-menu-width);
  max-width: 85vw;
  background: var(--color-ink);
  color: var(--color-bg);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  z-index: 950;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.side-menu.is-open { transform: translateX(0); }

.side-menu__header {
  padding: 40px 32px 32px;
  border-bottom: 1px solid rgba(247, 244, 236, 0.15);
  display: flex;
  align-items: center;
  gap: 16px;
}

.side-menu__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.side-menu__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.side-menu__title span { color: var(--color-accent); }

.side-menu__list { padding: 16px 0; flex: 1; }

.side-menu__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-left: 3px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.side-menu__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.8;
}

.side-menu__link:hover,
.side-menu__link.active {
  background: rgba(247, 244, 236, 0.06);
  border-left-color: var(--color-accent);
  padding-left: 38px;
}

.side-menu__footer {
  padding: 24px 32px 32px;
  font-size: 0.8rem;
  color: rgba(247, 244, 236, 0.5);
  border-top: 1px solid rgba(247, 244, 236, 0.15);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 32px 8vw 80px;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
}

.hero__content { max-width: 640px; position: relative; z-index: 2; }

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.95;
  color: var(--color-ink);
  margin-bottom: 24px;
}

.hero__title-sub {
  display: block;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  color: var(--color-wood);
  margin-top: 8px;
}

.hero__text {
  font-size: 1.05rem;
  color: var(--color-ink-soft);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ====== BOTONES ====== */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
}
.btn--primary:hover { background: var(--color-accent); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--ghost:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn--lg { padding: 20px 44px; font-size: 1rem; }

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

/* Indicador de scroll en el hero */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-ink-soft);
}
.hero__scroll span {
  width: 1px;
  height: 40px;
  background: var(--color-ink-soft);
  animation: scrollPulse 1.8s infinite var(--ease);
}
.hero__scroll small { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* =========================================================
   FRANJA DE ESTADÍSTICAS
   ========================================================= */
.stats {
  background: var(--color-ink);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  padding: 48px 8vw;
}

.stats__item { text-align: center; }

.stats__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stats__label {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 244, 236, 0.7);
}

.stats__divider { opacity: 0.3; }

/* =========================================================
   SECCIÓN "QUIÉNES SOMOS"
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 120px 8vw;
}

.about__media {
  display: flex;
  justify-content: center;
}

.about__logo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--color-ink);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--color-ink);
}

.section-title--center { text-align: center; max-width: 700px; margin: 0 auto 48px; }

.about__content p {
  color: var(--color-ink-soft);
  margin-bottom: 16px;
  max-width: 540px;
}

.link-arrow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-ink);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease);
}
.link-arrow:hover { color: var(--color-accent); }

/* =========================================================
   TARJETAS DE SECCIONES
   ========================================================= */
.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 8vw 120px;
}

.cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 24px -8px rgba(26, 28, 26, 0.15);
}

.card__icon { font-size: 1.8rem; display: block; margin-bottom: 16px; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.card p {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}

/* =========================================================
   LOCALIZACIÓN
   ========================================================= */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-bg-soft);
}

.location__text {
  padding: 100px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location__text p { color: var(--color-ink-soft); margin-bottom: 8px; }
.location__hours { font-size: 0.9rem; }

.location__map { min-height: 420px; }

.location__map-placeholder {
  height: 100%;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(247, 244, 236, 0.4);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  text-align: center;
  padding: 120px 8vw;
  max-width: 700px;
  margin: 0 auto;
}

.contact__sub {
  color: var(--color-ink-soft);
  margin-bottom: 32px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-ink);
  color: rgba(247, 244, 236, 0.6);
  text-align: center;
  padding: 32px;
  font-size: 0.85rem;
  position: relative;
}

.footer__crosshair {
  color: var(--color-accent);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

/* =========================================================
   RESPONSIVE — MÓVIL Y TABLET
   ========================================================= */
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 80px 8vw;
  }
  .about__content p { margin-left: auto; margin-right: auto; }

  .cards__grid { grid-template-columns: repeat(2, 1fr); }

  .location { grid-template-columns: 1fr; }
  .location__map { min-height: 280px; }
}

@media (max-width: 640px) {
  .hero { padding: 88px 6vw 60px; min-height: auto; }

  .cards__grid { grid-template-columns: 1fr; }

  .stats { gap: 24px; padding: 40px 6vw; }
  .stats__num { font-size: 1.7rem; }

  .side-menu__header { padding: 32px 24px 24px; }
}
.videos-page{
  min-height: 70vh;
  padding: 4rem 8%;
}

.videos-container{
  max-width: 1400px;
  margin: 0 auto;
}
.video-grid{
display:grid;
grid-template-columns:repeat(3, 1fr); /* siempre 3 por fila en escritorio */
gap:1.5rem;
max-width:1100px; /* tarjetas más pequeñas en conjunto */
margin:0 auto;
}

.video-card{
background:#111;
border-radius:14px;
overflow:hidden;
box-shadow:0 10px 24px rgba(0,0,0,.25);
transition:.3s;
}

.video-card:hover{
transform:translateY(-5px);
}

.video-card iframe{
width:100%;
aspect-ratio:16/9; /* vídeo horizontal estándar */
border:none;
display:block;
}

/* Si en el futuro añades Shorts, usa esta variante en el HTML: class="video-card video-card--shorts" */
.video-card--shorts iframe{
aspect-ratio:9/16;
}

.video-info{
padding:0.85rem 1rem;
}

.video-info h3{
margin:0;
font-size:0.95rem;
}

@media (max-width: 900px){
  .video-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px){
  .video-grid{ grid-template-columns: 1fr; }
}
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  justify-content: start;
}

.gallery-item{
  position: relative;
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-bg-soft);
  border: none;
  padding: 0;
  transition: transform 0.35s var(--ease); /* ← añade esto */
}
.gallery-item:hover{
  transform: scale(1.70); /* aqui se amplia la miniatura de imagenes*/
  z-index: 10;
}

.gallery-page{
  min-height: 70vh;
  padding: 4rem 8%;
}

.gallery-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.gallery-item:hover img{
  transform: scale(1);
}

.gallery-item:focus-visible{
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ====== LIGHTBOX ====== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(26, 28, 26, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
  z-index: 2000;
}

.lightbox.is-active{
  opacity: 1;
  visibility: visible;
}

.lightbox__img{
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.lightbox__close,
.lightbox__nav{
  position: absolute;
  background: var(--color-ink);
  color: var(--color-bg);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover{
  background: var(--color-accent);
}

.lightbox__close{
  top: 24px;
  right: 24px;
}

.lightbox__nav--prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next{ right: 24px; top: 50%; transform: translateY(-50%); }

.lightbox__nav--prev:hover{ transform: translateY(-50%) scale(1.08); }
.lightbox__nav--next:hover{ transform: translateY(-50%) scale(1.08); }

.lightbox__counter{
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(247, 244, 236, 0.7);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px){
  .gallery-grid{ grid-template-columns: repeat(auto-fill, minmax(140px, 140px)); gap: 10px; }
  .gallery-item{ width: 140px; height: 140px; }
  .lightbox__nav{ width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox__close{ width: 40px; height: 40px; font-size: 1.1rem; top: 16px; right: 16px; }
  .lightbox__nav--prev{ left: 10px; }
  .lightbox__nav--next{ right: 10px; }
}
/* =========================================================
   ESTILOS FORZADOS PARA EL CALENDARIO INTERACTIVO
   ========================================================= */
.calendar-page-wrapper {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.calendar-container {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 25px;
  border-radius: 4px;
}

/* Encabezado: Mes y flechas laterales */
.calendar-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 25px;
  border-bottom: 2px solid #ff4500;
  padding-bottom: 15px;
}

.calendar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  margin: 0;
  text-align: center;
}

.calendar-btn {
  background: #222;
  border: 1px solid #444;
  color: #fff;
  font-size: 2rem;
  padding: 5px 25px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
}

.calendar-btn:hover {
  background-color: #ff4500;
  border-color: #ff4500;
}

/* Forzado de cuadrícula en 7 columnas */
.calendar-weekdays {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  color: #ff4500;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 15px;
  margin-bottom: 10px;
  border-bottom: 1px solid #333;
}

.calendar-days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  grid-auto-rows: minmax(130px, auto) !important;
  gap: 2px !important;
  background-color: #333; /* Color de las líneas divisorias */
  border: 2px solid #333;
}

/* Celdas individuales de los días */
.calendar-day {
  background-color: #1e1e1e !important;
  color: #fff !important;
  padding: 12px;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  font-family: 'Inter', sans-serif;
}

/* Días que pertenecen a meses colindantes */
.calendar-day.empty {
  background-color: #141414 !important;
  color: #444 !important;
}

.calendar-day__number {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: block;
}

/* Día de hoy marcado en Gris Claro */
.calendar-day.today {
  background-color: #d1d5db !important; /* Gris claro */
}
.calendar-day.today .calendar-day__number {
  color: #111 !important; /* Número oscuro para contraste */
}

/* Etiquetas de eventos programados */
.calendar-event {
  background-color: #ff4500 !important;
  color: #fff !important;
  font-size: 0.85rem;
  padding: 5px 8px;
  border-radius: 3px;
  margin-top: 6px;
  font-weight: 500;
  line-height: 1.3;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  border-left: 3px solid #fff;
}

/* Control responsive en pantallas móviles */
@media (max-width: 768px) {
  .calendar-title { font-size: 1.6rem; }
  .calendar-btn { padding: 5px 15px; font-size: 1.5rem; }
  .calendar-days { grid-auto-rows: minmax(85px, auto) !important; }
  .calendar-event { font-size: 0.75rem; padding: 3px 5px; }
}

/* =========================================================
   SECCIÓN DOCUMENTOS — CASILLAS PREMIUM Y MODERNAS
   ========================================================= */
.documents-page {
  background-color: #0b0b0b; /* Fuerza el fondo oscuro táctico */
  color: #ffffff;
  padding: 60px 24px;
  max-width: 1300px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.documents-header {
  margin-bottom: 45px;
  border-left: 4px solid #ff4500; /* Línea de acento naranja */
  padding-left: 20px;
}

.documents-subtitle {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.5;
}

/* Rejilla de Casillas Autoadaptable */
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* Tarjeta / Casilla Individual */
.document-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

/* Efecto hover: se ilumina el borde en el naranja del club */
.document-card:hover {
  transform: translateY(-5px);
  border-color: #ff4500;
  box-shadow: 0 10px 20px rgba(255, 69, 0, 0.1);
}

.document-card__body {
  padding: 30px;
  position: relative;
}

/* Etiquetas pequeñas en la esquina superior */
.document-card__badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 69, 0, 0.15);
  color: #ff4500;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.document-card__badge--external {
  background: rgba(0, 140, 255, 0.15);
  color: #008cff;
}

.document-card__icon {
  font-size: 2.5rem;
  display: inline-block;
  margin-bottom: 20px;
}

.document-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.document-card__text {
  color: #9e9e9e;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Botón de acción inferior integrado en la casilla */
.document-card__btn {
  background: #1c1c1c;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #262626;
  transition: all 0.2s ease;
}

.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

/* Al pasar el ratón por la tarjeta, el botón reacciona */
.document-card:hover .document-card__btn {
  background: #ff4500;
  color: #ffffff;
  border-top-color: #ff4500;
}

.document-card:hover .document-card__btn--external {
  background: #008cff;
  border-top-color: #008cff;
}

.document-card:hover .btn-arrow {
  transform: scale(1.2);
}

/* Ajustes Responsive */
@media (max-width: 480px) {
  .documents-grid {
    grid-template-columns: 1fr;
  }
  .documents-header {
    padding-left: 15px;
  }
  .document-card__title {
    font-size: 1.3rem;
  }
}

/* =========================================================
   SECCIÓN NOTICIAS — DISEÑO DE TARJETAS TÁCTICO
   ========================================================= */
.news-page {
  background-color: #0b0b0b;
  color: #ffffff;
  padding: 60px 24px;
  max-width: 1300px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.news-header {
  margin-bottom: 45px;
  border-left: 4px solid #ff4500;
  padding-left: 20px;
}

.news-subtitle {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.5;
}

/* Rejilla adaptativa */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 35px;
}

/* Tarjeta de Noticia */
.news-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #ff4500;
  box-shadow: 0 12px 24px rgba(255, 69, 0, 0.1);
}

/* Contenedor de imagen / cabeceras */
.news-card__image-container {
  position: relative;
  height: 200px;
  background: #1a1a1a;
  width: 100%;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.news-card:hover .news-card__img {
  opacity: 1;
}

/* Relleno cuando no hay imagen física */
.news-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #161616 0%, #222222 100%);
  border-bottom: 1px solid #262626;
}

/* Etiquetas flotantes en las noticias */
.news-card__badge {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: #ff4500;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.news-card__badge--external {
  background: #008cff; /* Azul para cosas externas */
}

.news-card__badge--club {
  background: #333333;
  border: 1px solid #555;
}

/* Bloque de texto interno */
.news-card__content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card__date {
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.news-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px 0;
  line-height: 1.3;
  letter-spacing: 0.3px;
}

.news-card__text {
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex-grow: 1; /* Empuja el enlace siempre abajo */
}

/* Enlaces de lectura */
.news-card__link {
  color: #ff4500;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
  align-self: flex-start;
}

.news-card__link:hover {
  color: #ffffff;
  padding-left: 5px;
}

.news-card__link--external {
  color: #008cff;
}
.news-card__link--external:hover {
  color: #ffffff;
}

/* Adaptación a dispositivos móviles */
@media (max-width: 480px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card__image-container {
    height: 180px;
  }
  .news-card__title {
    font-size: 1.25rem;
  }
}
/* =========================================================
   SECCIÓN REGULACIÓN — CASILLAS DE NORMATIVA TÁCTICA
   ========================================================= */
.regulation-page {
  background-color: #0b0b0b;
  color: #ffffff;
  padding: 60px 24px;
  max-width: 1300px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

.regulation-header {
  margin-bottom: 45px;
  border-left: 4px solid #ff4500;
  padding-left: 20px;
}

.regulation-subtitle {
  color: #a0a0a0;
  font-size: 1.1rem;
  margin-top: 10px;
  max-width: 650px;
  line-height: 1.6;
}

/* Rejilla de Normas */
.regulation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

/* Tarjeta / Ficha Normativa */
.regulation-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.regulation-card:hover {
  transform: translateY(-4px);
  border-color: #ff4500;
  box-shadow: 0 10px 20px rgba(255, 69, 0, 0.08);
}

.regulation-card__body {
  padding: 30px;
  position: relative;
}

/* Etiquetas superiores de las fichas */
.regulation-card__tag {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  border: 1px solid #333;
}

.regulation-card__tag--security {
  background: rgba(0, 200, 80, 0.1);
  color: #00c850;
  border-color: rgba(0, 200, 80, 0.2);
}

.regulation-card__tag--warning {
  background: rgba(211, 47, 47, 0.1);
  color: #d32f2f;
  border-color: rgba(211, 47, 47, 0.2);
}

.regulation-card__icon {
  font-size: 2.3rem;
  display: inline-block;
  margin-bottom: 20px;
}

.regulation-card__title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: 0.5px;
}

.regulation-card__text {
  color: #9e9e9e;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.regulation-card__text strong {
  color: #ff4500;
}

/* Pie de tarjeta interactivo (Botón) */
.regulation-card__btn {
  background: #1c1c1c;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #262626;
  transition: all 0.2s ease;
}

.reg-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.regulation-card:hover .regulation-card__btn {
  background: #ff4500;
  border-top-color: #ff4500;
}

.regulation-card:hover .reg-arrow {
  transform: translateX(3px);
}

/* Pie de tarjeta informativo (Texto estático) */
.regulation-card__static-footer {
  background: #181818;
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 15px 30px;
  border-top: 1px solid #222;
  text-align: center;
}

/* Ajustes Móviles */
@media (max-width: 480px) {
  .regulation-grid {
    grid-template-columns: 1fr;
  }
}