
/* Reset CSS para eliminar márgenes, padding y estilos por defecto del navegador */

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

html, body {
  height: 100%;
}

/* Elimina estilos de listas */
ul, ol {
  list-style: none;
}

/* Elimina estilos de enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Elimina estilos de imágenes */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Elimina estilos de botones y formularios */
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Normaliza títulos, párrafos y divs */
h1, h2, h3, h4, h5, h6, p, div, figure, figcaption, blockquote, pre {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-weight: normal;
}

/* Tablas sin bordes ni espacios */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th, td {
  padding: 0;
  text-align: left;
}

/* Elimina estilos de listas de definición */
dl, dt, dd {
  margin: 0;
  padding: 0;
}

/* Elimina estilos de citas */
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

/* Elimina estilos de subrayado y cursiva */
em, i {
  font-style: normal;
}
b, strong {
  font-weight: normal;
}

/* Elimina outline en botones al hacer click */
button:focus, input:focus, textarea:focus, select:focus {
  outline: none;
}
/* Estilos de la cuadrícula */

html {
  scroll-behavior: smooth;
}


:root {
    --color-texto: #FFB30D;
    --color-bg-header: #202022;
    --color-bg-section: #CACACA;
}

span {
    color: #fff;
    background-color: #FF4858;
    margin: 1px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--color-bg-header);
}

body {
    font-family: 'Saira Stencil', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    width: 80%;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
    "header"
    "main"
    "footer";
    gap: 1rem;
    background-color: #fff;
}

.redes {
    padding: .5em;
    height: auto;
    width: 100%;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
}


h4 {
    text-align: center;
    color: var(--color-texto);
    letter-spacing: 2px;
    font-size: 1.7rem;
    width: 100%;
    height: auto;
    background: none;
    margin-bottom: 1.2em;
    background-color: var(--color-bg-header);
}

.habilidades, .proyectos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    padding: .5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.header {
    align-items: center;
    background-color: var(--color-bg-header);
    border-bottom: 3px solid var(--color-texto);
    color: var(--color-texto);
    display: flex;
    grid-area: header;
    height: 5rem;
    justify-content: space-between;
    padding: .5em;
    width: 100%;
}

.div-header {
    width: 100%;
    height: 100%;
    padding: .5em;
}

.h1-header {
    text-transform: uppercase;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 3px;
}


.main {
    grid-area: main;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.inicio {
    width: 100%;
    height: calc(90vh - 5rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.div-inicio {
    width: 100%;
    height: 100%;
    padding: .5em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4em;
}

.div-img {
    width: 100%;
    height: 100%;
}

.div-img img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20, 20, 22, 0.7);
}

.div-inicio-texto {
    /* position: relative; */
    width: 100%;
    height: auto;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    gap: 1em;
}

.div-inicio-texto h2 {
    box-shadow: 0 2px 8px rgba(20, 20, 22, 0.7);
    border-radius: 10px;
    font-size: 2.5rem;
    height: auto;
    letter-spacing: 2px;
    padding: 1em;
    width: 100%;
}

.raya {width: 6rem; height: .5rem; background-color: red;}

.div-inicio-texto p {
    box-shadow: 0 2px 8px rgba(20, 20, 22, 0.7);
    border-radius: 10px;
    font-size: 2rem;
    height: auto;
    letter-spacing: 1px;
    padding: 1em;
    width: 100%;
}

.div-habilidades {
    width: 100%;
    height: 100%;
}

.ul-habilidades {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1em;
}

.ul-habilidades li {
    width: 50em;
    height: 40em;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0 2px 8px black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .2em;
}

.ul-habilidades li img {
    object-fit: cover;
    object-position: center center;
    max-width: 100%;
    height: auto;
}

.ul-habilidades li p {
    width: 100%;
    text-align: center;
}

.div-proyecto {
    width: 100%;
    height: 100%;
    padding: .5em;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: .5em;
    gap: .5em;
}


.div-li-proyecto {
    color: #fff;
    background-color: #59707E;
    width: 100%;
    letter-spacing: 2px;
    padding: .5em;
    border-radius: 5px;
}


.ul-proyecto h5 {
    font-weight: 800;
    padding: .2em;
    /* border: 1px solid black; */
    text-align: justify;

}

.ul-proyecto p {
    text-align: start;
    width: 100%;

}

.ul-proyecto img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center center;
    border-radius: 10px;
}


.footer {
    grid-area: footer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 5rem;
    padding: .5em;
    background-color: var(--color-bg-header);
}

.div-link {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-size: 2rem;
}

.footer p {
    color: var(--color-texto);
}

.navbar {
    font-size: 1.2em;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    position: relative;
    padding: .5em;
}

.navbar-menu {
    display: flex;
    gap: 1em;
}

.navbar-menu li a {
    border-radius: 4px;
    padding: .5em;
}

.navbar-menu li a:hover {
    border: 1px solid #FA7F08;
}


.hamburguesa {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Tres rayitas */
.hamburguesa span {
    width: 25px;
    height: 3px;
    background: var(--color-texto);
    margin: 4px 0;
    transition: 0.4s;
}

/* CONTACTO */
/* Formulario de contacto */
.contacto {
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    padding: 32px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.form-contacto {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: .5em;
}
.form-group label {
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border: 1.5px solid #007bff;
    outline: none;
}

.form-contacto button {
    padding: .6em 0;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.form-contacto button:hover {
    background: #0056b3;
}




/* MEDIA QUERY ------------------------------------------- */




@media (max-width: 1200px) {
    .inicio {
        width: 100%;
    }

    .main {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }
}



@media (max-width: 1024px) {

    html{width: 100%; height: 100%;}

    .inicio {height: auto;gap: 1em;}

    .div-inicio {
        flex-direction: column;
        padding: .2em;
        gap: .5em;
    }

    .div-img {
        width: 30rem;
        height: 40rem;
        align-self: center;
        margin-left: 0;
    }

    .div-inicio-texto {
        align-items: center;
        justify-content: center;
        gap: .5em;
        padding: .2em;
    }

    .div-inicio-texto h2 {
        font-size: 1rem;
        pad: .2em;
    }

    .raya{display: none;}

    .div-inicio p {
        font-size: 1rem;
        padding: .2em;
        width: 100%;
    }

}

@media (max-width: 870px) {

    html{width: 100%;height: 100%;}

    .h1-header {font-size: 1.5rem; text-align: start;}
    .navbar {width: 30%;}
    .navbar-menu {font-size: 1rem;}

    .inicio {width: 100%; height: auto;}

    .main {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }
}

@media (max-width: 768px) {

    html{width: 100%;height: 100%;}

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

    .inicio {width: 100%;height: auto;}

}

@media (max-width: 576px) {

    html{width: 100%;height: 100%;}

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

    body {width: 100%;gap: 2em;}

    .inicio {width: 100%;height: auto;}

    .habilidades {
        width: 100%;
        gap: .5em;
    }

    .ul-habilidades {
        width: 100%;
        flex-flow: row wrap;
        justify-content: center;
        align-content: center;
        gap: .5em;
    }

    .ul-habilidades li {
        width: 20rem;
        height: auto;
        align-self: center;
    }

    .div-inicio-texto {
        width: 100%;
    }


    .header {
        width: 100%;
    }

    .main {
        width: 100%;
        height: 100%;
    }

    .footer {
        width: 100%;
    }

/* menu ----------------------------------- */
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 140px;
        color: white;
        background: rgba(20, 20, 22, 0.5);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        padding: .5rem;
        font-size: 1.5rem;
        border-radius: 5px;
    }

    .navbar-menu.active {
        display: flex;
    }
    .hamburguesa {
        display: flex;
    }

    .navbar-menu li a:hover {
    border: none;
    }

}




