/* Reset básic */
/* stylelint-disable plugin/file-max-lines, no-descending-specificity */
html {
  font-size: clamp(14px, 0.9vw, 18px);
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #234fc2;
  font-size: 1rem;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Secció HOME +HOW */
.home-how-wrapper {
  position: relative;
  width: 100%;
}

/* Secció HOME + HERO */

/* Secció HOME */
.home {
  width: 100%;
  margin: 0 auto;
  padding: clamp(0.2rem, 0.8vw, 0.6rem) 1.5rem clamp(0.6rem, 1.5vw, 1.2rem);
  background-color: #234fc2;
  min-height: 80svh;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Moved to global.css - shared wrapper for navbar */

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: clamp(3rem, 4vw, 3.5rem);
  height: clamp(3rem, 4vw, 3.5rem);
  background-color: #93b1ee;
  color: #1a3a8f;
  border: none;
  border-radius: 50%;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

.scroll-to-top:hover {
  background-color: #7a9de4;
  transform: translateY(-4px);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* Header amb icono, menú i contacte */
.home-header {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  align-items: center;
  column-gap: clamp(0.5rem, 1vw, 1.2rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

.authory-icona-sense-ombra {
  width: clamp(50px, 5vw, 80px);
  height: auto;
  transform: translateY(-0.35rem);
  justify-self: end;
  margin-right: 1rem;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #93b1ee;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 26px;
  height: 2px;
  background-color: #fbf2e3;
  border-radius: 5px;
}

/* Menú de navegació */
.menu {
  background-color: #93b1ee;
  border-radius: clamp(12px, 1.3vw, 16px);
  padding: clamp(0.5rem, 1vw, 0.8rem) clamp(1.9rem, 2.8vw, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.6rem, 3vw, 3.2rem);
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.menu a {
  color: #1a3a8f;
  font-size: clamp(16px, 1.3vw, 28px);
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
  font-family: Lexend, sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.menu a:hover {
  opacity: 95%;
}

/* English del menú: oculto por defecto (desktop) */
.menu-lang {
  display: none;
}

/* Efecte underline en items del menú */
.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background-color: #234fc2;
  transition: width 0.25s ease;
}

.nav-underline:hover::after {
  width: 100%;
}

/* Demo button - primary CTA style (integrated design) */
.nav-demo-btn {
  background-color: #ed513b !important;
  color: #fbf2e3 !important;
  padding: clamp(0.5rem, 1vw, 0.8rem) clamp(1.5rem, 2.5vw, 2rem) !important;
  border-radius: clamp(10px, 1.2vw, 14px);
  font-weight: 650 !important;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgb(237 81 59 / 25%);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.35rem, 0.5vw, 0.5rem);
}

.nav-demo-btn i {
  font-size: clamp(13px, 1.15vw, 18px);
}

.nav-demo-btn:hover {
  opacity: 1 !important;
  background-color: #d94330 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgb(237 81 59 / 35%);
}

.nav-demo-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgb(237 81 59 / 25%);
}

/* Contact button - secondary CTA style (integrated design) */
.home .contact {
  background-color: transparent;
  border: 2px solid #93b1ee;
  border-radius: clamp(10px, 1.2vw, 14px);
  padding: clamp(0.4rem, 0.9vw, 0.7rem) clamp(1.5rem, 2.5vw, 2rem);
  font-style: normal;
  align-items: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.home .contact:hover {
  background-color: rgb(147 177 238 / 15%);
  border-color: #a5bdf0;
  transform: translateY(-1px);
}

.nav-5 {
  font-family: Lexend, sans-serif;
  font-weight: 600;
  color: #fbf2e3;
  font-size: clamp(16px, 1.3vw, 20px);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.nav-5:hover {
  color: #fff;
}

/* Contenidor principal HERO */
.home-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}

/* Columna esquerra: text principal */
.home-left {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 100%;
}

.hero-title {
  position: relative;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 5.5rem);
  line-height: 1.15;
  text-align: center;
  margin: 0 auto;
  font-family: Lexend, sans-serif;
  font-weight: 400;
  display: inline-block;
}

.hero-title .home-line-1 {
  white-space: normal;
}

/* Wrapper per a "yours" amb underline */
.yours-wrapper {
  position: relative;
  display: inline-block;
}

.yours-text {
  position: relative;
  z-index: 2;
}

.home-underline-yours {
  position: absolute;
  left: 0.35em;
  bottom: -0.03em;
  width: 85%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Exclamació decorativa esquerra */
.home-exclamation-left {
  position: absolute;
  top: 0.3em;
  right: -1.1em;
  width: 0.75em;
  transform: rotate(-8deg);
  transform-origin: center;
  pointer-events: none;
}

/* Fletxa decorativa entre HOME y HOW */
.home-arrow {
  position: absolute;
  left: 50%;
  top: calc(100% + clamp(-1em, 0.5vw, 0.5em));
  transform: translateX(-50%);
  width: clamp(110px, 8vw, 280px);
  height: auto;
  pointer-events: none;
}

/* Columna dreta: icono i botó */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 3rem);
}

.authory-logo-vertical {
  width: clamp(200px, 20vw, 420px);
  height: auto;
}

/* Botó "More info" */
.button {
  background-color: #fbf2e3;
  border-radius: clamp(30px, 4vw, 45px);
  padding: clamp(0.45rem, 0.8vw, 0.7rem) clamp(2.2rem, 3.2vw, 3.8rem);
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.hero-right .button {
  position: relative;
  top: -0.5rem;
}

.button:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgb(8 6 128 / 85%);
}

.button a {
  text-decoration: none;
  color: #234fc2;
}

.info {
  color: #234fc2;
  font-size: clamp(14px, 1.2vw, 22px);
  margin: 0;
  white-space: nowrap;
  font-family: Lexend, sans-serif;
  font-weight: 400;
  position: relative;
  top: -0.1em;
}

/* Secció HOW (Explicació del producte) */
.how {
  width: 100%;
  min-height: 100vh;
  background-color: #fbf2e3;
  padding: clamp(4rem, 6vw, 8rem) clamp(2rem, 6vw, 8rem);
  display: flex;
  justify-content: center;
}

.how > * {
  max-width: clamp(1000px, 85vw, 1400px);
  width: 100%;
  position: relative;
}

/* Contenedor de textos */
.how-content {
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  color: #234fc2;
  font-size: clamp(1.7rem, 2.7vw, 3rem);
  margin-inline: clamp(1.5rem, 6vw, 8rem);
  position: relative;
  font-family: Lexend, sans-serif;
  line-height: 1.1;
}

.how-content p {
  position: relative;
  z-index: 1;
}

/* Estil de resaltat dels textos/ Paraules destacades en blau */
.highlight {
  font-variation-settings: "wght" 600;
}

.highlight-bold {
  font-variation-settings: "wght" 700;
}

/* --- TEXT 1: "When students rely on AI..." --- */
.how-text-1 {
  position: relative;
  text-align: left;
  font-variation-settings: "wght" 300;
  letter-spacing: 0.015em;
  width: fit-content;
  max-width: 21ch;
  margin: clamp(2rem, 4vw, 4rem) 0 clamp(2rem, 3vw, 3rem) clamp(0rem, 2vw, 5rem);
}

.how-text-1 p {
  font-weight: 300;
  letter-spacing: 0.01em;
}

.how-exclamation-left {
  position: absolute;
  top: 1em;
  left: -2em;
  width: 1.5em;
  height: auto;
  pointer-events: none;
}

.students-wrapper {
  position: relative;
  display: inline-block;
}

.how-underline-students {
  position: absolute;
  left: 0;
  bottom: -0.09em;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.lose-wrapper {
  position: relative;
  display: inline-block;
  z-index: 2;
}

.how-crossout-lose {
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.how-cross-lose {
  position: absolute;
  left: 50%;
  bottom: -0.8em;
  transform: translateX(-50%);
  width: 0.55em;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* --- TEXT 2: "With Authory, knowledge..." --- */
.how-text-2 {
  text-align: right;
  max-width: 22ch;
  align-self: flex-end;
  position: relative;
  overflow: visible;
  margin-right: clamp(0rem, 1vw, 6rem);
  margin-bottom: 0;
}

.how-text-2 p {
  font-variation-settings: "wght" 300;
  letter-spacing: 0.01em;
}

.authory-wrapper {
  position: relative;
  display: inline-block;
  overflow: visible;
  z-index: 2;
}

.authory-text,
.more-than-text {
  position: relative;
  z-index: 2;
}

.how-enclose-authory {
  position: absolute;
  top: 50%;
  left: 58%;
  transform: translate(-60%, -50%);
  max-width: none;
  width: clamp(4.5em, 10vw, 25em);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* --- TEXT 3: "It is the way to give students..." --- */
.how-text-3 {
  text-align: right;
  max-width: 25ch;
  align-self: flex-end;
  margin-top: clamp(-2rem, -2.5vw, -3rem);
  margin-right: clamp(0rem, 1vw, 6rem);
  margin-bottom: clamp(3rem, 5vw, 6rem);
}

.how-text-3 p {
  letter-spacing: 0.01em;
  font-variation-settings: "wght" 300;
}

.cannot-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.cannot-underline-wrapper {
  position: relative;
  display: inline-block;
}

.cannot-text,
.copied-text {
  position: relative;
  z-index: 2;
  font-weight: inherit;
}

.how-underline-cannot {
  position: absolute;
  left: 0;
  bottom: -0.4em;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.how-tick {
  position: absolute;
  right: -1.1em;
  bottom: 0;
  width: 0.9em;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

/* Fletxa decorativa entre textos HOW */
.how-arrow {
  position: absolute;
  top: 47%;
  right: clamp(1%, 2vw, 6%);
  transform: translate(-50%);
  width: clamp(180px, 20vw, 300px);
  height: auto;
  pointer-events: none;
  z-index: 1;
}

/* --- ICONO --- */
.how-logo {
  margin-block: clamp(2rem, 3vw, 3rem) 0;
  align-self: center;
}

.how-logo img {
  max-width: none;
  width: clamp(100px, 13vw, 240px);
  height: auto;
}

/* --- TEXT 4: Descripció d'Authory --- */
.how-text-4 {
  align-self: center;
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.2rem);
  max-width: 48ch;
  margin-top: clamp(0.5rem, 1vw, 1rem);
  margin-bottom: clamp(2rem, 5vw, 5rem);
}

.how-text-4 p {
  font-variation-settings: "wght" 300;
  letter-spacing: 0.01em;
  position: relative;
}

/* ---------- AUTHORY (encircle) ---------- */

.authory-text {
  position: relative;
  z-index: 2;
}

.how-text-4 .how-enclose-authory {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-60%, -50%);
  max-width: none;
  width: clamp(4.5em, 10vw, 25vw);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ---------- HELPS (underline) ---------- */

.helps-wrapper {
  position: relative;
  display: inline-block;
}

.helps-text {
  position: relative;
  z-index: 2;
}

.how-underline-helps {
  position: absolute;
  left: 0;
  bottom: -0.18em; /* ajustable */
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* ---------- EDUCATORS VERIFY... (underline) ---------- */

.educators-wrapper {
  position: relative;
  display: inline-block;
}

.educators-text {
  position: relative;
  z-index: 2;
}

/* Secció VIEW */

/* Contenidor principal VIEW */
.view {
  width: 100%;
  background-color: #234fc2;
  padding: clamp(3rem, 4vw, 4rem) clamp(2rem, 6vw, 8rem)
    clamp(6rem, 10vw, 16rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.view-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1.2rem);
  position: relative;
  max-width: clamp(1200px, 85vw, 1600px);
  margin-inline: clamp(1.5rem, 6vw, 6%);
}

/* Fletxa entre HOW i VIEW */
.view-arrow {
  position: absolute;
  right: auto;
  left: 15%;
  top: clamp(-22rem, -33%, -15rem);
  width: clamp(150px, 14vw, 330px);
}

/* =========================
   SWITCH STUDENT / PROFESSOR
========================= */

.view-switch-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  margin-top: clamp(0.5rem, 3.4vw, 0.5rem);
  align-self: flex-start;
  transform: translateY(-0.3em);
  margin-left: clamp(4rem, 10vw, 18rem);
}

.view-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(220px, 18vw, 260px);
  padding: 0.4rem 1.2rem;
  background-color: #93b1ee;
  border-radius: 50px;
}

.switch-text {
  color: #fbf2e3;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

/* Toggle */
.switch-toggle {
  width: clamp(50px, 6vw, 70px);
  height: clamp(25px, 3vw, 35px);
  background-color: #fbf2e3;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.switch-toggle:hover {
  background-color: rgb(217 217 217 / 50%);
}

.switch-circle {
  width: clamp(19px, 2.5vw, 28px);
  height: clamp(19px, 2.5vw, 28px);
  background-color: #ed513b;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.switch-toggle.educator-active .switch-circle {
  transform: translateX(clamp(25px, 3vw, 35px));
}

/* Text decoratiu "switch" */
.view-word-switch {
  position: absolute;
  top: 30%;
  left: 70%;
  transform: translate(1rem, clamp(8px, 1.5vw, 30px));
  width: clamp(46px, 6vw, 75px);
  pointer-events: none;
}

/* ========================
   IMAGEN STUDENT / PROFESSOR
========================= */

.view-image-container {
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 500px;
}

.view-image-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.view-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
TEXT SUPERPOSAT (OVERLAY)
========================= */

.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-block;
}

.view-image-overlay {
  position: absolute;
  top: 55%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-width: 90%;
}

.view-image-text {
  width: 100%;
  color: #234fc2;
  font-family: Lexend, sans-serif;
  font-size: clamp(1rem, 1.9vw, 1.7rem);
  line-height: 1.6;
  text-align: left;
  pointer-events: none;
}

.view-image-text.hidden {
  display: none;
}

.view-image-text.hidden {
  display: none;
}

.view-image-text .text-strong {
  font-weight: 700;
}

.underline-wrapper {
  position: relative;
  display: inline-block;
}

.underline-wrapper .text-strong {
  position: relative;
  z-index: 2;
}

.view-underline {
  position: absolute;
  left: 0;
  bottom: 0.1em;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.text-strong {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

.desktop-break {
  display: block;
}

.mobile-break {
  display: none;
}

/* Tick decoratiu */
.view-image-container {
  position: relative;
}

.view-student-content.hidden {
  display: none;
}

.view-tick {
  position: absolute;
  right: 9rem;
  bottom: 0.2rem;

  width: clamp(1em, 1.8vw, 1.5em);
  height: auto;
}

/* =====================
   PROFESSOR VIEW
===================== */

.view-image-container.is-professor .view-tick {
  display: none;
}

.view-professor-content {
  position: absolute;
  inset: 16% 4%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
  padding: 1rem;
}

.prof-card {
  color: #234fc2;
  border-radius: 1.6rem;
  padding: clamp(1rem, 2vw, 2.5rem) clamp(1.5rem, 2vw, 3rem);
  width: 100%;
  max-width: min(1200px, 85vw);
  font-family: Lexend, sans-serif;
  font-size: clamp(0.6rem, 1.4vw, 2rem);
  position: relative;
  box-sizing: border-box;
}
.prof-card > * {
  position: relative;
  z-index: 1;
}

.prof-columns {
  display: grid;
  grid-template-columns: 1.5fr 0.95fr;
  padding-inline: clamp(0rem, 4vw, 6rem);
}

.prof-col-left,
.prof-col-right {
  padding-left: clamp(1rem, 3vw, 4rem);
  margin-left: 0;
  gap: clamp(1.5rem, 2.5vw, 3rem);
}

.prof-col-right {
  transform: translateY(-1.5rem);
}

.prof-subject {
  font-weight: 400;
  margin-bottom: 0.5rem;
  margin-left: clamp(40px, 7vw, 70px);
}

.prof-name {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  margin: 0;
  font-weight: 500;
}

.prof-task {
  margin-bottom: 0;
  font-weight: 400;
}

.prof-name,
.prof-task {
  margin-left: clamp(80px, 10vw, 100px);
}

.prof-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: -1rem;
  align-items: baseline;
}

.prof-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  transform: translateY(14px);
}

.prof-icon[src*="unusual"] {
  transform: translateY(32px);
}

.prof-row ul {
  margin: 0.5rem 0 0 0.4rem;
}

.prof-alert {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.prof-icon-alert {
  width: 50px;
  height: 50px;
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

/* ===== VIEW STATES ===== */

.view-image-container.is-student .view-image {
  display: block;
}

.view-image-container.is-student .view-text-desktop {
  display: block;
}

.view-image-container.is-student .view-professor-content {
  display: none;
}

.view-image-container.is-professor .view-image-text {
  display: none;
}

.view-image-container.is-professor .view-professor-content {
  display: flex;
}

/* Secció FORMULARI */
.form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(60px, 8vw, 90px) clamp(60px, 8vw, 120px);
  background-color: #fbf2e3;
}

.form-container {
  background: #234fc2;
  border-radius: clamp(20px, 3vw, 35px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: clamp(900px, 75vw, 1200px);
  min-height: clamp(500px, 40vw, 740px);
  padding: clamp(48px, 6vw, 96px) /* top & bottom */ clamp(38px, 6vw, 68px);
  margin-top: clamp(40px, 6vw, 100px);
  gap: clamp(32px, 4vw, 56px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 30%);
}

/* --- COLUMNA ESQUERRA: Títol --- */
.form-left {
  color: #fbf2e3;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-60px);
}

.form-left h2 {
  font-size: clamp(2.8rem, 5.1vw, 4.8rem);
  font-weight: 600;
  line-height: 1;
  margin: 0;
  max-width: 10ch;
  position: relative;
  z-index: 2;
}

/* Subratllat(Underline) decoratiu de "know more" */
.form-underline-left {
  position: absolute;

  /* 🔑 Posición relativa al TEXTO */
  top: 48%; /* ajusta visualmente una vez */
  left: 50%;
  transform: translateX(-50%);

  /* 🔑 Tamaño ligado al texto */
  width: clamp(17em, 30em, 44em);
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* --- COLUMNA DRETA: Formulari --- */
.form-right {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  font-family: Lexend, sans-serif;
}

/* Exclamació decorativa a la dreta */
.form-exclamation-right {
  position: absolute;
  top: clamp(27px, 4vw, 35px);
  right: clamp(-65px, -35vw, -75px);
  width: clamp(65px, 5vw, 75px);
  height: auto;
  pointer-events: none;
  transform: rotate(-8deg);
}

/* Form Layout */
.form-right form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(12px, 2vw, 24px);
}

/* Todos los bloques con el mismo ancho */
.input-group,
.form-right input[type="text"],
.form-right input[type="email"],
.occupation,
.checkbox-group,
.frc-captcha {
  width: 100%;
  max-width: clamp(350px, 42vw, 520px);
  font-family: Lexend, sans-serif;
  line-height: 1;
  font-variation-settings: "wght" 400;
}

/* Inputs de text i email */
.input-group {
  display: flex;
  gap: clamp(2px, 1vw, 7px);
  margin-bottom: clamp(6px, 1vw, 10px);
  margin-top: clamp(8px, 1vw, 14px);
}

.input-group input {
  width: 100%;
}

.form-right input[type="text"],
.form-right input[type="email"] {
  padding: clamp(10px, 1.4vw, 14px) clamp(14px, 1.8vw, 18px);
  border: none;
  border-radius: 50px;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  background: #fbf2e3;
  color: #2b5ce6;
  outline: none;
  transition: all 0.3s ease;
}

.form-right input[type="email"] {
  margin-bottom: clamp(10px, 1.5vw, 14px);
}

.form-right input::placeholder {
  color: #2b5ce6;
}

.form-right input:focus {
  box-shadow: 0 0 0 3px rgb(255 255 255 / 30%);
}

.occupation input[type="text"] {
  display: none;
  width: 100%;
}

.occupation input[type="text"].show {
  display: block;
}

/* Grupo ocupación */

.occupation {
  width: 100%;
  max-width: clamp(320px, 45vw, 520px);
  font-family: Lexend, sans-serif;
  background: #fbf2e3;
  border-radius: 50px;
  padding: clamp(11px, 1.6vw, 16px) clamp(14px, 1.8vw, 18px);
  margin-top: clamp(1px, 0.1vw, 4px);
  cursor: pointer;
  font-variation-settings: "wght" 400;
}

.occupation.open {
  border-radius: 20px;
}

.occupation label {
  display: none;
  align-items: center;
  margin-top: 5px;
  color: #2b5ce6;
}

.occupation.open label {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.occupation-legend {
  display: block;
  color: #2b5ce6;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-family: Lexend, sans-serif;
  font-weight: 400;
  line-height: 1;
}

.occupation input[type="radio"] {
  accent-color: #234fc2;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vw, 6px);
  margin: clamp(12px, 1.8vw, 18px) 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  color: #fbf2e3;
  font-size: clamp(0.75rem, 0.95vw, 0.9rem);
  cursor: pointer;
  gap: clamp(4px, 0.6vw, 6px);
}

.checkbox-group input[type="checkbox"] {
  margin-left: 20px;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff; /* borde azul */
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked {
  background-color: #93b1ee; /* FONDO AZUL */
  border-color: #93b1ee;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  color: #234fc2;
  font-size: 12px;
  font-weight: 700;
}

.checkbox-group .policy-link {
  color: #fbf2e3;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.checkbox-group .policy-link:hover {
  opacity: 80%;
}

.form-right button {
  padding: clamp(12px, 1.5vw, 16px) clamp(8px, 1.2vw, 12px);
  background: #fff;
  color: #234fc2;
  width: auto;
  min-width: clamp(180px, 30vw, 240px);
  max-width: 100%;
  border: none;
  border-radius: 50px;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-variation-settings: "wght" 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Lexend, sans-serif;
}

.form-right button:hover {
  background: #f0f0f0;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgb(0 0 0 / 20%);
}

.form-right button:active {
  transform: translateY(0);
}

.frc-captcha {
  margin: 8px 0 12px;
  transform: scale(0.7);
  transform-origin: left top;
  width: auto;
}

/* Language Selector */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  background-color: transparent;
  color: #fbf2e3;
  border: 1px solid rgb(147 177 238 / 40%);
  border-radius: clamp(8px, 1vw, 10px);
  padding: clamp(0.35rem, 0.7vw, 0.55rem) clamp(0.7rem, 1.2vw, 0.9rem);
  font-size: clamp(13px, 1.1vw, 16px);
  font-family: Lexend, sans-serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.5vw, 0.5rem);
  opacity: 0.85;
}

.lang-toggle:hover {
  background-color: rgb(147 177 238 / 10%);
  border-color: rgb(147 177 238 / 60%);
  opacity: 1;
}

.lang-toggle i {
  font-size: clamp(13px, 1.1vw, 16px);
  opacity: 0.9;
}

.lang-code {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.lang-toggle:focus {
  outline: 2px solid #fbf2e3;
  outline-offset: 2px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background-color: #1a3a8f;
  border: 2px solid #93b1ee;
  border-radius: clamp(10px, 1.2vw, 14px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
  min-width: 120px;
  opacity: 0%;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown.show {
  opacity: 100%;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 0.8vw, 0.7rem);
  padding: clamp(0.5rem, 0.9vw, 0.7rem) clamp(0.8rem, 1.5vw, 1.2rem);
  color: #fbf2e3;
  text-decoration: none;
  font-family: Lexend, sans-serif;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.lang-flag {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.lang-option:first-child {
  border-radius: clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px) 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 clamp(8px, 1vw, 12px) clamp(8px, 1vw, 12px);
}

.lang-option:hover {
  background-color: rgb(147 177 238 / 20%);
  color: #fff;
}

/* Styling for comma in hero title when needed */
.comma {
  margin-left: -0.1em;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background-color: #234fc2;
  padding: clamp(0.8rem, 1.5vw, 1.2rem) 2rem;
  display: flex;
  justify-content: center;
}

.footer-content {
  width: 100%;
  max-width: clamp(1000px, 85vw, 1400px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fbf2e3;
  font-family: Lexend, sans-serif;
  font-size: clamp(0.85rem, 1vw, 1rem);
}

.footer-copy {
  margin: 0;
}

.footer-link {
  color: #fbf2e3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 80%;
}

.footer-social {
  display: flex;
  gap: clamp(1.2rem, 2vw, 2rem);
  align-items: center;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbf2e3;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  opacity: 85%;
}

.footer-social-link i {
  font-size: clamp(24px, 2.5vw, 32px);
}
