@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');

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

html, body {
  height: 100%;
  font-family: "Source Sans 3", sans-serif;
  scroll-behavior: smooth;
}


/* ─── NAV ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 150px;
  background: #0D2A5D;
  transition: 0.4s ease-in-out;
  display: grid;
  grid-template-columns: 1fr auto 1fr;  /* izquierda | logo | derecha */
  align-items: center;
  padding: 0 3rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: space-evenly;   /* ← se pegan al logo por la derecha */
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: space-evenly; /* ← se pegan al logo por la izquierda */
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

nav.scrolled::before {
  opacity: 0;
}

nav.scrolled {
  background: #0D2A5D;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  height: 85px;
  transition: 0.2s ease;
}

nav.scrolled #cf-logo {
  height: 60px;
  transition: 0.2s ease-in-out;
}


nav a, nav span {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Cal Sans", sans-serif;
  font-weight: 500;
  opacity: 0.92;
  position: relative;
  transition: opacity 0.2s ease;
}

nav a::after{
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

nav a:hover, nav span:hover { opacity: 1; }
nav a:hover::after { width: 100%; }


/* ─── 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);    /* ← espacio visual de vuelta */
  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;
}

/* Puente invisible que cubre el hueco */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;        /* cubre el gap de 15px + margen de seguridad */
  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);
}

/* Ajuste cuando el nav está scrolled (más compacto) */
nav.scrolled .nav-dropdown-menu {
  padding-top: 20px;                /* ← mismo ajuste para scrolled */
}

#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;
  margin: 0 3rem;
}

/* ─── FOOTER ───────────────────────────────────────────── */
footer {
  width: 100%;
  background-color: #0D2A5D;
  padding: 2rem 1rem;
  color: #fefefe;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
}


.footer-panel#school-name{
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  font-family: "Source Sans 3", sans-serif;
  letter-spacing: 1px;
  width: 55%;
  padding-left: 5rem;
  line-height: 1;
}

#logo-container img{
  width: 150px;
  margin: 0 20px;
}

#name-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 1rem;
}

#name-container h1 {
  font-size: 3rem;
  font-family: "Cal Sans", sans-serif;
  font-weight: 100;
}

#name-container h4 {
  font-size: 1.25rem;
  font-family: "Cal Sans", sans-serif;
  font-weight: 100;
}


.footer-panel#school-info{
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40%;
}

.data-label {
  display: flex;
  gap: 1rem;
  align-items: center;
  height: 1rem;
}

.data-label i {
  color: #A09943;
  font-size: 1.5rem;
}


.data-label#facebook-link a{
  text-decoration: none;
  transition: 0.3s ease-in-out;
  color: #fefefe;
}

.data-label#facebook-link a:hover{
  text-decoration: underline;
  cursor: pointer;
  transform: translateY(-2px);
  transition: 0.3s ease-in-out;
}

.data-label#facebook-link a:visited{
  color: #fefefe;
}


#nav-buttons {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#nav-buttons a {
  width: 300px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 2.2rem;
  border: 3px solid transparent;
  border-radius: 50px;
  background: #0D2A5D;
  color: #ffffff;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s, color 0.25s;
}
#nav-buttons a:hover {
    background: transparent;
    color: #0D2A5D;
    border: 3px solid #0D2A5D;
}

#nav-buttons a i{
    font-size: 1.5rem;
}