


/* Sección especial */
.homesection
{   
    height: 90vh;
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: max-content;
    opacity: 0;
    /* Inicialmente invisible */
    animation: slideInFromBottom 1s ease-out forwards;
    animation-delay: 0.5s;
    /* Para que se vea después de cargar */
}


.homesection h1{
    color: white;
}




.content
{
    /* border: solid 2px red; */

    width: 100%;
    margin: 2rem 20% 6rem 20%;

}

.content h1
{

    /* border: solid 2px yellow; */
    display: grid;
    text-align: Left;
    font-size: 2.5rem;
    font-family: Aspira;
    padding-left: 1rem;

}

.content p
{

    /* border: solid 2px yellow; */
    display: grid;
    text-align: Left;
    font-size: 1rem;
    font-family: Lexend;
    font-weight: lighter;


}




.gridimg
{
    display: grid;
    grid-template-columns: auto auto auto auto;
    /* border: solid 2px red; */
    gap: 1rem;

}

.gridimg img
{
    /* border: solid 2px blue; */
    aspect-ratio: 1;
    overflow: visible;
    display: flex;
    width: 100%;
    height: 7rem;
    object-fit: contain;
    /* Esto asegura que la imagen se ajuste sin distorsiones */
    transition: 0.3s;
    /* Para la animación en hover */
}

.gridimg img:hover
{
    /* border-color: aqua; */
    transform: scale(1.25);
}

.elemento
{
    /* border: solid 2px rgb(255, 56, 165); */
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
}

/*----------------------------- Secciones -------------------------- */



/*----------------------------- MY SECTION -------------------------- */


/* Estilos básicos para .mysection */
.mysection
{
    
    width: 100%;
    position: relative;
    min-height: 100%;
    display: grid;
    place-items: center;
    
    /* Añadido para las animaciones basadas en el scroll */
}

.mysection content{
    border: solid 2px red;
}


.mysection h1 span:first-child
{

    font-size: 0.45em;
    

}

.mysection h1 span:last-child
{
    margin-bottom: 0px;
    color: #09f;
    
}





.mysection P
{
    padding-left: 14rem;
    padding-right: 14rem;
    text-align: center;

    margin: 3rem;
    margin-top: 1rem;
    margin-bottom: 0px;
    font-size: 1.2rem;

}

#content {
   
   height: 100%;
   padding-top: 18rem; /* más espacio arriba */
   display: flex;
   flex-direction: column;
   place-items: center;
   gap: 0;
}




#profilecontainer
{

    display: flex;
    justify-content: center;
    /* Centra horizontalmente */
    align-items: center;
    /* Centra verticalmente */

    overflow: hidden;
    /* Opcional, si quieres recortar el contenido sobrante */

    

}

#rounder
{
    border-radius: 50%;
    overflow: hidden;
}

#profile
{
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    height: 14rem;
    align-content: center;
    justify-content: center;
    align-self: center;

}

#name
{

    margin: .5rem;

}

#PACHECO
{

    line-height: 0.9em;
    margin-bottom: 0;

}

#job
{
    margin: .5rem;
    

}

#location
{

    display: flex;
    max-width: max-content;
    height: 2rem;
    place-items: center;
    margin-bottom: 1rem;


   

}

#location img
{
    height: 1.5rem;
}


#location p
{
    margin: 0;
    padding: 0;
    padding-left: .4rem;
}


.boton
{
    background-color: #797983;
    width: max-content;

    height: 2rem;
    display: flex;
    place-items: center;
    padding: 1.3rem;
    border-radius: 30px;

}

#mail
{
    height: 1.1rem;
    
}

.boton a
{
    color: white;
    text-decoration: none;
    padding-left: 0.8rem;
    font-size: 1.2rem;
}

.boton img
{

    aspect-ratio: 1;
    height: 1.4rem;
    object-fit: contain;


}

#bio
{

    padding: 0;

    width: 35vw;
    
    margin-bottom: 2rem;

}

#socialmedia {
    
    display: grid;
    width: 600px;
    gap: 0.5rem;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    justify-items: center;
    margin-bottom: 10rem;
    height: auto;
}

#socialmedia img {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

.elementomedia {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow:hidden;
    width: 7.5rem;
    height: 7.5rem;
  
}

.mediaLink {
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    cursor: pointer;
    width: 100%;         /* opcionalmente puedes usar fit-content si quieres que se ajuste solo */
     max-width: 5rem;
    
}

.mediaLink:hover {
    transform: scale(1.3);
}

.mediaLink img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    margin-bottom: 0rem;
}

.mediaInfo {
   
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.2;
    width: auto;        /* <-- esto evita que el <p> se expanda */
    text-align: center;
    white-space: nowrap; /* opcional: evita que se parta en varias líneas */


}


h1,
h2
{
    display: grid;
    text-align: center;
    font-size: 4rem;
}

/* Reset de CSS */
*,
*:after,
*:before
{
    box-sizing: border-box;
}


.video-container
{
    position: absolute;
    /* Cambiar a absolute para que el contenedor cubra toda la sección */
    top: 0;
    /* Alinear al borde superior */
    left: 0;
    /* Alinear al borde izquierdo */
    width: 100%;
    /* Cubrir todo el ancho */
    height: 100%;
    /* Cubrir toda la altura */
    overflow: hidden;
    /* Asegura que el video no se desborde */
    margin: 0;
    padding: 0;
}

.video-container video
{
    position: absolute;
    /* Mantenerlo absoluto para el centrado */
    top: 50%;
    /* Centrar verticalmente */
    left: 50%;
    /* Centrar horizontalmente */
    width: 101%;
    /* Ancho del video */
    height: 101%;
    /* Alto del video */
    object-fit: cover;
    /* Ajusta el video para llenar el contenedor sin distorsión */
    object-position: center;
    /* Centra el video */
    transform: translate(-50%, -50%);
    /* Centrar el video */
    filter: blur(3px) brightness(10%) hue-rotate(-10deg);;

    margin: 0;
    padding: 0;
}



/*----------------------------- MY SECTION -------------------------- */











@media (max-width: 768px) {

  .homesection {
    flex-direction: column;
    padding: 1rem;
    height: auto;
    text-align: center;
  }

  .content {
    margin: 1rem 5% 3rem 5%;
  }

  .content h1 {
    font-size: 1.8rem;
    padding-left: 0;
    text-align: center;
  }

  .content p {
    font-size: 0.95rem;
    text-align: center;
  }

  .gridimg {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gridimg img {
    height: 6rem;
  }

  .mysection p {
    padding: 0 1rem;
    margin: 1rem 0;
    font-size: 1rem;
  }

  #content {
    padding-top: 6rem;
  }

  #bio {
    width: 90vw;
  }

  #socialmedia {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-bottom: 5rem;
  }

  .elementomedia {
    width: 5.5rem;
    height: 5.5rem;
  }

  .mediaLink {
    max-width: 100%;
  }

  .mediaLink img {
    width: 2.5rem;
    height: 2.5rem;
  }

  h1, h2 {
    font-size: 2.5rem;
  }

  #location {
    flex-direction: column;
    height: auto;
    gap: 0.3rem;
  }

  #location p {
    padding-left: 0;
    font-size: 0.9rem;
  }

  .boton {
    flex-direction: row;
    padding: 1rem;
    width: 90%;
    justify-content: center;
  }

  .boton a {
    font-size: 1rem;
    padding-left: 0.5rem;
  }

  #profile {
    height: 10rem;
  }
}
