:root {
  /* Paleta de Colores Inspirada en La Caoba */
  --primary-deep-teal: #1a3c34;
  --primary-earth: #8b6914;
  --primary-sacred-gold: #c4a035;
  --secondary-soft-cream: #faf8f2;  /* Un tono más cálido y elegante */
  --secondary-light-sage: #eaeee8;
  --accent-brick: #8b3a3a;
  --text-dark: #2c2c2c;
  --text-muted: #5c5c5c;
  
  /* Sombras y Efectos Premium */
  --shadow-soft: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 25px 45px -12px rgba(26, 60, 52, 0.2);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  
  /* Bordes y Transiciones */
  --border-radius-card: 20px;
  --border-radius-lg: 32px;
  --transition-smooth: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =============================================
   ESTILOS BASE Y TIPOGRAFÍA
   ============================================= */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--secondary-soft-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.display-3, .display-4, .display-5 {
  font-weight: 700;
}

.lead {
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* =============================================
   UTILIDADES DE COLOR Y FONDO
   ============================================= */
.bg-cream { background-color: var(--secondary-soft-cream); }
.bg-light-sage { background-color: var(--secondary-light-sage); }
.bg-teal { background-color: var(--primary-deep-teal); }
.bg-gold { background-color: var(--primary-sacred-gold); }

.text-teal { color: var(--primary-deep-teal); }
.text-gold { color: var(--primary-sacred-gold); }

/* =============================================
   BOTONES PREMIUM
   ============================================= */
.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background-color: var(--primary-sacred-gold);
  color: var(--primary-deep-teal);
  border: none;
  box-shadow: 0 8px 20px -8px rgba(196, 160, 53, 0.4);
}
.btn-gold:hover {
  background-color: #fff;
  color: var(--primary-deep-teal);
  transform: translateY(-4px);
  box-shadow: 0 15px 25px -8px rgba(196, 160, 53, 0.5);
}

.btn-teal {
  background-color: var(--primary-deep-teal);
  color: white;
  border: none;
  box-shadow: var(--shadow-soft);
}
.btn-teal:hover {
  background-color: #2a5a4f;
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.btn-brick {
  background-color: var(--accent-brick);
  color: white;
  border: none;
}
.btn-brick:hover {
  background-color: #a54a4a;
  color: white;
  transform: scale(1.02);
}

.btn-outline-teal {
  border: 2px solid var(--primary-deep-teal);
  color: var(--primary-deep-teal);
  font-weight: 600;
  background: transparent;
}
.btn-outline-teal:hover {
  background-color: var(--primary-deep-teal);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-gold {
  border: 2px solid var(--primary-sacred-gold);
  color: var(--primary-sacred-gold);
}
.btn-outline-gold:hover {
  background-color: var(--primary-sacred-gold);
  color: var(--primary-deep-teal);
}

/* =============================================
   NAVBAR FLOTANTE MEJORADO
   ============================================= */
#mainNav {
  padding: 18px 0;
  transition: var(--transition-smooth);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

#mainNav.navbar-scrolled {
  background-color: rgba(26, 60, 52, 0.92) !important;
  backdrop-filter: blur(15px);
  padding: 12px 0;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid rgba(196, 160, 53, 0.3);
}

#mainNav .navbar-brand {
  color: var(--primary-deep-teal);
  font-weight: 700;
  transition: var(--transition-smooth);
}
#mainNav.navbar-scrolled .navbar-brand,
#mainNav.navbar-scrolled .nav-link {
  color: white !important;
}
#mainNav.navbar-scrolled .nav-link:hover {
  color: var(--primary-sacred-gold) !important;
}

.navbar-brand small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  margin: 0 8px;
  padding: 8px 16px !important;
  border-radius: 30px;
  position: relative;
  color: var(--primary-deep-teal) !important;
  transition: var(--transition-smooth);
}

.nav-link::after {
  display: none; /* Eliminamos el subrayado por un efecto más moderno */
}

.nav-link:hover {
  background-color: rgba(196, 160, 53, 0.1);
  transform: translateY(-1px);
}

.nav-link.active {
  background-color: var(--primary-sacred-gold) !important;
  color: white !important;
  box-shadow: var(--shadow-soft);
}

/* =============================================
   HERO SECTION (CONTRASTE CORREGIDO)
   ============================================= */
.hero {
  min-height: 100vh;
  margin-top: 0;
  padding-top: 80px; /* Compensa navbar fijo */
}

.hero-background {
  z-index: 0;
}

/* OVERLAY CORREGIDO PARA MEJOR CONTRASTE */
.hero .overlay {
  background: radial-gradient(circle at 20% 30%, rgba(26, 60, 52, 0.6) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 5;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero h1 {
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.15;
}

.hero .badge {
  backdrop-filter: blur(5px);
  background-color: rgba(196, 160, 53, 0.9) !important;
  font-weight: 600;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Scroll Indicator */
.mouse-icon {
  width: 28px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}
.wheel {
  width: 4px;
  height: 10px;
  background: var(--primary-sacred-gold);
  border-radius: 3px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; top: 8px; }
  50% { opacity: 1; top: 20px; background: white; }
  100% { opacity: 0; top: 30px; }
}

/* =============================================
   ESPACIADO ENTRE SECCIONES
   ============================================= */
.py-7 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}
.mb-6 {
  margin-bottom: 5rem !important;
}
.mt-6 {
  margin-top: 5rem !important;
}

.section-title {
  margin-bottom: 3.5rem;
}

/* =============================================
   TARJETAS (MISIÓN, VISIÓN, VALORES, PROGRAMAS)
   ============================================= */
.value-card {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 2.5rem 1.5rem !important;
  height: 100%;
  position: relative;
  z-index: 2;
}
.value-card:hover {
  transform: translateY(-18px) scale(1.01);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-sacred-gold);
  background: white;
}

.icon-circle {
  width: 110px;
  height: 110px;
  background: linear-gradient(145deg, var(--primary-deep-teal) 0%, #2a5a4f 100%);
  border-radius: 30px; /* Forma más moderna */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.8rem;
  transition: var(--transition-bounce);
  box-shadow: 0 10px 20px -5px rgba(26, 60, 52, 0.3);
}
.value-card:hover .icon-circle {
  background: linear-gradient(145deg, var(--primary-sacred-gold) 0%, #d4a835 100%);
  transform: scale(1.05) rotate(2deg);
  border-radius: 50%;
}
.value-card:hover .icon-circle i {
  color: white !important;
  transform: scale(1.1);
}

.value-tag {
  display: inline-block;
  padding: 8px 18px;
  margin: 6px;
  background: rgba(26, 60, 52, 0.03);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}
.value-tag:hover {
  background: var(--primary-sacred-gold);
  color: white !important;
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
  border-color: white;
}

.value-item {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.02);
}
.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-deep-teal);
  color: white;
}
.value-item:hover i {
  color: var(--primary-sacred-gold) !important;
}

/* =============================================
   TARJETAS DE PROGRAMAS
   ============================================= */
.program-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  height: 100%;
  border: 1px solid rgba(0,0,0,0.02);
}
.program-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-hover);
}

.program-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.program-card:hover .program-img {
  transform: scale(1.12);
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-sacred-gold);
  color: var(--primary-deep-teal);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  z-index: 10;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(5px);
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.step-number {
  width: 40px;
  height: 40px;
  background: #eef2ef;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  color: var(--primary-deep-teal);
  transition: var(--transition-smooth);
}
.step.completed .step-number {
  background: var(--primary-sacred-gold);
  color: white;
  box-shadow: 0 5px 15px rgba(196, 160, 53, 0.3);
}
.step-connector {
  flex: 1;
  height: 3px;
  background: #d1d9d6;
  margin: 0 5px 25px;
}
.osco-special {
  border: 2px solid var(--primary-sacred-gold);
  background: linear-gradient(145deg, #ffffff 0%, var(--secondary-soft-cream) 100%);
  box-shadow: var(--shadow-soft);
}

/* =============================================
   HISTORIA Y LÍNEA DE TIEMPO
   ============================================= */
.timeline-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-sacred-gold);
  min-width: 120px;
  border-right: 4px solid var(--primary-deep-teal);
  padding-right: 20px;
  line-height: 1;
}
.historic-quote {
  border-left: 8px solid var(--primary-sacred-gold);
  background: white;
  border-radius: 0 20px 20px 0;
  box-shadow: var(--shadow-soft);
}
.vintage-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.vintage-gallery-grid .large {
  grid-column: span 2;
}
.gallery-item {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}
.gallery-item img {
  transition: transform 1s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* =============================================
   CARRUSEL DEL CAMPUS (SWIPER)
   ============================================= */
.campus-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-soft);
}
.campus-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.campus-card:hover .campus-img {
  transform: scale(1.15);
}
.campus-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 60, 52, 0.95) 0%, rgba(0,0,0,0.1) 100%);
  padding: 40px 25px 25px;
  color: white;
  transform: translateY(20%);
  opacity: 0;
  transition: var(--transition-smooth);
}
.campus-card:hover .campus-overlay {
  transform: translateY(0);
  opacity: 1;
}

.stat-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1rem !important;
  transition: var(--transition-bounce);
  border: 1px solid rgba(0,0,0,0.02);
  box-shadow: var(--shadow-soft);
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-deep-teal);
  color: white;
}
.stat-card:hover i {
  color: var(--primary-sacred-gold) !important;
}

/* =============================================
   DIRECTORIO DE DOCENTES
   ============================================= */
.faculty-card {
  background: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  transition: var(--transition-bounce);
  border: 1px solid rgba(0,0,0,0.02);
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-sacred-gold);
}
.avatar-circle {
  width: 90px;
  height: 90px;
  background: linear-gradient(145deg, var(--primary-deep-teal), #2a5a4f);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.faculty-card:hover .avatar-circle {
  border-radius: 50%;
  background: var(--primary-sacred-gold);
  color: var(--primary-deep-teal);
}

/* =============================================
   FORMULARIOS Y CONTACTO
   ============================================= */
.form-control-immersive {
  background: white;
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 1rem;
  transition: var(--transition-smooth);
}
.form-control-immersive:focus {
  border-color: var(--primary-sacred-gold);
  box-shadow: 0 0 0 5px rgba(196, 160, 53, 0.15);
  outline: none;
}
.contact-info-item i {
  width: 40px;
  transition: var(--transition-smooth);
}
.contact-info-item:hover i {
  transform: scale(1.2) translateY(-3px);
  color: var(--primary-deep-teal);
}
.map-wrapper {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 4px solid white;
}

/* =============================================
   BOTÓN VOLVER ARRIBA
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 55px;
  height: 55px;
  background: var(--primary-sacred-gold);
  color: var(--primary-deep-teal);
  border: none;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-bounce);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(196, 160, 53, 0.4);
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: white;
  transform: scale(1.15) translateY(-5px);
  border-radius: 30px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 30px;
    margin-top: 15px;
    box-shadow: var(--shadow-hover);
  }
  #mainNav.navbar-scrolled .navbar-collapse {
    background: rgba(26, 60, 52, 0.98);
  }
  .nav-link {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .display-3 { font-size: 2.8rem; }
  .py-7 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
  .timeline-year { font-size: 2rem; min-width: 80px; }
}