@font-face {
  font-family: OpenSans-Bold;
  src: url(/fonts/OpenSans-Bold.ttf);
  font-display: swap;
}

@font-face {
  font-family: OpenSans-Regular;
  src: url(/fonts/OpenSans-Regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: Baloo2-Regular;
  src: url(/fonts/Baloo2-Regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: Baloo2-Bold;
  src: url(/fonts/Baloo2-Bold.ttf);
  font-display: swap;
}

* {
  box-sizing: border-box;
}

:root {
  --background-color: #fafbff;
  --text-color: #000000;
  --text-launch: "OpenSans-Regular";
  --text-Open-Bold: "OpenSans-Bold";
  --baloo-regular: "Baloo2-Regular";
  --baloo-bold: "Baloo2-Bold";
}

.black {
  font-family: var(--text-Open-Bold);
}

.header-main {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 85%;
  margin: 3rem auto;
}

/* modos dark-mode */

body.dark-theme
  > .main-content
  > .container_launcher
  > .launchers
  > .launch-wrapper:hover {
  background: rgba(204, 209, 213, 0.4);
  box-shadow: 0px -4px 40px 0px rgba(92, 99, 128, 0.15);
}

body.dark-theme
  > .main-content
  > .container_launcher
  > .launchers
  > .launch-wrapper
  > p {
  color: white;
}

body.dark-theme
  > .main-content
  > .search_bar
  > form
  > .search_label
  > .search_input {
  border-radius: 2rem;
  border: 1px solid var(--Neutrals-Blue-700, #7d828c);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0px -4px 40px 0px rgba(92, 99, 128, 0.15);
  color: #fff;
}

body.dark-theme
  > .main-content
  > .search_bar
  > form
  > .search_label
  > .search_input:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: -2px -2px 4px 0px rgba(255, 88, 108, 0.2),
    -1px 2px 8px 0px rgba(255, 174, 0, 0.4),
    2px -2px 8px 0px rgba(90, 129, 247, 0.5);
}

body.dark-theme
  > .main-content
  > .search_bar
  > form
  > .search_label
  > .search_input::placeholder {
  color: #fff;
}

body.dark-theme
  > .main-content
  > .search_bar
  > form
  > .search_btn
  > .search_icon {
  content: url(/img/lupe_dark_mode.svg);
}

/* Center of main container */
body {
  box-sizing: border-box;
  margin: auto 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container for the theme toggle */
body.dark-theme {
  background: #1c1b31;
  --text-color: #fafbff;
}

body.light-theme {
  background: #fafbff;
  --text-color: #000000;
}

.toggle {
  position: relative;
  width: 96px;
  height: 32px;
  background: #201f45;
  border: 1px solid #ccd1d5;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.toggle-icon {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  pointer-events: none;
  gap: 0.6rem;
}

.toggle-icon img {
  width: 17px;
  height: auto;
}

.circle {
  display: none;
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  pointer-events: none;
}

.moon .circle {
  transform: translateX(-32px) rotate(90deg);
  display: block;
}

.auto .circle {
  transform: translateX(0px) rotate(0deg);
  display: block;
}

.sun .circle {
  transform: translateX(32px) rotate(-90deg);
  display: block;
}

.circle svg {
  width: 100%;
  height: auto;
}

.circle svg ellipse {
  transition: fill 0.5s ease;
}

.moon .circle svg ellipse {
  fill: #dfe7ff;
}

.auto .circle svg ellipse {
  fill: #f6f6f7;
}

.sun .circle svg ellipse {
  fill: #f4bd48;
}

/* Main content */

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.container_launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem auto;
}

/*logo */
.logo_container {
  min-height: 143px;
}

.logo_container img {
  margin-bottom: 1.1rem;
}

/* Bar Search */
.search_bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  position: relative;
}

.search_input {
  padding: 11px 44px 11px 22px;
  width: 500px;
  border: 1px transparent;
  border-radius: 2rem;
  outline: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0px -4px 40px 0px rgba(92, 99, 128, 0.15);
  background: rgba(255, 255, 255, 0.8);
}

.search_input:focus {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: -2px -2px 4px 0px rgba(255, 88, 108, 0.2),
    -1px 2px 8px 0px rgba(255, 174, 0, 0.4),
    2px -2px 8px 0px rgba(90, 129, 247, 0.5);
}

.search_btn {
  position: absolute;
  right: 10px;
  top: 7px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search_btn img {
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Elaunchers */
.launchers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.launch-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px;
  min-height: 143px;
  position: relative;
  transition: transform 0.5s ease;
  border: 1px transparent solid;
  border-radius: 1rem;
  background-color: transparent;
  padding: 0.8rem;
}

.launch-wrapper:hover {
  transform: scale(1.05);
  transition: transform 0.5s ease;
  border-radius: 1rem;
  background: var(--Neutrals-Blue-300, #ccd1d5);
  box-shadow: 0px -4px 40px 0px rgba(92, 99, 128, 0.15);
}

.launch-wrapper a {
  cursor: pointer;
}

.launch-wrapper .info-icon {
  cursor: pointer;
}

.launch-wrapper {
  cursor: default;
}

.launch-wrapper img {
  max-width: 72px;
  height: auto;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 0.65rem;
  padding: 0.5rem;
}

.launch-wrapper > p {
  margin-bottom: 0;
  font-size: 13.2px;
  font-family: var(--text-launch);
  text-align: center;
}

/* Style for the info icon */
.info-icon {
  font-size: 12px;
  position: absolute;
  top: 7px;
  right: 7px;
  cursor: pointer;
  background-color: #000;
  color: white;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: none;
  justify-content: center;
  align-items: center;
  display: flex;
  text-align: center;
  z-index: 10;
}

/* Show info icon when hovering over the container */
.launch-wrapper:hover .info-icon {
  display: flex;
  pointer-events: auto;
}

/* Tooltip/Popup styling */

.info-popup {
  display: none;
  position: absolute;
  top: -85px;
  right: -20px;
  background-color: #303136;
  border: 1px solid rgba(204, 209, 213, 0.4);
  padding: 0.5rem;
  width: 160px;
  border-radius: 5px;
  box-shadow: 0px -4px 40px 0px rgba(92, 99, 128, 0.15);
  z-index: 100;
  text-align: center;
  pointer-events: none;
}

.info-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px;
  border-color: #303136 transparent transparent transparent;
}

.info-popup::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px;
  border-color: rgba(204, 209, 213, 0.4) transparent transparent transparent;
  z-index: -1;
}

/* Visible state of the pop-up */
.info-popup.visible {
  display: block;
  pointer-events: auto;
}

.info-popup p {
  margin: 0;
  font-size: 10px;
  color: #fff;
  font-family: var(--text-launch);
}

/* footer */
.footer-content {
  width: 100%;
  background-color: #1c1b31;
  color: #fff;
  padding: 15px 0;
  display: flex;
  justify-content: flex-end;
}

.links-legals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 23px;
}

.links-legals a {
  font-family: var(--text-launch);
  line-height: 16px;
  color: #f6f6f7;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.links-legals a:hover {
  text-decoration: underline;
}

.browser-footer-2024 {
  display: flex;
  align-items: center;
  text-align: center;
  margin-right: 15px;
}

.browser-footer-2024 > span {
  font-size: 0.8rem;
  margin: 0 15px;
}

.browser-footer-2024 p {
  margin: 0;
  font-family: var(--text-launch);
  font-size: 14px;
  line-height: 16px;
}

/* Legal pages: privacy */

.legal-pages {
  width: 100%;
  background-color: #1c1b31;
  padding: 12px;
}

.header-container-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  margin: 1rem auto;
}

.theme-toggle-L {
  display: flex;
  gap: 10px;
}

.main-content-legal {
  width: 70%;
  margin: 3rem auto;
}

.title-legal {
  font-size: 2.5rem;
  color: #201f45;
}

.legal-h2 {
  font-size: 1.5rem;
  color: #201f45;
}

.legal-p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

/* navigate with keyboards or screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* back home button */

.back-button {
  display: inline-flex;
  margin: 10px;
  padding: 0;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  letter-spacing: 0.025rem;
  color: #1346e0;
  border-radius: 3.375rem;
  background: none;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.back-button:hover {
  color: #0e1671;
}

/* dark mode privacy page */

body.dark-theme > .main-content-legal {
  background-color: #1c1b31;
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme p {
  color: #f6f6f7;
}

body.dark-theme address {
  color: #f6f6f7;
}

body.dark-theme address a {
  color: #f6f6f7;
  text-decoration: underline;
}

body.dark-theme address a:hover {
  color: #e0e0e0;
}

body.dark-theme section a {
  color: #e0e0e0;
}

.email-l {
  color: #121b2f;
  text-decoration: underline;
}

body.dark-theme hr {
  border-color: #f6f6f7;
}

body.dark-theme table {
  color: #f6f6f7;
  border-color: #f6f6f7;
}

body.dark-theme th,
body.dark-theme td {
  border: 1px solid #f6f6f7;
  padding: 8px;
}

body.dark-theme ul,
body.dark-theme ol {
  color: #f6f6f7;
}

body.dark-theme li {
  color: #f6f6f7;
}

body.dark-theme button.back-button {
  color: #afbbe0;
}

body.dark-theme button.back-button:hover {
  color: #e0e0e0;
}

/* page 404 */
body.light-theme .page-404 {
  background-image: url(/img/img_backgound_404.png);
}

body.dark-theme .page-404 {
  background-image: url(/img/404_background.png);
}

body.dark-theme .page-404,
body.light-theme .page-404 {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-404 {
  flex: 1;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  margin: 0;
}

.content-404 {
  width: 90%;
  margin: 3rem auto;
  text-align: center;
  flex-direction: column;
  z-index: 2;
}

.error-title {
  line-height: 1;
  color: #5a81f7;
  font-family: var(--baloo-regular);
  font-size: 11rem;
  margin: 4rem auto 1rem;
  text-align: center;
}

body.dark-theme .content-404 > .error-title {
  color: #5a81f7;
}

.error-subtitle {
  color: #303136;
  font-family: var(--baloo-bold);
  font-size: 3rem;
  line-height: 150%;
  margin: 0rem auto 0.5rem;
  text-align: center;
}

body.dark-theme .content-404 > .error-subtitle {
  color: #f6f6f7;
}

.error-message {
  color: #636770;
  font-family: var(--baloo-regular);
  font-size: 1.75rem;
  margin: 0rem auto 3rem auto;
}

body.dark-theme .content-404 > .error-message {
  color: #f6f6f7;
}

.error-button {
  display: inline-flex;
  padding: 0.8rem 2rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 3.375rem;
  background: #ff8a98;
  box-shadow: -1px -1px 1px 0px rgba(255, 88, 108, 0.2),
    -1px 1px 1px 0px rgba(255, 174, 0, 0.4),
    1px -1px 1px 0px rgba(90, 129, 247, 0.5);
  border: none;
  color: #161366;
  font-family: var(--text-launch);
  font-size: 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.error-button:hover {
  border-radius: 3.375rem;
  background: #fff;
  box-shadow: -6px -6px 4px 0px rgba(255, 88, 108, 0.2),
    -5px 6px 8px 0px rgba(255, 174, 0, 0.4),
    6px -1px 8px 0px rgba(90, 129, 247, 0.5);
}

/* imprint */

.imprint-page section h1 {
  margin-bottom: 0;
}

.imprint-page {
  flex: 1;
}

/* Responsive */
@media screen and (max-width: 1500px) {
  .container_launcher {
    width: 95%;
    margin: 1rem auto;
  }

  .launchers {
    gap: 5px;
}

  .header-main {
    margin: 1.5rem auto;
  }

  .main-content {
    justify-content: flex-start;
  }

  .logo_container img {
    width: 225px;
    height: auto;
  }

  .logo_container {
    min-height: auto;
  }

  .logo_container img {
    margin-bottom: 0.75rem;
  }

  .launch-wrapper {
    width: 100px;
    min-height: 130px;
    padding: 0.6rem;
  }
}

@media screen and (min-width: 1024px) and (max-height: 800px) {
  .error-title {
    font-size: 9rem;
    line-height: 0.8;
    margin: 0 auto 1rem;
  }

  .error-subtitle {
    font-size: 2rem;
  }

  .error-message {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 1024px) {
  /* Responsive legal page*/
  .main-content-legal {
    width: 88%;
    margin: 2rem auto 3rem auto;
  }

  .header-container-legal {
    width: 90%;
  }

  .title-legal {
    font-size: 2rem;
    color: #201f45;
  }

  /* Responsive 404 page*/
  .error-title {
    font-size: 6rem;
    margin-top: 0;
  }

  .error-subtitle {
    font-size: 2rem;
    line-height: 1.3;
  }

  .error-message {
    font-size: 1.6rem;
  }

  .error-message {
    font-size: 1.4rem;
    margin-bottom: 2rem;
  }

  .page-404 {
    min-width: 100vw;
    margin: 0;
  }

  body.dark-theme .page-404,
  body.light-theme .page-404 {
    background-position: 100%;
  }

  .content-404 {
    margin: 2rem auto;
    height: fit-content;
  }

  .error-button {
    font-size: 1rem;
  }
}

@media screen and (max-width: 600px) {
  .links-legals {
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
  }

  .footer-content {
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  .browser-footer-2024 {
    margin-right: 0;
    margin-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .browser-footer-2024 > span {
    display: none;
  }

  .browser-footer-2024 {
    width: 90%;
  }
}

@media screen and (max-width: 550px) {
  /* responsive home page */
  .container_launcher {
    width: 100%;
  }

  .header-main {
    width: 93%;
    margin: 2rem auto;
  }

  .logo_container {
    min-height: 112.83px;
  }

  .logo_container > img {
    width: 230px;
    height: auto;
    margin-top: 2rem;
  }

  .search_input {
    width: 400px;
  }

  .main-content {
    width: 85%;
    margin: 0 auto;
  }

  /* Responsive legal page */
  .title-legal {
    font-size: 1.5rem;
  }

  .legal-p {
    font-size: 1rem;
  }

  .legal-h2 {
    font-size: 1.3rem;
  }

  .back-button {
    font-size: 1.1rem;
  }

  .logo-legal {
    width: 120px;
    height: auto;
  }

  /* Responsive 404 page*/
  .error-message {
    font-size: 1.2rem;
  }

  .error-subtitle {
    font-size: 1.7rem;
  }

  body.dark-theme .page-404,
  body.light-theme .page-404 {
    background-position: right;
  }
}

@media screen and (max-width: 425px) {
  /* responsive home page */
  .search_input {
    width: 321px;
    font-size: 16px;
  }

  .search_btn {
    right: 8px;
    top: 7px;
  }

  .search_input::placeholder {
    font-size: 14px;
  }

  .logo_container {
    min-height: 98.11px;
  }

  .logo_container > img {
    width: 200px;
    height: auto;
    margin-top: 2rem;
  }

  /* Responsive 404 page*/
  .error-subtitle {
    font-size: 1.5rem;
  }

  .error-message {
    font-size: 1rem;
  }

  .error-button {
    padding: 0.5rem 2rem;
  }
}

@media screen and (max-width: 400px) {
  /* launcher */
  .info-popup::after,
  .info-popup::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 355px) {
  /* responsive home page */
  .search_input {
    width: 285px;
  }

  /* Responsive legal page */
  .legal-h2 {
    font-size: 1.2rem;
  }

  .title-legal {
    font-size: 1.3rem;
  }

  .legal-pages {
    padding: 10px;
  }

  .header-container-legal {
    margin: 0.3rem auto;
    width: 94%;
  }

  /* 404 page */
  .content-404 {
    width: 93%;
  }

  .error-subtitle {
    font-size: 1.3rem;
  }
}
