:root {

    /* Variables */

    --fi-primary: #B94700;
    --fi-secondary: #FE5000;
    --fi-light: #FFBE9F;

    --ipade-primary: #0A2240;
    --ipade-secondary: #002D74;
    --ipade-light: #ABC8E7;

    --white: #fff;
    --black: #000;
    --gray: #393939;
    --gray-light: #F2F2F2;

    --font-dm: "DM Sans", "Verdana", Arial, Helvetica, sans-serif;
    --font-signika: "Signika", "DM Sans", Arial, Helvetica, sans-serif;

    --p: clamp(0.8rem, 0.657rem + 0.381vw, 1rem);
}

/* General */

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-signika);
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
    background-color: var(--white);
    overflow-x: hidden;

}
/* Desktop */
.hero-section {
    background-image: url('https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/8cd71252-abc0-48cb-bbba-087667c91940.png');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .hero-section {
        display: block;          
        background: none;         
        padding: 0;
        margin: 0;
    }

    /* Imagen mobile separada */
    .hero-section::before {
        content: '';
        display: block;
        width: 100%;
        height: 300px; /* Ajusta según la imagen */
        background-image: url('https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/18980307-7af9-4793-bab2-0f0266083e48.png');
        background-size: cover;  /* para que cubra todo el ancho */
        background-position: center top;
    }

    .hero-content {
        color: #002D74;
        text-align: center;
        padding: 1rem;
        margin-top: 1rem;
        position: relative;
        background: none;
    }

    .hero-content h1 {
        text-align: left;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
      text-align: left;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-info-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-info, .hero-buttons {
        width: 100%;
        padding: 1rem;
        background: none;
        color: #002D74;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}




  .hero-info-btns {
    display: flex;
    flex-wrap: wrap;
    border-radius: 0rem 1rem 0rem 0rem;
    overflow: hidden;
  }

  .hero-info {
    background: #FAF2E7;
    color: #000;
    padding: 1.5rem;
    flex: 1 1 100%;
    border-radius: 1rem 1rem 0 0;
  }

  .hero-buttons {
    padding: 1.5rem;
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #042C4B;
  }

  .hero-buttons .btn {
    width: 100%;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
  }

  @media (min-width: 992px) {
    .hero-info {
      flex: 0 0 60%;
      border-radius: 1rem 0 0 0;
    }
    .hero-buttons {
      flex: 0 0 40%;
      border-radius: 0 1rem 0 0;
    }
    .hero-info-btns {
      flex-wrap: nowrap;
    }
  }


/* ======= FIX HEADER MOBILE ======= */
@media (max-width: 768px) {

  .header-main {
    aspect-ratio: auto !important;
    min-height: 500px !important; /* evita que se colapse */
    padding-top: 4rem;
    padding-bottom: 2rem;
    display: block;
    background-image: url("https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/18980307-7af9-4793-bab2-0f0266083e48.png");
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: none !important;
  }

  .header-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.2) 30%,
      rgba(0,0,0,0.7) 90%
    );
    padding: 1rem;
  }
/* Quitar márgenes y ancho fijo del contenedor del header */
.header-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}
.header-main {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
}
.header-main {
  margin-top: 0 !important;
}

  .header-overlay .col-12.col-lg-8 {
    margin-bottom: 1rem;
    text-align: left;
    z-index: 2;
    position: relative;
  }

  .header-overlay h1,
  .header-overlay p {
    color: #002D74 !important;
  }

  /* Contenedor flex: forzar columna */
  .header-overlay .d-flex {
    flex-direction: column !important;
    gap: 1rem;
  }

  /* Cajas */
  .info-left, .info-right {
    width: 100%;
    border-radius: 10px !important;
  }

  .info-right a {
    width: 100%;
  }
}


.btn-warning {
  background-color: #f58220;
  border: none;
  color: #fff;
}

.btn-warning:hover {
  background-color: #d86d1c;
}

.btn-outline-primary {
  border: 2px solid #f58220;
  color: #f58220;
}

.btn-outline-primary:hover {
  background-color: #f58220;
  color: #fff;
}

/* Colores institucionales */
.text-fi-orange {
  color: #f58220;
}

.btn-orange {
  background-color: #f58220;
  border: none;
  color: #fff;
  transition: 0.3s ease;
}

.btn-orange:hover {
  background-color: #d86d1c;
}

/* Fondo del formulario */
.info-form {
  background-color: #f7f4f2; /* gris claro */
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.jotform-container {
  min-height: 350px; /* espacio para el jotform */
}

/* Ajuste responsivo */
@media (max-width: 991px) {
  .program-section img {
    margin-top: 1.5rem;
  }
  .info-form {
    padding: 2rem;
  }
}

.text-fi-orange {
  color: #e25d0f !important;
}

.modulos-box {
  border: 1.5px solid #0b2342;
  border-radius: 12px;
  background-color: #fff;
}

.modulos-header {
  background-color: #0b2342;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modulos-section ol li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}




.content {
    flex: 1;
    /* Expands to push footer down */
}

body {
    display: flex;
    flex-direction: column;
}

.rounded {
    border-radius: 20px !important;
}

label {
    font-size: .8rem;
}


/* Backgrounds */

.bg-ipade-primary {
    background-color: var(--ipade-primary);
}

.bg-ipade-secondary {
    background-color: var(--ipade-secondary);
}

.bg-ipade-light {
    background-color: var(--ipade-light);
}

.bg-fi-primary {
    background-color: var(--fi-primary);
}

.bg-fi-secondary {
    background-color: var(--fi-secondary);
}

.bg-fi-light {
    background-color: var(--fi-light);
}

.bg-gray {
    background-color: var(--gray);
}

.bg-graylight {
    background-color: var(--gray-light);
}

/* Colors */

.color-ipade-primary {
    color: var(--ipade-primary);
}

.color-ipade-secondary {
    color: var(--ipade-secondary);
}

.color-ipade-light {
    color: var(--ipade-light);
}

.color-fi-primary {
    color: var(--fi-primary);
}

.color-fi-secondary {
    color: var(--fi-secondary);
}

.color-fi-light {
    color: var(--fi-light);
}

.color-white {
    color: var(--white);
}

.color-black {
    color: var(--black);
}

.color-gray {
    color: var(--gray);
}

.color-lightgray {
    color: var(--gray-light);
}

/* Buttons */

a {
    -webkit-transition: all .25s ease-in;
    -moz-transition: all .25s ease-in;
    -ms-transition: all .25s ease-in;
    -o-transition: all .25s ease-in;
    transition: all .25s ease-in;
}

.btn {
    font-size: clamp(0.8rem, 0.657rem + 0.381vw, 1rem);
    font-weight: bold;
    padding: 10px 24px;
    border: none;
    -webkit-transition: all .25s ease-in;
    -moz-transition: all .25s ease-in;
    -ms-transition: all .25s ease-in;
    -o-transition: all .25s ease-in;
    transition: all .25s ease-in;
}

.btn:hover {
        background-color: #9c3e08;
    color: var(--white);
}

.btn-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: -1rem -.5rem 0 0;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    background-color: var(--mede-secondary);
    opacity: 1;
}

/* NAVBAR */

/* FIXED */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
}

.logo {
    height: 82px;
    transition: all 0.3s ease;
}

.logo.scrolled {
    height: 50px;
}

.btn-primary {
    background-color: #28d467;
    background-image: url(https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/fb5f0f68-99c4-486b-b806-eae8aed09629.png);
    background-position: left center;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 10px 24px;
}

.btn-primary.scrolled {
    /* Estilo diferente para el primer botón al hacer scroll */
    background-color: #28d467;
    border-color: #28d467;
    background-position: center;
    height: 2.7rem;
    padding: 10px;
}

.btn-whats {
    background-color: #28d467;
    background-image: url(https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/fb5f0f68-99c4-486b-b806-eae8aed09629.png);
    background-position: center;

    background-repeat: no-repeat;
    padding: 10px;
    height: 2.4rem;
    aspect-ratio: 1/1;
}
.info-left {
    background-color: #F9EFE8;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
  }
  .info-right {
    background-color: #0B2642;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    min-width: 320px;
  }
  .btn-orange {
    background-color: #B34700;
  }
  .text-orange {
    color: #B34700;
  }

/* Footer */

.footer {
    padding: clamp(2.3125rem, 1.7791rem + 0.8611vw, 2.8125rem) 0;
}

footer ul li {
    background-color: transparent;
}

footer ul li a:hover {
    color: var(--ipade-light) !important;
}

footer .p {
    font-size: var(--p);
}

footer .p a {
    text-decoration: none;
}

/* Header */

.header-main {
    position: relative;
    aspect-ratio: 1920/727;
    background-size: cover;
    background-position: center;
}

.pitch {
    background-color: hsla(0, 0%, 100%, .87);
}

/* Section - Menú */

.menu .nav-link {
    color: var(--white);
    font-size: .8rem;
}

.menu .nav-link:hover {
    color: var(--fi-light);

}

.quotes {
    font-size: clamp(0.8rem, 0.657rem + 0.381vw, 1rem);
}

.tabla {
    border-bottom: solid 1px #bababa;
}

.redondito {
    border-radius: 0 20px 20px 0;
}

.sobres {
    position: relative;
    z-index: 2;
}

.razones {
    background-color: var(--fi-primary);
    background-image: url(https://image.edu.ipade.mx/lib/fe2b11747364057e741d77/m/1/bdfb2aed-ef86-44c7-a8ed-80fdc84caaf8.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.queso {
    background-color: #B94700;
}

/* Estilos para las flechas */

/* Acordeón */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000000'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Tabs */
.nav-tabs .nav-link::after {
    border-top: 0.3em solid #FFF;
}

.nav-tabs .nav-link.active::after {
    border-top-color: #000;
}

/* Dropdowns */
.dropdown-toggle::after {
    border-top-color: #FFF;
}
.show>.dropdown-toggle::after {
    border-top-color: #000;
    border-bottom-color: #000;
}
/* LISTAS */
.custom-list {
    list-style-type: none;
    /* Elimina los bullets por defecto */
    padding-left: 1rem;
    /* Ajusta el espacio si es necesario */
}
.custom-list li::before {
    content: "•";
    /* Usa un carácter de bullet */
    color: var(--fi-secondary);
    /* Cambia este valor al color que desees */
    font-weight: bold;
    /* Opcional: hace el bullet más grueso */
    display: inline-block;
    width: 1em;
    /* Espacio entre el bullet y el texto */
    margin-left: -1em;
    /* Alinea correctamente con el texto */
}
.experiencia img {
    position: relative;
    z-index: 0;
}
#sobres {
    margin-left: -50px;
}
.header-main {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    position: relative;
}
.header-content {
    max-width: 650px;
    color: white;
    text-align: left; 
}
.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
}
.header-content p {
    font-size: 1.25rem;
}
.container.h-100,
.row.h-100 {
    height: 100% !important;
}
.nav-tabs .nav-link.active {
    background-color: #FFBE9F !important;
    color: #000 !important;
    font-weight: bold;
}
.nav-link {
    transition: all 0.3s ease;
}
/* Asegurar que las pestañas ocupen todo el ancho */
.nav-tabs {
    border-bottom: none;
}


/* Estilo para el acordeón activo en móvil */
.accordion-button:not(.collapsed) {
    background-color: #FFBE9F !important;
    color: #000 !important;
}
/* Responsive */
@media only screen and (max-width:991px) {
    .logo {
        height: 40px;
    }
    .logo.scrolled {
        height: 40px;
    }
    .btn {
        padding: 10px 10px;
    }
    .redondito {
        position: relative;
        border-radius: 0 0 20px 20px;
        width: 100%;
        padding-top: 120px;
        top: -25px;
        z-index: 1;
    }

    .folleto {
        max-height: 250px;
    }

    #sobres {
        margin-left: 0 !important;
    }

    .header-main {
        margin-top: 0;
    }
    @media (max-width: 576px) {
        .hero-info p {
            display: block;
            width: 100%;
            margin-bottom: 10px;
        }

        .hero-info p strong {
            display: block;
            margin-bottom: 2px;
        }
    }

}