

#portada-inicio {
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    height: 100%;
    align-items: center;
    flex-direction: row;
}

#portada-inicio>div{
    scroll-snap-align: start;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    box-sizing: border-box;
}

#collage-portada {
    height: 95%;
    width: 45%;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-template-areas: 
        "a a a a a a b b b v"
        "c c c d d d d d d v1"
        "e e e e e f f f f f";
    gap: 15px;
    overflow: hidden; /* ✨ fuerza al grid a no crecer visualmente */
}

.imagen-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;           /* ✨ fuerza el control del contenido */
    justify-content: center; /* centra la imagen */
    align-items: center;     /* centra verticalmente */
}

.imagen-box img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.05) saturate(1.2); /* Aclara, mejora ligeramente el contraste y hace los colores más vivos */
}



#imagen1{
    grid-area: a;
}

#imagen2{
    grid-area: b;
}

#imagen3{
    grid-area: c;
}

#imagen4{
    grid-area: d;
}

#imagen5{
    grid-area: e;
}

#imagen6{
    grid-area: f;
}

#titulo-portada{
    width: 45%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    justify-content: center;
    gap: 40px;
}

#titulo-portada>h1{
    line-height: 1.2;
    color: #585858;
    font-size: 72px;
}



#titulo-portada>p{
    color: #5e5d5d;
}

#titulo-portada>.button{
    width: 70%;
    height: 60px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    background-color: #ea2173;
    align-self: center;
    display: grid;
    place-items: center;
    cursor: pointer;
}

#formarme-btn:hover{
    background-color: #ffffff;
    color: #ea2173;
    border: 2px solid #ea2173; 
}


@media screen and (max-width:800px) {
    #portada-inicio>div{
        height: 100%;
        width: 100%;
        display: grid;
        position: relative;
      place-items: center;
        background-color: black;
        
    }

  #collage-portada {
      width: 95%;
      height: 95%;
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      grid-template-rows: repeat(3, 1fr); 
      grid-template-areas: 
          "a a a a a b b b b b"
          "c c c d d d d d d d"
          "e e e e e e f f f f";
      overflow: hidden; /* muy importante */
  }

  .imagen-box {
      display: flex; /* mantiene el control del tamaño */
      justify-content: center;
      align-items: center;
      overflow: hidden;
      min-width: 0;
      min-height: 0;
  }

  .imagen-box img {
      width: 100%;
      height: 100%;
      object-fit: cover;
  }

    #imagen1{
    grid-area: a;
}

#imagen2{
    grid-area: b;
}

#imagen3{
    grid-area: c;
}

#imagen4{
    grid-area: d;
}

#imagen5{
    grid-area: e;
}

#imagen6{
    grid-area: f;
}

    .imagen-box {
        min-height: 0;
        display: block; /* Override flex from global scope */
        height: 100%;
        width: 100%;
        overflow: hidden;
    }

    .imagen-box img {
        max-width: 100%;
        max-height: 100%;
    }

    #titulo-portada{
        position: absolute;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: #000000d7;
        z-index: 1;
        gap: 20px;
        padding-inline: 20px;
    }

    #titulo-portada > h1 {
        text-align: center;
        color: white;
        font-size: 48px;
    }

    #titulo-portada > p {
        color: white;
    }

    #titulo-portada > .button {
        width: 80%;
        height: 50px;
           }
}