/* =====================================================
   Estilos de secciones
   Hero · About · Tecnologías · Portfolio
===================================================== */


/* =====================================================
   Hero Section – Fondo
===================================================== */
.hero {
    background: linear-gradient(
        245.59deg,
        rgb(201, 201, 201) 0%,
        rgb(142, 142, 142) 45%,
        rgb(48, 48, 48) 75%
    );
}


/* =====================================================
   Hero – Tipografía
===================================================== */
.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 38px;
}

.hero-text h5 {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-text h1 {
    max-width: 1020px;
    font-family: 'Inconsolata', monospace;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 16px;
}

.hero-line-1 {
    white-space: nowrap;
}


.hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9fb39f;
    margin-top: 15px;
    margin-bottom: 40px;
}

.hero-text p {
    font-size: 95%;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
    color: #e0e0e0;
}



/* =====================================================
   Hero – Imagen principal
===================================================== */

.borde-img {
    width: 500px;
    margin-right: -80px;
    justify-self: end;
    
}



.hero-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 10%;
    max-height: 400px;
    filter: contrast(0.95) brightness(0.95);
}

/* =====================================================
   Hero – Botones
===================================================== */

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn.primary {
    background-color: rgb(21, 18, 18);
    border: 1px solid transparent;
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.primary:hover,
.btn.secondary:hover {
    background-color: transparent;
    border-color: white;
    transform: translateX(6px);
}



/* =====================================================
   About (CV narrativo)
===================================================== */
.about {
    background-color: #0b0f0b;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
}


.about-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-intro p {
    max-width: 700px;
    font-size: 95%;
    line-height: 1.8;
}

.about h3 {
    font-size: 22px;
    font-weight: 600;
}

.about p {
    font-size: 90%;
    line-height: 1.8;
    color: #e6e6e6;
}


/* =====================================================
   About – Listas
===================================================== */
.about ul {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.about li {
    position: relative;
    font-size: 90%;
    line-height: 1.6;
}

.about li::before {
    content: "–";
    position: absolute;
    left: -20px;
    color: #7fa87f;
}


/* =====================================================
   Tecnologías
===================================================== */
.technologies {
    background-color: #0b0f0b;
}

.technologies h2 {
    scroll-margin-top: 90px;
}


.technologies-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 120px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 80px;
}

.technologies-intro {
    grid-column: 1 / -1;
    max-width: 900px;
}

.technologies-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.technologies-intro p {
    font-family: 'Inconsolata', monospace;
    font-size: 95%;
    line-height: 1.6;
    color: #d0d0d0;
}

.tech-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-group h3 {
    font-size: 22px;
    font-weight: 600;
}

.tech-logos {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.tech-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: invert(1) grayscale(100%) brightness(0.9);
    transition: all 0.3s ease;
}

.tech-item:hover img {
    filter: invert(1) grayscale(0%) brightness(1);
}

.tech-item span {
    font-size: 80%;
    color: #cfcfcf;
    text-align: center;
}

.tech-detail {
    font-size: 85%;
    color: #a8a8a8;
    line-height: 1.6;
}

/* =====================================================
   Portfolio
===================================================== */

.portfolio {
    background-color: #0b0f0b;
    padding: 100px 8%;
}

.portfolio-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 60px;
    row-gap: 80px;
}

/* Línea vertical central (hilo conductor) */
.portfolio-container::before {
    content: "";
    position: absolute;

    top: 260px;      /* baja para no invadir la intro */
    bottom: 40px;

    left: 50%;
    width: 1px;

    background-color: rgba(255, 255, 255, 0.08);
    transform: translateX(-50%);
}

/* =====================================================
   Intro del portfolio
===================================================== */

.portfolio-intro {
    grid-column: 1 / -1;
    max-width: 900px;
}

.portfolio-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-intro p {
    font-size: 95%;
    line-height: 1.7;
    color: #d0d0d0;
}

/* =====================================================
   Project cards (base)
===================================================== */

.project-card {
    background-color: #111511;
    padding: 24px;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    gap: 16px;

    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Título */
.project-card h3 {
    font-size: 20px;
    font-weight: 600;
}

/* Estado */
.project-status {
    font-size: 80%;
    color: #9aa89a;
}

/* Descripción */
.project-description {
    font-size: 90%;
    line-height: 1.6;
    color: #d0d0d0;
}

/* Tecnologías */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.project-tech li {
    font-size: 75%;
    padding: 4px 10px;

    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Acciones */
.project-actions {
    margin-top: auto;

    display: flex;
    align-items: center;
    gap: 12px;
}

.project-actions .btn {
    font-size: 80%;
    padding: 8px 16px;

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);

    transition: background-color 0.3s ease;
}

.project-actions .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.project-note {
    font-size: 75%;
    color: #9aa89a;
}

/* =====================================================
   Project cards con imagen
===================================================== */

.project-with-image {
    gap: 20px;
}

.project-with-image .project-image {
    width: 100%;
    height: 250px;

    border-radius: 10px;
    overflow: hidden;

    background-color: #0b0f0b;
}

.project-with-image .project-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(40%) contrast(0.9) brightness(0.9);
    transition: filter 0.3s ease;
}

.project-with-image:hover .project-image img {
    filter: grayscale(0%) contrast(1) brightness(1);
}


/* =====================================================
   Contacto
===================================================== */
.contact {
    background-color: #0b0f0b;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 240px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}


/* =====================================================
   Contacto – Intro
===================================================== */
.contact-intro {
    max-width: 500px;
}

.contact-intro h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-intro p {
    font-size: 95%;
    line-height: 1.7;
    color: #d0d0d0;
}


/* =====================================================
   Formulario
===================================================== */
.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 80%;
    color: #b8b8b8;
}


/* Inputs */
.contact-form input,
.contact-form textarea {
    background-color: #111511;
    border: 1px solid rgba(255, 255, 255, 0.15);

    padding: 10px 12px;
    border-radius: 6px;

    font-family: inherit;
    font-size: 90%;
    color: white;

    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7fa87f;
}


/* Botón */

.btn {
    color: #b3b3b3;
}

.btn.btn:hover {
    color: #534c4cd4;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;

    padding: 10px 22px;
    font-size: 80%;
    border-radius: 20px;

    border: 1px solid rgba(119, 119, 119, 0.25);
    background-color: transparent;

    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}


/* =====================================================
   Links secundarios
===================================================== */
.contact-links {
    grid-column: 1 / -1;

    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: 60px;
    font-size: 85%;
}

.contact-links a {
    color: #9aa89a;
}

.contact-links a:hover {
    color: white;
}


/* =====================================================
   Utilidades
===================================================== */
.hidden {
    display: none;
}
