            --perfil-accent: var(--bs-primary, #516d27);
        }

        .header {
            border-bottom: 5px solid var(--perfil-accent)

            ;
            /* La imagen llena todo el header (sin bordes negros), recortando lo
               mínimo arriba/abajo y manteniendo el sujeto centrado. No se altera
               el tamaño del header (la altura viene de johndoe.css). */
            background-color: #000;
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
        }

        /* En móvil el header adopta la proporción rectangular (16:9) de la imagen:
           así se ve completa, sin recorte lateral, y ocupa menos alto (más espacio
           para el contenido). 'scroll' es clave porque con 'fixed' el navegador
           dimensiona la imagen contra el viewport vertical y vuelve a recortar. */
        @media (max-width: 767.98px) {
            .header {
                height: 56.25vw;
                /* 16:9 respecto al ancho de la pantalla */
                min-height: 0;
                /* anula el min-height:500px que lo estiraba */
                background-attachment: scroll;
            }

            .header .header-content {
                padding: 12px;
                top: 50%;
            }

            .header .header-content .header-title {
                margin-bottom: 10px;
            }

            .header .header-content .header-mono {
                margin-bottom: 12px;
            }
        }

        .header .header-subtitle,
        .brand-title,
        .brand-subtitle,
        .about-card h3,
        .about-card h6,
        .about-card .icon-lg,
        .about-card a,
        .about-card a i,
        .navbar .nav-link:hover,
        .navbar .nav-link:focus,
        .navbar .nav-link.active,
        .footer a,
        .footer a:hover {
            color: var(--perfil-accent)

            !important;
        }

        .about-card a:hover,
        .about-card a:focus {
            color: var(--perfil-accent)

            !important;
            text-decoration: none;
        }

        .about-card .line,
        .brand-img {
            border-color: var(--perfil-accent)

            !important;
        }

        /* El avatar de perfil siempre es un círculo perfecto: alto = ancho y
           object-fit cover. Si la imagen es rectangular, se muestra solo lo que
           entra en el círculo (no se ajusta ni se deforma). */
        .navbar .brand .brand-img {
            height: 170px;
            object-fit: cover;
        }

        /* ===== Columnas Sobre mí / Trayectoria / Áreas: colapsar "Ver más" ===== */
        .about-section .about-card {
            display: flex;
            flex-direction: column;
        }

        .about-collapse {
            position: relative;
            max-height: 320px;
            /* alto considerable en escritorio */
            overflow: hidden;
            transition: max-height 0.45s ease;
        }

        .about-card.expanded .about-collapse {
            max-height: 4000px;
        }

        /* Degradado inferior que insinúa que hay más contenido */
        .about-collapse.has-overflow::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 70px;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .about-card.expanded .about-collapse.has-overflow::after {
            opacity: 0;
        }

        .about-toggle {
            display: none;
            /* el JS lo muestra solo si hay desbordamiento */
            align-items: center;
            gap: 0.35rem;
            align-self: flex-start;
            margin-top: 1rem;
            background: transparent;
            border: 2px solid var(--perfil-accent);
            color: var(--perfil-accent);
            font-weight: 600;
            font-size: 0.85rem;
            padding: 0.4rem 1.2rem;
            border-radius: 999px;
            cursor: pointer;
            transition: background 0.25s ease, color 0.25s ease;
        }

        .about-toggle:hover {
            background: var(--perfil-accent);
            color: #fff;
        }

        .about-toggle .ti-angle-down {
            transition: transform 0.3s ease;
        }

        .about-card.expanded .about-toggle .ti-angle-down {
            transform: rotate(180deg);
        }

        @media (max-width: 767.98px) {
            .about-collapse {
                max-height: 180px;
            }

            /* en móvil, menos info inicial */
        }

        /* ===== Sección Contacto (full-width, distribuida de lado a lado) ===== */
        .contact-section {
            overflow: hidden;
        }

        /* Título con línea que crece al entrar */
        .contact-section .contact-head h2 {
            position: relative;
            display: inline-block;
        }

        .contact-section .contact-head h2::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -10px;
            width: 0;
            height: 3px;
            border-radius: 2px;
            background: var(--perfil-accent);
            transform: translateX(-50%);
            transition: width 0.7s ease 0.25s;
        }

        .contact-section.is-visible .contact-head h2::after {
            width: 70px;
        }

        /* Tarjetas de contacto: aparición con scroll + stagger */
        .contact-section .contact-item {
            padding: 1.5rem 0.75rem;
            height: 100%;
            border-radius: 16px;
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, background 0.3s ease;
        }

        .contact-section.is-visible .contact-item {
            opacity: 1;
            transform: translateY(0);
        }

        .contact-section .row>div:nth-child(1) .contact-item {
            transition-delay: 0.05s;
        }

        .contact-section .row>div:nth-child(2) .contact-item {
            transition-delay: 0.15s;
        }

        .contact-section .row>div:nth-child(3) .contact-item {
            transition-delay: 0.25s;
        }

        .contact-section .row>div:nth-child(4) .contact-item {
            transition-delay: 0.35s;
        }

        .contact-section .row>div:nth-child(5) .contact-item {
            transition-delay: 0.45s;
        }

        .contact-section .contact-item:hover {
            background: #fff;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
            transform: translateY(-6px);
        }

        /* Ícono circular: flote sutil en reposo + reacción al hover */
        .contact-section .contact-icon {
            width: 66px;
            height: 66px;
            margin: 0 auto 1rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            color: var(--perfil-accent);
            background: color-mix(in srgb, var(--perfil-accent) 14%, transparent);
            border: 2px solid color-mix(in srgb, var(--perfil-accent) 35%, transparent);
            transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
        }

        .contact-section.is-visible .contact-icon {
            animation: contactFloat 3.5s ease-in-out infinite;
        }

        .contact-section .row>div:nth-child(even) .contact-icon {
            animation-delay: 0.7s;
        }

        .contact-section .contact-item:hover .contact-icon {
            transform: translateY(-6px) scale(1.08) rotate(6deg);
            background: var(--perfil-accent);
            color: #fff;
            box-shadow: 0 10px 22px color-mix(in srgb, var(--perfil-accent) 45%, transparent);
            animation: none;
        }

        .contact-section .contact-item h6 {
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 0.35rem;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-size: 0.82rem;
        }

        .contact-section .contact-item a,
        .contact-section .contact-item span {
            color: #6c757d;
            word-break: break-word;
            font-size: 0.95rem;
        }

        .contact-section .contact-item a:hover {
            color: var(--perfil-accent);
            text-decoration: none;
        }

        /* Redes sociales: badges circulares con el color del área, centrados */
        .contact-section .contact-social {
            display: flex !important;
            flex-wrap: wrap;
            justify-content: center !important;
            width: 100%;
            list-style: none;
            padding-left: 0;
            margin: 1rem auto 0;
            gap: 0.75rem;
            text-align: center;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease 0.55s, transform 0.6s ease 0.55s;
        }

        .contact-section.is-visible .contact-social {
            opacity: 1;
            transform: translateY(0);
        }

        .contact-section .contact-social .social-item {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .contact-section .contact-social .social-link {
            width: 46px;
            height: 46px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            color: var(--perfil-accent) !important;
            background: color-mix(in srgb, var(--perfil-accent) 12%, transparent);
            border: 2px solid color-mix(in srgb, var(--perfil-accent) 32%, transparent);
            transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
        }

        .contact-section .contact-social .social-link:hover {
            color: #fff !important;
            background: var(--perfil-accent);
            border-color: var(--perfil-accent);
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 18px color-mix(in srgb, var(--perfil-accent) 45%, transparent);
        }

        @keyframes contactFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        /* Accesibilidad: sin movimiento si el usuario lo prefiere */
        @media (prefers-reduced-motion: reduce) {

            .contact-section .contact-item,
            .contact-section .contact-social {
                opacity: 1;
                transform: none;
                transition: none;
            }

            .contact-section.is-visible .contact-icon {
                animation: none;
            }

            .contact-section .contact-head h2::after {
                transition: none;
                width: 70px;
            }
        }

        .about-card .line {
            background-color: var(--perfil-accent)

            !important;
        }

        .navbar .nav-item.last-item .nav-link,
        .navbar .nav-item.last-item .nav-link:hover,
        .navbar .nav-item.last-item .nav-link:focus {
            color: var(--perfil-accent)

            !important;
        }

        .social-icons .social-link:hover {
            color: var(--perfil-accent)

            !important;
        }

        .about-card .social-icons .social-link,
        .about-card .social-icons .social-link i,
        .about-card .info a,
        .about-card .info a:hover,
        .about-card .info a:focus {
            color: var(--perfil-accent)

            !important;
        }

        /* ===================== PARTICIPACIONES SECTION ===================== */
        .participaciones-head h2 {
            position: relative;
            display: inline-block;
            padding-bottom: 12px;
        }

        .participaciones-head h2::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 50px;
            height: 3px;
            background: var(--perfil-accent);
            border-radius: 2px;
        }

        .stat-card-public {
            background: #fff;
            border: 1px solid #edf2f7;
            border-radius: 12px;
            padding: 24px 18px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
        }

        .stat-card-public:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .stat-icon-public {
            width: 48px;
            height: 48px;
            margin: 0 auto 12px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            color: var(--perfil-accent);
            background: color-mix(in srgb, var(--perfil-accent) 12%, transparent);
        }

        .stat-number-public {
            font-size: 1.85rem;
            font-weight: 700;
            color: #2d3748;
            line-height: 1.1;
        }

        .stat-label-public {
            font-size: 0.82rem;
            font-weight: 600;
            color: #718096;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 6px;
        }

        .participaciones-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .participacion-item {
            background: #fff;
            border: 1px solid #edf2f7;
            border-radius: 10px;
            padding: 18px 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            transition: border-color 0.2s ease, transform 0.2s ease;
        }

        .participacion-item:hover {
            border-color: color-mix(in srgb, var(--perfil-accent) 40%, transparent);
            transform: translateY(-2px);
        }

        .participacion-badge {
            margin-right: 18px;
            flex-shrink: 0;
        }

        .badge-tipo {
            display: inline-flex;
            align-items: center;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.78rem;
            font-weight: 600;
        }

        .badge-convocatoria {
            background: #fff8e6;
            color: #b7791f;
            border: 1px solid #fef08a;
        }

        .badge-evento {
            background: #f0fdf4;
            color: #15803d;
            border: 1px solid #bbf7d0;
        }

        .badge-formulario {
            background: color-mix(in srgb, var(--perfil-accent) 10%, transparent);
            color: var(--perfil-accent);
            border: 1px solid color-mix(in srgb, var(--perfil-accent) 25%, transparent);
        }

        .participacion-content {
            flex-grow: 1;
            padding-right: 20px;
        }

        .participacion-title {
            font-size: 1.02rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 4px;
        }

        .participacion-meta {
            font-size: 0.82rem;
        }

        .participacion-action {
            flex-shrink: 0;
        }

        .btn-outline-custom {
            color: var(--perfil-accent);
            border: 1.5px solid var(--perfil-accent);
            background: transparent;
            font-weight: 600;
            border-radius: 6px;
            padding: 5px 14px;
            font-size: 0.82rem;
            transition: all 0.2s ease;
        }

        .btn-outline-custom:hover {
            background: var(--perfil-accent);
            color: #fff !important;
        }

        @media (max-width: 767.98px) {
            .participacion-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .participacion-action {
                width: 100%;
            }

            .btn-outline-custom {
                display: block;
                width: 100%;
                text-align: center;
            }
        }
