/*tesis/Vista/font-awesome/css/lista__todas_public.css*/

/* Estilos generales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    position: relative;
}

.university-header {
    background-color: #04491b; /* Un verde muy oscuro de base */
    padding: 20px 0;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 8px rgba(186, 189, 4, 0.9);
    margin-bottom: 15px;
    font-weight: 1000;
    position: relative; /* Necesario para posicionar las capas de fondo */
    overflow: hidden; /* Oculta lo que se salga de los bordes */
    background: linear-gradient(270deg, #0d3d6b,rgb(8, 99, 15),rgb(37, 217, 249),rgb(5, 78, 11));
    background-size: 800% 800%;
    animation: animated-sky 30s ease infinite;
}

/* Capa de fondo (la más lejana) */
        .university-header::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%; /* El doble de ancho para permitir el movimiento */
            height: 100%;
            
            /* CAMBIA ESTA RUTA por la tuya */
            background: url('../../img/scene/trees_front.png') repeat-x bottom;
            background-size: contain;
            
            z-index: 1; /* Detrás del contenido, pero por encima del cielo */
            opacity: 0.6; /* Más clara por estar más lejos */
            
            /* Animación de movimiento lento */
            animation: move-layer 40s linear infinite;
        }

    /* Capa frontal (la más cercana) */
        .university-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 200%;
            height: 100%;
            
            background-size: contain;

            z-index: 2; /* Por encima de la capa de fondo */
            opacity: 0.8; /* Más oscura por estar más cerca */

            /* Animación más rápida que la capa de fondo para el efecto parallax */
            animation: move-layer 25s linear infinite;
            animation-direction: reverse;
            animation-duration: 30s;
        }


/* El contenido (logo, título) necesita estar por encima de las capas de fondo */
.university-header .container {
    position: relative;
    z-index: 3;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}


.university-logo {
    max-height: 90px;
    margin-bottom: 10px;
    box-shadow: 0 20px 20px rgba(255, 251, 0, 0.9);
    filter: drop-shadow(2px 8px 4px #e6f703);
    border-radius: 50%;
}

.university-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 900;
    display: inline-block; /* <--- Esto es clave */
    filter: drop-shadow(12px 8px 4px #e6f703); /* Sombra del texto */
    padding: 10px 20px; /* Opcional para más "espacio" dentro */
    border-radius: 8px;  /* Opcional para esquinas redondeadas */
    background-color: transparent; /* Por si acaso */
}


.unap-titulo {
  font-size: 27px;             /* Tamaño del texto */
  font-weight: bold;           /* Negrita */
  color: white;                /* Color del texto */
  background-color: transparent; /* Fondo transparente */
  text-shadow: 1px 1px 3px #000; /* Sombra del texto */
  filter: drop-shadow(12px 8px 4px #e6f703); /* Sombra del contenedor */
  padding: 10px 20px;          /* Espaciado interno */
  border-radius: 8px;          /* Bordes redondeados (opcional) */
  display: inline-block;       /* Para que el box-shadow se ajuste al texto */
}


.back-button {
    background-color: #104603; /* Verde de botón de volver */
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius:10px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(215, 247, 34, 0.9);

}

.back-button:hover {
    background-color: #00b34b;
}

/* Barra de búsqueda y filtros */
.search-box {
    margin-bottom: 10px;
    padding: 25px;
    background-color: #04491b; /* Verde oscuro principal */
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.9);
    border: 1px solid #04410e;
}

.filter-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 1000;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.09);
}

/* Estilo para el botón Volver */
        .back-button {
            background-color: #0b501b; /* Color verde oscuro */
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.4);
            padding: 12px 30px; /* Más ancho y alto */
            border-radius: 8px; /* Menos redondeado si lo prefieres */
            font-size: 1.1em;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        .back-button:hover {
            background-color: #107c2a; /* Un verde más brillante al pasar el ratón */
            transform: translateY(-2px);
        }

        
        .back-button-wrapper {
            position: absolute;
            top: 20px;
            left: 20px;
            z-index: 100;
        }
        


/* --- CSS de listapublicaciones.php --- */
:root {
    /* Variables globales del diseño */
    --card-height: 100px;
    --card-expanded-height: 300px;
    --card-radius: 10px;
    --primary-color: rgb(0, 0, 0); /* Título de tarjeta inicial */
    --secondary-color: rgb(2, 23, 34); /* Borde de tarjeta hover */
    --text-color: rgb(0, 0, 0);
    --hover-color: #ffffff;
    --transition-speed: 0.6s;
    --unap-green-dark: #04491b; /* Verde oscuro UNAP */
    --unap-green-medium: #058316; /* Verde medio UNAP (para botones activos/hover) */
    --unap-green-light: #00b34b; /* Verde claro UNAP (para hover ligero) */
}

.tesis-container {
    padding: 10px;
}

.tesis-card {
    border-radius: var(--card-radius);
    background: rgba(1, 51, 18, 0.9); /* Fondo de la tarjeta (verde oscuro semitransparente) */
    color: var(--text-color);
    height: var(--card-height);
    max-width: 600px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 8px rgba(3, 110, 21, 0.9); /* Sombra de la tarjeta */
    overflow: hidden;
    position: relative;
    border: 3px solid #035507; /* Borde de la tarjeta */
    transition: height var(--transition-speed) ease;
    font-weight: 1000;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tesis-card .card-body {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.tesis-card:hover {
    height: var(--card-expanded-height);
    transform: translateY(-5px); /* Efecto de elevación al hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra más grande al hover */
    border-color: var(--secondary-color);
}

/* Estado expandido para móvil (click/tap) */
.tesis-card.expanded {
    height: var(--card-expanded-height);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #00b34b;
    z-index: 10;
}

.tesis-card.expanded .hover-info {
    transform: translateY(0);
    opacity: 1;
}

.tesis-card.expanded .facultad-logo {
    transform: rotateY(360deg);
    animation: continuous-spin 4s linear infinite;
}

/* 1. Definimos la animación de giro */
@keyframes continuous-spin {
from {
    transform: rotateY(0deg);
}
to {
    transform: rotateY(360deg);
}
}


.hover-info {
    background: linear-gradient(135deg, rgba(2, 114, 48, 0.95) 0%, rgba(4, 73, 27, 0.98) 100%);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    opacity: 0;
    z-index: 1;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--card-height));
    box-sizing: border-box;
    overflow-y: auto;
}

/* Soporte para hover en desktop */
.tesis-card:hover .hover-info {
    transform: translateY(0);
    opacity: 1;
}

/* Soporte para tap/click en móvil */
.tesis-card:active .hover-info,
.tesis-card:focus-within .hover-info,
.tesis-card.expanded .hover-info {
    transform: translateY(0);
    opacity: 1;
}

.tesis-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    min-height: var(--card-height);
    max-height: var(--card-height);
    width: 100%;
    padding: 8px 12px;
    z-index: 2;
    transition: all var(--transition-speed) ease;
    position: relative;
    box-sizing: border-box;
    background-color: white;
    border-bottom-left-radius: var(--card-radius);
    border-bottom-right-radius: var(--card-radius);
    line-height: 1.25;
    word-wrap: break-word;
    hyphens: auto;
}

.tesis-title:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.tesis-card:hover .facultad-logo {
    transform: rotateY(360deg);
    animation: continuous-spin 4s linear infinite; /* Animación de giro continuo */
}

.facultad-info {
    margin-bottom: 10px;
    align-self: flex-start;
    width: calc(100% - 140px);
}

.facultad-logo {
    max-height: 90px;
    max-width: 150px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    flex-shrink: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    transition: transform 0.6s ease;
    transform: rotateY(0deg);
}


.facultad-name {
    font-size: 1.7rem;
    font-weight: bold;
}

.autores-info {
    margin-bottom: 5px;
    align-self: flex-start;
    width: calc(100% - 140px);
}

.autores-names {
    font-size: 1.7rem;
    line-height: 1.3;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fecha-sustentacion {
    font-size: 1.3rem;
    font-style: italic;
    align-self: flex-start;
    width: calc(100% - 140px);
    margin-bottom: 5px;
    font-weight: 1000;
}

.hover-info p {
    margin-bottom: 5px;
    font-size: 1.3rem;
    line-height: 1.2;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    font-weight: 1000;
}
.hover-info strong {
    font-weight: bold;
}

/* ========================================
   ESTILOS RESPONSIVOS MÓVIL MEJORADOS
   ======================================== */

/* Tablets y pantallas medianas */
@media (max-width: 991px) {
    .tesis-card {
        max-width: 100%;
    }
    
    .facultad-name {
        font-size: 1.4rem;
    }
    
    .autores-names {
        font-size: 1.3rem;
    }
}

/* Móviles - pantallas pequeñas */
@media (max-width: 767px) {
    :root {
        --card-height: 90px;
        --card-expanded-height: 380px; /* Más espacio para todo el contenido */
    }

    .tesis-card {
        cursor: pointer;
    }

    .tesis-title {
        font-size: 0.8rem;
        padding: 6px 8px;
        line-height: 1.2;
        -webkit-line-clamp: 5;
        line-clamp: 5;
    }

    /* Contenido expandido mejorado para móvil */
    .hover-info {
        padding: 12px;
        gap: 6px;
        justify-content: flex-start;
    }

    /* Logo reposicionado y más pequeño */
    .facultad-logo {
        max-height: 45px;
        max-width: 45px;
        top: 10px;
        right: 10px;
        padding: 2px;
        border-radius: 50%;
    }

    .facultad-info {
        width: calc(100% - 60px);
        margin-bottom: 6px;
    }

    .facultad-name {
        font-size: 0.9rem;
        line-height: 1.15;
        font-weight: bold;
        margin-bottom: 2px;
    }

    .autores-info {
        width: calc(100% - 60px);
        margin-bottom: 4px;
    }

    .autores-names {
        font-size: 0.85rem;
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .fecha-sustentacion {
        font-size: 0.78rem;
        margin-bottom: 4px;
        width: 100%;
        background: rgba(255,255,255,0.15);
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    .hover-info p {
        font-size: 0.78rem;
        margin-bottom: 3px;
        line-height: 1.2;
        width: 100%;
        padding: 3px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .hover-info p:last-child {
        border-bottom: none;
    }

    .hover-info p strong {
        color: #90EE90;
        margin-right: 5px;
    }

    /* Ajustes del header */
    .university-title {
        font-size: 1.5em;
        padding: 5px 10px;
    }

    .unap-titulo {
        font-size: 16px;
        padding: 5px 10px;
    }

    .back-button-wrapper {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        padding: 10px;
    }

    .back-button {
        font-size: 0.9em;
        padding: 8px 12px;
    }

    .university-logo {
        max-height: 60px;
    }

    /* Filtros en móvil */
    .search-box {
        padding: 15px;
        border-radius: 10px;
    }

    .filter-label {
        font-size: 0.9rem;
    }
}

/* Pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    :root {
        --card-height: 100px;
        --card-expanded-height: 400px; /* Aún más espacio para pantallas pequeñas */
    }

    .tesis-title {
        font-size: 0.72rem;
        padding: 5px 6px;
        -webkit-line-clamp: 6;
        line-clamp: 6;
    }

    .facultad-logo {
        max-height: 40px;
        max-width: 40px;
        top: 5px;
        right: 5px;
    }

    .facultad-name {
        font-size: 0.85rem;
    }

    .autores-names {
        font-size: 0.75rem;
    }

    .fecha-sustentacion,
    .hover-info p {
        font-size: 0.72rem;
    }

    .facultad-info,
    .autores-info {
        width: calc(100% - 50px);
    }

    .hover-info {
        padding: 8px;
    }

    .university-title {
        font-size: 1.2em;
    }

    .unap-titulo {
        font-size: 14px;
    }

    /* Paginación más compacta */
    .page-item .page-link {
        padding: 6px 10px;
        font-size: 0.85em;
        min-width: 35px;
    }
}

/* Estilos para la paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 50px; /* Más espacio al final */
}

.pagination {
    background-color: #ffffff; /* Fondo blanco para la barra de paginación */
    border-radius: 50px; /* Forma de píldora para toda la barra */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15); /* Sombra elegante para el contenedor */
    padding: 6px; 
    display: inline-flex; 
    align-items: center; 
}

.page-item {
    margin: 0 4px; /* Espacio entre los botones individuales */
}

.page-item .page-link {
    border: none;
    padding: 10px 18px; /* Tamaño de botón estándar */
    color: var(--unap-green-dark); 
    background-color: #ffffff;
    transition: all 0.3s ease, transform 0.2s ease; 
    font-weight: 600;
    border-radius: 50px; 
    display: flex; /* Para centrar contenido */
    align-items: center;
    justify-content: center;
    min-width: 45px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    font-size: 1.1em;
}

.page-item .page-link:hover {
    background-color: var(--unap-green-medium); /* Verde medio al hover */
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); 
    transform: translateY(-3px); 
}

.page-item.active .page-link {
    background-color: var(--unap-green-dark); /* Verde oscuro para la página activa */
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada para el activo */
    font-weight: 700;
    transform: translateY(-2px); 
    cursor: default; 
}

.page-item.disabled .page-link {
    background-color: #f8f9fa; /* Fondo gris claro */
    color: #adb5bd; /* Texto gris */
    cursor: not-allowed;
    box-shadow: none; 
    transform: none; /* Sin elevación */
    opacity: 0.7; 
}

/* Estilo específico para los puntos suspensivos */
.page-item.disabled span.page-link {
    background-color: transparent; 
    color: #6c757d; /* Color gris para los puntos */
    box-shadow: none;
    cursor: default;
    padding: 10px 5px; 
    min-width: auto; /* Sin ancho mínimo */
    font-weight: 500;
    opacity: 1; 
}

/* Ajuste para el texto "Atrás" y "Siguiente" */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    font-size: 1em; 
    padding: 10px 20px; 
}


.page-item .page-link span[aria-hidden="true"] {
    font-size: 1.1em; 
}

/* --- 1. Animación para el fondo del gradiente --- */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- 2. Animación de entrada para el contenido --- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(25px); /* Empieza 25px más abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.university-logo,
.university-title,
.university-header .lead {
    opacity: 0;
    
    animation: fadeInSlideUp 0.8s ease-out forwards;
}


.university-logo {
    animation-delay: 0.2s; 
}

.university-title {
    animation-delay: 0.4s; 
}


.university-header .lead {
    animation-delay: 0.6s; 
}


.birds-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bird-svg {
    position: absolute;
    animation-name: fly-svg;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.bird-svg svg {
    width: 100%;
    height: auto;
}

@keyframes fly-svg {
    0% {
        transform: translateX(110vw); /* Empieza fuera, a la derecha */
    }
    100% {
        transform: translateX(-10vw); /* Termina fuera, a la izquierda */
    }
}

/* --- Variaciones para cada ave --- */

.bird-svg-1 {
    width: 50px; /* Tamaño del ave */
    top: 25%;
    animation-duration: 12s;
    animation-delay: 0s;
}

.bird-svg-2 {
    width: 35px;
    top: 40%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.bird-svg-3 {
    width: 25px;
    top: 60%;
    animation-duration: 25s;
    animation-delay: 7s;
}

/* === FIN: ESTILOS PARA AVES SVG === */

/* === INICIO: ESTILOS Y ANIMACIÓN PARA AVES VOLADORAS === */

.birds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    z-index: 0; /* Detrás del contenido del header */
    pointer-events: none; /* Para que no se pueda hacer clic en ellas */
}

/* Creamos la forma del ave con bordes */
.bird {
    position: absolute;
    width: 15px; /* Tamaño del cuerpo del ave */
    height: 15px;
    background-color: transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.6); /* Color blanco semitransparente */
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(225deg); /* Giramos para formar una 'V' */
    
    /* Aplicamos la animación de vuelo */
    animation-name: fly;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Definimos la animación de vuelo (de derecha a izquierda) */
@keyframes fly {
    0% {
        left: 110%; /* Empieza fuera de la pantalla a la derecha */
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        left: -10%; /* Termina fuera de la pantalla a la izquierda */
        opacity: 0;
    }
}




.bird-1 {
    top: 30%; /* Posición vertical */
    animation-duration: 10s; /* Duración del vuelo */
    animation-delay: 0s; /* Empieza inmediatamente */
    transform: scale(0.8) rotate(225deg); /* Un poco más grande */
}


.bird-2 {
    top: 20%;
    animation-duration: 15s;
    animation-delay: 2s; /* Empieza con un retraso */
    transform: scale(0.6) rotate(225deg);
}


.bird-3 {
    top: 45%;
    animation-duration: 20s;
    animation-delay: 5s; /* Empieza más tarde */
    transform: scale(0.4) rotate(225deg); /* La más pequeña */
}

/* === FIN: ESTILOS PARA AVES VOLADORAS === */
.birds-container-interactive {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0; /* Detrás del contenido */
    pointer-events: none;
}

/* El estilo del ave (una simple V) */
.interactive-bird {
    position: absolute;
    width: 15px;
    height: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.7);
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(45deg); /* Para que apunte hacia la derecha */
    transition: transform 0.3s ease; /* Para giros suaves */
}

@keyframes move-river {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 120px 60px; /* Movemos el patrón en diagonal */
    }
}

/* ========================================
   NUEVO DISEÑO DE TARJETAS MODERNAS
   ======================================== */

/* Contenedor de tarjetas con separación */
.tesis-container {
    padding: 20px 10px;
}

.tesis-container.row {
    margin-left: -15px;
    margin-right: -15px;
}

.tesis-container .col-lg-6,
.tesis-container .col-md-6,
.row .col-lg-6.mb-5,
.row .col-md-6.mb-5 {
    padding: 15px !important;
}

/* Contenedor de las cards - fuerza alturas iguales por fila */
.tesis-container.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.tesis-container .col-lg-6,
.tesis-container .col-md-6 {
    display: flex;
}

.tesis-card-modern {
    background: #ffffff;
    margin-bottom: 5px;
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(4, 73, 27, 0.12);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 380px;
    position: relative;
}

.tesis-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(4, 73, 27, 0.2);
    border-color: rgba(4, 73, 27, 0.3);
}

/* Header de la tarjeta */
.card-header-modern {
    background: linear-gradient(135deg, #04491b 0%, #058316 100%);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 55px;
}

.fecha-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

.fecha-badge i {
    opacity: 0.9;
    font-size: 1.1rem;
}

.fecha-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.hora-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Estilos para hora de día (sol) */
.hora-dia {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hora-dia i {
    color: #fff;
}

/* Estilos para hora de noche (luna) */
.hora-noche {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
}

.hora-noche i {
    color: #f1c40f;
}

.facultad-badge {
    display: flex;
    align-items: center;
}

.facultad-mini-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.tesis-card-modern:hover .facultad-mini-logo {
    transform: scale(1.1) rotate(5deg);
}

/* Cuerpo de la tarjeta */
.card-body-modern {
    padding: 18px 20px;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    min-height: 100px;
    max-height: 160px;
    overflow: hidden;
}

.tesis-title-modern {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    word-break: break-word;
}

.tesis-card-modern:hover .tesis-title-modern {
    color: #04491b;
}

/* Footer de la tarjeta */
.card-footer-modern {
    background: #f8faf9;
    padding: 14px 16px;
    border-top: 1px solid rgba(4, 73, 27, 0.1);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: #4a5568;
}

.info-row .info-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-row .autores-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.facultad-name-modern {
    font-size: 0.88rem;
    font-weight: 600;
    color: #04491b;
    text-align: center;
    padding-top: 8px;
    margin-top: 5px;
    border-top: 1px dashed rgba(4, 73, 27, 0.15);
}

/* ========================================
   BOTÓN DE INVITACIÓN EN CARDS
   ======================================== */
.acciones-card {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(4, 73, 27, 0.2);
    text-align: center;
}

.btn-invitacion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #04491b 0%, #067a2e 100%);
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(4, 73, 27, 0.25);
}

.btn-invitacion:hover {
    background: linear-gradient(135deg, #067a2e 0%, #04491b 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 73, 27, 0.35);
    color: #fff !important;
}

.btn-invitacion i {
    font-size: 1rem;
}

.info-row:last-of-type {
    margin-bottom: 12px;
}

.info-row i {
    color: #04491b;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
    font-size: 1.05rem;
}

.info-text {
    flex: 1;
    line-height: 1.4;
    font-size: 1rem;
}

.autores-text {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.05rem;
}

.facultad-name-modern {
    font-size: 0.9rem;
    color: #04491b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 10px;
    border-top: 1px dashed rgba(4, 73, 27, 0.2);
    text-align: center;
}

/* Animación de entrada */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tesis-card-modern {
    animation: cardFadeIn 0.5s ease-out forwards;
}

.col-lg-6:nth-child(1) .tesis-card-modern { animation-delay: 0.05s; }
.col-lg-6:nth-child(2) .tesis-card-modern { animation-delay: 0.1s; }
.col-lg-6:nth-child(3) .tesis-card-modern { animation-delay: 0.15s; }
.col-lg-6:nth-child(4) .tesis-card-modern { animation-delay: 0.2s; }
.col-lg-6:nth-child(5) .tesis-card-modern { animation-delay: 0.25s; }
.col-lg-6:nth-child(6) .tesis-card-modern { animation-delay: 0.3s; }

/* ========================================
   RESPONSIVE - TARJETAS MODERNAS
   ======================================== */

@media (max-width: 991px) {
    .tesis-card-modern {
        min-height: 350px;
    }
    
    .tesis-title-modern {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
    
    .card-body-modern {
        max-height: 140px;
    }
}

@media (max-width: 767px) {
    .tesis-card-modern {
        min-height: auto;
        height: auto;
        border-radius: 12px;
    }
    
    .card-header-modern {
        padding: 12px 14px;
    }
    
    .fecha-badge {
        font-size: 1rem;
    }
    
    .fecha-text {
        font-size: 1rem;
    }
    
    .hora-badge {
        font-size: 0.9rem;
        padding: 4px 10px;
    }
    
    .facultad-mini-logo {
        width: 42px;
        height: 42px;
    }
    
    .card-body-modern {
        padding: 16px;
    }
    
    .tesis-title-modern {
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }
    
    .card-footer-modern {
        padding: 14px;
    }
    
    .info-row {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .autores-text {
        font-size: 0.98rem;
    }
    
    .facultad-name-modern {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .tesis-card-modern {
        min-height: 290px;
    }
    
    .fecha-badge {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }
    
    .hora-badge {
        margin-left: 0;
        margin-top: 6px;
        font-size: 0.88rem;
    }
    
    .facultad-mini-logo {
        width: 38px;
        height: 38px;
    }
    
    .tesis-title-modern {
        font-size: 0.95rem;
    }
    
    .info-row {
        font-size: 0.78rem;
    }
}