/* @Jael Orea para FCS */
@import url('https://fonts.googleapis.com/css2?family=Krub:wght@200;300;400;500;600;700&display=swap');

:root {
  --color-primario: #3498db;
  --color-secundario: #28292a;
  --color-terciario: #e74c3c;
  --color-fondo: #f8f9fa;
  --color-texto: #333;
  --color-borde: #dfe6e9;
  --color-exito: #2ecc71;
  --color-advertencia: #f39c12;
  --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transicion: all 0.3s ease;
  --radio-borde: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Krub', sans-serif;
  line-height: 1.1;
  color: var(--color-texto);
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom, #D2E04C, #5EDDC0);
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: 100%;
  min-height: 600px !important;
  overflow-y: auto;
}

main {
  flex-grow: 1;
  min-height: 600px;
  height: auto;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.container {
  max-width: 900px;
  /*width: 95%;*/
  margin: 10px auto;
  background-color: white;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra);
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
}

.header {
  background-color: var(--color-secundario);
  color: white;
  padding: 10px;
  text-align: center;
  border-bottom: 4px solid var(--color-secundario);
}

.header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.header p {
  font-size: 0.85rem;
  opacity: 0.9;
}

.decision-container {
  /*padding: 10px;*/
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  /*margin-bottom: 5px;
  width: 95%;*/
  /*max-height: calc(100vh - 160px);*/
  overflow-y: auto;
}

.decision-path {
  background-color: var(--color-secundario);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.box-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 200px;
  margin-top: 5px;
}

.decision-node {
  display: none;
  animation: fadeIn 0.5s ease;
  padding: 10px;
}

.decision-node.active {
  display: block;

  display: grid;
  place-items: center;
}

.question {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-secundario);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-borde);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.options::-webkit-scrollbar {
  width: 5px;
}

.options::-webkit-scrollbar-thumb {
  background-color: var(--color-primario);
  border-radius: 10px;
}

.restart-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: white;
  background-color: #D94BD5;
  cursor: pointer;
  border: 2px solid black;
  padding: 8px 10px;
  border-radius: var(--radio-borde);
  font-weight: 500;
  text-align: left;
  transition: var(--transicion);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 95%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  min-height: 40px;
  display: flex;
  align-items: center;

  /*justify-content: center;
  text-align: center;*/
}

.option-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: white;
  background-color: #D94BD5;
  cursor: pointer;
  border: 2px solid black;
  padding: 8px 10px;
  border-radius: var(--radio-borde);
  font-weight: 500;
  text-align: left;
  transition: var(--transicion);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: fit-content;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  min-height: 30px !important;
  display: flex;
  align-items: center;

  /*justify-content: center;
  text-align: center;*/
}

.back-btn {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: white;
  background-color: #D94BD5;
  cursor: pointer;
  border: 2px solid black;
  padding: 8px 10px;
  border-radius: var(--radio-borde);
  font-weight: 500;
  text-align: left;
  transition: var(--transicion);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: fit-content;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  min-height: 30px !important;
  display: flex;
  align-items: center;

  /*justify-content: center;
  text-align: center;*/
}

.option-btn:hover {
  border: 2px solid #D94BD5;
  background-color: black;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 7px 1px #FF1493;
}

.back-btn, .restart-btn {
  background-color: #95a5a6;
}

.back-btn:hover, .restart-btn:hover {
  background-color: #7f8c8d;
}

.restart-btn {
  background-color: var(--color-terciario);
}

.restart-btn:hover {
  background-color: #c0392b;
}

.feedback {
  background-color: var(--color-fondo);
  /*border-left: 4px solid var(--color-primario);*/
  padding: 10px;
  margin: 10px 0;
  border-radius: 0 var(--radio-borde) var(--radio-borde) 0;
  text-align: left;
  font-size: 0.85rem;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.feedback-title {
  color: var(--color-secundario);
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--color-borde);
  text-align: center;
}

.steps {
  margin-left: 15px;
  margin-bottom: 10px;
}

.steps li {
  margin-bottom: 6px;
  font-size: 0.85rem;
}

.steps strong {
  color: var(--color-secundario);
}

.example {
  background-color: #e8f4f8;
  padding: 10px;
  border-radius: var(--radio-borde);
  margin-top: 10px;
  /*border-left: 3px solid var(--color-primario);*/
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 0.85rem;
}

.example h4 {
  color: var(--color-secundario);
  margin-bottom: 5px;
  font-size: 1rem;
}

.example p {
  margin-bottom: 5px;
}

.example strong {
  font-weight: 600;
}

.example.active {
  max-height: 400px;
  padding: 10px;
  margin-top: 10px;
}

.footer {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 15px;
}

/*.footer {
  background-color: var(--color-secundario);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.footer p:first-child {
  font-weight: 500;
  margin-bottom: 2px;
}*/

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleBounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-3px);
  }
}

.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.flex-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}

.option-btn.highlight {
  animation: subtleBounce 0.6s ease;
  background-color: var(--color-exito);
}

.mainBtn {
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: white;
  /*background-color: #D94BD5;*/
  background-color: #95a5a6;
  cursor: pointer;
  border: 2px solid black;
  padding: 8px 10px;
  border-radius: var(--radio-borde);
  font-weight: 500;
  text-align: left;
  transition: var(--transicion);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: fit-content;
  white-space: normal;
  word-break: break-word;
  line-height: 1.1;
  min-height: 30px !important;
  display: flex;
  align-items: center;

  /*justify-content: center;
  text-align: center;*/
}

.mainBtn:hover {
  border: 2px solid #D94BD5;
  background-color: black;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 0 7px 1px #FF1493;
}
/*
.mainBtn {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  color: white;
  background-color: black;
  cursor: pointer;
  border: 3px solid #D94BD5;
  padding: 0.25em 0.5em;
  margin-top: 10px;
  font-weight: 600;
}

.mainBtn:hover {
  border: 3px solid #D94BD5;
  background-color: black;
  color: white;
  transform: scale(1.07);
  box-shadow: 0 0 7px 1px #FF1493;
}
*/
.m01 {
  margin-left: 5px;
  margin-right: 5px;
}

.widthOptions {
  width: 90% !important;
}

/* Imágenes */
.logo {
  width: auto;
  max-width: 200px;
}

@media (max-width: 900px) {

}

@media (max-width: 700px) {

}