/* ==========================================================================
   COLEGIO URUGUAY CURICÓ — HOJA DE ESTILOS INSTITUCIONAL (2026-2027)
   ========================================================================== */

:root {
  --navy-dark: #071930;
  --navy: #0B2545;
  --navy-light: #133B6E;
  --sky: #1E6FD9;
  --sky-bright: #38BDF8;
  --gold: #F59E0B;
  --gold-hover: #D97706;
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-light: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 10px 25px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 20px 40px rgba(11, 37, 69, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title, .nav-link, .btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. BARRA SUPERIOR (TOP BAR)
   ========================================================================== */
.top-bar {
  background-color: var(--navy-dark);
  color: #E2E8F0;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.pill-intranet {
  background: rgba(56, 189, 248, 0.16);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pill-intranet:hover {
  background: var(--sky);
  color: #FFFFFF;
}

.pill-admision {
  background: var(--gold);
  color: var(--navy-dark);
}

.pill-admision:hover {
  background: var(--gold-hover);
  color: #FFFFFF;
}

.top-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.top-socials a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  transition: var(--transition);
}

.top-socials a:hover {
  background: var(--sky);
  color: #FFFFFF;
}

/* ==========================================================================
   2. HEADER PRINCIPAL Y NAVEGACIÓN CON DROPDOWNS
   ========================================================================== */
.main-header {
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 50px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.8px;
  margin-top: 3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--sky);
  background: #F0F7FF;
}

.nav-highlight {
  background: var(--navy);
  color: #FFFFFF !important;
  margin-left: 4px;
}

.nav-highlight:hover {
  background: var(--sky) !important;
}

/* Dropdowns */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 245px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 1001;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: #EFF6FF;
  color: var(--sky);
  padding-left: 18px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   3. HERO SLIDER PRINCIPAL
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

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

.hero-slide {
  display: none;
  animation: fadeSlide 0.5s ease;
}

.hero-slide.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.hero-banner-link {
  display: block;
  width: 100%;
  background: #FFFFFF;
}

.hero-banner-img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto;
}

/* Slide con Fotografía Real (Inauguración Juegos Parvularia) */
.hero-photo-slide {
  position: relative;
  min-height: 460px;
  max-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-photo-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  background: linear-gradient(95deg, rgba(7, 25, 48, 0.88) 0%, rgba(11, 37, 69, 0.68) 55%, rgba(11, 37, 69, 0.22) 100%);
  color: #FFFFFF;
}

.hero-fallback {
  min-height: 440px;
  background: linear-gradient(120deg, #FFFFFF 0%, #E0F2FE 55%, #0B2545 100%);
  align-items: center;
  padding: 60px 0 80px;
}

.hero-fallback-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  margin: 12px 0;
}

.hero-fallback-inner h1 span {
  color: var(--gold);
}

.hero-fallback-inner p {
  max-width: 540px;
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-editorial {
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 64px 0 80px;
  color: #FFFFFF;
}

.hero-bg-blue {
  background: linear-gradient(135deg, #0B2545 0%, #1E6FD9 100%);
}

.hero-editorial-content {
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(245, 158, 11, 0.24);
  border: 1px solid rgba(245, 158, 11, 0.65);
  color: #FDE68A;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-editorial h2,
.hero-photo-overlay h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.hero-editorial p,
.hero-photo-overlay p {
  font-size: 1.06rem;
  color: #F1F5F9;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: var(--gold-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #FFFFFF;
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--navy);
}

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: #FFFFFF;
}

/* Controles Carrusel */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 37, 69, 0.72);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.dot.active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold);
}

/* ==========================================================================
   4. ACCESOS RÁPIDOS (SIN SUPERPOSICIÓN SOBRE EL BANNER)
   ========================================================================== */
.quick-access-wrapper {
  margin-top: 26px;
  position: relative;
  z-index: 20;
  margin-bottom: 12px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.quick-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.quick-card.card-accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #FFFFFF;
  border-color: transparent;
}

.quick-card.card-accent p {
  color: #CBD5E1;
}

.quick-icon {
  font-size: 1.7rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-accent .quick-icon {
  background: rgba(255, 255, 255, 0.14);
}

.quick-info h3 {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
}

.quick-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.quick-arrow {
  margin-left: auto;
  font-weight: 700;
  color: var(--sky);
}

.card-accent .quick-arrow {
  color: var(--gold);
}

/* ==========================================================================
   5. SECCIONES GENERALES Y NOTICIAS
   ========================================================================== */
.section {
  padding: 64px 0;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--sky);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.title-handle, .title-sub {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.72em;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.news-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

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

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-thumb {
  height: 215px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  overflow: hidden;
}

.news-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-thumb-img {
  transform: scale(1.05);
}

.news-thumb-emoji {
  font-size: 3.2rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.news-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.news-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 8px;
}

.news-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.news-readmore {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sky);
}

.section-footer-center {
  text-align: center;
  margin-top: 34px;
}

/* ==========================================================================
   6. CALENDARIO / PRÓXIMAS FECHAS
   ========================================================================== */
.calendar-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 44px;
  align-items: start;
}

.calendar-intro p {
  color: var(--text-muted);
  margin: 14px 0 26px;
}

.prematricula-box {
  background: linear-gradient(135deg, #0B2545 0%, #1E6FD9 100%);
  color: #FFFFFF;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.prematricula-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.prematricula-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.prematricula-box p {
  color: #E2E8F0 !important;
  font-size: 0.9rem;
  margin: 0 0 18px !important;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-item {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.event-item:hover {
  border-color: var(--sky);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.calendar-intro {
  position: sticky;
  top: 104px;
}

.event-date-box {
  width: 74px;
  height: 72px;
  background: var(--navy);
  color: #FFFFFF;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-day {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.event-day.is-range {
  font-size: 1.18rem;
  letter-spacing: -0.4px;
}

.event-month {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.event-details {
  flex: 1;
}

.event-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sky);
}

.event-details h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 2px 0 4px;
}

.event-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.event-gcal {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: #E2E8F0;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: var(--transition);
}

.event-gcal:hover {
  background: var(--sky);
  color: #FFFFFF;
}

/* ==========================================================================
   7. NUESTRO COLEGIO (TABS INSTITUCIONALES)
   ========================================================================== */
.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 8px;
}

.info-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab-btn {
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--sky);
  color: #FFFFFF;
  border-color: var(--sky);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeSlide 0.35s ease;
}

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

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

.info-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 800;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.doc-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}

.doc-item:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.doc-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
}

.doc-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doc-badge {
  display: inline-block;
  align-self: flex-start;
  background: #EFF6FF;
  color: var(--sky);
  border: 1px solid rgba(30, 111, 217, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.doc-item h4 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.doc-item p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.doc-action {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky);
}


/* ==========================================================================
   GALERÍA DE DEPENDENCIAS DEL COLEGIO
   ========================================================================== */
.dependencias-showcase {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.dependencias-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dependencias-header h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy);
}

.dependencias-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.dependencia-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dependencia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sky);
}

.dependencia-thumb {
  position: relative;
  height: 205px;
  overflow: hidden;
  background: var(--navy);
}

.dependencia-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.dependencia-card:hover .dependencia-thumb img {
  transform: scale(1.05);
}

.dependencia-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 37, 69, 0.86);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.dependencia-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dependencia-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.dependencia-body p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.dependencia-zoom {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sky);
}

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

@media (max-width: 560px) {
  .dependencias-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   8. FOOTER INSTITUCIONAL
   ========================================================================== */
.main-footer {
  background: var(--navy-dark);
  color: #CBD5E1;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-row img {
  width: 44px;
  height: 52px;
}

.footer-logo-row h3 {
  color: #FFFFFF;
  font-size: 1.12rem;
}

.footer-logo-row span {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94A3B8;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 9px;
  font-size: 0.88rem;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-socials-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials-label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-pill:hover {
  background: var(--sky);
  border-color: var(--sky);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-bottom {
  padding: 20px 0;
  font-size: 0.82rem;
  color: #94A3B8;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   9. MODAL LIGHTBOX NOTICIAS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 48, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  max-width: 620px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 37, 69, 0.85);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
}

.modal-visual {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  overflow: hidden;
}

.modal-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 26px;
}

.modal-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.modal-cat {
  background: #EFF6FF;
  color: var(--sky);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.modal-date {
  color: var(--text-muted);
}

.modal-body h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.modal-body p {
  color: var(--text-main);
  font-size: 0.96rem;
  line-height: 1.65;
}


/* Ajuste específico Slide 3: fotografía deportiva cargada a la derecha con degradado azul marino a la izquierda */
.hero-photo-slide-sport {
  background: #071930;
}

.hero-photo-bg-sport {
  width: 66%;
  left: auto;
  right: 0;
  object-fit: cover;
  object-position: center 22%;
}

.hero-photo-overlay-sport {
  background: linear-gradient(90deg, #071930 0%, #071930 38%, rgba(7, 25, 48, 0.88) 49%, rgba(7, 25, 48, 0.25) 68%, rgba(7, 25, 48, 0.08) 100%);
}

@media (max-width: 900px) {
  .hero-photo-bg-sport {
    width: 100%;
  }
  .hero-photo-overlay-sport {
    background: linear-gradient(90deg, rgba(7, 25, 48, 0.92) 0%, rgba(7, 25, 48, 0.72) 65%, rgba(7, 25, 48, 0.35) 100%);
  }
}

/* ==========================================================================
   10. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .quick-access-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calendar-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .calendar-intro {
    position: static;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #F8FAFC;
    display: none;
    margin-top: 4px;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .panel-grid-2,
  .panel-grid-3,
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .quick-access-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .event-item {
    flex-wrap: wrap;
  }
}
