/* ==========================================================================
   Colegio Santa Teresa de Jesús - CSS Mínimo (Bootstrap 5 base)
   Solo estilos que Bootstrap no proporciona
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --azul: #004388;
  --azul-claro: #23578b;
  --dorado: #99989d;
  --dorado-claro: #a7a6aa;
}

body {
  font-family: "Open Sans", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Oswald", serif;
  color: var(--azul);
}

/* Navbar */
.navbar-custom {
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  background: var(--azul) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-custom .nav-link {
  font-family: "Poppins", sans-serif;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.navbar-custom .nav-link:hover {
  color: var(--dorado) !important;
}

.navbar-custom .dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.navbar-logo {
  height: 55px;
  filter: brightness(0) invert(1);
}

/* Hero */
.hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 10, 62, 0.85),
    rgba(25, 18, 108, 0.7)
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active,
.hero-dot:hover {
  background: var(--dorado);
  transform: scale(1.2);
}

/* Quick Links */
.quick-link {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.quick-link:last-child {
  border-right: none;
}

.quick-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dorado);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.quick-link:hover::before {
  transform: translateY(0);
}

.quick-link:hover {
  color: #000 !important;
}

.quick-link > * {
  position: relative;
  z-index: 1;
}

/* Cards Niveles */
.nivel-card {
  position: relative;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
}

.nivel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nivel-card:hover img {
  transform: scale(1.1);
}

.nivel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(25, 18, 108, 0.95),
    rgba(25, 18, 108, 0.2)
  );
  transition: all 0.3s;
}

.nivel-card:hover .nivel-card-overlay {
  background: linear-gradient(
    to top,
    rgba(153, 152, 157, 0.95),
    rgba(153, 152, 157, 0.2)
  );
}

.nivel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
}

.nivel-card-arrow {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  transition: all 0.3s;
}

.nivel-card:hover .nivel-card-arrow {
  background: #000;
  color: #fff;
  transform: translateX(5px);
}

/* Novedad Cards */
.novedad-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.novedad-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

.novedad-card-img {
  height: 220px;
  overflow: hidden;
}

.novedad-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.novedad-card:hover .novedad-card-img img {
  transform: scale(1.1);
}

/* Team Cards */
.team-card {
  transition: all 0.4s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12) !important;
}

.team-card-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #e8e8e8;
  transition: border-color 0.3s;
}

.team-card:hover .team-card-img {
  border-color: var(--dorado);
}

/* About Image Frame */
.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: 20px;
  bottom: 20px;
  border: 3px solid var(--dorado);
  border-radius: 20px;
  z-index: -1;
}

/* Page Hero */
.page-hero {
  min-height: 50vh;
  background: var(--azul);
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
  background-size: 100px;
}

/* Contact Icons */
.contact-icon {
  width: 70px;
  height: 70px;
  background: var(--dorado);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.5rem;
}

/* Sala Cards */
.sala-card {
  border-top: 4px solid var(--azul);
  transition: all 0.3s;
}

.sala-card:hover {
  border-top-color: var(--dorado);
  transform: translateY(-5px);
}

/* Feature Box */
.feature-box {
  transition: all 0.3s;
}

.feature-box:hover {
  background: #fff !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

/* Buttons */
.btn-dorado {
  background: var(--dorado);
  color: #000;
  border: 2px solid var(--dorado);
}

.btn-dorado:hover {
  background: var(--dorado-claro);
  border-color: var(--dorado-claro);
  color: #000;
  transform: translateY(-2px);
}

.btn-azul {
  background: var(--azul);
  color: #fff;
  border: 2px solid var(--azul);
}

.btn-azul:hover {
  background: var(--azul-claro);
  border-color: var(--azul-claro);
  color: #fff;
}

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

/* Footer */
.footer a:hover {
  color: var(--dorado) !important;
  padding-left: 5px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--dorado);
  color: #000 !important;
  transform: translateY(-3px);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: #fff !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

/* Utilities */
.bg-azul {
  background-color: var(--azul) !important;
}
.bg-dorado {
  background-color: var(--dorado) !important;
}
.text-azul {
  color: var(--azul) !important;
}
.text-dorado {
  color: var(--dorado) !important;
}
.border-dorado {
  border-color: var(--dorado) !important;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--azul);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
  }

  .quick-link {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .about-image::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .nivel-card {
    height: 280px;
  }

  .hero {
    min-height: 90vh;
  }
}
