/* ══════════════════════════════════════════════════════════════════════
   COLEGIO SAN JOSÉ — ESTILOS PRINCIPALES
   Colegio San José · Familia Sa-Fa · Bell Ville, Córdoba
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Paleta institucional: AZUL SA-FA + DORADO ── */

  /* Primario = Azul institucional */
  --color-primary:        #1e4a7b;
  --color-primary-dark:   #153558;
  --color-primary-light:  #2e6bab;
  --color-primary-pale:   #eaf1fa;

  /* Acento = Dorado (para CTAs, badges destacados) */
  --color-accent:         #d4a24a;
  --color-accent-dark:    #b3862f;
  --color-accent-light:   #f4e8ce;

  /* Colores por categoría (institucional) */
  --color-futbol:         #43a047;
  --color-futbol-bg:      #e8f5ee;
  --color-basquet:        #fb8c00;
  --color-basquet-bg:     #fff0e6;
  --color-voley:          #1e88e5;
  --color-voley-bg:       #e3eeff;
  --color-otros:          #8e24aa;
  --color-otros-bg:       #f3e5f5;
  --color-institucional:  #1e4a7b;
  --color-institucional-bg: #eaf1fa;

  /* Neutros */
  --color-white:          #ffffff;
  --color-bg:             #f5f6f8;
  --color-bg-card:        #ffffff;
  --color-border:         #dde3ec;
  --color-text:           #1a1a1a;
  --color-text-muted:     #555555;
  --color-text-light:     #999999;

  /* Semánticos */
  --color-success:        #2e7d32;
  --color-error:          #c62828;
  --color-warning:        #f57f17;

  /* Tipografía */
  --font-main:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Merriweather', 'Inter', Georgia, serif;

  /* Espaciado */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.18);
  --transition:  .25s ease;
}

/* ──────────────────────────────────────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

a { color: var(--color-primary); text-decoration:none; transition:color var(--transition); }
a:hover { color: var(--color-primary-dark); }

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

/* ──────────────────────────────────────────────────────────────────────
   TIPOGRAFÍA
   ────────────────────────────────────────────────────────────────────── */
h1 { font-family:var(--font-display); font-size:clamp(2rem,4.5vw,3.2rem); font-weight:700; letter-spacing:.01em; line-height:1.1; text-transform:uppercase; }
h2 { font-family:var(--font-display); font-size:clamp(1.4rem,3vw,2.2rem); font-weight:600; line-height:1.15; text-transform:uppercase; letter-spacing:.02em; }
h3 { font-size:clamp(1.1rem,2vw,1.5rem); font-weight:600; line-height:1.3; }
h4 { font-size:1.15rem; font-weight:600; }
h5 { font-size:1rem;    font-weight:600; }
p  { margin:0 0 1rem 0; }

/* Títulos de cards y admin — sin display font */
.noticia-card h4,
.noticia-item h3,
.noticia-detail-content h3,
.noticia-detail-content h4,
.admin-body h1,
.admin-body h2 { font-family: var(--font-main); text-transform:none; letter-spacing:normal; }

/* ──────────────────────────────────────────────────────────────────────
   LAYOUT
   ────────────────────────────────────────────────────────────────────── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content { min-height: calc(100vh - 68px - 280px); }

/* ──────────────────────────────────────────────────────────────────────
   FRANJAS ALBINEGRAS — recurso visual de identidad
   ────────────────────────────────────────────────────────────────────── */
:root {
  --franja-size: 14px;
  --franja: repeating-linear-gradient(
    90deg,
    var(--color-primary) 0, var(--color-primary) var(--franja-size),
    #fff var(--franja-size), #fff calc(var(--franja-size) * 2)
  );
}

/* Barra de franjas fina — se puede reutilizar */
.stripe-bar {
  height: 6px;
  background: var(--franja);
  width: 100%;
}

/* Separador de sección con franja */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
}
.section-divider::before {
  content: '';
  display: block;
  width: 40px;
  height: 6px;
  background: var(--franja);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────────
   NAVBAR
   ────────────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 3px solid var(--color-accent);
  box-shadow: 0 2px 16px rgba(0,0,0,.10);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-logo img { height: 46px; width: auto; object-fit: contain; }
.navbar-logo:hover { opacity: .85; }

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.02em;
}
.brand-sub {
  font-size: .7rem;
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}

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

.navbar-menu > li > a {
  display: block;
  padding: .5rem .9rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: .01em;
}

.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Dropdown */
.navbar-dropdown { position: relative; }

.navbar-dropdown > a {
  display: flex !important;
  align-items: center;
  gap: .4rem;
}

.navbar-dropdown > a .fa-chevron-down {
  font-size: .7rem;
  transition: transform var(--transition);
}
.navbar-dropdown:hover > a .fa-chevron-down { transform: rotate(-180deg); }

.navbar-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #fff;
  list-style: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border-top: 3px solid var(--color-primary);
  overflow: hidden;
}
.navbar-dropdown:hover .navbar-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.navbar-submenu li { border-bottom: 1px solid var(--color-border); }
.navbar-submenu li:last-child { border-bottom: none; }

.navbar-submenu a {
  display: flex !important;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.25rem;
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 500;
}
.navbar-submenu a:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

/* Colores deportes en submenu */
.navbar-submenu li:nth-child(1) a:hover { border-left: 3px solid var(--color-futbol); }
.navbar-submenu li:nth-child(2) a:hover { border-left: 3px solid var(--color-basquet); }
.navbar-submenu li:nth-child(3) a:hover { border-left: 3px solid var(--color-voley); }
.navbar-submenu li:nth-child(4) a:hover { border-left: 3px solid var(--color-otros); }

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  position: relative;
  z-index: 1002;
}
.navbar-toggle:hover { background: var(--color-primary-pale); }
.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ──────────────────────────────────────────────────────────────────────
   HERO SLIDER
   ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease-out;
  transform: scale(1.05);
}
.slide.is-active .slide-bg { transform: scale(1); }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.80) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.15) 100%
  );
}

/* Linea decorativa */
.slide-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--color-accent);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 4rem 4rem;
  max-width: 700px;
  color: #fff;
}

.slide-category {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--color-accent);
  color: #fff;
  padding: .35rem .9rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  width: fit-content;
}

.slide-content h1 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  margin-bottom: .75rem;
  font-size: clamp(1.6rem,3.5vw,2.8rem);
}

.slide-content p {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Nav arrows */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-nav:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  padding: 0;
}
.slider-dot.active,
.slider-dot:hover {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ──────────────────────────────────────────────────────────────────────
   BOTONES
   ────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.30);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }

.link-vermas {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: all var(--transition);
}
.link-vermas:hover { color: var(--color-accent); gap: .6rem; }

/* ──────────────────────────────────────────────────────────────────────
   VIDEO INSTITUCIONAL
   ────────────────────────────────────────────────────────────────────── */
.section-video {
  background: var(--color-primary);
  padding: 3.5rem 0 4rem;
}

.section-video__header {
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

.section-video__header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.section-video__header h2 i {
  color: #e00;
  margin-right: .4rem;
}

.section-video__header p {
  color: #aaa;
  font-size: 1rem;
  margin: 0;
}

.section-video__embed {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  aspect-ratio: 16 / 9;
}

.section-video__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ──────────────────────────────────────────────────────────────────────
   SECCIONES INICIO — NOTICIAS POR DEPORTE
   ────────────────────────────────────────────────────────────────────── */
.section-noticias {
  padding: 4rem 0;
}

/* Separador visual entre secciones */
.section-noticias .container > .categoria-section:not(:last-child) {
  margin-bottom: 4.5rem;
  padding-bottom: 4.5rem;
  border-bottom: 1px solid var(--color-border);
}

.categoria-section { position: relative; }

.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cat-title {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.cat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cat-text h2 {
  font-size: 1.6rem;
  margin: 0;
  line-height: 1;
}
.cat-text small {
  font-size: .82rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

/* Colores por deporte */
.cat--futbol   { --cat-color: var(--color-futbol);   --cat-bg: var(--color-futbol-bg); }
.cat--basquet  { --cat-color: var(--color-basquet);  --cat-bg: var(--color-basquet-bg); }
.cat--voley    { --cat-color: var(--color-voley);    --cat-bg: var(--color-voley-bg); }
.cat--otros    { --cat-color: var(--color-otros);    --cat-bg: var(--color-otros-bg); }
.cat--institucional { --cat-color: var(--color-institucional); --cat-bg: var(--color-institucional-bg); }

.categoria-section { border-left: 4px solid var(--cat-color, #111); padding-left: 1.5rem; }
.cat-icon { background: var(--cat-bg, #eee) !important; color: var(--cat-color, #111) !important; }
.cat-text h2 { color: var(--cat-color, #111) !important; }
.link-vermas { color: var(--cat-color, #111) !important; }
.link-vermas:hover { color: var(--cat-color, #111) !important; opacity: .75; }

/* Badge de categoría en cards */
.cat--futbol  .noticia-card .noticia-cat-badge,
.cat--basquet .noticia-card .noticia-cat-badge,
.cat--voley   .noticia-card .noticia-cat-badge,
.cat--otros   .noticia-card .noticia-cat-badge {
  background: var(--cat-bg, #eee);
  color: var(--cat-color, #111);
}
.cat--otros .cat-text h2 { color: var(--color-otros); }
.cat--institucional .cat-icon { background: var(--color-institucional-bg); color: var(--color-institucional); }
.cat--institucional .cat-text h2 { color: var(--color-institucional); }

/* Grid de cards */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Card principal (1ra noticia) destacada */
.noticias-grid .noticia-card:first-child {
  grid-column: span 2;
}
.noticias-grid .noticia-card:first-child .noticia-imagen {
  aspect-ratio: 16/9;
}
.noticias-grid .noticia-card:first-child .noticia-body h4 {
  font-size: 1.25rem;
}

.noticia-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}
.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.noticia-imagen {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}
.noticia-imagen img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.noticia-card:hover .noticia-imagen img { transform: scale(1.06); }

/* Placeholder cuando no hay imagen */
.noticia-imagen.no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-border);
  background: var(--color-bg);
}

.noticia-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.noticia-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .6rem;
}

.noticia-fecha {
  font-size: .78rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.noticia-body h4 {
  margin: 0 0 .6rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.noticia-card:hover .noticia-body h4 { color: var(--color-primary); }

.noticia-body p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: .88rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.cat-badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-badge--futbol       { background:var(--color-futbol-bg);       color:var(--color-futbol); }
.cat-badge--basquet      { background:var(--color-basquet-bg);      color:var(--color-basquet); }
.cat-badge--voley        { background:var(--color-voley-bg);        color:var(--color-voley); }
.cat-badge--otros        { background:var(--color-otros-bg);        color:var(--color-otros); }
.cat-badge--institucional{ background:var(--color-institucional-bg);color:var(--color-institucional); }
.cat-badge--default      { background:var(--color-primary-pale);    color:var(--color-primary); }

/* ──────────────────────────────────────────────────────────────────────
   LISTADO NOTICIAS (/noticias/)
   ────────────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  margin-bottom: 2.5rem;
}
.page-hero h1 { color: #fff; margin: 0 0 .5rem; }
.page-hero p  { color: rgba(255,255,255,.8); margin: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--color-primary); font-weight: 500; }
.breadcrumb span { color: var(--color-text-light); }

.categoria-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.2rem;
  border: 2px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 3px 10px rgba(0,0,0,.20);
}

.noticias-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.noticia-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.noticia-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.noticia-item .noticia-img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.noticia-info {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
}

.noticia-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .75rem;
}
.noticia-header h3 { margin: 0; flex: 1; font-size: 1.15rem; }
.noticia-header h3 a { color: var(--color-text); }
.noticia-header h3 a:hover { color: var(--color-primary); }

.noticia-extracto {
  color: var(--color-text-muted);
  font-size: .93rem;
  line-height: 1.6;
  flex: 1;
  margin: 0 0 1.25rem;
}

.noticia-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.noticia-categoria {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .7rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 700;
  background: var(--color-primary-pale);
  color: var(--color-primary);
}

/* ──────────────────────────────────────────────────────────────────────
   DETALLE NOTICIA
   ────────────────────────────────────────────────────────────────────── */
.noticia-detail {
  padding: 3rem 0 4rem;
}

.noticia-detail-header { margin-bottom: 2rem; }
.noticia-detail-header h1 { margin-bottom: 1rem; line-height: 1.2; }

.noticia-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .88rem;
  color: var(--color-text-muted);
  align-items: center;
}
.noticia-detail-meta span { display:flex; align-items:center; gap:.4rem; }

.categoria-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .85rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.noticia-detail-imagen {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 520px;
}
.noticia-detail-imagen img { width:100%; object-fit:cover; display:block; }

.noticia-detail-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text);
  margin: 2rem 0;
}
.noticia-detail-content > * + * { margin-top: 1rem; }
.noticia-detail-content h2,
.noticia-detail-content h3 { color: var(--color-primary); margin-top: 2rem; }
.noticia-detail-content img,
.noticia-detail-content figure {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.5rem auto;
}
.noticia-detail-content figcaption {
  text-align: center;
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-top: .5rem;
}
.noticia-detail-content a { color: var(--color-primary); text-decoration: underline; }
.noticia-detail-content ul,
.noticia-detail-content ol { padding-left: 1.5rem; }
.noticia-detail-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.5rem;
  background: var(--color-primary-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

/* ── Lista de descargas (PDFs / DOCs) ───────────────────────────────── */
.csj-doclist {
  display: grid;
  gap: .6rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.csj-doclist a.csj-doc {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.1rem;
  background: #fff;
  border: 1px solid #e6e2d8;
  border-left: 4px solid var(--csj-red, #d94436);
  border-radius: 8px;
  color: var(--csj-blue-dk, #153558);
  text-decoration: none;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, border-color .15s, background .15s;
}
.csj-doclist a.csj-doc:hover {
  background: var(--csj-cream, #fdf7ee);
  border-left-color: var(--csj-gold-dk, #b3862f);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(21,53,88,.10);
}
.csj-doclist a.csj-doc .csj-doc-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--csj-red, #d94436);
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
}
.csj-doclist a.csj-doc:hover .csj-doc-icon {
  background: var(--csj-gold-dk, #b3862f);
}
.csj-doclist a.csj-doc .csj-doc-label {
  flex: 1 1 auto;
  min-width: 0;
}
.csj-doclist a.csj-doc .csj-doc-download {
  flex: 0 0 auto;
  color: var(--csj-gold-dk, #b3862f);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
@media (max-width: 600px) {
  .csj-doclist a.csj-doc .csj-doc-download span { display: none; }
}

.noticia-detail-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.social-share {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.social-share span { font-weight: 600; font-size: .9rem; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.social-btn.facebook:hover  { background:#1877f2; color:#fff; border-color:#1877f2; }
.social-btn.twitter:hover   { background:#1da1f2; color:#fff; border-color:#1da1f2; }
.social-btn.whatsapp:hover  { background:#25d366; color:#fff; border-color:#25d366; }

/* Noticias relacionadas */
.noticias-relacionadas {
  padding: 3rem 0;
  background: var(--color-bg);
  margin-top: 3rem;
}
.noticias-relacionadas h2 { margin-bottom: 2rem; }

/* ──────────────────────────────────────────────────────────────────────
   PAGINACIÓN
   ────────────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 3rem 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 .6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: .9rem;
  transition: all var(--transition);
  background: #fff;
}
.page-link:hover {
  background: var(--color-primary-pale);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.page-link.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────
   FOOTER
   ────────────────────────────────────────────────────────────────────── */
.footer {
  background: #f2f2f2;
  color: var(--color-primary);
  padding: 4rem 0 0;
  margin-top: 5rem;
  border-top: 3px solid #ddd;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.footer-brand img { height: 55px; margin-bottom: 1.25rem; opacity: .85; }
.footer-brand p { font-size: .9rem; color: #555; line-height: 1.7; }

.footer-section h4 {
  color: var(--color-primary);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
  padding-bottom: .5rem;
  borderborder-bottom: 2px solid #111;
  display: inline-block;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: .6rem; }
.footer-section ul a { color: #444; font-size: .9rem; transition: all var(--transition); }
.footer-section ul a:hover { color: #000; padding-left: .3rem; }

.footer-contact li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .88rem;
  color: #444;
  margin-bottom: .75rem;
}
.footer-contact i { color: var(--color-primary); margin-top: .15rem; flex-shrink: 0; }
.footer-contact a { color: #444; }

.social-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: #fff;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 1rem;
  transition: all var(--transition);
  border: 1px solid #ccc;
}
.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #ddd;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-size: .82rem;
  color: #555;
  max-width: 100%;
}
.footer-bottom p { margin: 0; }
.footer-bottom-credit { font-size: .78rem; color: #777; white-space: nowrap; }
.footer-bottom-credit a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.footer-bottom-credit a:hover { text-decoration: underline; }

/* ──────────────────────────────────────────────────────────────────────
   STATS / NÚMEROS DEL CLUB
   ────────────────────────────────────────────────────────────────────── */
.club-stats {
  background: var(--color-primary);
  padding: 3rem 1.5rem;
}
.stats-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: #ddd;
}
.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-primary) !important;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.stat-label {
  display: block;
  font-size: .72rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: .6rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .stat-item { min-width: 45%; }
  .stat-item:not(:last-child)::after { display: none; }
  .stat-num { font-size: 2.2rem !important; }
  .stat-label { white-space: normal; font-size: .68rem; }
}

/* ──────────────────────────────────────────────────────────────────────
   FORMULARIO DE CONTACTO
   ────────────────────────────────────────────────────────────────────── */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 3rem 0 5rem;
}
.contacto-info h2 { margin-bottom: 1.5rem; }
.contacto-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.contacto-item-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contacto-item-text h4 { margin: 0 0 .25rem; font-size: .95rem; }
.contacto-item-text p { margin: 0; color: var(--color-text-muted); font-size: .9rem; }

.contacto-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.contacto-form-card h2 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display:block; margin-bottom:.4rem; font-weight:600; font-size:.88rem; color:var(--color-text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: .95rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.form-group textarea { resize:vertical; min-height:120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid #2e7d32;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .5rem;
}
.alert-error {
  background: #ffebee;
  color: #c62828;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid #c62828;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .5rem;
}

/* ──────────────────────────────────────────────────────────────────────
   INSTITUCIONAL
   ────────────────────────────────────────────────────────────────────── */
.institucional-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 5rem 0;
  text-align: center;
}
.institucional-hero h1 { color:#fff; }
.institucional-hero p  { color:rgba(255,255,255,.8); max-width:600px; margin:.75rem auto 0; }

.institucional-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.institucional-content h2 {
  color: var(--color-primary);
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--color-border);
}
.institucional-content h2:first-child { margin-top:0; padding-top:0; border-top:none; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
  text-align: center;
}
.stat-item {
  background: var(--color-primary-pale);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}
.stat-label { font-size: .85rem; color: var(--color-text-muted); margin-top: .5rem; }

/* ──────────────────────────────────────────────────────────────────────
   EMPTY STATE & UTILITARIOS
   ────────────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--color-text-light);
  padding: 4rem 1rem;
  font-size: 1.05rem;
}
.empty-state i { font-size: 3rem; display:block; margin-bottom:1rem; opacity:.3; }

/* Animación fade-in */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in-up.visible { opacity:1; transform:translateY(0); }

/* ──────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .noticias-grid .noticia-card:first-child { grid-column: span 2; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 480px; }
  .slide-content { padding: 2rem 2.5rem 3rem; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .navbar-container { position: relative; }
  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
    z-index: 999;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .navbar-menu.active { display: flex; }
  .navbar-toggle { display:flex; }

  .navbar-menu > li > a { padding: .75rem 1rem; }

  .navbar-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-top: none;
    background: var(--color-bg);
    border-radius: 0;
    display: none;
  }
  .navbar-dropdown.open .navbar-submenu { display: block; }

  /* Hero */
  .hero { height: 400px; }
  .slide-content { padding: 1.5rem 1.5rem 2.5rem; }
  .slide-content h1 { font-size: 1.5rem; }
  .slider-nav { width: 40px; height: 40px; font-size: .9rem; }
  .slider-prev { left: .75rem; }
  .slider-next { right: .75rem; }

  /* Noticias grid */
  .noticias-grid { grid-template-columns: 1fr; }
  .noticias-grid .noticia-card:first-child { grid-column: span 1; }

  /* Noticias list */
  .noticia-item { grid-template-columns: 1fr; }
  .noticia-info { padding: 1rem; }

  .footer-container { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: span 1; }

  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero { height: 320px; }
  .slide-content p { display: none; }
  h1 { font-size: 1.5rem; }
  .container { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────────────────────────────────────────────────────
   INSTAGRAM FEED (homepage)
   ────────────────────────────────────────────────────────────────────── */
.section-instagram {
  padding: 4rem 0;
  background: var(--color-white);
}

.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.ig-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.ig-title i {
  font-size: 1.8rem;
  /* Degradado característico de Instagram */
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ig-title h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-text);
}

.ig-seguir {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--transition), background var(--transition);
}
.ig-seguir:hover {
  border-color: var(--color-text);
  background: var(--color-primary-pale);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

@media (min-width: 600px)  { .ig-grid { grid-template-columns: repeat(4, 1fr); gap: .6rem; } }
@media (min-width: 900px)  { .ig-grid { grid-template-columns: repeat(6, 1fr); gap: .75rem; } }
@media (min-width: 1200px) { .ig-grid { grid-template-columns: repeat(9, 1fr); gap: .75rem; } }

.ig-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--color-border);
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.ig-item:hover img { transform: scale(1.07); }

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.ig-overlay i {
  font-size: 1.8rem;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition);
}

.ig-item:hover .ig-overlay         { background: rgba(0,0,0,.35); }
.ig-item:hover .ig-overlay i       { opacity: 1; }
  transition: border-color .2s, background .2s;
}
.ig-seguir:hover { border-color: currentColor; background: rgba(0,0,0,.04); }

/* ════════════════════════════════════════════════════════════════
   LIGHTBOX (lightbox.js v3.22-b) — overlay para imágenes en noticias
   ════════════════════════════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-stage {
  max-width: 95vw; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img {
  max-width: 95vw; max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-footer {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 1rem; align-items: center;
  color: rgba(255,255,255,.85);
  font-size: .82rem; max-width: 90vw;
  text-align: center;
}
.lightbox-counter { font-weight: 600; opacity: .7; }
.lightbox-caption { opacity: .9; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; color: #fff;
  font-size: 2.4rem; line-height: 1;
  cursor: pointer; opacity: .8;
  transition: opacity .15s; z-index: 10;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: none; color: #fff;
  width: 52px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; cursor: pointer;
  border-radius: var(--radius-sm); opacity: .75;
  transition: background .2s, opacity .2s; z-index: 10;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover { background: rgba(255,255,255,.2); opacity: 1; }
.noticia-body .lightbox-target,
.page-content .lightbox-target,
[data-lightbox-group] .lightbox-target {
  cursor: zoom-in;
  transition: opacity .15s;
}
.noticia-body .lightbox-target:hover,
.page-content .lightbox-target:hover,
[data-lightbox-group] .lightbox-target:hover { opacity: .9; }

/* ════════════════════════════════════════════════════════════════
   GALERÍA WP-STYLE — markup [gallery columns=N] usado en TinyMCE
   y como output de WP migrado.
   ════════════════════════════════════════════════════════════════ */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols, 3), 1fr);
  gap: .6rem;
  margin: 1.5rem 0;
}
.gallery.gallery-columns-1 { --gallery-cols: 1; }
.gallery.gallery-columns-2 { --gallery-cols: 2; }
.gallery.gallery-columns-3 { --gallery-cols: 3; }
.gallery.gallery-columns-4 { --gallery-cols: 4; }
.gallery.gallery-columns-5 { --gallery-cols: 5; }
.gallery.gallery-columns-6 { --gallery-cols: 6; }
@media (max-width: 720px) {
  .gallery { --gallery-cols: 2 !important; }
}
.gallery-item {
  width: auto !important; /* anular width:33% inline de WP */
  margin: 0 !important;
  display: flex; flex-direction: column;
}
.gallery-icon {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}
.gallery-icon a, .gallery-icon img {
  display: block;
  width: 100%; height: 100%;
}
.gallery-icon img {
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-icon:hover img { transform: scale(1.05); }
.gallery-caption {
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-top: .35rem;
  text-align: center;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════
   HONEYPOT (campos ocultos anti-bot en forms)
   ════════════════════════════════════════════════════════════════ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important; opacity: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════
   COLEGIO SAN JOSÉ · v2 (2026-08-01) — override & new blocks
   Tipografía: DM Sans (body) + Fraunces (display serif)
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --font-main:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --csj-cream:    #fdf7ee;
  --csj-cream-2:  #f5ecda;
  --csj-blue:     #1e4a7b;
  --csj-blue-dk:  #153558;
  --csj-blue-lt:  #4bb4e8;
  --csj-gold:     #d4a24a;
  --csj-gold-dk:  #b3862f;
  --csj-red:      #d94436;
  --csj-orange:   #ee8b3a;
  --csj-purple:   #7c3aed;
  --csj-green:    #43a047;
}

body { font-family: var(--font-main); font-feature-settings: "ss01","cv11"; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}

/* ── CABECERA INSTITUCIONAL (cream band + wave) ────────────────────── */
.csj-topband {
  position: relative;
  background: linear-gradient(180deg, var(--csj-cream) 0%, var(--csj-cream-2) 100%);
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.75rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.csj-topband-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.csj-block { line-height: 1.35; }
.csj-block--left  { text-align: left; }
.csj-block--right { text-align: right; }
.csj-block--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}
.csj-block--brand img { height: 88px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.csj-brand-txt { text-align: center; line-height: 1; }
.csj-brand-fam {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--csj-blue-dk);
  letter-spacing: .05em;
}
.csj-brand-safa {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  background: linear-gradient(90deg, var(--csj-red) 0%, var(--csj-orange) 25%, var(--csj-gold) 45%, var(--csj-green) 65%, var(--csj-blue-lt) 85%, var(--csj-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin: .1rem 0;
}
.csj-brand-safa span { color: var(--csj-blue-dk); -webkit-text-fill-color: var(--csj-blue-dk); font-weight: 400; margin: 0 .1rem; }
.csj-brand-name {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .78rem;
  color: var(--csj-blue-dk);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: .2rem;
}
.csj-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--csj-blue-dk);
  font-size: 1.15rem;
  margin: 0 0 .2rem;
  line-height: 1.2;
}
.csj-block p { font-size: .85rem; color: #555; margin: 0 0 .2rem; }
.csj-block strong { display: block; font-size: .8rem; color: var(--csj-blue); letter-spacing: .05em; font-weight: 700; }
.csj-lema-eye { font-size: .72rem !important; text-transform: uppercase; letter-spacing: .15em; color: var(--csj-gold-dk) !important; font-weight: 700; margin-bottom: .35rem !important; }
.csj-lema { font-size: 1.4rem !important; margin: 0 !important; color: var(--csj-blue-dk); }
.csj-lema em { font-style: italic; color: var(--csj-red); font-weight: 800; }
.csj-lema-sub { color: var(--csj-blue-dk) !important; font-size: .95rem !important; letter-spacing: normal !important; margin-top: .2rem; }

.csj-wave {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .55;
  z-index: 1;
}
.csj-splash {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(28px);
  opacity: .55;
}
.csj-splash--tl {
  top: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--csj-red) 0%, transparent 60%),
              radial-gradient(circle at 60% 60%, var(--csj-orange) 0%, transparent 60%);
}
.csj-splash--br {
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--csj-purple) 0%, transparent 60%),
              radial-gradient(circle at 30% 30%, var(--csj-blue-lt) 0%, transparent 60%);
}

@media (max-width: 900px) {
  .csj-topband-inner { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
  .csj-block--left, .csj-block--right { text-align: center; }
  .csj-block--brand img { height: 70px; }
  .csj-brand-safa { font-size: 2rem; }
}

/* ── INFO-STRIP azul ───────────────────────────────────────────────── */
.csj-infostrip {
  background: linear-gradient(90deg, var(--csj-blue-dk) 0%, var(--csj-blue) 100%);
  color: rgba(255,255,255,.92);
  padding: .7rem 1.5rem;
  font-size: .82rem;
}
.csj-infostrip-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.csj-infostrip a, .csj-infostrip span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.csj-infostrip a:hover { color: var(--csj-gold); }
.csj-infostrip i { color: var(--csj-gold); font-size: .95rem; }
.csj-infostrip-socials { display: flex; gap: .75rem; }
.csj-infostrip-socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  justify-content: center;
  transition: background .15s, transform .15s;
}
.csj-infostrip-socials a:hover { background: var(--csj-gold); color: var(--csj-blue-dk); transform: translateY(-2px); }
.csj-infostrip-socials i { color: currentColor; margin: 0; }
@media (max-width: 700px) { .csj-infostrip-inner { text-align: center; gap: 1rem; } }

/* ── NAVBAR CSJ ─────────────────────────────────────────────────────── */
.navbar--csj {
  background: #fff;
  border-bottom: 3px solid var(--csj-gold);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar--csj .navbar-container {
  height: 62px;
  padding: 0 1.5rem;
  justify-content: center;
}
.navbar-brand-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: var(--csj-blue-dk);
  font-family: var(--font-display);
  font-weight: 700;
}
.navbar-brand-inline img { height: 40px; width: auto; }
.navbar-brand-inline span { font-size: 1rem; }
.navbar--csj .navbar-menu > li > a {
  color: var(--csj-blue-dk);
  font-family: var(--font-main);
  font-weight: 600;
  padding: .5rem .85rem;
  font-size: .92rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.navbar--csj .navbar-menu > li > a:hover,
.navbar--csj .navbar-menu > li > a.active {
  color: var(--csj-blue-dk);
  background: var(--csj-cream);
}
.navbar--csj .navbar-submenu {
  background: #fff;
  border-top: 3px solid var(--csj-gold);
  min-width: 240px;
}
.navbar--csj .navbar-submenu li { border-bottom: 1px solid #f0f0f0; }
.navbar--csj .navbar-submenu a {
  color: var(--csj-blue-dk);
  font-weight: 500;
  padding: .7rem 1.1rem;
  font-size: .88rem;
}
.navbar--csj .navbar-submenu a:hover { background: var(--csj-cream); color: var(--csj-red); }
.navbar--csj .navbar-submenu i { color: var(--csj-gold-dk); }

@media (max-width: 768px) {
  .navbar--csj .navbar-container { justify-content: flex-end; }
}

/* ── HERO EDITORIAL ─────────────────────────────────────────────────── */
.csj-hero {
  position: relative;
  background: var(--csj-cream);
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 1px solid rgba(0,0,0,.05);
  overflow: hidden;
}

/* stage: contenedor de slides apiladas */
.csj-hero-stage {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}
.csj-hero-slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .7s ease, transform .7s ease;
  transform: translateX(24px);
}
.csj-hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}
.csj-hero-slide:not(.is-active) {
  position: absolute;
  inset: 0;
  transform: translateX(-24px);
}
.csj-hero-slide.is-active .csj-hero-figure img { animation: csjHeroImgIn .9s ease both; }
.csj-hero-slide.is-active .csj-hero-eye,
.csj-hero-slide.is-active .csj-hero-title,
.csj-hero-slide.is-active .csj-hero-lead,
.csj-hero-slide.is-active .csj-hero-actions { animation: csjHeroTextIn .7s ease both; }
.csj-hero-slide.is-active .csj-hero-title    { animation-delay: .06s; }
.csj-hero-slide.is-active .csj-hero-lead     { animation-delay: .12s; }
.csj-hero-slide.is-active .csj-hero-actions  { animation-delay: .18s; }

@keyframes csjHeroImgIn {
  from { transform: scale(1.06); opacity: .6; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes csjHeroTextIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.csj-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}
.csj-hero-figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 24px 48px -12px rgba(21,53,88,.28), 0 8px 16px rgba(21,53,88,.12);
}
.csj-hero-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s; }
.csj-hero-figure:hover img { transform: scale(1.03); }
.csj-hero-badge {
  position: absolute;
  top: 1.15rem; left: 1.15rem;
  background: rgba(255,255,255,.95);
  color: var(--csj-blue-dk);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,.05);
  display: inline-flex;
  align-items: center; gap: .4rem;
}
.csj-hero-badge i { color: var(--csj-gold-dk); }
.csj-hero-cat {
  position: absolute;
  bottom: 1.15rem; left: 1.15rem;
  background: var(--csj-red);
  color: #fff;
  padding: .3rem .85rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.csj-hero-body { padding: 1rem 0; }
.csj-hero-eye {
  display: inline-block;
  color: var(--csj-red);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}
.csj-hero-eye::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--csj-red);
  transform: translateY(-50%);
}
.csj-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  color: var(--csj-blue-dk);
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.csj-hero-lead {
  font-size: 1.08rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 520px;
}
.csj-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 0; }

/* controles (dots con barra de progreso) */
.csj-hero-controls {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 1.75rem auto 0;
  display: flex;
  justify-content: center;
  gap: .55rem;
}
.csj-hero-dot {
  position: relative;
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(21,53,88,.18);
  cursor: pointer;
  overflow: hidden;
  transition: width .3s ease, background .3s ease;
}
.csj-hero-dot:hover { background: rgba(21,53,88,.35); }
.csj-hero-dot.is-active {
  width: 96px;
  background: rgba(21,53,88,.15);
}
.csj-hero-dot-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--csj-red) 0%, var(--csj-orange) 50%, var(--csj-gold) 100%);
  border-radius: 999px;
}
.csj-hero-dot.is-active .csj-hero-dot-fill {
  animation: csjHeroProgress var(--csj-hero-interval, 6s) linear forwards;
}
.csj-hero[data-paused="1"] .csj-hero-dot.is-active .csj-hero-dot-fill {
  animation-play-state: paused;
}
@keyframes csjHeroProgress {
  from { width: 0; }
  to   { width: 100%; }
}

/* iconos decorativos escolares — lápiz, libro, paleta, birrete, estrella, nota */
.csj-hero-confetti {
  position: absolute;
  opacity: .45;
  pointer-events: none;
  will-change: transform;
  line-height: 1;
  text-shadow: 0 3px 8px rgba(21, 53, 88, .08);
}
.csj-hero-confetti--1 { top:  9%; left:  4%;  font-size: 26px; color: var(--csj-red);     animation: csjFloatA 4.2s ease-in-out infinite;                }
.csj-hero-confetti--2 { top: 68%; left:  3%;  font-size: 24px; color: var(--csj-gold);    animation: csjFloatB 3.6s ease-in-out infinite;   animation-delay: -1.1s; }
.csj-hero-confetti--3 { top: 16%; right: 5%;  font-size: 28px; color: var(--csj-blue-lt); animation: csjFloatA 3.8s ease-in-out infinite reverse; animation-delay: -.7s; }
.csj-hero-confetti--4 { top: 62%; right: 4%;  font-size: 26px; color: var(--csj-orange);  animation: csjFloatB 4.4s ease-in-out infinite reverse; }
.csj-hero-confetti--5 { bottom: 8%; left: 44%; font-size: 18px; color: var(--csj-purple); animation: csjFloatA 3.2s ease-in-out infinite;   animation-delay: -1.6s; }
.csj-hero-confetti--6 { top: 42%; left: 34%; font-size: 20px; color: var(--csj-green);   animation: csjFloatB 4.8s ease-in-out infinite;   animation-delay: -2.2s; }

@keyframes csjFloatA {
  0%, 100% { transform: translate(0, 0)         rotate(-8deg)  scale(1);    }
  25%      { transform: translate(18px, -26px)  rotate(90deg)  scale(1.1);  }
  50%      { transform: translate(-6px, -42px)  rotate(200deg) scale(.95);  }
  75%      { transform: translate(-22px, -16px) rotate(300deg) scale(1.05); }
}
@keyframes csjFloatB {
  0%, 100% { transform: translate(0, 0)         rotate(6deg)   scale(1);    }
  20%      { transform: translate(-14px, -18px) rotate(-70deg) scale(1.08); }
  45%      { transform: translate(10px, -34px)  rotate(160deg) scale(.92);  }
  70%      { transform: translate(24px, -12px)  rotate(260deg) scale(1.06); }
}

@media (max-width: 900px) {
  .csj-hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .csj-hero { padding: 2.5rem 1.25rem 2rem; }
  .csj-hero-confetti { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .csj-hero-slide,
  .csj-hero-slide.is-active .csj-hero-figure img,
  .csj-hero-slide.is-active .csj-hero-eye,
  .csj-hero-slide.is-active .csj-hero-title,
  .csj-hero-slide.is-active .csj-hero-lead,
  .csj-hero-slide.is-active .csj-hero-actions,
  .csj-hero-confetti,
  .csj-hero-dot.is-active .csj-hero-dot-fill { animation: none !important; transition: opacity .2s ease !important; transform: none !important; }
}

/* ── BOTONES ────────────────────────────────────────────────────────── */
.csj-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 2px solid transparent;
  cursor: pointer;
}
.csj-btn--primary {
  background: var(--csj-blue);
  color: #fff;
  border-color: var(--csj-blue);
  box-shadow: 0 6px 16px rgba(21,53,88,.25);
}
.csj-btn--primary:hover { background: var(--csj-blue-dk); border-color: var(--csj-blue-dk); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(21,53,88,.3); color: #fff; }
.csj-btn--ghost {
  background: transparent;
  color: var(--csj-blue);
  border-color: var(--csj-blue);
}
.csj-btn--ghost:hover { background: var(--csj-blue); color: #fff; }
.csj-btn--lg { padding: 1rem 2rem; font-size: 1rem; }

/* ── SECTION HEADER ─────────────────────────────────────────────────── */
.csj-section-header { text-align: center; margin-bottom: 2.5rem; }
.csj-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--csj-blue-dk);
  margin: .3rem 0 .6rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.csj-section-header p { color: #666; font-size: 1.05rem; max-width: 620px; margin: 0 auto; }
.csj-section-header--row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 1.75rem; }
.csj-section-header--row h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.csj-eye {
  display: inline-block;
  color: var(--csj-red);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.csj-eye--light { color: var(--csj-gold); }
.csj-link-more {
  color: var(--csj-blue-dk);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .15s;
  border-bottom: 2px solid transparent;
  padding-bottom: .1rem;
}
.csj-link-more:hover { gap: .55rem; border-color: var(--csj-red); }

/* ── VIDEO INSTITUCIONAL (facade lite-youtube) ─────────────────────── */
.csj-video {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem 4.5rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 68, 54, .10) 0, transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(212, 162, 74, .12) 0, transparent 45%),
    linear-gradient(180deg, var(--csj-cream-2) 0%, var(--csj-cream) 55%, #fff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.csj-video-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.csj-video-head { padding: .5rem 0; }
.csj-video-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--csj-blue-dk);
  margin: .35rem 0 1rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.csj-video-lead {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 480px;
}
.csj-video-lead strong { color: var(--csj-blue-dk); font-weight: 700; }
.csj-video-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.csj-video-chips li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #fff;
  color: var(--csj-blue-dk);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid rgba(21, 53, 88, .1);
  box-shadow: 0 2px 8px rgba(21, 53, 88, .06);
}
.csj-video-chips i { color: var(--csj-red); font-size: .82rem; }

/* Marco del video (rojo, con decorativos "cinta washi") */
.csj-video-stage {
  position: relative;
  perspective: 1200px;
}
.csj-video-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b1220;
  border: 3px solid var(--csj-red);
  box-shadow:
    0 30px 60px -18px rgba(21, 53, 88, .35),
    0 12px 24px rgba(217, 68, 54, .18),
    0 0 0 6px rgba(255, 255, 255, .8),
    0 0 0 7px rgba(217, 68, 54, .15);
  transform: rotate(-.6deg);
  transition: transform .5s ease, box-shadow .5s ease;
}
.csj-video-frame:hover { transform: rotate(0) translateY(-3px); }
.csj-video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
  display: block;
  overflow: hidden;
}
.csj-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
  transition: transform .8s ease, filter .4s ease;
}
.csj-video-play:hover .csj-video-thumb { transform: scale(1.04); filter: saturate(1.15) brightness(1.02); }
.csj-video-play::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0, 0, 0, .18) 100%);
  transition: opacity .3s;
  opacity: 0;
}
.csj-video-play:hover::after { opacity: 1; }
.csj-video-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(72px, 12vw, 96px);
  height: clamp(72px, 12vw, 96px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--csj-red) 0%, #b8322a 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow:
    0 10px 30px rgba(217, 68, 54, .55),
    0 0 0 8px rgba(255, 255, 255, .28),
    0 0 0 16px rgba(255, 255, 255, .1);
  z-index: 2;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.csj-video-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, .5);
  animation: csjVideoPulse 2.2s ease-out infinite;
}
.csj-video-btn i { transform: translateX(3px); }
.csj-video-play:hover .csj-video-btn { transform: translate(-50%, -50%) scale(1.08); }
.csj-video-play:active .csj-video-btn { transform: translate(-50%, -50%) scale(.96); }
@keyframes csjVideoPulse {
  0%   { transform: scale(.9);  opacity: .8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
.csj-video-badge {
  position: absolute;
  top: .85rem; right: .85rem;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  padding: .3rem .7rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.csj-video-badge i { color: #ff0000; font-size: .95rem; }

/* Iframe real (montado por JS) */
.csj-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Cinta washi decorativa (esquinas) */
.csj-video-tape {
  position: absolute;
  width: 90px;
  height: 26px;
  background: repeating-linear-gradient(
    45deg,
    rgba(212, 162, 74, .85) 0 8px,
    rgba(238, 139, 58, .85) 8px 16px
  );
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 4px 10px rgba(21, 53, 88, .18);
  z-index: 3;
  pointer-events: none;
}
.csj-video-tape--tl {
  top: -8px; left: 18px;
  transform: rotate(-14deg);
  border-radius: 2px;
}
.csj-video-tape--br {
  bottom: -8px; right: 18px;
  transform: rotate(-14deg);
  border-radius: 2px;
}

/* Iconos flotantes decorativos (mismo lenguaje que hero) */
.csj-video-confetti {
  position: absolute;
  opacity: .35;
  pointer-events: none;
  will-change: transform;
  line-height: 1;
  text-shadow: 0 3px 8px rgba(21, 53, 88, .08);
  z-index: 1;
}
.csj-video-confetti--1 { top: 12%; left:  5%;  font-size: 26px; color: var(--csj-red);     animation: csjFloatA 4.6s ease-in-out infinite; }
.csj-video-confetti--2 { bottom: 15%; left: 8%; font-size: 22px; color: var(--csj-blue-lt); animation: csjFloatB 3.8s ease-in-out infinite; animation-delay: -1.2s; }
.csj-video-confetti--3 { top: 8%;  right: 6%;  font-size: 28px; color: var(--csj-gold);    animation: csjFloatA 4.2s ease-in-out infinite reverse; animation-delay: -.5s; }
.csj-video-confetti--4 { bottom: 12%; right: 5%; font-size: 24px; color: var(--csj-orange); animation: csjFloatB 4.4s ease-in-out infinite reverse; animation-delay: -1.8s; }
.csj-video-confetti--5 { top: 48%;  left: 44%; font-size: 18px; color: var(--csj-purple); animation: csjFloatA 3.4s ease-in-out infinite; animation-delay: -2.1s; }
.csj-video-confetti--6 { top: 62%;  left: 40%; font-size: 20px; color: var(--csj-green);  animation: csjFloatB 5s ease-in-out infinite;   animation-delay: -.9s; }

@media (max-width: 900px) {
  .csj-video-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .csj-video-lead  { margin-inline: auto; }
  .csj-video-chips { justify-content: center; }
  .csj-video-confetti { display: none; }
  .csj-video-frame { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .csj-video-frame,
  .csj-video-thumb,
  .csj-video-btn,
  .csj-video-btn::before,
  .csj-video-confetti { animation: none !important; transition: none !important; transform: none !important; }
  .csj-video-btn::before { display: none; }
}

/* ── NIVELES (4 cards) ──────────────────────────────────────────────── */
.csj-niveles { padding: 4rem 1.5rem; background: #fff; }
.csj-niveles-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.csj-nivel {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 2rem 1.75rem;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  position: relative;
  overflow: hidden;
}
.csj-nivel::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--csj-blue);
  transition: height .22s;
}
.csj-nivel:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(21,53,88,.14);
  border-color: transparent;
}
.csj-nivel:hover::after { height: 6px; }
.csj-nivel-ic {
  width: 58px; height: 58px;
  border-radius: 14px;
  background: var(--csj-cream);
  color: var(--csj-blue);
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  margin-bottom: .35rem;
}
.csj-nivel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--csj-blue-dk);
  margin: 0;
  font-weight: 700;
}
.csj-nivel p { font-size: .92rem; color: #666; line-height: 1.55; margin: 0; }
.csj-nivel-cta {
  margin-top: auto;
  color: var(--csj-red);
  font-weight: 700;
  font-size: .82rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .15s;
  padding-top: .75rem;
}
.csj-nivel:hover .csj-nivel-cta { gap: .6rem; }

.csj-nivel--inicial::after    { background: var(--csj-red); }
.csj-nivel--primario::after   { background: var(--csj-green); }
.csj-nivel--secundario::after { background: var(--csj-blue); }
.csj-nivel--pastoral::after   { background: var(--csj-purple); }
.csj-nivel--inicial    .csj-nivel-ic { background: #fce8e6; color: var(--csj-red); }
.csj-nivel--primario   .csj-nivel-ic { background: #e6f5e9; color: var(--csj-green); }
.csj-nivel--secundario .csj-nivel-ic { background: #e8f0f9; color: var(--csj-blue); }
.csj-nivel--pastoral   .csj-nivel-ic { background: #f0e6fa; color: var(--csj-purple); }

/* ── ÚLTIMAS NOTICIAS ───────────────────────────────────────────────── */
.csj-noticias { padding: 4rem 1.5rem; background: var(--csj-cream); }
.csj-noticias .container { max-width: 1240px; }
.csj-noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.csj-noticia {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.csj-noticia:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(21,53,88,.14); }
.csj-noticia-img {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.csj-noticia-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.csj-noticia:hover .csj-noticia-img img { transform: scale(1.06); }
.csj-noticia-img--empty {
  background: var(--csj-cream-2);
  display: grid; place-items: center;
  color: var(--csj-blue-lt);
  font-size: 3rem;
}
.csj-noticia-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.csj-noticia-date {
  font-size: .74rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.csj-noticia h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--csj-blue-dk);
  margin: 0;
  line-height: 1.3;
  font-weight: 700;
}
.csj-noticia h3 a { color: inherit; text-decoration: none; transition: color .15s; }
.csj-noticia h3 a:hover { color: var(--csj-red); }
.csj-noticia p { color: #666; font-size: .88rem; line-height: 1.55; margin: 0; }
.csj-noticia-more {
  margin-top: auto;
  padding-top: .5rem;
  color: var(--csj-red);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .15s;
}
.csj-noticia-more:hover { gap: .55rem; }

/* ── CTA banner ─────────────────────────────────────────────────────── */
.csj-cta {
  background:
    radial-gradient(circle at 15% 30%, rgba(75,180,232,.25) 0, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(212,162,74,.2) 0, transparent 45%),
    linear-gradient(135deg, var(--csj-blue-dk) 0%, var(--csj-blue) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
}
.csj-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.csj-cta h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.4rem); margin: .3rem 0 .5rem; }
.csj-cta p { color: rgba(255,255,255,.85); font-size: 1rem; margin: 0; max-width: 620px; }
.csj-cta .csj-btn--primary {
  background: var(--csj-gold);
  color: var(--csj-blue-dk);
  border-color: var(--csj-gold);
  box-shadow: 0 8px 20px rgba(212,162,74,.35);
}
.csj-cta .csj-btn--primary:hover { background: var(--csj-gold-dk); border-color: var(--csj-gold-dk); color: #fff; }
@media (max-width: 800px) { .csj-cta-inner { grid-template-columns: 1fr; text-align: center; } .csj-cta p { margin-inline: auto; } }

/* ══════════════════════════════════════════════════════════════════════
   CONTACTO — variante CSJ
   ══════════════════════════════════════════════════════════════════════ */
.ct-hero {
  position: relative;
  padding: 4.5rem 1.25rem 6.5rem;
  overflow: hidden;
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.ct-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,162,74,.22) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(75,180,232,.18) 0, transparent 45%),
    linear-gradient(135deg, var(--csj-blue-dk) 0%, var(--csj-blue) 65%, #0b1f3a 100%);
  z-index: -1;
}
.ct-hero-inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.ct-hero-eye {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: .45rem 1rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.ct-hero-eye i { color: var(--csj-gold); }
.ct-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.ct-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin: 0 auto;
  max-width: 620px;
}
.ct-hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; display: block; z-index: 1; }

.ct-channels { background: var(--csj-cream); padding: 3.5rem 1.25rem; position: relative; z-index: 2; }
.ct-channels-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.ct-channel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.85rem 1.4rem 1.6rem;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 24px rgba(21,53,88,.08), 0 2px 6px rgba(0,0,0,.04);
  transition: transform .25s, box-shadow .25s;
  overflow: hidden;
  border-top: 4px solid var(--csj-blue);
}
.ct-channel::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: currentColor;
  opacity: .06;
  border-radius: 50%;
  transform: translate(30%, -30%);
  transition: transform .35s;
}
.ct-channel:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(21,53,88,.16), 0 6px 12px rgba(0,0,0,.06); }
.ct-channel:hover::before { transform: translate(15%, -15%) scale(1.15); }
.ct-channel-ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--csj-cream);
  color: var(--csj-blue);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: .5rem;
  transition: transform .25s;
}
.ct-channel:hover .ct-channel-ic { transform: scale(1.08) rotate(-5deg); }
.ct-channel-lbl {
  font-size: .72rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.ct-channel-val {
  font-size: 1.02rem;
  color: var(--csj-blue-dk);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
  margin: .2rem 0 .55rem;
}
.ct-channel-cta {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 700;
  color: var(--csj-red);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .18s;
}
.ct-channel:hover .ct-channel-cta { gap: .55rem; }

.ct-channel--tel  { color: var(--csj-blue); border-top-color: var(--csj-blue); }
.ct-channel--mail { color: var(--csj-gold-dk); border-top-color: var(--csj-gold-dk); }
.ct-channel--mail .ct-channel-ic { background: #fbf1dd; color: var(--csj-gold-dk); }
.ct-channel--mail .ct-channel-cta { color: var(--csj-gold-dk); }
.ct-channel--ig   { color: #d6249f; border-top-color: #d6249f; }
.ct-channel--ig .ct-channel-ic { background: #fce4f2; color: #d6249f; }
.ct-channel--ig .ct-channel-cta { color: #d6249f; }

.ct-strip {
  background: linear-gradient(90deg, var(--csj-blue-dk) 0%, var(--csj-blue) 100%);
  color: #fff;
  padding: 1.85rem 1.25rem;
  position: relative;
  overflow: hidden;
}
.ct-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,.035) 20px 21px);
  pointer-events: none;
}
.ct-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}
.ct-strip-block { display: flex; align-items: center; gap: .95rem; }
.ct-strip-ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.13);
  color: var(--csj-gold);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
}
.ct-strip-block span { display: block; font-size: .72rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .18rem; }
.ct-strip-block strong { display: block; font-size: .95rem; color: #fff; line-height: 1.35; font-weight: 500; }

.ct-form-wrap { background: var(--csj-cream); padding: 4rem 1.25rem; }
.ct-form-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.ct-form-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(21,53,88,.22), 0 6px 16px rgba(0,0,0,.08);
}
.ct-form-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(212,162,74,.32) 0, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(75,180,232,.22) 0, transparent 45%),
    linear-gradient(160deg, #0b1f3a 0%, var(--csj-blue-dk) 50%, var(--csj-blue) 100%);
  z-index: 0;
}
.ct-form-card-body { position: relative; z-index: 1; padding: 2.5rem; color: #fff; }
.ct-form-eye {
  display: inline-flex;
  align-items: center; gap: .45rem;
  background: rgba(212,162,74,.2);
  border: 1px solid rgba(212,162,74,.45);
  color: var(--csj-gold);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.ct-form-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  color: #fff;
  margin: 0 0 .35rem;
  font-weight: 800;
}
.ct-form-sub { color: rgba(255,255,255,.85); margin: 0 0 1.85rem; font-size: .96rem; }

.ct-alert {
  padding: .95rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .92rem;
  font-weight: 500;
}
.ct-alert--ok  { background: rgba(67,160,71,.18); border-left: 4px solid var(--csj-green); color: #d4f5d8; }
.ct-alert--err { background: rgba(217,68,54,.18); border-left: 4px solid var(--csj-red); color: #ffd4d0; }

.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .ct-form-row { grid-template-columns: 1fr; gap: 0; } }
.ct-form-group { margin-bottom: 1.15rem; }
.ct-form-group label { display: block; color: rgba(255,255,255,.88); font-size: .82rem; font-weight: 600; margin-bottom: .4rem; letter-spacing: .02em; }
.ct-form-group label span { color: var(--csj-gold); }
.ct-form-group input,
.ct-form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .18s, background .18s;
}
.ct-form-group input::placeholder,
.ct-form-group textarea::placeholder { color: rgba(255,255,255,.4); }
.ct-form-group input:focus,
.ct-form-group textarea:focus {
  outline: none;
  border-color: var(--csj-gold);
  background: rgba(255,255,255,.14);
  box-shadow: 0 0 0 4px rgba(212,162,74,.18);
}
.ct-form-group textarea { resize: vertical; min-height: 140px; }

.ct-form-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(135deg, var(--csj-gold) 0%, var(--csj-gold-dk) 100%);
  color: var(--csj-blue-dk);
  border: 0;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, filter .18s;
  box-shadow: 0 8px 20px rgba(212,162,74,.35);
  margin-top: .5rem;
}
.ct-form-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(212,162,74,.5); }
.ct-form-btn:active { transform: translateY(0); }

.ct-map-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(21,53,88,.15);
  background: #fff;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.ct-map-card iframe { width: 100%; flex: 1; border: 0; display: block; }
.ct-map-tag {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, var(--csj-blue), var(--csj-blue-dk));
  color: #fff;
}
.ct-map-tag i {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--csj-gold);
  color: var(--csj-blue-dk);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.ct-map-tag strong { display: block; font-size: .95rem; }
.ct-map-tag span   { display: block; font-size: .78rem; opacity: .85; }

@media (max-width: 900px) {
  .ct-form-inner { grid-template-columns: 1fr; }
  .ct-form-card-body { padding: 1.75rem; }
  .ct-form-title { font-size: 1.6rem; }
  .ct-map-card { min-height: 340px; }
}

/* ══════════════════════════════════════════════════════════════════════
   FOOTER v2 azul con banda dorada
   ══════════════════════════════════════════════════════════════════════ */
.footer {
  margin-top: 0;
  color: rgba(255,255,255,.85);
  background:
    radial-gradient(circle at 15% 15%, rgba(212,162,74,.12) 0, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(75,180,232,.12) 0, transparent 45%),
    linear-gradient(180deg, var(--csj-blue-dk) 0%, #0b1f3a 100%);
  border-top: 6px solid var(--csj-gold);
  padding: 3.5rem 1.5rem 0;
  font-size: .92rem;
}
.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand div[style*="font-size:1.2rem"] { color: #fff !important; font-family: var(--font-display); font-weight: 700; }
.footer-brand div[style*="font-size:.75rem"] { color: var(--csj-gold) !important; }
.footer-brand p { color: rgba(255,255,255,.75); margin: 0 0 1.25rem; }
.footer-section h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--csj-gold);
  display: inline-block;
  font-weight: 700;
}
.footer-section ul { list-style: none; padding: 0; margin: 0; }
.footer-section li { margin-bottom: .55rem; }
.footer-section a { color: rgba(255,255,255,.8); text-decoration: none; transition: color .15s; }
.footer-section a:hover { color: var(--csj-gold); }
.footer-contact li { display: flex; gap: .5rem; align-items: flex-start; color: rgba(255,255,255,.8); }
.footer-contact i { color: var(--csj-gold); margin-top: .25rem; flex-shrink: 0; }
.social-links { display: flex; gap: .55rem; margin-top: 1.25rem; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .15s, transform .15s, color .15s;
}
.social-links a:hover { background: var(--csj-gold); color: var(--csj-blue-dk); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,.65);
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--csj-gold); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { color: #fff; }
@media (max-width: 900px) { .footer-container { grid-template-columns: 1fr 1fr; } .footer-bottom { justify-content: center; text-align: center; } }
@media (max-width: 560px) { .footer-container { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ══════════════════════════════════════════════════════════════════════
   FOOTER v2 · FIX FINAL — supera specificity de reglas viejas (línea 1071 y 1110)
   ══════════════════════════════════════════════════════════════════════ */
body .footer .footer-section ul a,
body .footer .footer-section ul li a {
  color: rgba(255, 235, 200, .78);
  font-size: .92rem;
  padding-left: 0;
  transition: color .15s, padding-left .15s;
}
body .footer .footer-section ul a:hover,
body .footer .footer-section ul li a:hover {
  color: var(--csj-gold);
  padding-left: .25rem;
}
body .footer .footer-section ul a i {
  color: var(--csj-gold);
  margin-right: .35rem;
}

/* Bottom bar — override total del gris viejo */
body .footer .footer-bottom {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255, 235, 200, .72);
  padding: 1.25rem 0;
  max-width: 1240px;
  margin: 0 auto;
}
body .footer .footer-bottom p,
body .footer .footer-bottom span,
body .footer .footer-bottom .footer-credit {
  color: rgba(255, 235, 200, .72);
  font-size: .82rem;
}
body .footer .footer-bottom a,
body .footer .footer-bottom .footer-credit a {
  color: var(--csj-gold);
  font-weight: 600;
  text-decoration: none;
}
body .footer .footer-bottom a:hover { color: #fff; }

/* Social icons dentro del footer — override redondos oscuros */
body .footer .social-links a {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
body .footer .social-links a:hover {
  background: var(--csj-gold);
  border-color: var(--csj-gold);
  color: var(--csj-blue-dk);
}

/* Contacto: iconos y texto legibles */
body .footer .footer-contact li {
  color: rgba(255, 235, 200, .82);
  font-size: .9rem;
  line-height: 1.55;
}
body .footer .footer-contact i { color: var(--csj-gold); }
body .footer .footer-contact a { color: rgba(255, 235, 200, .82); }
body .footer .footer-contact a:hover { color: var(--csj-gold); }

/* Brand del footer: nombre en blanco */
body .footer .footer-brand > div:first-child > div > div:first-child { color: #fff !important; }
body .footer .footer-brand > div:first-child > div > div:last-child { color: var(--csj-gold) !important; }
body .footer .footer-brand p { color: rgba(255, 235, 200, .78); }


/* ══════════════════════════════════════════════════════════════════════
   CABECERA v3 — imagen oficial (cabe_2000x330.jpg)
   Reemplaza el layout de 3 columnas por una única imagen full-width.
   ══════════════════════════════════════════════════════════════════════ */
.csj-topband {
  display: block;
  padding: 0 !important;
  background: #fdf7ee;
  border-bottom: 0;
  overflow: hidden;
  line-height: 0;
  text-decoration: none;
}
.csj-topband-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 2000px;
  margin: 0 auto;
}
/* Sin decoraciones (los splashes y wave se ocultan porque están en la imagen) */
.csj-topband .csj-splash,
.csj-topband .csj-wave { display: none !important; }


/* ══════════════════════════════════════════════════════════════════════
   GALERÍA — cuadrícula responsive con lazy-load + lightbox
   ══════════════════════════════════════════════════════════════════════ */
.gal-section { margin-bottom: 3rem; }
.gal-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--csj-blue-dk);
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid rgba(21,53,88,.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
}
.gal-section-title span {
  font-family: var(--font-main);
  font-size: .78rem;
  color: var(--csj-gold-dk);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .6rem;
}
.gal-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--csj-cream-2);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s;
  cursor: zoom-in;
}
.gal-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(21,53,88,.2);
  z-index: 2;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.gal-item:hover img { transform: scale(1.08); }
.gal-zoom-ic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, transparent 60%, rgba(21,53,88,.65) 100%);
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity .2s;
}
.gal-item:hover .gal-zoom-ic { opacity: 1; }

@media (max-width: 640px) {
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; }
  .gal-section-title { font-size: 1.2rem; }
}

/* Placeholder mientras carga (mientras la img no bajó) */
.gal-item img[loading="lazy"] { background: linear-gradient(90deg, #f0e8d8 0%, #fdf7ee 50%, #f0e8d8 100%); background-size: 200% 100%; animation: gal-shimmer 1.4s ease-in-out infinite; }
.gal-item img.loaded, .gal-item img[loading="eager"] { animation: none; background: none; }
@keyframes gal-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   ARCHIVOS ADJUNTOS (link a PDF/DOC/XLS/...) — 2026-08-01
   Renderizado en contenido de noticias/páginas cuando el editor inserta
   un <a class="attach attach--pdf" href="...">…</a>
   ══════════════════════════════════════════════════════════════════════ */
.attach {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem 1.15rem .75rem .95rem;
  background: #fff;
  border: 1px solid var(--csj-border, #dde3ec);
  border-left: 4px solid var(--csj-blue, #1e4a7b);
  border-radius: 8px;
  color: var(--csj-blue-dk, #153558);
  text-decoration: none;
  font-family: var(--font-main, 'DM Sans', sans-serif);
  font-size: .9rem;
  line-height: 1.3;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: transform .15s, box-shadow .15s, border-color .15s;
  max-width: 100%;
  margin: .35rem 0;
}
.attach:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(21,53,88,.14);
  border-color: var(--csj-blue-dk, #153558);
  color: var(--csj-blue-dk, #153558);
  text-decoration: none;
}
.attach > i:first-child {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.attach-name {
  font-weight: 600;
  color: inherit;
  word-break: break-word;
}
.attach-meta {
  font-size: .72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-left: auto;
  padding-left: .8rem;
  flex-shrink: 0;
}
.attach-dl {
  font-size: .85rem;
  color: var(--csj-blue, #1e4a7b);
  opacity: .55;
  transition: opacity .15s;
}
.attach:hover .attach-dl { opacity: 1; }

/* Colores por tipo */
.attach--pdf                          { border-left-color: #e53935; }
.attach--pdf  > i:first-child         { color: #e53935; }
.attach--doc, .attach--docx, .attach--odt,
.attach--rtf, .attach--txt            { border-left-color: #2b6cb0; }
.attach--doc  > i:first-child, .attach--docx > i:first-child,
.attach--odt  > i:first-child, .attach--rtf  > i:first-child,
.attach--txt  > i:first-child         { color: #2b6cb0; }
.attach--xls, .attach--xlsx, .attach--ods,
.attach--csv                          { border-left-color: #2f855a; }
.attach--xls  > i:first-child, .attach--xlsx > i:first-child,
.attach--ods  > i:first-child, .attach--csv  > i:first-child { color: #2f855a; }
.attach--ppt, .attach--pptx, .attach--odp { border-left-color: #dd6b20; }
.attach--ppt  > i:first-child, .attach--pptx > i:first-child,
.attach--odp  > i:first-child         { color: #dd6b20; }
.attach--zip, .attach--rar, .attach--7z   { border-left-color: #6b46c1; }
.attach--zip  > i:first-child, .attach--rar > i:first-child,
.attach--7z   > i:first-child         { color: #6b46c1; }

@media (max-width: 500px) {
  .attach { flex-wrap: wrap; padding: .65rem .85rem; }
  .attach-meta { width: 100%; margin-left: 40px; padding-left: 0; }
}
