/* =========================================================
   PORTAFOLIO PROFESIONAL — EVA ARRIAGADA FARÍAS
   Estilo editorial elegante / inspiración retro profesional
========================================================= */

:root {
    --cream: #f8eee6;
    --paper: #fff8f3;
    --beige: #d8d0c7;
    --beige-soft: #ebe3dc;
    --plum: #3d2853;
    --plum-soft: #665570;
    --ink: #342f34;
    --muted: #756b70;
    --line: #d6c7c2;
    --rose: #d8b4ad;
    --yellow: #f1c94c;
    --white: #ffffff;
    --shadow: 0 28px 70px rgba(61, 40, 83, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   NAVEGACIÓN
========================================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(248, 238, 230, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(61, 40, 83, 0.09);
}

.navbar {
    width: min(1280px, calc(100% - 70px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--plum);
    letter-spacing: -1.5px;
}

.logo span {
    color: var(--rose);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--plum-soft);
    font-size: 14px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--plum);
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn {
    padding: 11px 24px;
    border: 1px solid var(--plum);
    border-radius: 999px;
    color: var(--plum);
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.contact-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--plum);
}

/* =========================================================
   PORTADA CON FOTOGRAFÍA DE FONDO
========================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 820px;
    padding: 70px 6% 95px;

    background:
    linear-gradient(
        rgba(255, 248, 243, 0.10),
        rgba(255, 248, 243, 0.10)
    ),
    url("../img/fondo-portafolio-limpio.png");

background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}

/* capa suave sobre el fondo */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(255, 248, 243, 0.08);

    pointer-events: none;
}

/* =========================================================
   GRAN MARCO CENTRAL
========================================================= */

.hero-card {
    position: relative;
    z-index: 2;

    width: min(1220px, 92%);
    min-height: 590px;
    margin: 0 auto;
    padding: 65px 72px;

    display: grid;
    grid-template-columns: 1.05fr 0.82fr 1fr;
    align-items: center;
    gap: 45px;

    /* Fondo totalmente opaco: evita que cualquier elemento del fondo
       se vea a través de la tarjeta y parezca contenido duplicado. */
    background: linear-gradient(
        135deg,
        rgb(226, 219, 212) 0%,
        rgb(239, 232, 225) 55%,
        rgb(232, 224, 217) 100%
    );

    border: 2px solid var(--plum);
    border-radius: 55px;

    box-shadow:
        0 35px 80px rgba(61, 40, 83, 0.17),
        inset 0 0 0 12px rgba(255,255,255,0.08);

    overflow: hidden;
    isolation: isolate;
}

/* decoración superior derecha */

.hero-card::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    right: -110px;
    top: -140px;

    border: 1px solid rgba(61, 40, 83, 0.14);
    border-radius: 50%;
}

/* decoración inferior izquierda */

.hero-card::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    left: -95px;
    bottom: -100px;

    border: 1px solid rgba(61, 40, 83, 0.15);
    border-radius: 50%;
}

/* =========================================================
   IZQUIERDA PORTADA
========================================================= */

.hero-intro {
    position: relative;
    z-index: 3;
}

.eyebrow {
    margin-bottom: 19px;
    color: var(--plum-soft);
    font-size: 14px;
}

.eyebrow::before {
    content: "✦";
    margin-right: 10px;
    color: var(--plum);
}

.hero-intro h1 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--plum);
    font-size: clamp(65px, 6vw, 98px);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -5px;
    text-shadow: 0 2px 1px rgba(255,255,255,0.25);
}

.hero-intro h1 span {
    display: block;
    margin-top: 18px;
    font-size: 0.45em;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.location {
    max-width: 350px;
    margin-top: 34px;
    color: #6e6269;
    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   RETRATO CENTRAL
========================================================= */

.portrait-wrap {
    position: relative;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-wrap::before {
    content: "";
    position: absolute;
    width: 252px;
    height: 405px;

    border: 1px solid rgba(61, 40, 83, 0.32);

    border-radius:
        48% 48% 44% 44% /
        28% 28% 43% 43%;

    transform: translate(15px, 14px);
}

.portrait {
    position: relative;
    z-index: 2;

    width: 238px;
    height: 390px;

    object-fit: cover;
    object-position: center top;

    border-radius:
        48% 48% 44% 44% /
        28% 28% 43% 43%;

    box-shadow: 0 25px 45px rgba(51, 39, 55, 0.24);
}

/* =========================================================
   PERFIL DERECHA
========================================================= */

.hero-profile {
    position: relative;
    z-index: 3;
}

.small-title {
    margin-bottom: 12px;
    color: var(--plum-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-profile h2 {
    margin-bottom: 23px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--plum);
    font-size: clamp(35px, 3.5vw, 52px);
    line-height: 0.96;
    font-weight: 500;
    letter-spacing: -2px;
}

.hero-profile h2 span {
    display: block;
    position: relative;
    width: fit-content;
}

.hero-profile h2 span::after {
    content: "";
    position: absolute;
    left: -3px;
    right: -8px;
    bottom: -7px;
    height: 9px;

    background: var(--yellow);
    border-radius: 50%;
    transform: rotate(-2deg);

    z-index: -1;
}

.hero-profile p {
    max-width: 350px;
    color: #514850;
    font-size: 14px;
}

.hero-description {
    margin-top: 18px;
}

.hero-stack {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(61, 40, 83, 0.20);
    color: var(--plum);
    font-size: 12px;
    font-weight: 700;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 22px;
}

.social-links a {
    color: var(--plum);
    font-size: 13px;
    font-weight: 700;
}

.social-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   DESCUBRE MI PERFIL
========================================================= */

.scroll-down {
    position: relative;
    z-index: 3;

    width: fit-content;
    margin: 31px auto 0;

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

    color: var(--plum);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border: 1px solid rgba(61,40,83,0.35);
    border-radius: 50%;

    background: rgba(255,255,255,0.35);
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    padding: 110px 0;
    border-top: 1px solid var(--line);
}

.section-number {
    margin-bottom: 30px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--rose);
    font-size: 17px;
}

.section-heading {
    margin-bottom: 58px;
}

.section-label {
    margin-bottom: 12px;
    color: var(--plum-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

.section-heading h2,
.contact-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--plum);
    font-size: clamp(48px, 5.5vw, 76px);
    line-height: 0.95;
    font-weight: 500;
    letter-spacing: -3px;
}

.section-heading > p:last-child {
    max-width: 670px;
    margin-top: 22px;
    color: var(--muted);
}

/* =========================================================
   SOBRE MÍ
========================================================= */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-main h3 {
    max-width: 520px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ink);
    font-size: clamp(31px, 3.5vw, 47px);
    font-weight: 400;
    line-height: 1.28;
}

.about-text {
    color: var(--muted);
    font-size: 16px;
}

.about-text p + p {
    margin-top: 23px;
}

/* =========================================================
   PROYECTOS
========================================================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    min-height: 410px;
    padding: 40px;

    border: 1px solid rgba(61,40,83,0.20);
    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(255,250,246,0.92),
            rgba(247,238,231,0.78)
        );

    display: flex;
    flex-direction: column;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(61,40,83,0.42);
    box-shadow: 0 24px 55px rgba(61,40,83,0.11);
}

.project-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;
}

.project-number {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--rose);
    font-size: 17px;
}

.project-type {
    color: var(--plum-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.project-card h3 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--plum);
    font-size: 33px;
    font-weight: 500;
}

.project-card > p {
    color: var(--muted);
    font-size: 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 27px;
}

.tags span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.38);
    color: var(--plum-soft);
    font-size: 10px;
}

.project-link {
    width: fit-content;
    margin-top: auto;
    padding-top: 30px;
    color: var(--plum);
    font-size: 13px;
    font-weight: 800;
}

.project-link:hover {
    text-decoration: underline;
}

/* =========================================================
   TECNOLOGÍAS
========================================================= */

.technology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}

.technology-group {
    padding: 42px 35px 42px 0;
    border-bottom: 1px solid var(--line);
}

.technology-group:nth-child(even) {
    padding-left: 50px;
    border-left: 1px solid var(--line);
}

.technology-group h3 {
    margin-bottom: 14px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--plum);
    font-size: 27px;
    font-weight: 500;
}

.technology-group p {
    max-width: 470px;
    color: var(--muted);
}

/* =========================================================
   CONTACTO
========================================================= */

.contact {
    padding-bottom: 125px;
}

.contact-content {
    max-width: 850px;
}

.contact-content h2 {
    margin-bottom: 32px;
}

.contact-content > p:not(.section-label) {
    max-width: 700px;
    color: var(--muted);
    font-size: 17px;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.contact-links a {
    padding: 13px 24px;
    border: 1px solid var(--plum);
    border-radius: 999px;

    color: var(--plum);
    font-size: 13px;
    font-weight: 700;

    transition: 0.25s ease;
}

.contact-links a:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    padding: 35px 0 48px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;
    gap: 30px;

    color: var(--muted);
    font-size: 11px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .nav-links {
        display: none;
    }

    .hero {
        background-size: cover;
        background-position: 30% center;
    }

    .hero-card {
        padding: 55px 40px;
        grid-template-columns: 1fr 1fr;
        background: rgb(226, 219, 212);
    }

    .hero-intro {
        grid-column: 1 / -1;
        text-align: center;
    }

    .location {
        margin-left: auto;
        margin-right: auto;
    }

    .portrait {
        width: 220px;
        height: 350px;
    }

    .portrait-wrap::before {
        width: 235px;
        height: 365px;
    }

    .about-content {
        gap: 50px;
    }
}

/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 700px) {

    .navbar {
        width: min(100% - 30px, 1180px);
        min-height: 70px;
    }

    .logo {
        font-size: 23px;
    }

    .contact-btn {
        padding: 9px 14px;
        font-size: 11px;
    }

    .hero {
        min-height: auto;
        padding: 35px 12px 65px;

        background:
            linear-gradient(
                rgba(248,238,230,0.74),
                rgba(248,238,230,0.94)
            ),
            url("../img/fondo-portafolio-limpio.png");

        background-size: cover;
        background-position: center top;
    }

    .hero-card {
        width: 100%;
        min-height: auto;
        padding: 48px 24px;
        border-radius: 38px;
        grid-template-columns: 1fr;
        gap: 42px;

        background: rgb(226, 219, 212);
    }

    .hero-intro {
        grid-column: auto;
    }

    .hero-intro h1 {
        font-size: 59px;
        letter-spacing: -3px;
    }

    .hero-intro h1 span {
        font-size: 0.47em;
    }

    .portrait {
        width: 205px;
        height: 330px;
    }

    .portrait-wrap::before {
        width: 218px;
        height: 344px;
    }

    .hero-profile {
        text-align: center;
    }

    .hero-profile h2 span {
        margin: 0 auto;
    }

    .hero-profile p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stack {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .section {
        width: min(100% - 32px, 1180px);
        padding: 78px 0;
    }

    .about-content,
    .project-grid,
    .technology-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 38px;
    }

    .project-card {
        min-height: 370px;
        padding: 31px;
    }

    .technology-group,
    .technology-group:nth-child(even) {
        padding: 31px 0;
        border-left: 0;
    }

    .footer {
        width: min(100% - 32px, 1180px);
        flex-direction: column;
        gap: 8px;
    }
}
