:root {
  --salvia: #6B8E85;
  --arena: #EDEBE6;
  --blanco: #FAFAF7;
  --gris: #8B8B8B;
  --ink: #2F2F2F;

  /* HEADER */
  --cedi-header: #4B6F64;

  --card-radius: 22px;
  --soft-shadow: 0 18px 50px rgba(0, 0, 0, .10);
  --line: rgba(139, 139, 139, .25);
}

body {
  background: var(--arena);
  color: var(--ink);
}

/* ===== HEADER ===== */
.cedi-header {
  background: var(--cedi-header);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  position: sticky;
  top: 0;
  z-index: 2000;
}
.cedi-header .navbar {
  padding: .75rem 0;
}

.cedi-logos {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.cedi-nav .nav-link {
  color: rgba(255, 255, 255, .88);
  font-weight: 800;
  padding: .6rem .9rem;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease;
}
.cedi-nav .nav-link:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.cedi-nav .nav-link.active {
  background: rgba(255, 255, 255, .20);
  color: #fff;
}

.cedi-toggler {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  padding: .45rem .6rem;
}
.navbar-toggler-icon {
  filter: invert(1) grayscale(1);
  opacity: .95;
}

/* ===== Carrusel Principal (Ajustes para móviles) ===== */
#bannerPrincipal {
  position: relative;
  z-index: 1040;
}



#bannerPrincipal .carousel-inner {
  height: auto; /* alto fijo */
  width: 100%;
}


#bannerPrincipal .carousel-inner img {
  height: auto;         /* ocupa toda la altura del carrusel */
  width: 100%;
}

#bannerprincipalcuadrado{
  display: none;

}


@media (max-width: 768px) {

  #bannerPrincipal .carousel-inner {
    height: auto; /* alto fijo */
  }
  
  
  #bannerPrincipal .carousel-inner img {
    height: auto;         /* ocupa toda la altura del carrusel */
  }

  #bannerprincipalcuadrado{
    display: block;
  }

  section#bannerprincipalcuadrado { 
    display: block;
  }

  #bannerPrincipal{
    display: none;
  }
}

body {
  margin: 0;
  padding: 0;
  background: var(--arena);
  color: var(--ink);
}

/* #bannerPrincipal {
  margin-bottom: 2rem;
  background-color: #000;
}
#bannerPrincipal .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 768px) {
  #bannerPrincipal .carousel-item img {
    min-height: 200px;
    height: 250px;
  }
}
@media (min-width: 992px) {
  #bannerPrincipal .carousel-item img {
    max-height: 500px;
  }
}
#bannerPrincipal .carousel-control-prev-icon,
#bannerPrincipal .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 1.5rem;
}
*/
/* ===== Tipografía y títulos ===== */
.cedi-kicker {
  color: var(--gris);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: .75rem;
}
.cedi-title {
  font-weight: 900;
  letter-spacing: .02em;
}
.cedi-h2 {
  font-weight: 900;
}

/* Botón primario reutilizable */
.cedi-btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  background: var(--salvia);
  border: 1px solid var(--salvia);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: background-color .15s ease;
}
.cedi-btn--primary:hover {
  background: rgba(107, 142, 133, .85);
  color: #fff;
}

/* ===== Exam cards ===== */
.cedi-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  border: 1px solid var(--line);
  background: var(--blanco);
}
.cedi-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--arena);
}
.cedi-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cedi-card-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.cedi-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .01em;
}
.title-light {
  color: var(--arena);
  text-shadow: 0 10px 26px rgba(0, 0, 0, .65);
}
.overlay-dark {
  background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, .20), rgba(0, 0, 0, 0)) !important;
}
.title-dark {
  color: #333333;
  text-shadow: 0 10px 26px rgba(255, 255, 255, .75);
}
.overlay-light {
  background: linear-gradient(to top, rgba(250, 250, 247, .94), rgba(250, 250, 247, .45), rgba(250, 250, 247, 0)) !important;
}

.cedi-btn--circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--salvia);
  color: #fff;
  height: 46px;
  width: 46px;
  border-radius: 50%;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  transition: width .25s ease, padding .25s ease, background-color .15s ease;
  padding: 0;
  font-weight: 800;
}
.cedi-btn--circle i {
  font-size: 1rem;
}
.cedi-btn--circle .label {
  display: none;
  margin-left: .4rem;
}
.cedi-btn--circle:hover {
  width: auto;
  padding: 0 1rem;
  background: rgba(107, 142, 133, .85);
}
.cedi-btn--circle:hover .label {
  display: inline;
}
.cedi-card-overlay-content .cedi-btn--circle {
  margin-top: .5rem;
}

/* ===== Botón flotante y contacto ===== */
.cedi-chat-bubble {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--salvia);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
  z-index: 10000;
  transition: background-color .15s ease;
}
.cedi-chat-bubble:hover {
  background: rgba(107, 142, 133, .85);
}

.cedi-contact-panel {
  position: fixed;
  bottom: 80px;
  right: 18px;
  width: 320px;
  max-width: calc(100% - 36px);
  background: var(--blanco);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--soft-shadow);
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 9999;
}
.cedi-contact-panel.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   Chips Académicos (Requisito)
   ========================= */
.chip-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  position: relative;
}
.chip-container::after {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--line);
  z-index: 0;
  pointer-events: none;
}
.chip {
  position: relative;
  z-index: 1;
  padding: 10px 32px;
  background-color: var(--blanco);
  border: 1px solid var(--salvia);
  color: var(--salvia);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}
.chip:hover {
  background-color: rgba(107, 142, 133, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.chip.active {
  background-color: var(--salvia) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(107, 142, 133, 0.4) !important;
  border-color: var(--salvia) !important;
}
.content {
  display: none;
}
.content.active {
  display: block;
}

.academic-panel {
  background-color: var(--blanco);
  border: 1px solid rgba(139, 139, 139, 0.15);
  border-left: 6px solid var(--salvia);
  border-radius: 8px;
  padding: 32px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  margin-top: 24px;
  position: relative;
  animation: fadeIn 0.5s ease-out;
}
.academic-panel h2 {
  color: #2F2F2F;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.academic-panel p,
.academic-panel li {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}
.academic-panel ul {
  margin-bottom: 24px;
  padding-left: 20px;
}
.academic-panel li::marker {
  color: var(--salvia);
  font-weight: bold;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .academic-panel {
    padding: 24px;
    border-left-width: 4px;
  }
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #333333;
}
.section-subtitle {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8B8B8B;
  margin-bottom: 36px;
}

/* =========================
   SPLIT SECTION (UNIFICADA)
   ========================= */
.split-cta-card {
  background: var(--blanco);
  border: 1px solid rgba(139, 139, 139, .18);
  box-shadow: var(--soft-shadow);
  border-radius: 28px;
  overflow: hidden;
}
.split-cta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 400px;
}
.split-cta-title {
  color: #333333;
  font-weight: 900;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  font-size: 2.2rem;
}
.split-cta-subtitle {
  color: var(--gris);
  line-height: 1.7;
  font-size: 1.05rem;
}
.benefit {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .6rem 0;
}
.benefit i {
  color: var(--salvia);
  font-size: 1.8rem;
  line-height: 1;
  margin-top: .15rem;
  flex: 0 0 auto;
}
.benefit h6 {
  margin: 0 0 .15rem 0;
  color: #333333;
  font-weight: 900;
}
.benefit p {
  margin: 0;
  color: var(--gris);
  line-height: 1.55;
}
@media (min-width: 992px) {
  .split-cta-content {
    padding: 3rem !important;
  }
}

/* ===== Botón volver arriba (simple) ===== */
#btnTop {
  position: fixed;
  bottom: 92px;
  right: 18px;
  height: 44px;
  width: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(47, 66, 60, .95);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  z-index: 9998;
}
#btnTop.show {
  display: inline-flex;
}

/* ===== Footer (clases usadas en tu HTML) ===== */
.cedi-footer-top {
  background: var(--blanco);
  border-top: 1px solid rgba(139, 139, 139, .25);
}
.cedi-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(139, 139, 139, .25);
  color: #2F2F2F;
  text-decoration: none;
  margin: 0 .25rem;
  transition: transform .15s ease, background-color .15s ease;
  background: #fff;
}
.cedi-social a:hover {
  transform: translateY(-2px);
  background: rgba(107, 142, 133, .10);
}
.cedi-footer-logo {
  height: 70px;
  width: auto;
  opacity: .95;
}
.cedi-footer-bottom {
  background: #1f2b27;
  color: rgba(255, 255, 255, .85);
  padding: 1rem 0;
}
.cedi-footer-bottom a {
  color: rgba(255, 255, 255, .92);
  text-decoration: underline;
}

.link-salvia{
  color: #6B8E85;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-salvia:hover{
  border-bottom: 1px solid #6B8E85;
}
