/* =========================================
   ESTEBAN SANJURJO
   Sitio personal
   ========================================= */

:root {
    --background: #11111b;
    --background-soft: #181824;
    --text: #f2f2f5;
    --text-muted: #b9b9c5;
    --accent: #70d8ff;
    --border: rgba(255, 255, 255, 0.12);
    --font: "Segoe UI", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
}

/* =========================================
   ESTRUCTURA PRINCIPAL
   ========================================= */

.hero {
    min-height: calc(100vh - 65px);
    display: grid;
    grid-template-columns: 52% 48%;
    position: relative;
    overflow: hidden;
}

/* =========================================
   CONTENIDO
   ========================================= */

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px clamp(32px, 7vw, 110px);
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

h1 {
    font-size: clamp(2.8rem, 4.5vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.08;
    margin-bottom: 32px;
}

h1 span {
    color: var(--accent);
}

.intro {
    max-width: 520px;
    color: var(--text);
    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: 18px;
}

.description {
    max-width: 490px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.8;
}

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

.contact {
    display: flex;
    gap: 14px;
    margin-top: 42px;
}

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #11111b;
    border-radius: 5px;
    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.social-link svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: none;
}

.social-link:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

.email {
    color: var(--accent);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 30px;
    width: fit-content;
    transition: opacity 0.2s ease;
}

.email:hover {
    opacity: 0.7;
}

/* =========================================
   IMAGEN LATERAL
   ========================================= */

.hero-image {
    min-height: 500px;
    position: relative;
    background-color: var(--background-soft);

    background-image:
        linear-gradient(
            90deg,
            var(--background) 0%,
            rgba(17, 17, 27, 0.2) 30%,
            rgba(17, 17, 27, 0.05) 100%
        ),
        url("assets/fondo-web.png");

    background-size: cover;
    background-position: 100% center;
    filter: grayscale(100%);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(17, 17, 27, 0.15),
            rgba(17, 17, 27, 0.3)
        );
    pointer-events: none;
}

/* =========================================
   PIE DE PÁGINA
   ========================================= */

.footer {
    min-height: 65px;
    padding: 20px clamp(32px, 7vw, 110px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: #777787;
    font-size: 0.78rem;
    border-top: 1px solid var(--border);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        min-height: 680px;
        padding: 70px 32px;
    }

    .hero-image {
        min-height: 360px;
        order: 2;
        background-position: center;
    }

    .footer {
        padding: 22px 32px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {

    .hero-content {
        min-height: 620px;
        padding: 50px 24px;
    }

    h1 {
        font-size: 2.65rem;
    }

    .intro {
        font-size: 1rem;
    }

    .description {
        font-size: 0.92rem;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .email {
        font-size: 0.82rem;
    }

    .hero-image {
        min-height: 280px;
    }

    .footer {
        padding: 20px 24px;
    }
}