:root {
            --bg-main: #FAFAFA;
            --bg-accent: #FDFBFB;
            --bg-footer: #F5EAEB;
            --text-primary: #111827;
            --text-secondary: #4B5563;
            --accent-color: #831843;
            --border-light: #E5E7EB;
        }

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

        body {
            background-color: var(--bg-main);
            color: var(--text-primary);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
        }

       .container {
            max-width: 1080px;   /* antes 840px, para dar espacio a 3 columnas */
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        /* --- Header --- */
        .header {
            margin-bottom: 5rem;
        }

        .header-top {
            display: flex;
            align-items: center;
            font-size: 1rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
            letter-spacing: -0.01em;
        }

        .header-top .brand {
            color: var(--accent-color);
            font-weight: 700;
            margin-right: 0.5rem;
        }

        .divider {
            border: none;
            height: 1px;
            background-color: var(--border-light);
            margin-bottom: 1.5rem;
        }

        .meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-secondary);
            font-weight: 600;
        }

        .status {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--accent-color);
            border-radius: 50%;
        }

        /* --- Tipografía principal --- */
        h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.03em;
            margin-bottom: 2.5rem;
            color: var(--text-primary);
        }

        h2 {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: -0.02em;
            margin-bottom: 1.5rem;
        }

        p {
            font-size: 1.125rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            font-weight: 300;
        }

        /* --- Perfil --- */
        
        .profile-grid {
            display: grid;
            grid-template-columns: 1fr 1.8fr ;
            gap: 3rem;
            margin: 5rem 0;
            align-items: start;
        }
        .side-img {
            margin-top: 0;
        }

        .profile-img-wrapper {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }

        .profile-img-wrapper img {
            width: 100%;
            height: auto;
            display: block;
            filter: grayscale(20%);
            transition: filter 0.3s ease;
        }

        .profile-img-wrapper:hover img {
            filter: grayscale(0%);
        }

        /* --- Propuestas --- */
       .container > article,
        .proposals {
            max-width: 840px;
        }

        .proposals-list {
            list-style: none;
            margin: 2rem 0;
            padding: 0;
        }

        .proposals-list li {
            font-size: 1.125rem;
            color: var(--text-primary);
            margin-bottom: 1rem;
            padding-left: 2rem;
            position: relative;
            font-weight: 400;
        }

        .proposals-list li::before {
            content: "—";
            position: absolute;
            left: 0;
            color: var(--accent-color);
            font-weight: 700;
        }

        /* --- Footer --- */
        .footer {
            background-color: var(--bg-footer);
            padding: 6rem 2rem;
            text-align: center;
        }

        .footer-content {
            max-width: 840px;
            margin: 0 auto;
        }

        .footer blockquote {
            font-size: clamp(1.75rem, 4vw, 2.5rem);
            font-weight: 500;
            line-height: 1.2;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 3rem;
            position: relative;
        }

        .manifesto {
            font-size: 1rem;
            color: var(--text-secondary);
            font-weight: 500;
            letter-spacing: 0.02em;
            margin-bottom: 3rem;
            line-height: 2;
        }

        .manifesto span {
            display: block;
        }

        .signature {
            border-top: 1px solid rgba(0,0,0,0.1);
            padding-top: 2rem;
            display: inline-block;
        }

        .signature strong {
            display: block;
            font-size: 1.25rem;
            color: var(--text-primary);
            margin-bottom: 0.25rem;
        }

        .signature small {
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* --- Responsive --- */
        @media (max-width: 768px) {
            .profile-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
            .meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
            }
            .container, .footer {
                padding: 3rem 1.5rem;
            }
        }

        /* ============ ANIMACIONES ============ */

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes reveal {
    from { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 28px)); }
    to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes growLine {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Carga inicial (no requiere JS) */
.header { position: relative; border-bottom: none; }
.header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--border-light);
    transform-origin: left;
    animation: growLine 1.2s 0.3s cubic-bezier(.2,.7,.2,1) both;
}
.header-top { animation: fadeDown 0.8s ease both; }

h1 { animation: fadeUp 1s 0.25s cubic-bezier(.2,.7,.2,1) both; }
.intro p { animation: fadeUp 0.9s cubic-bezier(.2,.7,.2,1) both; }
.intro p:nth-child(1) { animation-delay: 0.55s; }
.intro p:nth-child(2) { animation-delay: 0.7s; }
.intro p:nth-child(3) { animation-delay: 0.85s; }
.intro p:nth-child(4) { animation-delay: 1s; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; }
.js .reveal.is-visible {
    opacity: 1;
    animation: reveal 0.9s cubic-bezier(.2,.7,.2,1) backwards;
    animation-delay: var(--delay, 0s);
}

/* Imágenes */
.profile-img-wrapper {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.profile-img-wrapper:hover {
    box-shadow: 0 16px 40px rgba(131, 24, 67, 0.18);
    transform: translateY(-4px);
}
.profile-img-wrapper img {
    transition: filter 0.4s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.profile-img-wrapper:hover img { transform: scale(1.05); }

/* Lista de propuestas */
.proposals-list li {
    transition: transform 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, background-color 0.3s ease;
}
.proposals-list li:hover {
    transform: translateX(8px);
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(131, 24, 67, 0.08);
}
.proposals-list li::before { transition: transform 0.3s ease; }
.proposals-list li:hover::before { transform: translateY(-50%) scale(1.2); }

/* Manifiesto */
.manifesto span {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.manifesto span:hover {
    color: var(--accent-color);
    letter-spacing: 0.06em;
}

/* Barra de progreso */
.progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-color);
    z-index: 100;
    transition: width 0.1s linear;
}

/* Scroll suave */
html { scroll-behavior: smooth; }

/* Accesibilidad: sin animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .js .reveal { opacity: 1; }
    html { scroll-behavior: auto; }
}