body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fafbfc;
}

:root {
    --primary-color: #1A73E8;
    --secondary-color: #FF6B35;
    --light-bg: #F8F9FA;
    --dark-text: #202124;
}

/* Estilos generales para el tablón */
.publicacion-card {
    border-radius: 12px;
    border: 1px solid #c4d1dd;
    background: #fff;
    transition: box-shadow 0.2s;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra sutil para reforzar el borde */
}

.publicacion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /*transform: translateY(-5px);*/
}

.publicacion-card .card-title {
    color: #1a237e;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;             /* Espaciado inferior para la línea */
    border-bottom: 2px solid #e0e0e0; /* Línea gris debajo del título */    
}

.publicacion-card .descripcion {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.publicacion-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.filtros-card {
    background: #faf9f8;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

/* Imagen de preview */
.card-img-top {
    width: 100%;                        /* Ocupa todo el ancho del card */
    height: 240px;                      /* Altura fija */
    object-fit: contain;                /* Muestra la imagen completa sin cortar */
    background-color: #f8f9fa;        /* Fondo para imágenes con transparencia */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-img-top:hover {
    transform: scale(1.03);
}

/* Ajustes para el sidebar */
.flex-grow-1 {
    margin-left: 280px; /* Ajuste para el sidebar */
    padding: 2rem;
}

/* Estilos para los filtros */
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    height: 38px; /* Altura fija para combos */
    padding: 0.375rem 0.75rem; /* Padding para alinear texto */
}

.form-select:focus {
    border-color: #3e68f1;
    box-shadow: 0 0 0 2px rgba(5, 85, 190, 0.2);
}

/* Botones ------------------------------------------------------- */
.btn-todas {
    background-color: #6c757d;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem; /* Padding igual que los combos */
    border-radius: 4px;
    height: 38px; /* Altura fija para igualar combos */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px; /* Ajustalo a lo que necesites */
}

.btn-todas:hover {
    background-color: #5a6268;
    color: #fff;
    transform: scale(1.05);
}

.btn-modificar {
    background-color: #f3ce2b;
    color: #000;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-modificar:hover {
    background-color: #e6c01c;
    color: #000;
    transform: scale(1.05);
}

/* Botón Postularse */
.btn-postular {
    background-color: #FF6B35;
    font-size: 0.9rem;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-postular:hover {
    background-color: #f0482b;
    color: #fff;
    transform: scale(1.05);
}

.btn-ver {
    background-color: #1A73E8;
    font-size: 0.9rem;
    color: #fff;    
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-ver:hover {
    background-color: #0056b3;
    color: #fff;
    transform: scale(1.05);
}

.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white !important;
}

/* Efecto hover general para botones */
.btn {
    transition: all 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn i {
    margin-right: 5px; /* Espacio entre el ícono y el texto */
}

/* Ajustes para el buscador */
.input-group button {
    border-radius: 0 5px 5px 0
}

/* Estilos de VER PUBLICACION ---------------*/
.imagen-publicacion-container {
    max-width: 800px; /* Ajusta según el diseño */
    margin: 0 auto; /* Centrar horizontalmente */
    padding: 10px;
    background-color: #f8f9fa; /* Fondo gris claro */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Estilo de la imagen */
.imagen-publicacion {
    display: block;
    max-height: 400px; /* Altura máxima */
    width: auto;
    margin: 0 auto; /* Centrar la imagen */
    object-fit: contain; /* Muestra la imagen completa sin deformar */
    background-color: transparent; /* Fondo transparente */
    border-radius: 8px;
}

/* Titulos texto de las publicaciones */
.card-title {
    font-size: 1.5rem;
    color: #2A3D55;
    text-transform: capitalize;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* --------------- Boton Cargar Mas ---------------- */
#btn-cargar-mas {
    background-color: #5f6f7e; /* Gris de Bootstrap */
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px; /* Bordes redondeados */
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}
  
#btn-cargar-mas:hover {
    background-color: #5a6268; /* Gris más oscuro al hacer hover */
    transform: translateY(-2px); /* Efecto de elevación */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

#btn-cargar-mas:active {
    transform: translateY(0); /* Efecto de "presionado" */
    box-shadow: none;
}

/* Barra TOP de Navegacion copia del index */
.top-nav {
    background: var(--light-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.top-nav-brand {
    font-weight: 700;
    color: var(--dark-text);
    display: flex;
    align-items: center;
}

.top-nav-brand img {
    height: 50px;
    margin-right: 10px;
}

.top-nav-brand .slogan {
    font-size: 0.9rem;
    color: #666;
    margin-left: 10px;
    font-weight: 400;
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

.top-nav-link {
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s;
}

.top-nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Estilos específicos para la VER Publicación */
.verpub-container {
    max-width: 700px; /* Aumentamos el ancho */
    margin: auto;
    padding: 15px;
}

.verpub-card {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: #fff; /* Asegura un fondo limpio */
}

.verpub-header {
    background-color: #27496b;
    color: white;
    padding: 15px;
    font-size: 22px; /* Un poco más grande */
    font-weight: bold;
    text-align: center;
}

.verpub-body {
    padding: 25px;
}

.verpub-img {
    width: 100%;
    max-height: 300px; /* Límite de altura máxima */
    height: auto; /* Mantiene la proporción */
    border-radius: 8px;
    object-fit: contain; /* Ajusta sin recortar */
    display: block;
    margin: auto;
    background: #f8f9fa; /* Fondo sutil si la imagen no llena el espacio */
}

.verpub-info {
    font-size: 15px;
    color: #555;
    margin: 10px 0;
}

.verpub-desc {
    background: #f0f4ff; /* Azul muy suave */
    padding: 20px;
    border-left: 5px solid #004080;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 500;
}

.verpub-footer {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #ddd;
}

@media (max-width: 480px) {
    .verpub-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}
