/* Fonts */

@font-face {
  font-family: "DIN";
  src: url("fonts/DIN-RegularAlternate.woff2") format("woff2"),
    url("fonts/DIN-RegularAlternate.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN-Black";
  src: url("fonts/DIN-BlackAlternate.woff2") format("woff2"),
    url("fonts/DIN-BlackAlternate.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN-Medium";
  src: url("fonts/DIN-MediumAlternate.woff2") format("woff2"),
    url("fonts/DIN-MediumAlternate.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DIN-Light";
  src: url("fonts/DIN-LightAlternate.woff2") format("woff2"),
    url("fonts/DIN-LightAlternate.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham-Rounded";
  src: url("fonts/GothamRnd-Light.woff2") format("woff2"),
    url("fonts/GothamRnd-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham-Black";
  src: url("fonts/Gotham-Black.woff2") format("woff2"),
    url("fonts/Gotham-Black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-green-400: #00ff85;
  --color-green-500: #26b95b;
  --color-blue-900: #282f4b;
  --color-blue-850: #2e334b;
  --color-blue-300: #14e0d4;
  --color-blue-400: #02afe1;
  --color-gray-500: #6c757d;
  --color-bg-light: #f5f7fa;
  --color-bg-light-2: #f5f7fa;
  --color-black: #222;
  --color-white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: "Segoe UI", "Arial", sans-serif;
  font-size: 1rem;
}

#app {
  box-sizing: border-box;
  margin: 0 auto;
  position: relative;
  min-height: 100dvh;
}

.view.home {
  background-image: url("images/hero-image.webp"), url("images/bg-kv.webp");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 80%, cover;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  max-width: 550px;
  min-height: 100dvh;
  position: relative;
  width: 100%;
}
.home-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 100dvh;
  padding: 2rem 2rem 1rem;
  position: relative;
}

.home-header {
  text-align: center;
}

.home-title {
  color: var(--color-blue-850);
  font-family: "Gotham-Rounded", sans-serif;
  font-size: clamp(0.8rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 5px;
}

.home-event {
  color: var(--color-blue-900);
  font-family: "DIN-Black", sans-serif;
  font-size: 1.63rem;
  font-size: clamp(1.63rem, 3.5vw, 3.8rem);
  font-weight: bold;
  line-height: 1em;
  margin-top: 1rem;
}

.home-highlight {
  color: var(--color-blue-400);
  font-family: "DIN-Black", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.home-highlight span {
  color: var(--color-green-500);
}

.home-date-image {
  position: absolute;
  left: 5%;
  top: 52%;
  max-width: 90px;
}
.home-date img {
  width: 100%;
  height: auto;
}

.home-date-text {
  display: none;
  position: relative;
}

.max-register-date {
  /* background-color: rgba(255, 255, 255, 0.6); */
  font-family: "DIN-Medium", sans-serif;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--color-blue-850);
  margin-top: 1rem;
  padding: 0.3em;
  border-radius: 5px;
}

.view.home .footer-logo {
  margin: 1rem auto;
}

/* General */

.general-btn {
  background: var(--color-blue-900);
  border: none;
  border-radius: 40px;
  box-shadow: 0 2px 8px rgba(46, 175, 59, 0.15);
  color: var(--color-green-400);
  cursor: pointer;
  font-family: "DIN-Black", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.65rem 2rem;
  position: relative;
  text-decoration: none;
  transition: background 0.2s;
}
.general-btn:hover {
  color: var(--color-white);
}
.general-btn:disabled,
.general-btn[disabled] {
  background: var(--color-gray-500);
  color: var(--color-white);
  cursor: not-allowed;
}

.view.home .general-btn::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 27px;
  position: absolute;
  right: 4px;
  bottom: -2px;
  background: url("images/icons/ico-hand.svg") no-repeat center/cover;
}

.lang-switch {
  align-items: flex-end;
  background: var(--color-blue-850);
  border-radius: 12px 0 0 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 0;
  top: 18px;
  z-index: 1000;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.3s;
}

.lang-switch .lang-icon {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.2rem;
  padding: 0.4rem 0.2rem 0.2rem 0.5rem;
  width: 100%;
}

.lang-switch .lang-icon::after {
  content: "";
  display: block;
  width: 10px;
  height: 6px;
  background: url("images/icons/ico-arrow-down.svg") no-repeat center/cover;
  /* position: absolute; */
}

.lang-switch .lang-buttons {
  display: none;
  flex-wrap: wrap;
  flex-direction: column;
  width: 100%;
}
.lang-switch .lang-buttons.active {
  display: flex;
}

.lang-switch button {
  background: none;
  border: none;
  border-top: 0.5px solid var(--color-white);
  border-radius: 0;
  box-shadow: none;
  color: var(--color-white);
  cursor: pointer;
  font-family: "DIN-Light", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s;
}
.lang-switch button.active {
  color: var(--color-green-400);
}

.button-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  left: 1.5rem;
  top: 2rem;
}

.button-back::after {
  background: url("images/icons/ico-arrow-left.svg") no-repeat center/cover;
  content: "";
  display: inline-block;
  height: 20px;
  width: 11px;
}

.footer {
  color: var(--color-blue-850);
  margin-top: auto;
  position: relative;
  text-align: center;
}

.footer-text {
  font-family: "DIN-Light", sans-serif;
  font-size: clamp(0.8rem, 2vw, 1rem);
  line-height: 1em;
}

.footer-logo {
  width: 250px;
  margin: 2rem auto 1rem;
  display: block;
}

.view.home .footer-logo {
  width: 250px;
  display: block;
}

/* Form View */
.view.form {
}

.view.form .form-header {
  background-color: var(--color-blue-300);
  background-image: url("images/bg-line-marca.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 30dvh;
  padding: 1.5rem;
  position: relative;
  text-align: center;
}

.form-title {
  color: var(--color-white);
  font-family: "Gotham-Rounded", sans-serif;
  font-size: clamp(0.8rem, 3vw, 2.2rem);
  font-weight: 300;
  letter-spacing: 5px;
  margin-top: 1.5rem;
  width: 100%;
}

.form-event {
  color: var(--color-white);
  font-family: "DIN-Black", sans-serif;
  font-size: clamp(1.63rem, 3.5vw, 3.6rem);
  font-weight: bold;
  line-height: 1em;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

.form-highlight {
  color: var(--color-white);
  font-family: "DIN-Black", sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 700;
}

.form-container {
  background-color: var(--color-white);
  min-height: 50dvh;
  padding: 0.8rem 2rem 0;
}

.form-desc {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.2rem 1rem 0;
}
.form-desc p {
  color: var(--color-blue-850);
  font-family: "DIN", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.2em;
  margin: 0;
}

.form-desc .form-note {
  display: block;
  font-family: "DIN-Light", sans-serif;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-weight: 300;
  line-height: 1em;
  margin-top: 0.3rem;
}

.form-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.2rem 1rem 0;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group input,
.form-group select {
  background: var(--color-white);
  border: 1px solid var(--color-blue-850);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--color-blue-850);
  font-size: 1rem;
  font-family: "DIN", sans-serif;
  height: 44px;
  line-height: 1.2em;
  outline: none;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group select::placeholder {
  color: var(--color-blue-850);
  opacity: 1;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-green-500);
}
.form-group select {
  appearance: none;
  background-image: url("images/icons/ico-arrow-blue-down.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 12px;
}

.form-checkbox {
  align-items: center;
  color: var(--color-blue-900);
  display: flex;
  font-size: 0.9rem;
  font-family: "DIN-Medium", sans-serif;
  font-weight: 500;
  line-height: 1em;
}
.form-checkbox input[type="checkbox"] {
  accent-color: var(--color-blue-900);
  border: 2px solid var(--color-blue-900);
  border-radius: 2px;
  box-sizing: border-box;
  height: 26px;
  margin-right: 0.5rem;
  max-width: 30px;
  width: auto;
}
.form-checkbox label {
  display: flex;
  align-items: center;
}
.form-checkbox a {
  color: var(--color-blue-400);
  text-decoration: underline;
  font-weight: 500;
}

/* Form error styles */
.form-error {
  margin-top: 12px;
  color: #d32f2f;
  background: #fff0f0;
  border: 1px solid #d32f2f;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.08);
}
.form-error span {
  display: block;
}

/* Pre-form confirm styles */
.pre-form-confirm {
  background-color: var(--color-white);
  min-height: 30dvh;
  padding: 1.2rem 2rem 1rem;
  max-width: 500px;
  margin: 2rem auto 1rem auto;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40, 47, 75, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pre-form-confirm-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pre-form-question {
  color: var(--color-blue-850);
  font-family: "DIN", sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.2em;
  margin-bottom: 0.5rem;
  text-align: center;
}
.pre-form-desc {
  font-family: "DIN", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 400;
  line-height: 1em;
  margin-top: 1rem;
  text-align: center;
}
.pre-form-select {
  background: var(--color-white);
  border: 1px solid var(--color-blue-850);
  border-radius: 12px;
  color: var(--color-blue-850);
  font-size: 1rem;
  font-family: "DIN-Medium", sans-serif;
  height: 44px;
  padding: 0.6rem 1rem;
  width: 100%;
  margin-top: 1rem;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("images/icons/ico-arrow-blue-down.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 12px;
}
.pre-form-select:focus {
  margin-top: 1rem;
  border-color: var(--color-green-500);
}

.view.form .pre-form-confirm-form .general-btn {
  margin-top: 1rem;
}

/* Decline message styles */
.decline-msg {
  background-color: var(--color-white);
  max-width: 500px;
  margin: 2rem auto 1rem auto;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(40, 47, 75, 0.08);
  color: var(--color-blue-850);
  font-family: "DIN", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  text-align: center;
}

.view.form .general-btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* QR Section */
.view.qr {
  min-height: 100dvh;
}

.view.qr .qr-header {
  background-color: var(--color-blue-300);
  background-image: url("images/bg-line-marca.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 30dvh;
  padding: 2rem 1.5rem;
  position: relative;
  text-align: center;
}

.qr-download {
  background-color: transparent;
  background-image: url("images/icons/ico-download.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border: none;
  cursor: pointer;
  display: block;
  margin-top: 1rem;
  width: 30px;
  height: 30px;
}

.qr-header-bar {
  align-items: center;
  display: flex;
  justify-content: space-around;
  padding-right: 2rem;
}

.qr-header-title {
  color: var(--color-white);
  font-family: "DIN-Black", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);
  font-weight: 400;
  text-align: left;
  width: 100%;
}

.qr-header-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
}

.qr-header-img .qr-img {
  background: var(--color-white);
  display: block;
  height: 180px;
  margin-top: 1rem;
  width: 180px;
}

.qr-header-subtitle,
.qr-header-note {
  color: var(--color-white);
  font-family: "DIN-Medium", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2em);
  font-weight: 400;
  margin-top: 1rem;
  max-width: 500px;
  text-align: center;
  width: 100%;
}

.qr-header-subtitle b{
  font-family: 'DIN-Black', sans-serif;
  font-weight: 900;
  /* text-decoration: ; */
}

.qr-header-note {
  margin-top: 1rem;
}

.qr-content {
  padding: 2rem;
  margin: 0 auto;
  max-width: 400px;
}

.qr-content-title {
  color: var(--color-blue-850);
  text-align: center;
}
.qr-content-prepare {
  font-family: "DIN-Light", sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 1.5em);
}
.qr-content-event,
.qr-content-highlight {
  font-family: "DIN-Black", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1em;
}

.qr-content-user {
  font-family: "DIN-Medium", sans-serif;
  font-size: 1.25em;
  margin-top: 1rem;
}

.qr-content-user > div {
  border-bottom: 1px solid var(--color-blue-300);
  padding: 0.7em 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
}
.qr-content-user .qr-user-name {
}
.qr-content-user .qr-user-location,
.qr-content-user .qr-user-company,
.qr-content-user .qr-user-position,
.qr-content-user .qr-user-route {
  border: none;
  background-image: linear-gradient(
    to right,
    var(--color-blue-300) 33%,
    rgba(255, 255, 255, 0) 0%
  );
  background-position: bottom;
  background-size: 3px 1px;
  background-repeat: repeat-x;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.qr-content-user .qr-user-route {
  display: flex;
  gap: 20px;
}
.qr-content-user .qr-user-route .qr-user-arrow {
  align-items: center;
  display: flex;
}

.qr-content-final-desc {
  color: var(--color-blue-850);
  font-family: "DIN", sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  text-align: center;
  margin-top: 1.5rem;
}

/* Media Queries */
@media (min-width: 1024px) {
  .view.home {
    background: var(--color-blue-300);
    flex-direction: row;
    max-width: 100%;
  }

  .home-container {
    background-image: url("images/bg-line-marca-desktop.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 130% 100%;
    flex: 1 1 0;
    padding: 7rem 4rem 5rem;
  }
  .home-header {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .home-desktop-img {
    border-radius: 150px 0 0 0;
    background-image: url("images/hero-image.webp"), url("images/bg-kv.webp");
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    flex: 1 1 0;
  }

  .home-title,
  .home-event,
  .home-highlight,
  .home-highlight span,
  .footer-text {
    color: var(--color-white);
  }

  .home-highlight {
    margin-top: 1rem;
  }

  .home-date-image {
    display: none;
  }

  .home-date-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--color-white);
    font-weight: 900;
    font-family: "Gotham-Black", sans-serif;
    font-size: clamp(1rem, 1.8vw, 3rem);
    line-height: 1.2em;
    padding-right: 3rem;
    margin: 4rem auto 0;
    max-width: 500px;
    text-align: left;
  }

  .home-date-text::after {
    content: "";
    display: inline-block;
    width: clamp(90px, 100px, 110px);
    height: clamp(90px, 100px, 110px);
    margin-left: 0.5rem;
    position: absolute;
    right: -34px;
    top: -36px;
    background: url("images/icons/ico-calendar.webp") no-repeat center/cover;
  }

  .max-register-date {
    background-color: transparent;
    color: var(--color-white);
  }

  .view.home .footer-logo {
    margin: 5rem auto 1rem;
  }

  .view.home .general-btn {
    min-width: 480px;
    padding: 0.8rem 2.5rem;
  }

  .view.home .general-btn::after {
    width: 36px;
    height: 40px;
    right: 10px;
    bottom: -10px;
  }

  /* Form View Desktop */
  .view.form {
    background: var(--color-blue-300);
    display: flex;
    flex-direction: row;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    width: 100%;
  }
  .view.form .form-header {
    background-image: url("images/bg-line-marca-desktop.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 130% 100%;
    flex: 1 1 0;
    padding: 3rem 4rem 5rem;
  }

  .form-container {
    align-items: center;
    background: var(--color-white);
    border-radius: 150px 0 0 0;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    padding: 6rem;
    min-height: 100dvh;
  }

  .form-container .footer {
    margin-top: 0;
    order: 1;
  }

  .footer-logo {
    width: 250px;
  }

  .form-group-container {
    order: 2;
  }

  .form-event {
    margin-top: 1.4rem;
  }

  .form-highlight {
    /* margin-top: .rem; */
  }

  .view.qr {
    background: var(--color-blue-300);
    display: flex;
    flex-direction: row;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
    width: 100%;
  }
  .view.qr .qr-header {
    background-image: url("images/bg-line-marca-desktop-3.webp");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 130% 100%;
    flex: 1 1 0;
    padding: 3rem 4rem 5rem;
  }

  .qr-header .qr-download {
    /* background-image: url("images/icons/ico-download-blue.svg"); */
    /* position: fixed;
    top: 1.5rem;
    right: 4rem; */
    height: 40px;
    width: 40px;
  }

  .qr-header-bar {
    padding-right: 0;
  }

  .qr-header-title {
    text-align: center;
  }

  .qr-header .qr-img {
    box-shadow: 0px 0px 15px 10px rgba(0, 0, 0, 0.1);
    height: 250px;
    width: 250px;
  }

  .qr-content {
    align-items: center;
    background-color: var(--color-white);
    background-image: url("images/bg-line-marca-desktop-pass.webp");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    border-radius: 150px 0 0 0;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    padding: 6rem;
    max-width: none;
    min-height: 100dvh;
  }
  .qr-content-user {
    min-width: 350px;
  }

  .button-back {
    left: 2.5rem;
    top: 3rem;
  }
}

@media (min-width: 1400px) {
  .home-container,
  .view.form .form-header,
  .view.qr .qr-header {
    background-size: cover;
  }
}

/* --- 404 --- */
.error404-container {
  background-color: var(--color-blue-300);
  background-image: url("images/bg-line-marca-desktop.webp");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem 4rem;
}

.error404-title {
  font-size: 2.5em;
  color: var(--color-white);
  margin-bottom: 16px;
  font-family: "DIN-Black", DIN, Arial, sans-serif;
}
.error404-desc {
  color: var(--color-white);
  font-family: "DIN-Medium", DIN, Arial, sans-serif;
  font-size: 1.2em;
  margin-bottom: 32px;
}
.error404-btn:hover {
  background: var(--color-green-400, #00ff85);
  color: #1a3c34;
}

.error404-logo {
  max-width: 250px;
  margin-top: 2rem;
}
/* --- End 404 --- */
