/* AQUI ESTA TODO LO GENERAL */
body {
    overflow: visible;
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: #fff;
    background: #111;
}

img {
    max-width: 100%;
    height: auto;
}

/* HEADER GENERAL */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 20px;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 950px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 60px;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu a {
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s ease;
}

.nav-menu a:hover {
    color: #c9c9c9;
}

/* ---------- HERO*/

.hero {
    width: 100%;
    height: 100vh;
    background-image: url("IMG/Diseño sin título.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-left: 80px;
    color: black;
	margin: 140px auto;
}

.hero-content {
    max-width: 480px;
}

.btn-hero {
    margin-top: 20px;
    background: #333;
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
.btn-hero:hover {
    background: #fff;
    color: #000;
}

/*IMAGEN COMPLETA*/
.full-img img {
    width: 100%;
    display: block;
    margin-top: 40px;
}

/*PROYECTO */
.proyecto {
    padding: 80px 6vw;
}

.proyecto h2 {
    font-size: 62px;
    letter-spacing: -1px;
}

.proyecto h2 span {
    font-size: 20px;
    color: #ccc;
}

.texto-proyecto {
    max-width: 800px;
    margin-top: 20px;
    line-height: 1.6;
    opacity: 0.9;
}

/* GALLERIA */
.gallery {
    width: 100%;
    max-width: 1300px;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 460px;
    gap: 12px;
}

.gallery .g img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.g1 { grid-column: 1 / span 4; }
.g2 { grid-column: 5 / span 4; }
.g3 { grid-column: 9 / span 4; }

.g4 { grid-column: 1 / span 4; transform: translateY(25px); }
.g5 { grid-column: 5 / span 4; transform: translateY(60px); }
.g6 { grid-column: 9 / span 4; transform: translateY(35px); }

/* ---------- FOOTER ---------- */
footer {
    background: #0b0b0b;
    color: #9a9a9a;
    padding: 26px 6vw;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.03);
}

.social a {
    color: #fff;
    margin: 0 10px;
}

/* ENCUESTA EMPIEZA AQUI  */
.formulario-container {
    width: 85%;
    max-width: 1200px;
    margin: 140px auto;        /* espacio debajo del header */
    padding: 50px 60px;
    background: #1d1d1d;
    border-radius: 6px;
    color: white;
    position: relative;
}


.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-left label,
.form-right label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    background: #262626;
    border: 1px solid #555;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    margin-bottom: 30px;
}

textarea {
    height: 160px;
    resize: none;
}

.social-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-small {
    width: 22px;
    opacity: 0.9;
}

/* Botón enviar */
.btn-enviar {
     background: transparent;
    border: 1px solid #777;
    padding: 12px 40px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-enviar:hover {
    background: #fff;
    color: #000;
}

/* Iconos del footer del formulario */
.form-footer-icons {
    margin-top: 40px;
    text-align: center;
}

.social-footer {
    width: 25px;
    margin: 0 10px;
    opacity: 0.9;
    cursor: pointer;
}

/* AQUI INICIA EL CONTACTO */


.contacto-container {
    width: 85%;
    max-width: 1300px;
    margin: 140px auto;
    color: white;
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.logo-gif {
    width: 200%;
    max-width: 550px;
    display: block;
    margin: auto;
}

.contact-right label {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
    display: block;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 14px 16px;
    background: #262626;
    border: 1px solid #777;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    margin-bottom: 25px;
}

.contact-right textarea {
    height: 120px;
    resize: none;
}

.contact-enviar {
    margin-top: 15px;
}

.btn-enviar {
    background: transparent;
    border: 1px solid #777;
    padding: 12px 40px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-enviar:hover {
    background: #fff;
    color: #000;
}


/* Iconos de redes */
.contacto-redes {
    text-align: right;
    margin-top: 35px;
}

.social-footer {
    width: 25px;
    margin-left: 12px;
    opacity: 0.9;
    cursor: pointer;
}

/* AQUI INICIA SOBRE MI */

h2, h3 { margin-top: 30px; }
ul { padding-left: 20px; }

.sidebar {
	margin: 140px auto;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    color: white;
    font-size: 14px;
}

.nav a.active {
    font-weight: bold;
}


.about-container {
    gap: 25px;
    padding: 40px 80px;
}


.perfil-img {
    width: 230px;
    border-radius: 20px;
    display: block;
    margin-bottom: 20px;
}


/*FOOTER */
.footer {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/*ESTO LO HACE RESPONSIVE*/

@media (max-width: 768px) {

    /* HEADER */
    .header-container {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        padding: 10px;
    }

    .nav-menu {
        gap: 20px;
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 50px;
    }


    /* HERO */
    .hero {
        height: auto;
        padding: 40px 20px;
        background-size: cover;
        background-position: right;
        margin: 120px 0 0 0; 
    }

    .hero-content {
        max-width: 320px;
        text-align: left;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
        line-height: 1.4;
        margin-top: 10px;
    }

    .btn-hero {
        font-size: 14px;
        padding: 10px 26px;
        border-radius: 10px;
        margin-top: 15px;
    }


    /* IMAGEN COMPLETA */
    .full-img img {
        margin-top: 20px;
    }


    /* GALERÍA */
    .gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 15px;
        margin: 30px auto;
    }

    .gallery .g img {
        height: 260px;
        object-fit: cover;
    }

    .g1, .g2, .g3, .g4, .g5, .g6 {
        grid-column: auto;
        transform: none;
    }


    /* PROYECTO */
    .proyecto {
        padding: 40px 20px;
    }

    .proyecto h2 {
        font-size: 32px;
    }

    .proyecto h2 span {
        font-size: 15px;
    }

    .texto-proyecto {
        font-size: 14px;
        line-height: 1.4;
    }


    /* ENCUESTA */
    .formulario-container {
        width: 90%;
        padding: 30px 20px;
        margin: 120px auto;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* CONTACTO */
    .contacto-container {
        width: 90%;
        margin: 120px auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .logo-gif {
        max-width: 300px;
        width: 100%;
    }


    /* SOBRE MÍ */
    .about-container {
        padding: 20px;
    }

    .sidebar {
        margin: 120px auto 20px;
        text-align: left;
    }

    .perfil-img-small {
        width: 130px;
    }


    /* FOOTER */
    .form-footer-icons p {
        font-size: 12px;
    }

    .social-footer {
        width: 20px;
    }
}