:root {
  --luffy-rojo: #E60012;    /* Color principal: botones, encabezados, elementos llamativos */
  --luffy-amarillo: #FFD700; /* Color de acento: íconos, subrayados, highlights */
  --luffy-beige: #FFF3C2;    /* Fondo suave para secciones */
  --luffy-negro: #000000;    /* Texto o bordes contrastantes */
  --luffy-marron: #C49E63;   /* Fondo de tarjetas o footer */
}



html{
     scroll-behavior: smooth;
       scroll-padding-top: 80px; /* altura de tu header fijo */
}

* {
  text-decoration: none;
  list-style: none;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}


/*=========body==========*/
body {
    background-image: url(../img/promise.jpeg) ;
        background-image: url(../img/promise.jpeg) ;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed; /* Evita que el fondo se mueva al hacer scroll */
    display: grid;
  height: 100vh;
  grid-template-areas: "header"
                       "main"
                       "footer"
  ;
grid-template-rows: 1fr 8fr 1fr;
min-width: 360px;
}

/*===========header============*/




.container {
    margin: 0 auto;
}

.menu{
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    background-color: #000000f3;
    background-size: cover;
    border-bottom: #1d1d1d;
    border-style: solid;
    position: fixed;
}

.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a{
    font-size: 14px;
    padding: 20px;
    display: block;
    color: rgb(255, 255, 255);
}
.menu .navbar ul li a:hover{
    color: #15617f;
}

#menu{
    display: none;
}

.menu label{
    cursor: pointer;
    display: none;
}






@media (max-width:800px) {

    .menu{
        justify-content: space-between;
        padding-inline: 30px;
    }
    
    .menu label{
        display: initial;
    }

    .menu .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #000000;
        display: none;
        text-align: center;
    }
    .menu .navbar ul li{
        width: 100%;
    }

    #menu:checked ~ .navbar{
        display: initial;
    }


    .portada {
        padding-top: 7%;
        flex-direction: column;
    }



    .imagen_cont img{
        max-height: 50%;
        position: absolute;
    }

    .sobre_mi{
    height: 50%;
    }
    
        .proyectos{
            height: 150vh !important; 
            border: none !important;
            border-radius: 0px !important;
        }

        .habilidades{
        display: flex !important;
        flex-direction: column !important; 
        align-items: center;
        justify-content: center;
        gap: 10%;
        height: 250vh !important;
            }

    .proyectos{
        height: 300vh !important;
        clip-path: none !important;
    }
    
    .list_proyectos{
        flex-direction: row !important;
        overflow-x: scroll  !important;
        overflow-y: none;
    }
    .list_proyectos div{
        min-width: 300px !important;

    }

}


/*=========main==========*/
main{
    grid-area: main;
    background-color: rgba(127, 255, 212, 0);
    margin-top: 70px;
}

/*=========footer==========*/
footer{
    grid-area: footer;
    background-color: rgba(0, 0, 0, 0.584);
    height: 10vh;
}

/*=========botones==========*/

.btn{
    background-color: rgb(255, 120, 120);
    padding: 8px;
    border-radius: 100px;
    cursor: pointer;
    border: #000;
    border-style: solid;
    
}

/*=========links==========*/

a{
    color: #000;
}

/*=========texto==========*/

h1 {
    font-family: 'Pirata One', 'Segoe UI', 'Arial', sans-serif;
    color: var(--luffy-rojo);
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 2px 2px 0 var(--luffy-negro), 4px 4px 8px var(--luffy-amarillo, #FFD700);
}

h2 {
    font-family: 'Pirata One', 'Segoe UI', 'Arial', sans-serif;
    color: var(--luffy-amarillo);
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 2px 2px 0 var(--luffy-negro), 4px 4px 8px var(--luffy-rojo, #E60012);
}

h3 {
    font-family: 'Pirata One', 'Segoe UI', 'Arial', sans-serif;
    color: var(--luffy-marron);
    font-weight: 500;
    text-shadow: 2px 2px 0 var(--luffy-negro);
}

h4, h5, h6 {
    font-family: 'Pirata One', 'Segoe UI', 'Arial', sans-serif;
    color: var(--luffy-beige);
    font-weight: 500;
    text-shadow: 2px 2px 0 var(--luffy-negro);
}

p {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--luffy-beige);
    text-shadow: 1px 1px 0 var(--luffy-negro);
    font-size: 1rem;
    line-height: 1.7;
}


/*=========portada==========*/
.portada{
    background-image:url(../img/d9e597ce9e2ebce0dba3a0ff60918d1d.jpg) ;
    background-size: cover;
    height: 90vh;
    min-height: min-content !important;
    width: 100%;
    min-width: 320px;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    border-bottom: #000;
    border-style: solid;
    min-height: 400px;
}

.portada::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(90, 27, 27, 0.087);
    z-index: -1;
    pointer-events: none;
}
.portada {
    position: relative;
    z-index: 0;
}


.imagen_cont{
    height: 100vh;
    min-height: min-content;
    display: flex;   
    justify-content: center;
    align-items: center;
    max-height: 700px;
}

.imagen_cont img{
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.695);
    height: 70%;
}

.sobre_mi{
    text-align: center;
    align-items: center;
    
}

.redes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.redes svg {
    cursor: pointer;
    width: 36px;
    height: 36px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    padding: 6px;
    border-radius: 50%;
    background: rgb(241, 240, 240);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.redes svg:hover {
    background: #15617f;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-3px) scale(1.08);
}

.bi {
    fill: black;
    transition: fill 0.2s;
}

.redes svg:hover .bi {
    fill: var(--luffy-negro);
}



/*=========sobremi_contenido=========*/



.sobremi_contenido{
    width: 100%;
    background-image:url(../img/fondomadera.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;    
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: end;
    flex-direction: column;
    padding: 20px;
    padding-bottom: 80px;
    gap: 20px;
    height: min-content;
    clip-path: ellipse(100% 100% at 50% 0%);

}

.sobremi_contenido h2{
    color: var(--luffy-rojo);
    font-family: 'Pirata One', 'Arial Black', Arial, sans-serif;
    text-shadow: 2px 2px 0 var(--luffy-negro), 4px 4px 8px var(--luffy-amarillo, #FFD700);      
}

.sobremi_contenido p{
    color: white;
    width: 90%;
    max-width: 900px;
}



/*=========habilidades==========*/

  .habilidades-section {
    min-height: 900px;
    padding: 60px 20px;
    font-family: 'Segoe UI', sans-serif;
    align-items: center; 
    display: flex;
  }

  .contenedor {
    max-width: 1000px;
    margin: auto;
    text-align: center;
  }

  .titulo {
    font-size: 2.5em;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .descripcion {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 40px;
  }

  .cuadricula {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
  }

  .carta {
    background: #1d1919e3;
    padding: 20px;
    border-left: 6px solid #333;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    text-align: left;
  }

  .carta h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffffff;
  }

  .carta ul {
    padding-left: 20px;
    color: #ffffffc0;
  }

  .carta li {
    margin-bottom: 6px;
  }

  /* Colores personalizados */
  .carta-amarilla { border-left-color: #fbbf24; }
  .carta-roja    { border-left-color: #ef4444; }
  .carta-azul    { border-left-color: #3b82f6; }
  .carta-verde   { border-left-color: #10b981; }
  .carta-morada  { border-left-color: #8b5cf6; }
  .carta-negra   { border-left-color: #111827; }



/*=========proyectos==========*/

.proyectos {
    position: relative;
  min-height: min-content;
  width: 100%;
  background-image: url(../img/fondosunny.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 30px;
  padding-top: 100px;
  padding-bottom: 100px;

  /* Borde visible */
  border-top: 40px  rgb(255, 253, 253);
  border-style: ridge;
  

  /* Curvas en la parte superior */
  border-top-left-radius: 40% 250px ;
  border-top-right-radius: 40% 250px;
}


.proyectos h2{
    font-size: 2.5rem;
    margin-bottom: 24px;
    text-align: center;
    letter-spacing: 2px;
    color: #ffffff;
}


.proyectos_contenedor{
    display: flex;
    flex-wrap: wrap;
    height: max-content;
    width: 90%;
    background-color: rgba(0, 0, 0, 0.56);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0,0, 0.1);
    padding: 20px;
    gap: 20px;
    justify-content: center;
}

.card{
    background-color: rgba(11, 9, 9, 0.848);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 400px;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: 'Pirata One', 'Arial', sans-serif;
}

.card-body {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-body button {
    background-color: var(--luffy-rojo);
    color: var(--luffy-beige);
    width: min-content;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Pirata One', 'Arial', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}

.card img{
    max-height: 150px;
   
}

.card:hover {
    transform: translateY(-5px);
}

.card-link {
    text-decoration: none;
    color: var(--luffy-beige);
    font-family: 'Pirata One', 'Arial', sans-serif;
}




/*=========contactos==========*/

.contactos{
    height: 100vh;
    max-height: 700px;
    min-height: min-content;
    width: 100%;
    background-image: url(../img/ponegilphfondo.jpg);
    background-image: 100% 100%;
    background-color: #000000;
    background-size: cover;
    background-position: bottom;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.contactos form{
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    max-width: 600px;
}

.contactos form input, .contactos textarea {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid var(--luffy-marron);
    background-color: rgba(255, 255, 255, 0.8);
    font-family: 'Pirata One', 'Arial', sans-serif;
}

.contactos button {
    background-color: var(--luffy-rojo);
    color: var(--luffy-beige);
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Pirata One', 'Arial', sans-serif;
    transition: background-color 0.3s, transform 0.2s;
}
.contactos button:hover {
    background-color: var(--luffy-amarillo);
}


.footer-container {
    background-color: rgba(255, 255, 255, 0);
    height: 100%;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

