/* ===================================================== */
/* CAPSA NEGRA (CARDS.HTML)                               */
/* ===================================================== */
body.lescartes {
    line-height: 1.7;
  }

body.lescartes #fons-fixe {
  background: url("../img/lescartes.jpg") center/cover no-repeat fixed;
}

/* contenidor general del main (mateix criteri que boto) */
.contenidor-centre {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 10px;          /* petit marge lateral per mòbil */
  box-sizing: border-box;
}

.CapsaVermell {
  width: 100%;
  max-width: 400px;
  margin: auto auto 80px auto;
  padding: 30px 22px;
    background-color: rgb(45, 33, 47, 0.6);
    border-radius: 20px !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
    text-align: center;
}

.CapsaVermell h2,
.CapsaVermell h3,
.CapsaVermell h4 {
  color: #fff;
  font-weight: 600;
  margin: 0px 0 10px;
  opacity: 0.7;
}

.CapsaVermell p {
  color: #e6e6e6;
  font-size: 1em;
  margin-bottom: 18px;
  text-align: center;
  line-height: inherit;
  letter-spacing: 0.3px;
  opacity: 0.7;
}


.galeria_cartes {
    width: 100%;
    margin: 10px 0;
    border-radius: 10px;
}

.drac  {
    width: 100%;
    height: auto;
    display: block;
    margin: 0px auto;
    border-radius: 10px;
    object-fit: cover;

}

/* Galeria en 3 columnes *//*
.galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 100%;
}
*/

.galeria-moviments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  align-items: start;
}



.galeria-moviments .nom {
  font-size: 0.7em;
  opacity: 0.75;
  margin-top: 6px;
}

.carta {
    text-align: center;
    color: #e6e6e6;
    font-family: 'Open Sans', sans-serif;
}

.carta img {
    width: 100%;
    max-width: 120px;  /* ABANS: 140px */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.carta img:hover {
    transform: scale(1.05);
}
.carta img:hover {
    transform: scale(1.08);
}

.nom {
    margin-top: 6px;
    font-size: 1em;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.modal img {
    width: 75%;
    max-width: 420px;
    border-radius: 12px;
}

#modalNom {
    color: #fff;
    margin-top: 12px;
    font-size: 1em;
}


.caixes  {
    width: 100%;
    display: block;
    padding-top: 20px;
    margin: 20px auto;
    object-fit: cover;
}

.CapsaLila h2,
.CapsaLila h3 {
    color: #fff;
    font-weight: 600;
    text-align: center;
    margin: 25px 0 10px;
    opacity: 0.7;

}

.CapsaLila p {
    color: #e6e6e6;
    font-size: 1em;
    margin-bottom: 18px;
    text-align: center;
    line-height: 20px;
    letter-spacing: 1,9px;
    opacity: 0.7;
}
.CapsaLilaLineas {
  font-size: 1em;
  margin: 300px 0;
  color: #e6e6e6;
}

.galeria-animes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 24px;
  justify-items: center;
  align-items: center;
}

/* Posicions simbòliques */
.anima-shen { grid-column: 2; grid-row: 1; }
.anima-hun  { grid-column: 1; grid-row: 2; }
.anima-yi   { grid-column: 2; grid-row: 2; }
.anima-po   { grid-column: 3; grid-row: 2; }
.anima-zhi  { grid-column: 2; grid-row: 3; }

/* Cartes ànimes */
.anima-carta {
  text-align: center;
}

.anima-carta img {
  width: 90px;
  border-radius: 12px;
  cursor: pointer;
}

.anima-nom {
  margin-top: 6px;
  font-size: 0.8em;
  opacity: 0.85;
}


.galeria-moviments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.galeria-moviments .carta {
  text-align: center;
  color: #e6e6e6;
}

.galeria-moviments .carta img {
  width: 100%;
  max-width: 120px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.galeria-moviments .carta img:hover {
  transform: scale(1.06);
}

.galeria-moviments .nom {
  margin-top: 6px;
  font-size: 0.7em;
  opacity: 0.75;
}



hr { border: 0; border-top: 1px solid rgb(87, 70, 109); margin: 18px 0; }

@media (max-width: 400px) {
    .FotoAdaptada {
        width: 100%;   /* s’adapta a la pantalla */
        max-width: 300px; /* opcional: límit superior */
    }
