

/* =====================================================
   GOOGLE FONTS 
   ===================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,900;1,400&display=swap");


/* =====================================================
   SCROLL HORIZONTAL 
   ===================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  df-messenger {
    position: fixed !important;
    bottom: 16px !important;
    right: 16px !important;
    z-index: 999 !important;
    width: auto !important;
    height: auto !important;
  }
  .chat,
  .chat-close {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .chat-close {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .container-fluid,
  .container,
  .row {
    max-width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
  [class*="col-"] {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}


/* =====================================================
   HEADER
   ===================================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .logos-head .pt-4 {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px !important;
  }
  .logo-unam  { height: 40px; width: auto !important; }
  .logo-suayed{ height: 34px; width: auto !important; }
  .logo-cuaieed{ height: 40px; width: auto !important; }
  .logo-pai   { height: 44px; margin-left: 16px !important; }
}

.logo-movil-pai {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 4px;
}
.logo-movil-pai img {
  height: 44px;
  width: auto;
}
@media (min-width: 768px) {
  .logo-movil-pai {
    display: none;
  }
}


/* =====================================================
   HEADER — Navbar
   ===================================================== */


.navbar-light .navbar-nav .nav-link,
.menu-pai .nav-link,
.menu-pai .nav-link b {
  color: #003D79 !important;
  font-weight: 100 !important;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus,
.menu-pai .nav-link:hover b,
.menu-pai .nav-link:focus b {
  color: #505050 !important;
}

@media (min-width: 1025px) {
  .menu-pai {
    padding-left: 90px;
  }
  .nav-item-fixed:nth-child(1) { min-width: 140px; }
  .nav-item-fixed:nth-child(2) { min-width: 100px; }
  .nav-item-fixed:nth-child(3) { min-width: 90px; }
  .nav-item-fixed:nth-child(4) { min-width: 170px; }
  .nav-item-fixed:nth-child(5) { min-width: 140px; }
  .nav-item-fixed:nth-child(6) { min-width: 205px; }
}

@media (max-width: 1024px) {
  .menu-pai {
    padding-left: 10px !important;
  }
  .nav-item-fixed {
    min-width: auto !important;
  }
}

@media (max-width: 991px) {
  .navbar-toggler {
    padding: 12px 14px;
    min-width: 56px;
    min-height: 48px;
  }
}


/* =====================================================
   BANNER HERO
   ===================================================== */

.banner-hero {
  box-shadow: 2px -2px 2px 1px rgba(0, 0, 0, 0.08);
  margin-top: 5px;
  background-image: url(../img/logo/imagen1pai.png);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: auto;        
  background-color: #EBF7FF;
  max-width: 1920px;
  max-height: 440px;            
  min-height: 280px;
}

@media (max-width: 767px) {
  .banner-hero {
    background-size: cover;
    background-position: center center;
    padding: 24px 16px !important;
    width: 100% !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .banner-hero > .row {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
  }
  .banner-hero .recursos {
    display: none !important;
  }
  .banner-hero .col-lg-6.order-lg-2 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .banner-hero .col-lg-6.order-lg-2 > div {
    height: auto !important;
    width: 100% !important;
  }
  .banner-hero .formulario {
    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }
}

/* Tablet / iPad portrait y landscape (768–1024px): */
@media (min-width: 768px) and (max-width: 1024px) {
  .banner-hero {
    background-size: cover;
    background-position: center center;
    padding: 40px 24px !important;
    min-height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .banner-hero > .row {
    width: 100% !important;
    margin: 0 !important;
    justify-content: center !important;
  }
  .banner-hero .recursos {
    display: none !important;
  }
  .banner-hero .col-lg-6.order-lg-2 {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .banner-hero .col-lg-6.order-lg-2 > div {
    height: auto !important;
    width: 100% !important;
  }
  .banner-hero .formulario {
    width: calc(100% - 48px) !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

.formulario {
  background-color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 6px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .formulario {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 16px !important;
  }
  .formulario .form-control {
    font-size: 16px !important;
    height: auto;
  }
  .formulario .btnx {
    width: 100%;
  }
}


/* =====================================================
   IMÁGENES DECORATIVAS 
   ===================================================== */


.img-full-bleed-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
}

.img-decorativa-obj,
.img-decorativa-forma {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0;
  object-fit: cover;
}

@media (min-width: 1025px) {
  .img-decorativa-obj {
    margin-top: -40px !important;
  }
}

@media (max-width: 767px) {
  .img-decorativa-obj,
  .img-decorativa-forma {
    max-height: 200px;
    object-fit: cover;
    object-position: top center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .img-decorativa-obj,
  .img-decorativa-forma {
    max-height: 240px;
    object-fit: cover;
  }
}


/* =====================================================
   SECCIÓN OBJETIVO 
   ===================================================== */

.seccion-objetivo {
  padding-top: 90px;
  padding-bottom: 0;
}
@media (max-width: 767px) {
  .seccion-objetivo {
    padding-top: 40px !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .seccion-objetivo {
    padding-top: 56px !important;
  }
}

@media (max-width: 576px) {
  .btn-inclusion {
    width: 100% !important;
    min-width: unset !important;
    padding: 16px !important;
    text-align: center;
    display: block;
  }
}


/* =====================================================
   SECCIÓN MÓDULOS
   ===================================================== */


.img-esquema-modulos {
  width: 100%;
  min-width: auto !important;     
  max-width: 470px;
  height: auto;
  display: block;
  margin: 16px auto 0;
}



/* =====================================================
   SECCIÓN CONVOCATORIA — grid 
   ===================================================== */

.convocatoria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 991px) {
  .convocatoria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .convocatoria-grid {
    grid-template-columns: 1fr;
  }
}


.convocatoria-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-color: #ecaa46;
  min-height: 80px;
  text-align: center;
  border-radius: 14px;
}

.convocatoria-card a,
.convocatoria-card p {
  color: #fff !important;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0;
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

.convocatoria-card:hover {
  background-color: #cc913a;
}


/* =====================================================
   FOOTER — padding tablet
   ===================================================== */

@media (min-width: 768px) and (max-width: 992px) {
  .footer-info {
    padding-right: 24px !important;
  }
}

@media (max-width: 767px) {
  .footer-info {
    padding: 16px !important;
  }
}


/* =====================================================
   SCROLL TO TOP 
   ===================================================== */


@media (max-width: 991px) {
  .scrollToTop {
    bottom: 140px !important;
    right: 12px;
    width: 52px;
    height: 52px;
    font-size: 32px;
  }
}


/* =====================================================
   SECCIONES GENERALES 
   ===================================================== */

@media (max-width: 767px) {
  section {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: 22px !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  section {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* =====================================================
   FAQ — acordeón touch-friendly
   ===================================================== */

@media (max-width: 767px) {
  .accordion-button {
    font-size: 0.95em;
    padding: 16px 12px !important;
    min-height: 56px;           
  }
  .accordion-body {
    padding: 16px 12px !important;
  }
  .accordion-body ul li {
    padding: 6px 0;
  }
}


/* =====================================================
   IMAGEN CONVOCATORIA (.convocatoria)
   ===================================================== */

.convocatoria {
  width: 100% !important;        
  max-width: 400px;
  display: block;
  margin: 0 auto;
  height: auto;
}


/* =====================================================
   iPad Mini 6 portrait (~700-767px)
   El viewport CSS del iPad Mini 6 portrait es ~744px,
   que cae en el breakpoint mobile (max-width:767px).
   
   ===================================================== */
@media (min-width: 700px) and (max-width: 767px) {

  /* Banner: más padding lateral */
  .banner-hero {
    padding: 36px 32px !important;
  }
  .banner-hero .formulario {
    max-width: 520px !important;
    margin: 0 auto !important;
  }

  /* Formulario: más padding interno */
  .formulario {
    padding: 28px 24px !important;
  }

  /* Secciones: más aire lateral */
  section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  /* Imágenes decorativas */
  .img-decorativa-obj,
  .img-decorativa-forma {
    max-height: 260px !important;
  }

  /* Esquema módulos: algo más grande */
  .img-esquema-modulos {
    max-width: 420px !important;
  }

  /* Convocatoria: 2 columnas bien espaciadas */
  .convocatoria-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .seccion-objetivo {
    padding-top: 48px !important;
  }

  .logo-movil-pai {
    display: none !important;
  }
  .logos-head .pt-4 {
    display: flex !important;
    padding-top: 10px !important;
  }
  .logo-pai {
    margin-left: 24px !important;
  }

  .navbar .d-lg-none.d-md-none {
    display: none !important;
  }
}
