*{
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100dvh;
    color: black;
    font-family: "Poppins", sans-serif;
    flex-direction: column;
    min-height: 100dvh; 
    margin: 0;
    overflow-x: hidden; /* para que las animaciones(contacto) no empujen ancho de la web */
}
/* todo esto para el header */
header{
    background: white;
    position: fixed;
    top: 0;  
    padding: 20px;
    width: 100%;
    z-index: 1;
}

.contenedor{
    display:flex;
    justify-content:space-between;
    align-items: center;
}

.menu ul{
    list-style: none;
    display: flex;
    gap: 20px;
    font-family: poppins;
    font-size: 0.8em;
}

.menu li {
    color: black;
    cursor: pointer;
}

.menu a {
    text-decoration: none;
    color: black;
    z-index: 1;
    
}
.menu li:hover{
    transform: scale(0.8);
    transition: 0.8s;
}

    

.contenedor h1 .logotipo {
    width: 120px;
    height: auto;
    display: block;
}
.contenedor h1 .simbolo {
    display: none;
}



.hamburguesa, .cerrar{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}




main {
    padding-top: 70px; 
    margin-top: 0; /* Redundante? */
    flex-grow: 1;
    width: 100%;
}

section{
    font-size: 1em;
    min-height: 100dvh;
    max-width: 100%;
    font-family: poppins;
    box-sizing: border-box;
    overflow: hidden; /* para desbordamiento */

}
.proyectos section:first-of-type {
    margin-top: 0; 
}

.proyectos{

    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
    max-width: 100%; 
    margin: 0 auto;    
    align-items: center;
}

.proyectos section {
    width: 100%;
    
    min-height: auto;
    display: block;
    justify-content: center;
    gap: 15px;
    overflow: hidden;
}

.proyectos section img {
    width: 100%;       /* ancho del grid */
    max-width: 100%;   /* seguridad extra para que no salga */
    height: auto;      /* proporción */
    display: block;
    object-fit: contain;
    
}

.proyectos section p {
    display: block;
    width: 100%;
    font-family: "Poppins", sans-serif;
    font-style: oblique;
    font-size: 1em;
    box-sizing: border-box;
    color: black;
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
}


#inicio {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


#bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  z-index: -1;
}


#chaos-canvas {
  position: absolute;
  top: 0;
  left: 0;
  cursor: url("../img/recursos_graficos/cursor.svg")0 32, crosshair; /* mi cursor que empiece desde la punta del lápiz */
  
}



#pictures {
    display: block;
    width: 100%;
}

.streetArt{
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 20px;
    max-width: 100%;
    box-sizing: border-box;
    grid-auto-flow: dense; /* Rellena huecos */
}


.streetArt .vertical, 
.streetArt .horizontal, 
.streetArt .cuadrada {
    cursor: pointer;
    overflow: hidden;
}
.mano {
    width: 80px;          /* pequeño pero visible */
    height: auto;         /* mantiene la proporción*/
    display: inline-block;
    vertical-align: middle;

  }
.streetArt p{
    grid-column: span 2;  /* Hace que el texto tenga más espacio a lo ancho */
    align-self: start;   /* Lo centra verticalmente en su celda */
    line-height: 1.4;
    font-style: oblique;
    overflow: visible;

}
.horizontal {
    grid-column: span 2;
    grid-row: span 1;
    width: 100%;
    aspect-ratio: 2 / 1;
}

.vertical {
    grid-row: span 2;
    aspect-ratio: 1 / 2;
    grid-column: span 1;
    width: 100%;
}
.cuadrada {
    grid-column: span 1;
    grid-row: span 1;
    width: 100%;
}
/* Ajuste general para todas las imágenes */
.streetArt img {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

.streetArt div:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
    
}

.streetArt h3, .streetArt h2 {
    align-self: center;
    word-wrap: break-word;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Por si acaso */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    align-items: center; 
    justify-content: center;
    flex-direction: column;
}

.modal-contenido {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain; /* Para que la foto no se estire feo */
    display: block;
}

.cerrar-modal { /* aqui poner mi X */
    position: absolute; 
    top: 20px;
    right: 20px;
    background-color: transparent;
    cursor: pointer;
    border: none;
    color:black;
    width: 30px;
    display: block;
}



.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    width: 30px;
    height: 30px;
}

.nav-btn:hover img{
    transform: scale(1.2);
}

.prev {
     left: 20px;
     }
.next {
    right: 20px;
}


#about{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items:center;
    padding: 5% 10%;
    
}

#about h1{
    font-weight: 500;
    font-size: 1.5em;
    font-family:"Poppins", sans-serif;
    margin-bottom: 30px;
    margin-left: -30px;
}
#about p{
    margin-bottom: 5px;
    font-size: 0.8em;
    margin-left: -30px;
   
}


.me img{
    width: 100%;
    height: auto;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%; 
    object-fit: cover;
}

#contact{
    font-size: 4em;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 300px;
    padding: 50px 0;
    width: 100%;
    
   
}
#contact p{
    font-size: 5vw;
    position: relative;
    animation:movimiento 15s linear infinite;
    display: inline-block;
    will-change: transform;
}

#contact p:hover{
    animation-play-state: paused; /* para congela la animación y leer */
    cursor: pointer;
}

@keyframes movimiento {
    from{
        transform: translateX(100%);
    }
    to{
        transform: translateX(-100%);
    }
}

footer {
    background: white;
    width:100% ;
    padding: 20px;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.rrss {
    list-style: none; 
    display: flex;  
    gap: 40px;     /* espacio entre Instagram y LinkedIn */
    padding: 0;
    margin: 0;
    
}
.rrss li img {
    width: 30px;
    height: auto;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;

}

.rrss li a{
    display: block;
}
.rrss li:hover img {
    transform: scale(1.2); /* crece un poquito */
    opacity: 0.8;
}



@media screen and (max-width:900px){ /* mediano */
    
    /* Cambio el logotipo por el símbolo */
    .contenedor h1 .logotipo {
        display: none;
    }
    .contenedor h1 .simbolo {
        display: block;
        width: 30px;
    }
    .hamburguesa {
        display: block;
        width: 30px; /* tamaño de las rayitas */
        height: auto;
        
}
  /* Esto lo activo con JS */
   .menu{
        position: fixed;
        top:-100dvh;
        left: 0;
        padding: 20px;
        background-color: #e2f9a1;
        font-size: 1.8em;
        width: 100%;
        height: 100dvh;
        transition: top 0.5s ease-in-out;
        text-align: center;
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        
    }
    .desplegado{
        top:0;
        z-index: 6;
    }
   .menu ul {
        list-style: none;
        padding: 0;
        display:block;
       
    }
    
   .menu li:not(:first-child){
        margin-top: 40px;
    }
    
    .cerrar{ 
        display: block;
        position: absolute;
        width: 30px; /* igual que mi burguer */
        border: none;
        background-color: transparent;
        color: black;
        font-size: 1.5em;
        top: 10px;
        right: 20px;
    }
.streetArt {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 600px) { /* esto es para móvil */
    .streetArt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}