@font-face {
  font-family: "DIN";
  src: url("fonts/D-DIN.woff2") format("woff2"),
    url("fonts/D-DIN.woff") format("woff"),
    url("fonts/D-DIN.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "DIN";
  src: url("fonts/D-DIN-Bold.woff2") format("woff2"),
    url("fonts/D-DIN-Bold.woff") format("woff"),
    url("fonts/D-DIN-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --font-family: "DIN", sans-serif;
  --white: #FFFFFF;
  --primary: #00788A;
  --primary-100: #CCE4E8;
  --primary-700: #004853;
  --gray-900: #181818;
}


.sd-error {
  border-radius: 4px;
}


#sp_6 .sd-body__page>.sd-page__row:not(:first-child) {
  padding-left: 50px;
  padding-right: 50px;
}

#sp_6 {
  padding: 0;
}

.button-completepage {
  margin-top: 50px;
}

.sd-completedpage a,
.sd-body--loading a,
.sd-completed-before-page a {
  color: var(--white);
  text-decoration: none;
  margin-top: 20px;
}

.sd-body.sd-body--responsive .sd-body__navigation {
  padding-left: 50px;
  padding-right: 50px;
  display: flex;
  justify-content: center;
}

.sd-matrix__cell:first-of-type {
  font-weight: 400;
}


/*Bienvenido*/
header {
  background-color: var(--white);
  padding: 50px 50px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

header .texto {
  width: 30%;
}

header .img {
  width: auto;
  height: auto;
}

header .img img {
  max-width: 100%;
}

header .bienvenida {
  font-size: 22px;
}


.sd-html h1 {
  font-weight: 700;
  color: var(--primary);
  font-size: 3rem;
  line-height: 2%;
}

.agradecimiento {
  max-width: 60%;
  margin: 0 auto;
}

.agradecimiento .img,
.agradecimiento img {
  width: auto;
  height: auto;
}

.img-agradecimiento {
  padding-top: 20px;
}

.agradecimiento .img img,
.agradecimiento img {
  max-width: 100%;
}

.sd-completedpage h1 {
  font-weight: 700;
  color: var(--primary);
  font-size: 3rem;
  line-height: 80%;
}

.sd-completedpage p {
  color: var(--gray-900);
  font-size: 22px;

}

.sd-html h2 {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 2rem;
  line-height: 2%;
}

#header {
  background-color: transparent;
  padding: 30px 0 0 0;
}

#header .emojis {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

#sq_27 {
  background: transparent;
  padding-left: 0;
  padding-bottom: 0;
  padding-right: 0;
  padding-top: 0;
  box-shadow: none;
}

ul li {
  list-style-type: none;
}

.sd-panel__content {
  padding-top: 0;
}

.sd-btn {
  background-color: var(--primary);
  color: var(--white);
  transition: all 0.5s ease-in-out;
  border: var(--primary) 2px solid;
  text-transform: uppercase;
  border-radius: 100px;
}

.sd-action-bar {
  justify-content: center;
}

.sd-btn:hover {
  background-color: var(--primary-700);
  transition: all 0.5s ease-in-out;
}

.sd-btn:focus {
  border: var(--gray-900) 2px solid;
  transition: all 0.5s ease-in-out;
}

.sd-btn.sd-navigation__prev-btn,
.sd-btn--small {
  background-color: var(--primary-100);
  color: var(--primary);
  border: var(--primary) 2px solid;
  transition: all 0.5s ease-in-out;
}

.sd-btn.sd-navigation__prev-btn:hover,
.sd-btn--small:hover {
  color: var(--white);
  background-color: var(--primary);
  transition: all 0.5s ease-in-out;

}

.sd-btn--small {
  font-size: 14px;
}

/*Tablets*/
@media (max-width: 1280px) {
  header .texto {
    width: 60%;
  }

  header .img {
    width: 40%;
    height: auto;
  }

  .sd-completedpage {
    padding: 50px;
  }

  .agradecimiento {
    max-width: 80%;
  }
}


@media (max-width: 768px) {
  header .texto {
    width: 50%;
  }

  header .img {
    width: 50%;
    height: auto;
  }

  .sd-html h1,
  .sd-completedpage h1 {
    font-size: 2.2rem;
  }

  .agradecimiento {
    max-width: 100%;
  }

}

/*Mobile*/
@media (max-width: 480px) {

  #sp_6 .sd-body__page>.sd-page__row:not(:first-child) {
    padding-left: 30px;
    padding-right: 30px;
  }

  header {
    padding: 30px 30px 0 30px;
    flex-direction: column;
    gap: 2rem;
  }

  header .texto {
    width: 100%;
  }

  header .img {
    width: 100%;
    height: auto;
  }

  .sd-html h1,
  .sd-completedpage h1 {
    font-size: 2.2rem;
  }

  .sd-html h2 {
    font-size: 1.6rem;
  }


  .agradecimiento {
    max-width: 100%;
  }

  #sv-nav-start {
    padding: 0 30px 30px 30px;
  }
  
  .sd-body.sd-body--responsive .sd-body__navigation {
    flex-direction: column-reverse; /* next arriba, prev debajo */
    align-items: stretch;           /* opcional: que ocupen todo el ancho */
    gap: 10px;                      /* opcional: separación vertical */
  }
  
  #sv-nav-prev,
  #sv-nav-next {
    width: 100%;                    /* opcional: botones a ancho completo */
  }
}


#sp_15_content ul,
#sp_27_content ul,
#header ul {
  padding-inline-start: 0px;
}

#fontControls {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-family: system-ui, sans-serif;
}

#fontControls button {
  margin: 0 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

#fontControls button[data-font="small"] { font-size: 16px; }
#fontControls button[data-font="normal"] { font-size: 18px; }
#fontControls button[data-font="large"] { font-size: 20px; }

#surveyElement .sd-root-modern,
#surveyElement .sd-root-modern p {
  font-size: 1em;
}
