:root {
    --bg-main: #0c0d0f;
    --bg-card: #16181d;
    --text-main: #ffffff;
    --text-sub: #8a8f98;
    --accent-cyan: #00baeb;
    --primary-btn: #ccf381;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    display: block;
}





.academic-grid {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.academic-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.academic-link svg,
.text-logo-custom {
    display: inline-block;
    margin: 0 5px;
    color: #fff;
    fill: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.academic-link:hover {
    transform: translateY(-3px);
}

.academic-link:hover svg {
    fill: #fff;
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.academic-link:hover .text-logo-custom {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.academic-link:hover .tooltip-social {
    opacity: 1;
    transform: translate(-50%, -150%);
}

.article-category {
    display: inline-block;
    position: relative;
    font-size: 1rem;
    font-weight: 700;
    color: #007bff94;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.author-card {
    background: #111;
    border: 1px solid #333;
    text-align: center;
    /* Cambiamos a flex para que align-items funcione y permita transformaciones */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    border-radius: 16px;
    position: relative;

    /* Configuración de la animación */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease,
                background 0.3s ease;

    /* Preparamos la tarjeta para movimiento fluido */
    will-change: transform;
    backface-visibility: hidden;
}

.author-card:hover {
    /* Elevación física */
    transform: translateY(-10px);

}

#bio-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}




.button .svg {
    width: 20px;
    fill: var(--main-color);
}

.button:active {
    transform: translate(3px, 3px);
    box-shadow: 0px 0px var(--main-color);
}


.btn-show-more {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.btn-show-more:hover {
    border-color: #fff;
}


.card-client {
  background: #111;
  width: 14rem;
  padding: 25px 30px;
  border: 1px solid #333;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-radius: 12px;
  text-align: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.card-client:hover {
  transform: translateY(-10px);
  border-color: #555;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8);
}

.card-client:hover .user-picture {
    border-color: #0077b5;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.card-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-weight: 400;
}

.card-paragraph strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.card-footer {
margin-top: 1.5rem;
    padding-top: 0;
}

.card-content, .name-client {
    overflow: hidden;
    text-overflow: ellipsis;
}




.extra-logos {
    display: none;
}


.features-section {
    width: 100%;
    padding: 20px 0 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    overflow-x: auto;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


.feature-card *, .author-card * {
    max-width: 100%;
    overflow-wrap: break-word;
}


.feature-card, .author-card {
    width: 100%;
    min-width: 0;
    min-height: 350px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.4s ease;
}


.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 400px;
    margin: 0 auto;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    /* 1. Cambiamos el timing de la transformación para que sea más fluido */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background 0.3s ease,
                box-shadow 0.3s ease;

    cursor: default;

    /* 2. SOLUCIÓN: Quitamos isolation: isolate si no es estrictamente necesario para un mix-blend-mode */
    /* isolation: isolate; */

    /* 3. Forzamos la aceleración por hardware de forma limpia */
    will-change: transform;
    transform: translateZ(0);
}

/* El Hover ahora debería responder sin problemas */
.feature-card:hover {
    transform: translateY(-10px) translateZ(0); /* Mantenemos el eje Z para estabilidad */
    background: rgba(22, 24, 29, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-item {
    margin-bottom: 25px;
}

.info-item h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-item p {
    color: #aaa;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
}
.info-footer {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.info-footer p {
    color: #666;
    font-size: 0.8rem;
}



.job-title {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.job-company {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 12px;
}


.job-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    line-height: 1.6;
}

.lang-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    margin-top: 20px;
}

.lang-item {
    text-decoration: none;
    color: #ffffff;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-item:hover, .lang-item.active {
    opacity: 1;
    font-weight: bold;
}

.lang-divider {
    color: #444;
}


.main-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
}


.name-client {
    margin: 0;
    margin-top: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.name-client span {
    display: block;
    font-weight: 300;
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 4px;
}


.user-picture {
    overflow: hidden;
    width: 9.5rem;
    height: 9.5rem;
    border: 2px solid #444;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    transition: all 0.3s ease;
}

.profile-section {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    padding: 10px 0;
    box-sizing: border-box;
    border-top: 1px solid #222;
}

.profile-info {
    max-width: 450px;
    text-align: left;
    margin: 0;
}

.profile-info-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}



.read-article-btn {
    display: inline-block;
    padding: 8px 25px;
    background: transparent;
    border: 1px solid #007bff94;
    border-radius: 20px;
    color: #007bff94;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-article-btn:hover {
    background: #007bff94;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}

.resume-block {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem auto;
    padding: 0 20px;
}


.social-media:before {
    content: " ";
    display: block;
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(90deg, transparent, #444, transparent);
}

.social-media a {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.social-media svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
    transition: all 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.1);
}

.social-media a:hover svg {
    fill: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.social-media .tooltip-social {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.social-media a:hover .tooltip-social {
    opacity: 1;
    transform: translate(-50%, -180%);
}

#see-more-btn {
    background: transparent;
    border: 1px solid #007bff94;
    color: #007bff94;
    padding: 8px 25px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

#see-more-btn:hover {
    background: #007bff94;
    color: white;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4);
}


.user-picture svg {
    width: 2rem;
    fill: #ccc;
}


.tooltip-social {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: 100;
    padding: 0.4rem 0.6rem;
    background: #007bff94;
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -90%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: none !important;
    box-shadow: none !important;
}

.timeline-v2 {
    position: relative;
    margin-top: 4rem;
    width: 100%;
}

.timeline-v2::before {
    content: "";
    position: absolute;
    left: 25%;
    top: 0;
    bottom: 0;
    width: 3px;

    background-color: #ffffff !important;
    opacity: 1 !important;

    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6),
        0 0 5px rgba(255, 255, 255, 0.8);

    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item::after {
    content: "";
    position: absolute;
    left: 25%;
    top: 12px;
    width: 12px;
    height: 12px;
    background: #000;
    border: 2px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover::after {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) scale(1.2);
}

.timeline-date {
    position: absolute;
    left: 0;
    width: 20%;
    top: 8px;
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.539);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.timeline-content {
    width: 70%;
    margin-left: 30%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: left;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.tooltip-author {
    position: absolute;
    bottom: 120%;
    left: 50%;
    z-index: 1000;

    padding: 0.4rem 0.8rem;
    background: #007bff94;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;

    white-space: nowrap !important;
    width: auto !important;
    min-width: max-content;
    display: inline-block !important;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px) !important;
    transition: all 0.2s ease-in-out;

    filter: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.social-link:hover .tooltip-author {
    opacity: 1;
    transform: translate(-50%, 0) !important;
}
@media (max-width: 992px) {
    .feature-card, .author-card {
        flex: 1 1 100%;
        max-width: 400px;
    }

}


@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .profile-info {
        padding-left: 25px !important;
        padding-right: 25px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .info-item p {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    #bio-title {
        padding-left: 0;
        text-align: center;
    }
}