/* ============================================================
   AURA – Estils principals
   Tipografies: Baloo 2 (títols) i Montserrat (text)
   Colors: Login #426FAA | Registre #52358B
   ============================================================ */

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

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #C8C8C8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
}

/* ── Pantalles ── */
.screen {
  display: none;
  width: 390px;
  height: 844px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
}

.screen.active { display: flex; }

.screen-login    { background: #6BA3EB; }

/* ── Contenidor principal del formulari ── */
.logo-form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  margin-bottom: 0;
}


.logoaura {
  width: 185px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── Títol ── */
.screen-title {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  text-align: center;
  z-index: 2;
  margin-top: 2px;
  margin-bottom: -5px;
  line-height: 1.15;
}

/* ── Formulari ── */
.form {
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.field-label {
  color: #fff;
  margin-bottom: 5px;
  margin-left: 9px;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

/* ── Inputs ── */
.correu-input,
.contrassenya-input,
.nom-usuari,
.correu,
.contrassenya,
.repeteix-contrassenya {
  width: 100%;
  height: 35px;
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 9px 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #000;
  outline: none;
  margin-bottom: 11px;
}

.correu-input::placeholder,
.contrassenya-input::placeholder,
.nom-usuari::placeholder,
.correu::placeholder,
.contrassenya::placeholder,
.repeteix-contrassenya::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.correu-input:focus,
.contrassenya-input:focus,
.nom-usuari:focus,
.correu:focus,
.contrassenya:focus,
.repeteix-contrassenya:focus {
  background: #fff;
  outline: 2px solid rgba(255, 255, 255, 0.6);
}

/* ── Textos d'ajuda ── */
.compte {
  width: 100%;
  text-align: center;
  margin-bottom: 11px;
  line-height: 1.7;
}

.hint-text {
  font-family: 'Nunito', sans-serif;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* ── Botons de text ── */
.registre,
.oblidat-contrassenya {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #C0E3FF;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.inici-sessio {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #E2D3FF;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ── Botó Google ── */
.inici-google {
  height: 35px;
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 0;
  font-family: 'Nunito', sans-serif;
  color: #6BA3EB;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 9px;
}

.icon-google {
  width: 21px;
  height: 20px;
  display: block;
  background-color: #6BA3EB;

  mask-image: url("IMG/google_icona.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  -webkit-mask-image: url("IMG/google_icona.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}
/* ── Botó Entrar ── */
.entrar {
  width: 100%;
  height: 35px;
  background: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #6BA3EB;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* ── Icones decoratives LOGIN ── */
.creativitat-icona {
  top: 82px;
  left: -30px;
  width: 212px;
  height: 168px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.calma-icona {
  top: 9px;
  right: -15px;
  width: 147px;
  height: 140px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.recarrega-icona {
  top: 377px;
  left: -30px;
  width: 200px;
  height: 145px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Darrere del formulari */
.dibuix-icona {
  width: 140px;
  height: 159px;
  top: 483px;
  right: -5px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.concentracio-icona {
  width: 212px;
  height: 168px;
  bottom: -25px;
  left: 42px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* ── APARTAT REGISTRE ── */
/* ── Icones decoratives REGISTRE ── */

.expressio-icona {
  top: 110px;
  left: -55px;
  width: 145px;
  height: 145px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;

}

.distraccio-icona {
  top: 0px;
  right: -36px;
  width: 244px;
  height: 148px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.sensorial-icona {
  bottom: -25px;
  right: -36px;
  width: 244px;
  height: 148px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.manual-icona {
  top: 575px;
  left: -80px;
  width: 244px;
  height: 148px;
  object-fit: contain;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}


/* ── Botó Registrar-se ── */
.btn-registre {
  width: 100%;
  height: 35px;
  background: #fff;
  border: none;
  border-radius: 30px;
  padding: 11px 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #7D5DBC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ── Errors de validació ── */
.input-error {
  border: 1.5px solid #FFA270 !important;
  background: #fff !important;
  outline: 2px solid #FFA270 !important;
}

.error-msg {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #FFDCC4;
  margin-top: -8px;
  margin-bottom: 8px;
  padding-left: 4px;
}

.screen-registre { background: #7D5DBC; }

.screen-home {
  background: #E2D3FF;
}

/* decoració */
.deco-home {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.deco-home-top-right {
  top: 0;
  right: 0;
  width: 165px;
}

.deco-home-left {
  left: 0;
  top: 345px;
  width: 36px;
}

.deco-home-bottom {
  left: 0;
  bottom: 68px;
  width: 100%;
}

/* header */
.home-header {
  position: relative;
  z-index: 2;
  padding: 48px 22px 10px;
}

.user-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.user-text h1 {
  margin: 0;
  font-family: 'Baloo 2', cursive;
  font-size: 28px;
  line-height: 1;
  color: #000;
}

.user-text p {
  margin: 2px 0 0;
  font-size: 14px;
  color: #1c1c1c;
  font-weight: 500;
}

/* contingut */
.home-content {
  position: relative;
  z-index: 2;
  padding: 0 16px 100px;
}

.slider-section {
  margin-top: 12px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #121212;
}

.slider-wrap {
  position: relative;
}

.cards-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.cards-slider::-webkit-scrollbar {
  display: none;
}

.activity-card {
  flex: 0 0 142px;
  text-decoration: none;
  color: #111;
}

.activity-image {
  width: 142px;
  height: 118px;
  border-radius: 18px;
  overflow: hidden;
  border: 5px solid #FFF1B8;
  background: #eee;
  box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.activity-card h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.05;
  font-weight: 800;
  color: #111;
}

/* fletxa del slider */
.slider-arrow {
  position: absolute;
  right: 4px;
  top: 40px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #7D5DBC;
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

/* menú inferior */
.bottom-menu {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 76px;
  background: #C0E3FF;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 14px;
  z-index: 5;
}

.menu-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.menu-item img {
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
}

.menu-item.active {
  transform: scale(1.05);
}