:root{
      /* Reemplaza estas imágenes por las que prefieras */
      --hero-desktop: url('https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/11c79ab4-24fe-47bb-9288-724a80964448.png');
      --hero-mobile: url('https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/971cd8ed-5ec0-48f3-99f6-92cac196cb3a.png');
      --teal: #0b7b79;
      --teal-dark: #066b69;
      --ipade-light: ##ededed;
      -p: clamp(0.8rem, 0.657rem + 0.381vw, 1rem);
      --font-signika: "Signika", "DM Sans", Arial, Helvetica, sans-serif;
}
body {
    font-family: var(--font-signika);
    font-size: 20px;
    font-weight: 400;
}

.btn-success {
  background-color: #197c3c !important;
  border: none;
  color: #fff !important;
  font-size: 1.05rem;
  transition: background .15s;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #14612d !important;
  color: #fff !important;
}

.navbar .navbar-brand img {
  max-height: 54px;
  height: 54px;
}
@media (min-width: 992px) {
  .navbar .navbar-brand img {
    max-height: 78px;
    height: 78px;
  }
}

@media (max-width: 767.98px) {
  .navbar .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .btn-success {
    width: auto;
    font-size: 1.01rem;
    padding-inline: 1.5rem;
    margin-left: auto;
  }
}

/* HERO: ahora el hero es un contenedor flex en columna y el contenido se empuja al final */
.hero {
  background-image: var(--hero-desktop);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 12px 12px 0 0;
  padding: 2rem 1rem;
  margin-top: 1rem;
  margin-bottom: 0;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Overlay para contraste */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  border-radius: 12px 12px 0 0;
  z-index: 0;
}

/* Contenido del hero */
.hero .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Aseguramos que la fila interna no añada alineamientos contraproducentes */
.hero .hero-row {
  width: 100%;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}
@media (max-width: 991.98px) {
  .hero {
    background-image: var(--hero-mobile);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
.logo {
  height: 82px;
  transition: all 0.3s ease;
}
.logo.scrolled {
  height: 50px;
}

/* Logo y titulo alineados a la izquierda, ahora en la parte inferior del hero */
.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 0;
}

.brand-stack img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  padding: 4px;
}

.hero-title {
  font-weight: 700;
  font-size: 3.25rem;
  margin: 0;
  line-height: 1.05;
}
.hero .brand-stack > h1.hero-title {
  font-weight: 700;
  font-size: 5.25rem;
  margin: 0;
  line-height: 1.05;
}
@media (max-width: 991.98px) {
  .hero .brand-stack > h1.hero-title {
    font-size: 2rem;
  }
}

.hero-title h2{
  font-size: 5.25rem;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .95;
}

.info-bar-green {
  background: #3da248;
  color: #fff;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}
.info-question {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01rem;
}
.info-desc {
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 767.98px) {
  .info-bar-green {
      border-radius: 0 0 .8rem .8rem !important;
      padding: 18px 10px 16px 14px !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
  }
  .info-question {
      font-size: 1.15rem !important;
      line-height: 1.12;
      text-align: center !important;
      margin-bottom: 1.2rem !important;
  }
  .info-desc {
      font-size: 1.03rem !important;
      padding-left: 0 !important;
      text-align: center !important;
      align-items: center !important;
  }
  .info-desc p {
      text-align: center !important;
      margin-bottom: 0;
  }
}

/*seccion  Proyectos-posiciones */     
.proyectos-posiciones-ipade h2 {
  font-size: 1.52rem;
  color: #1d2b26;
}

.proyectos-posiciones-ipade p {
  font-size: 1.09rem;
  color: #222;
}

.proyectos-posiciones-ipade img.rounded-4 {
  border-radius: 1.2rem !important;
  box-shadow: 0 8px 32px rgba(80,80,80,.11);
}

.proyectos-posiciones-ipade a.text-primary {
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 991.98px){
  .proyectos-posiciones-ipade .col-lg-6 {
    margin-bottom: 2.5rem !important;
  }
}
@media (max-width: 767.98px){
  .proyectos-posiciones-ipade h2 { font-size: 1.2rem; }
  .proyectos-posiciones-ipade p { font-size: 1.09rem; }
}
.icon-title-responsive {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.icon-title-responsive .icono-seccion {
  width: 58px;
  height: auto;
  margin-bottom: 0;
}
@media (max-width: 991.98px) {
  .icon-title-responsive {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
  .icon-title-responsive .icono-seccion {
    width: 66px;
  }
  .icon-title-responsive h2 {
    font-size: 1.1rem !important;
    margin-bottom: 0 !important;
    text-align: left !important;
  }
}
.cedic-org-section p,
.cedic-org-section span,
.cedic-org-section b,
.cedic-org-section li,
.cedic-org-section a {
  font-size: 1.18rem;
  
}
}
@media (max-width: 991.98px) {
  .cedic-org-section .row.align-items-center {
    display: flex;
    flex-direction: column-reverse !important;
  }
  .cedic-org-section .col-lg-5 {
    margin-top: 2.2rem !important;
  }
  .cedic-org-section p,
  .cedic-org-section span,
  .cedic-org-section b,
  .cedic-org-section li,
  .cedic-org-section a {
    font-size: 1.09rem !important;
  }
  .cedic-org-section .btn-success,
  .cedic-org-section .btn-primary {
    font-size: 0.73rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  /* Siempre alineación a la izquierda (elimina cualquier margen auto accidental) */
  .cedic-org-section .btn-success {
    align-self: flex-start !important;
    margin-left: 0 !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .cedic-org-section .d-flex.flex-column.flex-md-row.gap-3.w-100 {
    flex-direction: row !important;
    width: 100%;
    gap: 0.75rem !important;
  }
  .cedic-org-section .btn-primary {
    width: 100%;
    min-width: 0;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}
/* Padding uniforme para todas tus secciones personalizadas */
.proyectos-posiciones-ipade,
.cedic-org-section,
.cedic-eventos-section {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}

@media (max-width: 991.98px) {
  .proyectos-posiciones-ipade,
  .cedic-org-section,
  .cedic-eventos-section {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
/* Desktop: imagen grande y mínima anchura solo en escritorio */
@media (min-width: 992px) {
  .cedic-eventos-section .col-lg-5 picture img {
    min-width: 600px;
    width: 120%;
    max-width: 800px;
    max-height: 520px;
    object-fit: cover;
    margin-right: -5%; /* Invade el lado izquierdo */
    margin-bottom: 0;
    z-index: 2;
    box-shadow: 0 6px 28px rgba(44,44,44,0.13);
  }
  .cedic-eventos-section .col-lg-5 {
    align-items: flex-end !important;
    justify-content: flex-end !important;
    display: flex !important;
    position: relative;
    z-index: 2;
  }
}

.modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.cedic-img-mobile {
  display: none;
}

/* Responsive: muestra imagen móvil */
@media (max-width: 991.98px) {
.cedic-descarga-section {
    padding-top: 10rem !important;
  }
.cedic-responsive-title {
    font-size: 1.5rem !important;
  }
  .cedic-img-mobile {
    display: block;
    position: absolute;
    right: -25px;
    bottom: 10px;
    height: 200px;
    width: auto;
    z-index: 10;
    box-shadow: 0 2px 16px rgba(20,44,15,0.13);
  }
  .cedic-title-box {
    position: relative;
    min-height: 88px;
    padding-top: 8px;
  }
  .cedic-img-desktop {
    display: none !important;
  }
.cedic-break { 
    display: inline;
  }
  .cedic-break::after {
    content: "";
    display: block;
  }
}

/* Desktop: muestra imagen principal */
@media (min-width: 992px) {
  .cedic-img-mobile {
    display: none !important;
  }
  .cedic-img-desktop {
    display: block;
  }
}
/* =========================
   FOOTER
========================= */
.footer {
  padding: clamp(2.3rem, 1.8rem + 0.8vw, 2.8rem) 0;
}

.bg-fi-green {
  background-color: #3f873f;
}

footer a {
  color: #fff !important;
  text-decoration: none;
}

footer a:hover {
  color: #d4f5d4 !important;
}

footer i {
  color: #fff !important;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

footer i:hover {
  color: #d4f5d4 !important;
}
#JotFormIFrame-260190870667968 {
  width: 101%;
  min-height: 420px;   /* seguridad para desktop */
  border: none;
  /*overflow: hidden;*/
}

/* Mobile */
@media (max-width: 767px) {
  #JotFormIFrame-260190870667968 {
    min-height: 670px; /* en mobile siempre es más alto */
    padding-left: 10px;
    padding-right: 10px;
  }
}
.ancho-responsive {
  width: 100%;
}

@media (min-width: 992px) {
  .ancho-responsive {
    width: 85%;
  }
}