/* Tonos de las pÃ¡ginas internas, segÃºn la referencia visual compartida. */
:root {
  --brand-header: #245B32;
  --brand-primary: #D4A928;
  --brand-secondary: #72BE22;
  --brand-header-hover: #1b4727;
  --brand-primary-hover: #b88f18;
  --brand-secondary-hover: #5d9e18;
  --internal-navy: #12355b;
  --internal-blue: #12355b;
  --internal-sky: #2a9d8f;
  --internal-cyan: #66c7bc;
  --internal-gold: #f2b544;
  --internal-ink: #12355b;
}

/* PALETA INSTITUCIONAL UNIFICADA */
header,
header nav,
#menu,
.main-footer,
.contact-bar {
  background: var(--brand-header) !important;
}

#menu > li > a:hover,
#menu > li > a:focus-visible,
#menu > li.open > a {
  background: var(--brand-header-hover) !important;
}

#menu ul li a:hover,
.autocomplete-list div:hover {
  color: var(--brand-header) !important;
  background: #f2f8ed !important;
}

.contact-item i,
.footer-contact i,
.footer-links i,
.footer-title::after {
  color: var(--brand-primary) !important;
  background-color: var(--brand-primary) !important;
}

.school-brand-shield,
.btn-webcolegios:hover,
.institutional-link:hover,
.institutional-link:focus-visible {
  border-color: var(--brand-secondary) !important;
}

.school-brand-copy strong,
.school-brand-copy b,
.school-brand > a,
.section-header h2,
.page-intro h2,
.service-intro h2,
.history-intro h2,
.offer-intro h2,
.section-header h2,
.map-card h2,
.section-heading h2 {
  color: var(--brand-header) !important;
}

/* Acciones principales */
.btn-inscripciones,
.btn-home-primary,
.btn-home-yellow,
.adm-btn-gold,
.offer-btn.primary,
.academic-cta-register,
.map-home a,
.map-external a,
.btn-primary,
.btn-warning,
.btn-success,
button[type="submit"] {
  color: #2b260f !important;
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 8px 18px rgba(212, 169, 40, .25) !important;
}

.btn-inscripciones:hover,
.btn-home-primary:hover,
.btn-home-yellow:hover,
.adm-btn-gold:hover,
.offer-btn.primary:hover,
.academic-cta-register:hover,
.map-home a:hover,
.map-external a:hover,
.btn-primary:hover,
.btn-warning:hover,
.btn-success:hover,
button[type="submit"]:hover {
  color: #2b260f !important;
  background: var(--brand-primary-hover) !important;
  border-color: var(--brand-primary-hover) !important;
}

/* Acciones secundarias */
.btn-home-light,
.btn-home-outline,
.adm-btn-outline,
.offer-btn.secondary,
.academic-cta-whatsapp,
.btn-home-secondary,
.btn-secondary,
.btn-outline-success,
.btn-success {
  color: #fff !important;
  background: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

.btn-home-light:hover,
.btn-home-outline:hover,
.adm-btn-outline:hover,
.offer-btn.secondary:hover,
.academic-cta-whatsapp:hover,
.btn-home-secondary:hover,
.btn-secondary:hover,
.btn-outline-success:hover,
.btn-success:hover {
  color: #fff !important;
  background: var(--brand-secondary-hover) !important;
  border-color: var(--brand-secondary-hover) !important;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover {
  color: #fff !important;
  background: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
  color: var(--brand-header) !important;
}

.footer-wave-container path {
  fill: var(--brand-header) !important;
}

.main-footer .footer-title::after {
  background: var(--brand-primary) !important;
}

body:has(.hero-banner),
body:has(.page-hero),
body:has(.service-hero),
body:has(.academic-hero),
body:has(.schedule-hero),
body:has(.attention-hero),
body:has(.admissions-hero),
body:has(.eg-hero),
body:has(.map-hero),
body:has(.offer-hero),
body:has(.hero-wrap),
body:has(.hero-news),
body:has(.gallery-hero),
body:has(.welcome-hero-original) {
  --inst-blue: var(--internal-blue) !important;
  --inst-navy: var(--internal-navy) !important;
  --inst-green: var(--internal-blue) !important;
  --inst-bright: var(--internal-sky) !important;
  --inst-red: var(--internal-cyan) !important;
  --inst-gold: var(--internal-gold) !important;
  --inst-ink: var(--internal-ink) !important;
  --page-blue: var(--internal-blue) !important;
  --page-navy: var(--internal-navy) !important;
  --page-red: var(--internal-cyan) !important;
  --page-gold: var(--internal-gold) !important;
  --page-ink: var(--internal-ink) !important;
  --history-blue: var(--internal-blue) !important;
  --history-navy: var(--internal-navy) !important;
  --history-red: var(--internal-cyan) !important;
  --history-gold: var(--internal-gold) !important;
  --history-ink: var(--internal-ink) !important;
  --map-blue: var(--internal-blue) !important;
  --map-navy: var(--internal-navy) !important;
  --map-red: var(--internal-cyan) !important;
  --map-gold: var(--internal-gold) !important;
  --map-ink: var(--internal-ink) !important;
  --offer-blue: var(--internal-blue) !important;
  --offer-sky: var(--internal-sky) !important;
  --offer-green: var(--internal-blue) !important;
  --offer-gold: var(--internal-gold) !important;
  --offer-red: var(--internal-cyan) !important;
  --offer-ink: var(--internal-ink) !important;
  --adm-blue: var(--internal-blue) !important;
  --adm-navy: var(--internal-navy) !important;
  --adm-red: var(--internal-cyan) !important;
  --adm-ink: var(--internal-ink) !important;
  --eg-cyan: var(--internal-cyan) !important;
  --eg-blue: var(--internal-blue) !important;
  --eg-yellow: var(--internal-gold) !important;
  --eg-red: var(--internal-cyan) !important;
  --eg-ink: var(--internal-ink) !important;
  --gallery-green: var(--internal-blue) !important;
  --gallery-dark: var(--internal-navy) !important;
  --gallery-gold: var(--internal-gold) !important;
  --gallery-red: var(--internal-cyan) !important;
  --horizonte-blue: var(--internal-blue) !important;
  --horizonte-navy: var(--internal-navy) !important;
  --horizonte-gold: var(--internal-gold) !important;
  --horizonte-red: var(--internal-cyan) !important;
  --success: var(--internal-blue) !important;
  --success-dark: var(--internal-navy) !important;
}

.page-title,
.hero-section,
.inst-hero,
.admissions-hero,
.page-hero,
.service-hero,
.academic-hero,
.schedule-hero,
.attention-hero,
.hero-banner,
.eg-hero,
.gallery-hero,
.map-hero,
.offer-hero,
.hero-wrap,
.hero-news,
.welcome-hero-original {
  background-color: var(--internal-navy) !important;
  background-image: linear-gradient(135deg, rgba(38, 59, 120, .98) 0%, rgba(38, 59, 120, .78) 100%), url('images/f1.jpg') !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.page-title h1 span,
.hero-section h1 span,
.inst-hero h1 span,
.hero-banner h1 span,
.page-hero h1 span,
.service-hero h1 span,
.academic-hero h1 span,
.schedule-hero h1 span,
.eg-hero h1 span,
.map-hero h1 span,
.offer-hero h1 span {
  color: var(--internal-gold) !important;
}

.admissions-hero::before,
.page-hero::before,
.service-hero::before,
.hero-banner::before,
.eg-hero::before,
.map-hero::before,
.offer-hero::before {
  border-color: rgba(255, 255, 255, .1) !important;
}

.section-header h2,
.history-intro h2,
.page-intro h2,
.service-intro h2,
.eg-intro h2,
.map-card h2,
.offer-intro h2 {
  color: var(--internal-navy) !important;
}

.section-header .icon-mark,
.section-header__mark {
  background: linear-gradient(var(--internal-navy), var(--internal-gold)) !important;
}

@media (max-width: 992px) {
  .hero-wrap nav {
    background: transparent !important;
  }
}

/* La portada conserva el tratamiento claro y las figuras decorativas originales. */
.home-hero {
  background: linear-gradient(125deg, #effbf3 0%, #fffaf0 55%, #fff3c9 100%) !important;
}

.home-hero .hero-shape-one {
  background: #bfead2 !important;
}

.home-hero .hero-shape-two {
  background: #ffe38d !important;
}

.home-hero h1 {
  color: var(--school-ink) !important;
}

.home-hero h1 span {
  color: var(--school-green) !important;
}

.home-hero .hero-lead,
.home-hero .hero-trust {
  color: #49645a !important;
}

.home-hero .hero-eyebrow {
  color: var(--school-green-dark) !important;
}

.home-hero .hero-eyebrow i {
  color: #e2a900 !important;
}

.home-hero .hero-trust i {
  color: var(--school-green) !important;
}

/* Botones principales de la portada con un degradado monocromÃ¡tico azul. */
.home-hero .hero-actions .btn-home-primary,
.home-hero .hero-actions .btn-home-light {
  color: #fff !important;
  background: linear-gradient(135deg, #263b78 0%, #3d58a1 100%) !important;
  border-color: #263b78 !important;
  box-shadow: 0 14px 28px rgba(38, 59, 120, .22) !important;
}

.home-hero .hero-actions .btn-home-primary::after {
  background: rgba(255, 255, 255, .16) !important;
}

.home-hero .hero-actions .btn-home i {
  color: #fff !important;
  background: rgba(255, 255, 255, .18) !important;
}

.home-hero .hero-actions .btn-home-primary:hover,
.home-hero .hero-actions .btn-home-primary:focus-visible,
.home-hero .hero-actions .btn-home-light:hover,
.home-hero .hero-actions .btn-home-light:focus-visible {
  color: #fff !important;
  background: linear-gradient(135deg, #1d2d61 0%, #304787 100%) !important;
  border-color: #1d2d61 !important;
}

.home-hero .hero-actions .btn-home-light {
  background: linear-gradient(135deg, #27834b 0%, #4aa965 100%) !important;
  border-color: #27834b !important;
  box-shadow: 0 14px 28px rgba(39, 131, 75, .20) !important;
}

.home-hero .hero-actions .btn-home-light:hover,
.home-hero .hero-actions .btn-home-light:focus-visible {
  background: linear-gradient(135deg, #1f6b3e 0%, #348b51 100%) !important;
  border-color: #1f6b3e !important;
}

/* Refuerzo final: estos selectores deben ganar a los estilos especÃ­ficos de cada pÃ¡gina. */
body:has(.hero-banner),
body:has(.page-hero),
body:has(.service-hero),
body:has(.academic-hero),
body:has(.schedule-hero),
body:has(.attention-hero),
body:has(.admissions-hero),
body:has(.eg-hero),
body:has(.map-hero),
body:has(.offer-hero),
body:has(.hero-wrap),
body:has(.hero-news),
body:has(.gallery-hero),
body:has(.welcome-hero-original) {
  --inst-blue: var(--brand-header) !important;
  --inst-navy: var(--brand-header) !important;
  --inst-green: var(--brand-secondary) !important;
  --inst-bright: var(--brand-secondary) !important;
  --inst-red: var(--brand-secondary) !important;
  --inst-gold: var(--brand-primary) !important;
  --inst-ink: var(--brand-header) !important;
  --page-blue: var(--brand-header) !important;
  --page-navy: var(--brand-header) !important;
  --page-red: var(--brand-secondary) !important;
  --page-gold: var(--brand-primary) !important;
  --page-ink: var(--brand-header) !important;
  --history-blue: var(--brand-header) !important;
  --history-navy: var(--brand-header) !important;
  --history-red: var(--brand-secondary) !important;
  --history-gold: var(--brand-primary) !important;
  --history-ink: var(--brand-header) !important;
  --map-blue: var(--brand-header) !important;
  --map-navy: var(--brand-header) !important;
  --map-red: var(--brand-secondary) !important;
  --map-gold: var(--brand-primary) !important;
  --map-ink: var(--brand-header) !important;
  --offer-blue: var(--brand-header) !important;
  --offer-sky: var(--brand-secondary) !important;
  --offer-green: var(--brand-secondary) !important;
  --offer-gold: var(--brand-primary) !important;
  --offer-red: var(--brand-secondary) !important;
  --offer-ink: var(--brand-header) !important;
  --adm-blue: var(--brand-header) !important;
  --adm-navy: var(--brand-header) !important;
  --adm-red: var(--brand-secondary) !important;
  --adm-gold: var(--brand-primary) !important;
  --adm-ink: var(--brand-header) !important;
  --eg-cyan: var(--brand-secondary) !important;
  --eg-blue: var(--brand-header) !important;
  --eg-yellow: var(--brand-primary) !important;
  --eg-red: var(--brand-secondary) !important;
  --eg-ink: var(--brand-header) !important;
  --gallery-green: var(--brand-secondary) !important;
  --gallery-dark: var(--brand-header) !important;
  --gallery-gold: var(--brand-primary) !important;
  --gallery-red: var(--brand-secondary) !important;
  --horizonte-blue: var(--brand-header) !important;
  --horizonte-navy: var(--brand-header) !important;
  --horizonte-gold: var(--brand-primary) !important;
  --horizonte-red: var(--brand-secondary) !important;
}

.page-title,
.hero-section,
.inst-hero,
.admissions-hero,
.page-hero,
.service-hero,
.academic-hero,
.schedule-hero,
.attention-hero,
.hero-banner,
.eg-hero,
.gallery-hero,
.map-hero,
.offer-hero,
.hero-wrap,
.hero-news,
.welcome-hero-original {
  background-color: var(--brand-header) !important;
  background-image: linear-gradient(135deg, rgba(36, 91, 50, .98) 0%, rgba(36, 91, 50, .82) 100%), url('images/f1.jpg') !important;
}

.home-hero .hero-actions .btn-home-primary,
.home-hero .hero-actions .btn-home-light,
.home-hero .hero-actions .btn-home-yellow,
.home-hero .hero-actions .btn-home-outline,
.cta-actions .btn-home {
  color: #2b260f !important;
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 14px 28px rgba(212, 169, 40, .25) !important;
}

.home-hero .hero-actions .btn-home-light,
.home-hero .hero-actions .btn-home-outline {
  color: #fff !important;
  background: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

/* Verde principal para el contenido de todas las pÃ¡ginas. */
body:has(.hero-banner),
body:has(.page-hero),
body:has(.service-hero),
body:has(.academic-hero),
body:has(.schedule-hero),
body:has(.attention-hero),
body:has(.admissions-hero),
body:has(.eg-hero),
body:has(.map-hero),
body:has(.offer-hero),
body:has(.hero-wrap),
body:has(.hero-news),
body:has(.gallery-hero),
body:has(.welcome-hero-original) {
  --internal-navy: var(--brand-secondary) !important;
  --internal-blue: var(--brand-secondary) !important;
  --internal-sky: var(--brand-secondary) !important;
  --internal-cyan: var(--brand-secondary) !important;
  --inst-blue: var(--brand-secondary) !important;
  --inst-navy: var(--brand-secondary) !important;
  --page-blue: var(--brand-secondary) !important;
  --page-navy: var(--brand-secondary) !important;
  --history-blue: var(--brand-secondary) !important;
  --history-navy: var(--brand-secondary) !important;
  --map-blue: var(--brand-secondary) !important;
  --map-navy: var(--brand-secondary) !important;
  --offer-blue: var(--brand-secondary) !important;
  --adm-blue: var(--brand-secondary) !important;
  --adm-navy: var(--brand-secondary) !important;
  --eg-blue: var(--brand-secondary) !important;
  --gallery-green: var(--brand-secondary) !important;
  --gallery-dark: var(--brand-secondary) !important;
  --horizonte-blue: var(--brand-secondary) !important;
  --horizonte-navy: var(--brand-secondary) !important;
}

.section-header .icon-mark,
.section-header__mark,
.section-header .icon-mark,
.page-intro-icon,
.history-intro-icon,
.service-icon,
.map-card-icon,
.offer-card-icon,
.academic-level-icon,
.home-news-control-icon {
  background: var(--brand-secondary) !important;
}

.section-header h2,
.page-intro h2,
.history-intro h2,
.service-intro h2,
.map-card h2,
.offer-intro h2,
.section-heading h2,
.home-news-title {
  color: var(--brand-secondary) !important;
}

/* Encabezado blanco, como en la versiÃ³n original. */
header,
.contact-bar {
  background: #fff !important;
}

header nav,
#menu,
.menu-toggle {
  background: #245b32 !important;
}

.contact-bar {
  color: #2b3e50 !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

.contact-bar .contact-item,
.contact-bar .contact-item span,
.contact-bar .contact-item a {
  color: #263b78 !important;
}

.contact-bar .contact-item i {
  color: #245b32 !important;
}

.contact-bar .contact-item a,
.contact-bar .contact-item a:hover {
  color: #263b78 !important;
}

#menu > li > a,
#menu > li > a i,
#menu > li > a:hover i {
  color: #fff !important;
}

.contact-bar .contact-item i {
  color: #263b78 !important;
  background-color: transparent !important;
}

#menu > li:not(:last-child)::after {
  background: rgba(38, 59, 120, .16) !important;
}

#menu > li > a:hover,
#menu > li > a:focus-visible,
#menu > li.open > a,
#menu > li:first-child > a {
  color: #fff !important;
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.18) !important;
}

#menu ul,
#menu ul li a {
  background: #fff !important;
}

.menu-toggle {
  color: #fff !important;
}

@media (max-width: 992px) {
  #menu.show,
  #menu ul {
    background: #245b32 !important;
  }

  #menu > li > a {
    border-bottom-color: #e0e0e0 !important;
  }

  #menu ul li a {
    color: #fff !important;
  }
}
