body {
  background-color:  #333333;
}

@media screen and (max-width:800px){
header {
  background-image: url(../imagenes/historia.jpg);
}
}

/*Ajuste del auto scroll*/

#historia{
  scroll-margin-top: 9vh;
}
#miembros{
  scroll-margin-top: 25vh;
}
@media screen and (max-width:800px){
#historia{
  scroll-margin-top: 75vh;
}
#miembros{
  scroll-margin-top: 100vh;
}
}

/*Secciones de la Historia*/

.colour-block {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  width:100%;
  padding: 7% 30% 5% 30%;
  color: #1a1a1a;
}

  .p-historia {
    padding: 30px;
    margin-top: 30px;
    color: #FFFFFF;
    width: 100%;
    font-size: 1.2em;
    line-height: 1.3;
    letter-spacing:  1px;
    border: 1px solid #ccb370;
    border-radius: 10px;
  span{
    color: #ccb370;
  }
}
.p-color {
  color: #1a1a1a;
}
.white-block {
  overflow: hidden;
  width:100%;
  padding:7% 30% 5% 30%;
  color: #FFFFFF;
}

.skew-cc{
  width:100%;
  height:100px;
  position:absolute;
  left:0px;
  background: linear-gradient(to right bottom, #FFFFFF 49%,  #333333 50%),    linear-gradient(-50deg, #333333 16px, #333333 0);
}

.skew-c{
  width:100%;
  height:100px;
  position:absolute;
  left:0px;
  background: linear-gradient(to left bottom, #333333 49%, #FFFFFF 50%);
}

@media screen and (max-width:800px){
  .colour-block, .white-block{
  padding: 10% 10% 0% 10%;
  }
  .p-historia {
    padding: 15px;
    margin-top: 70px;
}
  .p-margin {
    margin-bottom: 40px;
  }
}

/*Tarjetas de los miembros*/

.container-cards {
  background-color: #FFFFFF;
  padding-bottom: 10vh;
}

.h2-miembro {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  font-size: 4vw;
  font-weight: 200;
  background: linear-gradient(45deg, #ccb370, #646a82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 800px) {
  .h2-miembro {
    font-size: 12vw;
  }
}

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

.main {
  max-width: 1200px;
  margin: 0 auto;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
  display: flex;
  padding: 0.5rem;
}
@media screen and (max-width:800px){
  .container-cards {
    padding-bottom: 0;
  }
  .cards_item{
    padding: 0 1rem 1rem 1rem;
  }
}
.card_image {
  position: relative;
  max-height: 250px;
  overflow: hidden;
  transition: transform 0.3s ease; /* Añade una transición para suavizar el efecto */
}

.card_image img {
  width: 100%;
  transition: transform 0.3s ease; /* Añade una transición para suavizar el efecto */
}

.card_image:hover img {
  transform: scale(1.1); /* Aplica el efecto de agrandamiento */
}

@media (min-width: 40rem) {
  .cards_item {
    width: 50%;
  }
}

@media (min-width: 56rem) {
  .cards_item {
    width: 33.3333%;
  }
}

.card {
  background-color: #333333;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card_content {
  overflow: hidden;
  position: relative;
  padding: 16px 12px 32px 24px;
  margin: 16px 8px 8px 0;
  max-height: 330px;
}

.card_content::-webkit-scrollbar {
  width: 8px;
}

.card_content::-webkit-scrollbar-track {
  box-shadow: 0;
  border-radius: 0;
}

.card_content::-webkit-scrollbar-thumb {
  background: #c89b3f;
  border-radius: 15px;
}

.card_title {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 10px;
  text-align: center;
  font-size: 1.3em;
  color: #646a82;
}

.card_title::after {
  position: absolute;
  display: block;
  width: 200px;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ccb370;
  content: "";
}

.card_text p {
  margin: 0 0 24px;
  font-size: 1.2em;
  line-height: 1.3;
  letter-spacing: 1px;
  color: #FFFFFF;
}

@media screen and (max-width: 800px) {
  .card_text p {
    font-size: 1em;
  }
}

.card_text p:last-child {
  margin: 0;
}

/* Estilo para el contenedor principal Información */

.informacion {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #333333;
    color: #ffffff;
    padding-bottom: 10vh;
}

/* Estilo para el título */
.titulo {
  margin: 0;
  padding: 20px 0;
  text-align: center;
  font-size: 4vw;
  font-weight: 200;
  background: linear-gradient(45deg, #ccb370, #646a82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width:800px){
  .titulo {
    font-size: 12vw;
  }
}

/* Estilo para el icono */
.icons img{
    position: absolute;
    width: 8%;
    min-width: 45px;
    max-width: 50px;
    top: 15px;
    left: 15px;
    color: #FFFFFF;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Cambia el color de la imagen a blanco */
}

/* Estilo para el contenedor de los cuadros */
.container {
    display: grid;
    gap: 20px;
    max-width: 70%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "box1 box2"
        "box3 box3"
        "box4 box5";
}

/* Estilo para cada cuadro */
.box {
    background: #444444;
    border-radius: 8px;
    border: 1px solid #ccb370;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    text-align: left;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Área específica para cada cuadro */
.box:nth-child(1) { grid-area: box1; }
.box:nth-child(2) { grid-area: box2; }
.box:nth-child(3) { grid-area: box3; }
.box:nth-child(4) { grid-area: box4; }
.box:nth-child(5) { grid-area: box5; }

/* Contenido del texto con transición para expansión */
.text-content {
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* Clase para expandir el contenido del texto */
.text-content.expanded {
    max-height: 1000px;
}

/* Estilo para el span dentro del texto */
.custom-p span {
    color: #ccb370;
}

/* Estilo para el texto */
.custom-p {
    margin-top: 60px;
    color: #ffffff;
    font-size: 1.2em;
    line-height: 1.3;
    letter-spacing: 1px;
}

/* Efecto hover para el cuadro */
.box:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Efecto antes del hover */
.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    transition: left 0.5s ease;
}

/* Efecto de desplazamiento en el hover */
.box:hover::before {
    left: 100%;
}

/* Estilo para el botón de leer más */
.leer-mas {
    background-color: #ccb370;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

/* Efecto hover para el botón de leer más */
.leer-mas:hover {
    background-color: #646a82;
    color: #ffffff;
}

/* Estilos responsivos */
@media (max-width: 800px) {
    .informacion {
        padding: 0 0 20px 0;
    }
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1"
            "box2"
            "box3"
            "box4"
            "box5";
        max-width: 100%;
    }

  .text-content {
    max-height: 200px
  }

    .box {
        width: 90%;
        margin: 0 auto;
    }

    /* Eliminar efecto hover en móviles */
    .box:hover {
        transform: none;
        box-shadow: none;
    }
}