/* ============================================
   ODEC CHACHAPOYAS - Estilos Principales
   Colores: Navy #1a2a50 | Naranja #d4621a
   ============================================ */
:root {
  --navy: #1a2a50;
  --navy-dark: #111c38;
  --navy-light: #243560;
  --orange: #d4621a;
  --orange-light: #e87830;
  --orange-dark: #b85010;
  --white: #ffffff;
  --gray-light: #f4f6fb;
  --gray-mid: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --transition: all 0.35s ease;
  --shadow: 0 8px 32px rgba(26, 42, 80, 0.12);
  --shadow-hover: 0 16px 48px rgba(26, 42, 80, 0.2);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
}

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

img {
  max-width: 100%;
}

/* TOPBAR */
.topbar {
  background: var(--navy-dark);
  color: #adb5bd;
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 2px solid var(--orange);
}

.topbar a {
  color: var(--orange-light);
  transition: var(--transition);
}

.topbar a:hover {
  color: #fff;
}

/* NAVBAR */
#mainNav {
  background: var(--navy) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
  transition: var(--transition);
}

#mainNav.scrolled {
  background: var(--navy) !important;
  padding: 6px 0;
}

.nav-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.1);
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.1;
}

.brand-sub {
  font-size: 1.4rem;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: var(--transition) !important;
}

.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: rgba(212, 98, 26, 0.2);
}

/* Botón Aula Virtual */
.btn-aula-virtual {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
  box-shadow: 0 4px 14px rgba(212,98,26,0.4);
  transition: var(--transition) !important;
}
.btn-aula-virtual:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange)) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,98,26,0.55);
}

.dropdown-menu {
  background: var(--navy-dark) !important;
  border: 1px solid rgba(212, 98, 26, 0.3) !important;
  border-radius: 10px !important;
  margin-top: 8px;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.85rem;
  padding: 10px 18px;
  transition: var(--transition);
}

.dropdown-item:hover {
  color: #fff !important;
  background: rgba(212, 98, 26, 0.2) !important;
}

/* HERO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 40%, #2d4a8a 70%, #1a3060 100%);
  overflow: hidden;
}

.hero-section::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="20" cy="20" r="40" fill="rgba(212,98,26,0.06)"/><circle cx="80" cy="70" r="50" fill="rgba(255,255,255,0.04)"/></svg>') center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 98, 26, 0.25);
  border: 1px solid rgba(212, 98, 26, 0.5);
  color: var(--orange-light);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 16px 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.text-highlight {
  color: var(--orange-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  display: block;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(8px)
  }
}

/* BUTTONS */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 28px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(212, 98, 26, 0.35);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 98, 26, 0.5);
}

.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 28px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

/* STATS */
.stats-section {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  padding: 50px 0;
}

.stat-card {
  padding: 20px 10px;
  color: #fff;
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.85;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.88;
  margin-top: 6px;
}

/* SECTIONS */
.section-padding {
  padding: 90px 0;
}

.section-tag {
  display: inline-block;
  background: rgba(212, 98, 26, 0.1);
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding: 5px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
  margin-bottom: 12px;
}

.section-tag.light {
  background: rgba(212, 98, 26, 0.2);
  color: var(--orange-light);
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.text-orange {
  color: var(--orange) !important;
}

.bg-navy {
  background: var(--navy) !important;
}

.text-navy {
  color: var(--navy) !important;
}

/* ABOUT */
.about-img-wrapper {
  position: relative;
  display: inline-block;
}

.about-img-main {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 420px;
  object-fit: contain;
  background: #f0f4ff;
  padding: 20px;
}

.about-badge-card {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--orange);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 8px 24px rgba(212, 98, 26, 0.4);
}

.feature-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--gray-light);
  border-radius: 10px;
  font-size: 0.85rem;
}

.feature-mini i {
  font-size: 1.1rem;
}

/* MISION VISION */
.mv-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 35px 28px;
  color: #fff;
  height: 100%;
  transition: var(--transition);
}

.mv-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.mv-icon {
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 18px;
}

.mv-card h3 {
  color: var(--orange-light);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.mv-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

.valores-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 98, 26, 0.3);
  border-radius: var(--radius);
  padding: 30px;
}

.valor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.valor-item:hover {
  background: rgba(212, 98, 26, 0.25);
}

.valor-item i {
  font-size: 1.4rem;
  color: var(--orange-light);
}

/* SERVICES */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--orange);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(212, 98, 26, 0.12), rgba(212, 98, 26, 0.06));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
}

.service-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.service-link {
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--orange-dark);
}

/* NEWS */
.filter-btn {
  background: #fff;
  border: 2px solid var(--gray-mid);
  color: var(--text-muted);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
}

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

.news-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

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

.news-img-wrap {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-img-placeholder {
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.news-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.news-body {
  padding: 22px;
}

.news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.45;
}

.news-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.news-link {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.news-link:hover {
  color: var(--orange-dark);
}

.news-item {
  transition: var(--transition);
}

.news-item.hidden {
  display: none;
}

/* TEAM */
.team-card {
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.team-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.7);
  border: 3px solid var(--orange);
}

.team-name {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* RECURSOS */
.recurso-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 30px 24px;
  color: #fff;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.recurso-card:hover {
  background: rgba(212, 98, 26, 0.2);
  transform: translateY(-6px);
}

.recurso-card i {
  color: var(--orange-light);
  margin-bottom: 16px;
}

.recurso-card h5 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.recurso-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

/* BANNER CTA */
.banner-cta {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange), #e07830);
}

/* ENLACES */
.enlace-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
}

.enlace-card:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.enlace-card:hover i {
  color: var(--orange-light) !important;
}

/* CONTACT */
.contact-info-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 35px;
  color: #fff;
  height: 100%;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--orange);
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
}

.contact-item span,
.contact-item div {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.youtube {
  background: #ff0000;
}

.social-btn.whatsapp {
  background: #25d366;
}

.social-btn:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.contact-form-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid var(--gray-mid);
  padding: 10px 16px;
  font-size: 0.88rem;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(212, 98, 26, 0.12);
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* FOOTER */
.footer {
  background: var(--navy-dark);
}

.footer-top {
  padding: 60px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  color: var(--orange-light);
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  transition: var(--transition);
  font-family: "Poppins", sans-serif;
}

.footer-links a:hover {
  color: var(--orange-light);
  padding-left: 4px;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--orange);
  color: #fff;
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form .form-control {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form .form-control:focus {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.1);
}

.newsletter-form .btn {
  border-radius: 10px;
  padding: 10px 16px;
}

.footer-bottom {
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.25);
}

/* BACK TO TOP */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 98, 26, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top:hover {
  background: var(--orange-dark);
  transform: translateY(-3px);
}

.back-to-top.show {
  display: flex;
}

/* FOOTER TEXT CONTRAST - override Bootstrap text-muted in dark bg */
.footer .text-muted,
.footer small.text-muted,
.footer p.text-muted,
.footer-top .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-top small {
  color: rgba(255, 255, 255, 0.78) !important;
}

.footer-bottom small.text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

.newsletter-form .form-control {
  color: #fff !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }

  .about-badge-card {
    position: static;
    margin-top: 16px;
    display: inline-block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-info-box,
  .contact-form-box {
    padding: 24px;
  }
}

@media (max-width: 576px) {
  .topbar {
    display: none;
  }

  .footer-top {
    padding: 40px 0 30px;
  }
}

/* NAVBAR RESPONSIVE - logo y texto en móvil */
@media (max-width: 991px) {
  .nav-logo {
    width: 52px;
    height: 52px;
  }

  .brand-title {
    font-size: 1.1rem !important;
  }

  .brand-sub {
    font-size: 0.65rem !important;
  }

  .navbar-brand {
    max-width: calc(100% - 60px);
  }
}