@media (max-width: 600px) {
  #form-container.container {
    max-width: 100vw !important;
    width: 100vw !important;
    margin-inline: auto !important;
    box-sizing: border-box;
    float: none !important;
    display: block !important;
  }
  #startForm {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../assets/fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #173D6E !important;
  /* Safari mobile fixes */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  /* Safari mobile viewport fix */
  -webkit-text-size-adjust: 100%;
  /* Support for Safari's dynamic viewport */
  height: -webkit-fill-available;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
}

/* Safari mobile body fix */
body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  width: 100%;
}

h1 {
  font-weight: 800;
}

h2 {
  font-weight: bold;
  font-size: 40px;
  margin-bottom: 28px;
}

h3 {
  font-weight: 700;
  font-size: 36px;
  font-weight: bold;
}

h4 {
  font-size: 20px;
  font-weight: bold;
  color: #173D6E;
  margin-bottom: 100px;
}

.skb_titles {
  color: #0989FF;
}

section {
    margin-top: 0;
    padding: 100px 20px;
    scroll-margin-top: 80px;
    margin-bottom: 0px;
    z-index: 3;
    overflow-x: hidden; /* Prevenir scroll horizontal en secciones */
}

.container {
  margin-right: auto;
  margin-left: auto;
  max-width: 1400px;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

#seAprenderaContainer {
  max-width: 1056px;
}
/* -------- Sección HEADER -------- */

.barra-superior {
  width: 100%;
  background-color: #173D6E;
  color: #FFFFFF;
  height: 24px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  font-size: 14px;
  padding-left: 136px;
  box-sizing: border-box; /* Importante para evitar overflow */
}

.flag_mobile {
  display: none;
}

.barra-superior img {
  padding-right: 20px;
}

.linea-vertical {
  width: 2px;
  height: 50px;
  background-color: #173D6E;
  margin-top: 10px;
  margin-right: 14px;
  z-index: 2;
}

header nav.navbar {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 20px) !important;
  right: 0;
  left: 0;
  z-index: 999;
  background-color: white !important;
}
.barra-superior {
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: env(safe-area-inset-right);
}

nav li {
  padding-right:20px;
  padding-left: 20px;
}


.custom-nav-container {
  max-width: calc(100% - 240px);
  margin-left: auto;
  margin-right: auto;
}

/* HERO */
#hero-main {
  height: 490px;
}

#hero-t1 {
  margin-bottom: 0px;
}
#hero-t1, #hero-t2 {
  font-weight: 800;
  font-size: 20px;
}

#hero-t2 {
  color: #0989FF;
}

#hero-t3 {
  font-weight: 500;
  font-size: 14px;
}

.decor-lineas {
  position: absolute;
  top: 216-160px;
  right: -200px; /* Cambiado de left: 1480px a right: -200px */
  height: auto;
  z-index: 0;
  pointer-events: none;
  max-width: 400px; /* Limitar ancho máximo */
}

.white-floating-div2 {
  top: 0px;
  background-color: white;
  box-shadow: 3px 5px 20px rgba(202, 215, 216, 0.25);
  z-index: 2;
}




#hero {
  margin-top: 110px;
  z-index: 2;
}

#hero .container {

}

#seAprendera {
  margin-top: -100px;
  z-index: 2;
  position: relative; 
  background: none;
  background-color: transparent !important;
}

#funcionamiento {
  height:auto;
  margin-top: -90px;
}

/* -------- FAQs -------- */

#pFrecuentes {
  align-items: center;
  margin-top: 240px;
}

#pFrecuentes .container{
  padding-top: 50px;
  max-width: 800px;
}

#pFrecuentes .accordion-item {
  background-color: white;
}

#startForm {
  text-align: center;
}

.sub-container{
   display: flex;
   align-items: center;
}

.sub-container-content {
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  align-items: center;
}

/* Botones en el header y hero */
#btnStart {
  padding-left: 20px;
  padding-right: 20px;
}

#btnStart a {
  color: white;
}

.btn-alto-1, .btn-alto-2 {
  background-color: #0989FF;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.btn-alto-1{
  height: 56px;
  width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.btn-alto-2 {
  height: 64px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
}

.btn-alto-1:hover, .btn-alto-2:hover {
  background-color: #0068c8; 
  border-color: #173D6E;
  color: white;
}

#btn-alto2, #btn-alto3 {
  font-size: 20px;
}
.nav-item {
  font-size: 16px;
  /*background-color: red;*/
}

/* -------- Sección "DIRIGIDO" -------- */

#dirigido {
  position: relative;
  overflow: hidden;
  padding-top: 0px;
  width: 100%;
  box-sizing: border-box;
}

#dirigido .container {
  position: relative;
}

.columnas {
  margin-top: 200px;
}

.columna_izq {
  padding-top: 60px;
}

.columna_izq > p {
  padding-right: 80px;
}

.onda {
  position: absolute;
  height: auto;
  left: 0;
  pointer-events: none;
  z-index: 0;
  max-width: 100vw; /* Limitar ancho máximo al viewport */
}

.onda-abajo {
  width: 100% !important;
  top: 844px;
  left: 0;
  z-index: 0;
  max-width: 100vw;
}

.onda-arriba {
  top: 872px;
  z-index: 1;
  width: 100% !important;
  max-width: 100vw;
}

.onda-top {
  top: 3000px;
  z-index: 1;
  top: clamp(3000px, 3150px, 4800px);
}

.onda-top-mobile, .onda-4-mobile, .onda-arriba-mobile {
  display: none;
}


.white-floating-div {
  max-width: 776px;
  margin: 0 auto;
  background-color: #FFFFFF;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 40px;
  padding-right: 40px;
  padding-top: 30px;
  padding-bottom: 20px;
}

.white-floating-div p {
  font-size: clamp(14px, 2vw, 20px);
  align-items: center;
}

.linea-decorativa {
  width: 144px;
  height: 2px;
  background-color: #EE3124;
  margin-top: 6px;
  margin-bottom: 10px; 
}

.cuadro-gris {
  margin-top: 120px;
  display: flex;
  background-color: #F6F6F6;
  min-height: 240px;
  padding-top: 124px;
  border-radius: 16px;
  z-index: 2;
  padding-left: 16px;
  padding-right: 16px;
  max-width: 344px;
  flex-direction: column;
}

.cuadro-gris img {
  margin-top: -230px;
}

.func_list_box ul li{
  padding-bottom: 8px;
}

.onda2 {
  position: absolute;
  height: auto;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

#skb-floating-div {
  margin-top: 20px;
  background-color: #C6E9FA;
  max-width: 720px;
  padding: 20px;
  margin-left: auto;
  margin-right: auto;
  color: #173D6E;
  border-radius: 16px;
  padding-left: 70px;
  padding-right: 70px;
}

/* -------- Sección "SE APRENDERÁ" -------- */
.card-naipe {
  background-color: #FFFFFF;
  min-height: 328px;
  max-width: 224px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card-naipe:hover {
  transform: translateY(-5px);
}

.card-naipe .icon-wrapper {
  margin-top: 30px;
  align-items: center;
}

.card-naipe .text-wrapper{
  align-items: flex-start;
  min-height: 144px;
}

.card-naipe p{
  margin-top: 20px;
  padding-left: 14px;
  padding-right: 14px;
  font-weight: bold;
}


.swiper {
  display: inline-block;
  max-width: 80%;
  border-radius: 16px;
  padding-left: 3.5%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: none;
}


/* -------- Sección "FORMULARIO" -------- */

#startForm {
  margin-top: 340px;
}

.form-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 590px;
}

/* Inputs y selects redondeados */
.form-control,
.form-select {
  border-radius: 8px;
  background-color: #f5f7fa;
  border: none;
  height: 45px;
}

/* Checkbox personalizado */
.form-check-input {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #f5f7fa;
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

/* Enlace de privacidad */
.form-check-label a {
  color: #007bff;
  text-decoration: underline;
}

/* Botón azul con borde redondeado */
.btn-submit {
  background-color: #007bff;
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  padding: 12px;
  border: none;
}

.btn-submit:hover {
  background-color: #0056b3;
}

.accordion-item .p20ptext {
  color: #173D6E;
}
.accordion-button {
  font-weight: bold;
}

.decoration_img {
  z-index: -1;
}

#errorFecha {
  display: none;
  color: red !important;
  margin-top: 2px;
}

#comentario_adicional {
  width: 90%;
}

/* -------- Sección "EQUIPO" -------- */

#equipo {
  margin-top: 160px;
  align-items: center;
}

#equipo p {
  padding-left: 220px;
  padding-right: 220px;
}

.logos_container{
  max-width: 570px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.logoM {
  display: none;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  font-size: 10px;
  align-items: center;
}

.header-left {
  grid-column: 1;
  grid-row: 1;
}

.header-right {
  grid-column: 2;
  grid-row: 1;
}

.content-left {
  grid-column: 1;
  grid-row: 2;
}

.content-right {
  grid-column: 2;
  grid-row: 2;
  border-left: 1px solid #333;
}

.content-left img {
  padding-left: 6px;
  padding-right: 6px;
}
/* -------- Sección "PROPUESTA" -------- */

#propuesta {
  margin-top: 560px;
}

#propuesta .container {
  max-width: 750px;
}

#propuesta .dwd-button{
  padding-top: 10px;
  font-size: 20px;
  height: 500px;
}

/* -------- FOOTER -------- */
footer {
  z-index: 10;
}

.contact-logos {
  max-width: 734px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  margin-bottom: 30px;
}


.sm-rounded-icons {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin: 8px;
}
.sm-rounded-icons img {
  max-width: 40px;
  max-height: 40px;
}
/* -------- MEDIA -------- */

@media (min-width: 1440px) {
  .container-xl {
    max-width: 1440px;
    padding-left: 120px;
    padding-right: 120px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 1199px) {

  .onda-top, .onda-arriba, .onda-footer, .onda-4 {
    display: none;
  }

  .onda-top-mobile, .onda-4-mobile, .onda-arriba-mobile, .footer-m-t, .footer-m-b {
    display: inline;
    width: 100%;
    z-index: -1;
  }

  /* Safari mobile specific fixes */
  body {
    -webkit-overflow-scrolling: touch;
  }

  .onda-abajo {
    z-index: -1;
  }

  .barra-superior {
    height: 20px;
    font-size: 8px;
    padding-left: 20px;
  }

  .flag {
    display: none;
  }

  .flag_mobile {
    display: inline-block;
  }

  .linea-vertical {
    height: 30px;
    width: 1px;
  }

  .decor-lineas {
    display: none;
  }

  .white-floating-div2 {
    margin-top: -100px;
    border-radius: 24px;
    text-align: center;

    align-items: center;
    justify-content: center;

    padding: 0px;
    padding-top: 40px;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 20px;
  }

  .p36p20 {
    font-size: 36px;
  }

  .p32p20 {
    font-size: 20px;
  }

  .p20ptext {
    font-size: 14px;
    text-align: left;
  }

  .p16ptext {
    font-size: 12px;
  }

  h2 {
    text-align: center;
    font-size: 20px;
  }

  h3 {
    font-weight: 700;
    font-size: 20px;
    text-align: center;
  }

  h4 {
    font-size: 20px;
  }

  .custom-ul li {
    font-size: 14px;
  }

  #seAprendera {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sub-container {
    flex-direction: column-reverse;
  }

  .sub-container .sub-container-content {
    width: 100%;
  }

  .card-naipe {
    max-width: 164px;
    min-height: 240px;
  }

  .card-naipe p {
    text-align: center !important;
  }

  .swiper {
    max-width: 80%;
    border-radius: 16px;
    padding-left: calc(50% - 82px - 10%);
    /* Safari touch scrolling */
    -webkit-overflow-scrolling: touch;
  }

  /* Safari mobile input fixes */
  .form-control,
  .form-select {
    -webkit-appearance: none;
    -webkit-border-radius: 8px;
    border-radius: 8px;
  }

  /* Safari mobile button fixes */
  .btn {
    -webkit-appearance: none;
    -webkit-border-radius: inherit;
  }

  .icon-circle img {
    max-width: 96px;
    max-height: 96px;
  }

  #equipo p {
    padding-left: 20px;
    padding-right: 20px;
  }

  #funcionamiento {
    padding-bottom: 0px;
  }
  

  /* DIRIGIDO  */
  #dirigido .columnas {
    margin-top: 0px;
  }

  .columna_izq > p {
    padding-right: 0px;
  }

  #skb-floating-div {
    padding-left: 20px;
    padding-right: 20px;
    text-align: left;
  }

  /* EQUIPO */

  #equipo {
    margin-top: 0px;
    background-color: white;
  }

  #equipo > div > p {
    text-align: left;
  }

  .logos_container, .contact-logos {
    max-width: 340px;
  }

  .contact-logos {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-logos > .row {
    flex-direction: column;
    justify-items: center;
    align-items: center;
  }

  .contact-logos > .row > .col-4 {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .contact-logos > .row > .col-4 > #logoM{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-logos p {
    text-align: center;
  }

  .grid-2x2 {
    font-size: 6px;
  }
  .logoD {
    display: none;
  }

  .logoM{
    display: inline;
  }

  #propuesta {
    margin-top: 240px;
  }

  #propuesta .p-to-left {
    text-align: left;
  }

  #except-p {
    text-align: center;
  }

  #propuesta a {
    max-width: 280px;
  }

  #pFrecuentes {
    margin-top: 110px;
  }

  #funcionamiento li {
    margin-bottom: 14px;
    font-size: 14px;
    padding-right: 40px;
  }

  #func-pic {
    max-width: 320px;
  }

  #form-pic {
    max-width: 224px;
  }

  #btn-alto3 {
    display: none;
  }

  #startForm {
    margin-top: 0px;
  }

  #date_prov_section {
    flex-direction: column;
  }

  footer {
    padding-top: 20px;
    padding-bottom: 10px;
  }

  /* Safari mobile safe area fixes */
  .barra-superior {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: env(safe-area-inset-right);
  }

  /* Fix Safari mobile viewport height issues */
  section {
    min-height: -webkit-fill-available;
  }
}

@media (min-width: 1200px) {

  .onda-top-mobile, .onda-4-mobile,  .footer-m-t, .footer-m-b{
    display: none;
  }

  #hero-t1, #hero-t2 {
    font-size: 48px;
  }

  #hero-t3 {
    font-size: 20px;
  }

  .white-floating-div2 {
    max-width: 1400px;
    margin-top: -110px;
    border-radius: 24px;
    text-align: center;

    align-items: center;
    justify-content: center;

    padding-left: 192px;
    padding-right: 192px;
    padding-top: 100px;
    padding-bottom: 20px;
    z-index: 2;
  }

  .p36p20 {
    font-size: 20px;
    text-align: center;
  }

  .p32p20 {
    font-size: 32px;
  }

  .p20ptext {
    font-size: 20px;
  }

  .p16ptext {
    font-size: 16px;
  }

  #seAprendera {
    padding-left: 72px;
    padding-right: 72px;
  }
}

@media(min-width: 1401px) {
  .onda-top {
    top: 3200px;
    z-index: 0;
    width: 100% !important;
    max-width: 100vw;
  }

  .onda-4 {
    top: 5150px;
    width: 100%;
    max-width: 100vw;
  }

  .onda-footer {
    top: 7000px;
    width: 100%;
    max-width: 100vw;
    z-index: -1;
  }
}

@media (max-width: 1400px) {
  .onda-top {
    top: 3350px;
    max-width: 100vw;
  }

  .onda-footer{
    top: 7200px;
    z-index: -1;
    max-width: 100vw;
  }

  .onda-4 {
    top: 5150px;
    width: 100%;
    max-width: 100vw;
  }
}

@media(min-width: 1601px) {
  .onda-top {
    top: 3200px;
    z-index: 0;
    width: 100% !important;
    max-width: 100vw;
  }

  .onda-4 {
    top: 5000px;
    width: 100%;
    max-width: 100vw;
  }

  .onda-footer {
    top: 6865px;
    width: 100%;
    max-width: 100vw;
    z-index: -1;
  }
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  /* Safari form inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
  }
  
  /* Safari button styling */
  button,
  .btn {
    -webkit-appearance: none;
  }
  
  /* Safari transform acceleration */
  .card-naipe,
  .swiper-slide,
  .navbar {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* MODAL WINDOW */


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  z-index: 999;
}

    /* Cuando está activo */
.modal.active {
  opacity: 1;
  visibility: visible;
}


.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  -webkit-transform: translateY(-30px);
  transform: translateY(-30px);
  opacity: 0;
  -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


    /* Cuando el modal está activo, animamos el contenido */
.modal.active .modal-content {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.modal-buttons {
  margin-top: 20px;
  text-align: right;
}

.modal-buttons button {
  margin-left: 10px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn {
  background-color: #ccc;
}

.accept-btn {
  background-color: #0989FF;
  color: white;
}

#check-container {
  display: flex;
  align-items: center;
}

#check-container > label {
  padding-left: 10px;
  font-size: 12px;
  color: #6c757d; /* gris semi apagado */
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 991.98px) {
  /* Forzamos que el .row sea columna en lugar de fila */
  #para_mi_p1 {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Y hacemos que ambos hijos ocupen el 100% de ancho */
  #para_mi_p1 > .col-md-8,
  #para_mi_p1 > .col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  #dirigido-container {
    flex-direction: column;
    width: 100% !important;
  }

  #dirigido-container > div {
    width: 100% !important;
    margin: auto;
    align-items: center;
  }
}