:root {
    --bg: #fcfcfc;
    --surface: #ffffff;
    --accent: #eb5e28;
    --text-main: #1a1a1a;
    --text-muted: #717171;
    --line: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
}

/* --- MODO ESCRITORIO (SIN SCROLL) --- */
@media (min-width: 901px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    .split-layout {
        display: flex;
        width: 100%;
        height: 100vh;
    }

    .hero-identity {
        flex: 1;
        padding: 0 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .projects-column {
        flex: 1;
        display: grid;
        grid-template-rows: repeat(4, 1fr);
        /* Divide la pantalla en 4 partes iguales */
        border-left: 1px solid var(--line);
        background-color: var(--surface);
        height: 100%;
        padding-bottom: 50px;
    }

    .project-card-split {
        padding: 0 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* --- TIPOGRAFÍA Y ESTILOS COMUNES --- */
.label-tech {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.display-name {
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 0.85;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.hero-details {
    margin-top: 30px;
    max-width: 500px;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.project-card-split {
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.3s ease;
}

.project-card-split:hover {
    background-color: #f9f9f9;
}

.p-year {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.project-card-split h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.project-card-split p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Tarjeta especial de contacto */
.contact-card-special h3 {
    color: var(--accent);
}

.contact-actions-inline {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.link-action {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-action:hover {
    color: var(--accent);
}

/* Ticker */
.skills-ticker {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--accent);
    height: 50px;
    display: flex;
    align-items: center;
    z-index: 100;
}

.ticker-wrapper {
    display: flex;
    white-space: nowrap;
}

.ticker-content {
    animation: marquee 40s linear infinite;
}

.ticker-content span {
    color: white;
    padding: 0 30px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .hero-identity {
        padding: 80px 40px;
        height: auto;
    }

    .projects-column {
        display: block;
        width: 100%;
        border-left: none;
        padding-bottom: 60px;
    }

    .project-card-split {
        padding: 60px 40px;
        display: block;
    }
}