@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

/* ─── NAV ───────────────────────────────────────────── */
nav {
  background: transparent !important;
}

nav::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.75) 55%,
    rgba(0, 0, 0, 0.50) 70%,
    rgba(0, 0, 0, 0.25) 85%,
    transparent 100%
  ) !important;
  transition: opacity 0.4s ease;
}

nav.scrolled {
  background: #0D2A5D !important;
}

/* ─── NAV DROPDOWN ───────────────────────────────────── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav-dropdown-icon {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-icon {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  background: #0D2A5D;
  border-radius: 0 0 10px 10px;
  padding: 0.5rem 0;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  padding: 0.65rem 1.4rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0.85;
}

.nav-dropdown-menu a::after {
  bottom: 2px;
}

.nav-dropdown-menu a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
}

nav.scrolled .nav-dropdown-menu {
  padding-top: 20px;
}

#cf-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s ease-in-out;
}

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ─── ANNOUNCEMENTS ───────────────────────────────────── */
#announcements {
  padding: 3rem 4rem;
  background: #fefefe;
}

#announcements .title {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #0D2A5D;
  margin-bottom: 3rem;
}

#announcements .title i {
  font-size: 2.5rem;
}

#announcements .title h2 {
  font-family: "Cal Sans", sans-serif;
  font-weight: 1000;
}

/* Layout: carrusel izquierda + tarjetas derecha */
.announcements-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* ── Wrapper que agrupa carrusel + dots ── */
.carousel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;          /* espacio entre carrusel y dots */
}

/* ── Carrusel ── */
.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;   /* vuelve a hidden para que las imágenes no se salgan */
  background: #eee;
  aspect-ratio: 4/3;
  width: 100%;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  color: #0D2A5D;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Dots — ahora fuera del carrusel, dentro del wrapper */
.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.carousel-dots span {
  height: 10px;
  width: 25px;
  border-radius: 999px;
  background: #c0c8d8;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.carousel-dots span.active {
  width: 25px;
  background: #0D2A5D;
}

/* ── Tarjetas de avisos ── */
.announcement-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.announcement-card {
  background-color: #0D2A5D;
  border-radius: 25px;
  border: 2px solid #1a3a75;
  padding: 0.9rem 1.1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  height: 9rem;
}

.announcement-card:hover {
  border-color: #750014;
  box-shadow: 0 0 12px rgba(117, 0, 20, 0.5);
}

.announcement-card .card-date {
  font-size: 0.8rem;
  color: #A09943;
  font-weight: 1000;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.announcement-card .card-text {
  font-size: 1.2rem;
  color: #fefefe;
  line-height: 1.45;
}

.announcement-card .card-text strong {
  font-weight: 700;
}

.announcement-card .card-link-container {
  display: flex;
  width: 90%;
  align-items: center;
  justify-content: right;
}

.announcement-card .card-link {
  margin-top: 0.4rem;
  font-size: 1rem;
  color: #c8d8f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: center;
  transition: color 0.2s;
}

.announcement-card .card-link:hover {
  color: #ffffff;
}

/* ── Botón inferior ── */
.announcements-footer {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
}

.btn-all-announcements {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 2.2rem;
  border: 3px solid #0D2A5D;
  border-radius: 50px;
  color: #0D2A5D;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}

.btn-all-announcements:hover {
  background: #0D2A5D;
  color: #ffffff;
}

.btn-all-announcements i {
  font-size: 1rem;
}*

/* ─── ABOUT ───────────────────────────────────────────── */
#about {
  padding: 5rem 4rem;
  background: #ffffff;
}