:root {
    --primary-color: #00247d; /* Azul rey */
    --secondary-color: #0056b3;
    --accent-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Ajustes generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Estilos para convenios */
.card-convenio {
    transition: all 0.3s ease;
    height: 100%;
}

.card-convenio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-convenio .card-img-top {
    height: 200px;
    object-fit: cover;
}

.badge-categoria {
    background-color: var(--primary-color);
    color: white;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

/* Estilos para sección destacados */
.destacados-section {
    background-color: #f9f9f9;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.destacados-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.destacados-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Estilos para la página de detalle de convenio */
.convenio-header {
    background-color: var(--light-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.convenio-logo {
    max-height: 100px;
    max-width: 200px;
    object-fit: contain;
}

.convenio-main-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.convenio-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convenio-gallery img:hover {
    opacity: 0.8;
}

/* Estilos para formularios */
.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .destacados-section {
        padding: 2rem 0;
    }
    
    .card-convenio .card-img-top {
        height: 150px;
    }
    
    .convenio-main-image {
        max-height: 300px;
    }
    
    .convenio-gallery img {
        height: 100px;
    }
}