:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #1abc9c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e1e5eb;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}


.tab-content a {
    color: #007bff !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: all var(--transition-speed);
}

.tab-content a:hover {
    color: #0056b3 !important;
    border-bottom-color: #0056b3;
    text-decoration: none;
}

.main-tabs {
    margin-top: 30px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(to bottom, var(--light-gray), white);
    padding: 0 15px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.main-tabs .nav-item {
    margin-bottom: -2px;
    position: relative;
}

.main-tabs .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    border-radius: 8px 8px 0 0;
    margin: 0 5px;
    letter-spacing: 0.3px;
}

.main-tabs .nav-link:hover {
    color: var(--secondary-color);
    background: rgba(52, 152, 219, 0.08);
    transform: translateY(-2px);
}

.main-tabs .nav-link.active {
    color: var(--secondary-color);
    background: white;
    border: 2px solid var(--border-color);
    border-bottom: 2px solid white;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.main-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.tab-content {
    padding: 40px;
    background-color: white;
    min-height: 70vh;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    border-top: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subheading-custom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #555;
    font-size: 1.1rem;
}

.subheading {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600;
    color: #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 25px;
    /* Gradiente: empieza en azul y se vuelve transparente */
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #007bff, rgba(0, 68, 148, 0)) 1;
}

.subheading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
}

.container-fluid {
    margin-left: 250px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

@media (max-width: 992px) {
    .container-fluid {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px;
    }

    .main-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .tab-content {
        padding: 25px 20px;
    }
}

.Experience-item,
.publication-item {
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
    border-radius: 8px;
    transition: all var(--transition-speed);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.Experience-item:hover,
.publication-item:hover {
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-modern {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    color: white;
}



.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.7);
    }

    70% {
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes expandWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.logo-item-container {
    position: relative;
    background-color: #0056A4;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInBounce 0.6s ease forwards;
    cursor: pointer;
    z-index: 1;
    overflow: visible;
}

.logo-item-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--logo-color);
    z-index: -1;
    opacity: 0;
}

.logo-item-container:hover {
    background-color: #ffffff;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-item-container:hover::after {
    animation: expandWave 0.8s ease-out infinite;
}

.logo-svg-custom {
    height: 32px;
    width: 32px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.logo-item-container:hover .logo-svg-custom {
    color: var(--brand-color);
    transform: scale(1.1);
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.7);
    }

    70% {
        transform: translateY(-5px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes expandWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.academic-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0;
    list-style: none;
    margin: 0 auto;
    max-width: 400px;
}

a:hover,
a:focus,
a:active {
    text-decoration: none !important;
    outline: none !important;
    border-bottom: none !important;
}

.avatar-wrapper a:hover {
    text-decoration: none !important;
}

.academic-grid li {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .academic-grid {
        gap: 15px;
        max-width: 300px;
    }
}

.logo-item-container {
    position: relative;
    background-color: #0056A4;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: fadeInBounce 0.6s ease forwards;
    cursor: pointer;
    z-index: 1;
}

.logo-item-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--logo-color);
    z-index: -1;
    opacity: 0;
}

.logo-item-container:hover {
    background-color: #ffffff;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.logo-item-container:hover::after {
    animation: expandWave 0.8s ease-out infinite;
}

.logo-svg-custom {
    height: 28px;
    width: 28px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.logo-item-container:hover .logo-svg-custom {
    color: var(--brand-color);
    transform: scale(1.1);
}

.sci-text {
    font-size: 17px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-style: italic;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
    line-height: 1;
}

.logo-item-container:hover .sci-text {
    color: #00a79d;
}

.d-1 {
    animation-delay: 0.1s;
}

.d-2 {
    animation-delay: 0.15s;
}

.d-3 {
    animation-delay: 0.2s;
}

.d-4 {
    animation-delay: 0.25s;
}

.d-5 {
    animation-delay: 0.3s;
}

.d-6 {
    animation-delay: 0.35s;
}

.d-7 {
    animation-delay: 0.4s;
}

.d-8 {
    animation-delay: 0.45s;
}

.d-9 {
    animation-delay: 0.5s;
}

.d-10 {
    animation-delay: 0.55s;
}

@media (max-width: 450px) {
    .academic-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.reveal.active .badge {
    animation: fadeInTags 0.8s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes fadeInTags {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.co-author-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid;
    border-color: rgba(13, 110, 253, 1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.co-author-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(13, 110, 253, 0.5);
    transform: scale(1.01);
}

.badge {
    font-weight: 400;
    padding: 0.5em 0.8em;
}


/* Estilo Base del Botón Uiverse */
button.learn-more {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 12rem;
    height: auto;
}

button.learn-more .circle {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0;
    width: 3rem;
    height: 3rem;
    background: #001690;
    /* Color azul institucional para combinar con tu tema */
    border-radius: 1.625rem;
}

button.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

button.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

button.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -0.29rem;
    right: 0.0625rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

button.learn-more .button-text {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 0;
    /* Ajustado para centrar mejor */
    margin: 0 0 0 3rem;
    /* Margen para no pisar el círculo inicial */
    color: #001690;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    font-size: 0.75rem;
    /* Tamaño más legible para el perfil */
}

/* Hover States */
button:hover .circle {
    width: 100%;
}

button:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

button:hover .button-text {
    color: #fff;
}

.institution-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.institution-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.section-header {
    display: block;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: stretch;
}

.modern-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #3498db;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.card-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}


.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px 0;
    color: #2c3e50;

    /* Gradiente con los colores que definiste */
    background: linear-gradient(90deg,
            #2c3e50 0%,
            #2c3e50 30%,
            #1c60ff 40%,
            #23a4d7 50%,
            #1c60ff 60%,
            #2c3e50 70%,
            #2c3e50 100%);

    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* La animación ahora viajará en sentido opuesto */
    animation: shining 5s linear infinite;
}

@keyframes shining {
    0% {
        /* Empieza con el gradiente fuera de vista a la izquierda */
        background-position: 200% center;
    }

    100% {
        /* Desplaza el gradiente hacia la derecha */
        background-position: 0% center;
    }
}

.card-role {
    font-size: 1rem;
    font-weight: 600;
    color: #0d47a1;
    margin: 0;
}

.card-date.badge-date {
    background: #1c60ff;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    margin-left: 1rem;
    box-shadow: 0 2px 4px rgba(28, 96, 255, 0.2);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.skill-tag {
    background: #f1f8ff;
    color: #1c60ff;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d1e3ff;
}

/* Contenedor de la tarjeta de publicación */
.card-featured {
    width: 320px;
    /* Ancho fijo */
    height: 480px;
    /* Altura fija */
    padding: 1.2rem;
    background: #f5f5f5;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* Imagen superior con el efecto Hover */
.card-img-container {
    height: 160px;
    /* Altura fija para la imagen */
    min-height: 160px;
    width: 100%;
    background: #001690;
    border-radius: .5rem;
    transition: .3s ease;
    overflow: hidden;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.card-featured:hover .card-img-container {
    transform: translateY(-25%);
    box-shadow: rgba(66, 133, 244, 0.3) 0px 13px 40px -5px;
}

/* Textos */
.card-info {
    margin-top: 15px;
    flex-grow: 1;
    /* Empuja el footer hacia abajo */
    display: flex;
    flex-direction: column;
}

.card-date-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #001690;
    font-weight: 700;
}

.text-title-pub {
    font-weight: 900;
    font-size: 1rem;
    height: 3rem;
    /* Espacio fijo para el título (2-3 líneas) */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.text-subtitle {
    font-size: 0.75rem;
    font-style: italic;
    color: #859ba8;
    margin-bottom: 8px;
}

.text-body-pub {
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* Contenedor principal */
.video-card {
    border: 2px solid rgba(13, 110, 253, 1);
    border-radius: 10px;
    box-shadow: 10px 10px 15px rgba(55, 155, 255, 0.2);
}

/* Espacio para el video */
.video-card-image {
    overflow: hidden;
    transition: all .3s;
}

.video-card-image video {
    width: 100%;
}

.video-category {
    text-transform: uppercase;
    font-size: 0.9em;
    font-weight: 600;
    color: rgb(63, 121, 230);
    margin: 10px 20px 10px;
}

.video-heading {
    font-weight: 600;
    color: rgb(88, 87, 87);
    padding: 7px;
    font-size: 1.1em;
    line-height: 1.2;
    margin: 5px 10px 10px;
}

.video-description {
    color: #666;
    font-size: 14px;
    padding: 0 7px;
    margin: 5px 10px 40px;
}

.video-author {
    color: gray;
    font-weight: 400;
    font-size: 11px;
    padding: 15px 7px 7px;
}

.video-author .name {
    font-weight: 600;
    color: rgb(63, 121, 230);
    text-decoration: none;
}

/* Footer y Botón */
.card-footer {
    margin-top: auto;
    /* Empuja al final de la tarjeta de 480px */
    padding-top: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.publications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    padding: 3rem 0;
}

/* Ajuste de contenedor individual para evitar estiramientos raros */
.publication-card-container {
    flex: 0 1 auto;
    /* No obliga a crecer, mantiene el ancho de la tarjeta */
}

/* Aseguramos que las tarjetas tengan un tamaño consistente */
.card-featured {
    margin: 0;
    /* Quitamos el margen automático para que el gap controle el espacio */
}

.card-featured:hover .card-img-container {
    transform: translateY(-20%);
    box-shadow: rgba(0, 22, 144, 0.2) 0px 13px 40px -5px;
}

/* Media Query para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .publications-grid {
        gap: 4rem;
        /* Más espacio vertical cuando están apiladas por el efecto hover */
    }
}

@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700");

/* Contenedor principal aislado */
.co-author-card {
    --ca-font-color: #ffffff;
    --ca-dp-size: 8rem;
    --ca-padding: 2rem;

    font-family: 'Montserrat', sans-serif;
    background-color: white;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0px 1rem 1.5rem rgba(0, 0, 0, 0.2);
    margin: 1.5rem auto;
    /* Centrado en su contenedor */
    color: var(--ca-font-color);
}

.co-author-card .ca-banner {
    /* Imagen de tecnología/redes de alta calidad */
    background-image: url('img/cadenas-background.jpg');
    background-position: center;
    background-size: cover;
    height: 11rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

/* Opcional: Añadir un overlay oscuro para que el banner no compita con la foto */
.co-author-card .ca-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    /* Oscurece un 20% la imagen de fondo */
    z-index: 0;
}

/* Aseguramos que la foto de perfil esté por encima del overlay */
.ca-profile-img {
    position: relative;
    z-index: 1;
    bottom: -20px;
    /* Ajusta según tu diseño para que sobresalga */
}

.co-author-card .ca-profile-img {
    background-color: white;
    width: var(--ca-dp-size);
    height: var(--ca-dp-size);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    transform: translateY(50%);
    transition: transform 200ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.co-author-card .ca-profile-img:hover {
    transform: translateY(50%) scale(1.1);
}

.co-author-card .ca-menu {
    width: 100%;
    height: 5.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.co-author-card .ca-opener {
    width: 2.5rem;
    height: 2.5rem;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
}

.co-author-card .ca-opener span {
    background-color: var(--ca-font-color);
    width: 0.4rem;
    height: 0.4rem;
    position: absolute;
    left: calc(50% - 0.2rem);
    border-radius: 50%;
}

.co-author-card .ca-opener span:nth-child(1) {
    top: 0.45rem;
}

.co-author-card .ca-opener span:nth-child(2) {
    top: 1.05rem;
}

.co-author-card .ca-opener span:nth-child(3) {
    top: 1.65rem;
}

.co-author-card .ca-name {
    text-align: center;
    padding: 0 var(--ca-padding) 0.5rem;
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

.co-author-card .ca-title {
    color: #888;
    font-size: 0.85rem;
    text-align: center;
    padding: 0 var(--ca-padding) 1.2rem;
    line-height: 1.4;
}

.co-author-card .ca-actions {
    padding: 0 var(--ca-padding) 1.2rem;
    display: flex;
    flex-direction: column;
}

.co-author-card .ca-follow-info {
    padding: 0 0 1rem;
    display: flex;
}

.co-author-card .ca-follow-info h2 {
    text-align: center;
    width: 50%;
    margin: 0;
}

.co-author-card .ca-follow-info h2 a {
    text-decoration: none;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
}

.co-author-card .ca-follow-info h2 a span {
    color: #1c9eff;
    font-weight: bold;
    font-size: 1.2rem;
}

.co-author-card .ca-follow-info h2 a small {
    color: #afafaf;
    font-size: 0.75rem;
}

.co-author-card .ca-follow-btn button {
    color: var(--ca-font-color);
    font-weight: bold;
    background-color: #0056a4;
    width: 100%;
    border: none;
    padding: 0.8rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.co-author-card .ca-follow-btn button:hover {
    background-color: #0056a4;
    transform: scale(1.05);
}

.co-author-card .ca-desc {
    text-align: center;
    padding: 0 var(--ca-padding) 2rem;
    font-size: 0.85rem;
    color: #666;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .card-date.badge-date {
        margin-left: 0;
        align-self: flex-start;
    }

    .card-header-left {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.list-social-icons li a {
    transition: transform 0.2s ease;
    display: inline-block;
}

.list-social-icons li a:hover {
    transform: scale(1.15);
}


.list-social-icons li a {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.list-social-icons li a:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}


.badge-date {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}


.card-role {
    color: #0056a4;
    font-style: italic;
    margin-bottom: 15px;
}

.list-social-icons li a {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.list-social-icons li a:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}


.badge-date {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}


.card-role {
    color: #0056a4;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.card-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* quitamos will-change de aquí */
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 1.2s cubic-bezier(0.2, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    visibility: hidden;
    /* quitamos will-change de aquí */
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* quitamos will-change de aquí */
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
    /* agregamos will-change solo durante la animación */
    will-change: opacity, transform;
}


.scroll-reveal-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.scroll-reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}


.bio-card {
    box-shadow: 0px 1rem 1.5rem rgba(0, 0, 0, 0.2);
    max-width: 720px;
    /* REDUCIDO: 20px arriba/abajo, auto a los lados */
    margin: 20px auto;
    /* OPCIONAL: Si quieres menos espacio interno arriba, reduce el primer valor de padding */
    padding: 30px 56px 48px 56px;
    background: #ffffff;
    border-radius: 15px;
    font-family: "Inter", "Segoe UI", sans-serif;
    /* CORREGIDO: El color se define aquí para asegurar el azul */
    border: 2px solid rgba(13, 110, 253, 1);
    transition: all 0.3s ease;
    line-height: 1.7;
}

.bio-card:hover {
    /* Si el fondo es blanco, un alpha de 0.04 apenas se notará,
       puedes dejarlo en blanco puro o un azul muy claro */
    background: #ffffff;
    border-color: rgba(13, 110, 253, 1);
    transform: scale(1.01);
    box-shadow: 0px 1.2rem 2rem rgba(13, 110, 253, 0.2);
    /* Sombra azul al pasar el mouse */
}

.bio-name {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.bio-role {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0056a4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bio-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0056a4, #3b82f6);
    margin: 28px 0 36px;
    border-radius: 3px;
}

.bio-card p {
    font-size: 1rem;
    margin-bottom: 18px;
    color: #334155;
}


.bio-link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: #0056a4;
    text-decoration: none;
    position: relative;
}

.bio-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0056a4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.bio-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.bio-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    /* Dark gray or blue */
    margin-bottom: 10px;
}

.bio-subtitle {
    font-size: 1rem;
    color: #475569;
    /* Lighter text */
    margin-top: 8px;
}

.bio-role {
    font-size: 1rem;
    font-weight: 500;
    color: #0056a4;
    text-transform: uppercase;
}

.bio-header {
    text-align: center;
    margin-bottom: 20px;
}

.bio-image {
    width: 100%;
    max-width: 450px; /* <--- Ajusta este valor según tu diseño */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    display: block;   /* Evita espacios fantasmas debajo de la imagen */
    margin: 0 auto;   /* La centra si el contenedor es más grande */
}

.bio-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0056A4;
    text-align: center;
    margin-bottom: 10px;
}

.bio-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0056a4, #3b82f6);
    margin: 20px auto;
    border-radius: 3px;
}

.bio-content {
    font-size: 1rem;
width: 100%;
    max-width: 800px; /* O el ancho de tu diseño */
    margin: 0 auto;
}

.bio-short-text {
    display: block;
    margin-bottom: 15px;
    color: #334155;
width: 100%;
    max-width: 800px; /* O el ancho de tu diseño */
    margin: 0 auto;
}
/* Evita que se vea el texto antes de que el CSS esté listo */
.bio-content, .bio-title {
    animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.bio-full-text {
    display: none;
    color: #475569;
    margin-bottom: 20px;
}

.bio-btn {
    padding: 8px 20px;
    border: none;
    background-color: #0056a4;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    font-size: 1rem;
}

.bio-btn:hover {
    background-color: #3b82f6;

}

.bio-link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: #0056a4;
    text-decoration: none;
    position: relative;
}

.bio-link::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #0056a4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.bio-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.bio-btn {
    color: #fff;
    font-weight: bold;
    background-color: #0056a4;
    width: 100%;
    border: none;
    padding: 0.8rem;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 200ms ease;
}

.bio-btn:hover {
    background-color: #0056a4;
    transform: scale(1.05);

}

.bio-hidden-content {
    transition: max-height 0.5s ease, opacity 0.5s ease;
}


.btn-portfolio {
    width: 180px;
    height: 40px;
    border: 2px solid #0056a4;
    border-radius: 45px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    font-size: 1.1em;
    font-weight: 600;
    color: #0056a4;
    display: flex;
    align-items: center;
    justify-content: center;

    /* SOLUCIÓN AL BORDE INFERIOR */
    margin-top: 15px;
    margin-bottom: 25px;
    /* Espacio extra para que no choque con el borde de la tarjeta */
    box-sizing: border-box;
    /* Asegura que el borde no aumente el tamaño real del botón */
    text-decoration: none;
    padding-bottom: 1.1em;
}

.btn-portfolio:hover {
    background: #0056a4;
    color: white;
    /* Reducimos el desplazamiento para evitar que el borde se corte al moverse */
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 86, 164, 0.2);
}

.media-container {
    display: flex;
    flex-direction: column;
    gap: 56px;
    max-width: 600px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, .45);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: background .2s;
}

.video-play:hover {
    background: rgba(0, 0, 0, .25);
}

.video-info {
    padding-top: 16px;
}