/* Paleta de colores institucional actualizada */
:root {
    --primary-color: #26453f;           /* Verde oscuro */
    --secondary-color: #a8be5f;         /* Verde claro */
    --background-color: #eaf1d2;        /* Beige claro */
    --accent-color: #f59c52;            /* Naranja */
    --secondary-color2: #9a3246;            /* Naranja */
}

body {
    background-color: var(--background-color);
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.card-title {
    color: var(--primary-color);
}

.btn-custom {
    background-color: var(--secondary-color);
    color: white;
}

.btn-custom:hover {
    background-color: var(--accent-color);
}

.carousel {
    max-width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-img {
    height: 400px;
    object-fit: cover;
}

.evento-card {
    position: relative;
    border: none;
    border-radius: 12px;
    background: var(--background-color);
    box-shadow: 0px 4px 10px rgba(38, 69, 63, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(38, 69, 63, 0.3);
}

.evento-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.badge-evento, .badge-curso {
    position: absolute;
    top: 10px;
    left: 10px;
    color: white;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-evento {
    background: var(--secondary-color2);
}

.badge-curso {
    background: var(--accent-color);
}

.title-evento {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
}

.title-curso {
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2rem;
}

.btn-primary-custom {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-primary-custom:hover {
    background-color: var(--accent-color);
}

.btn-secondary-custom {
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #d67e36;
}

.section-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    color: white;
}

.bg-eventos {
    background: var(--secondary-color);
    color: white;
    position: relative;
}

.bg-eventos::before,
.bg-eventos::after {
    background: var(--accent-color);
}

.bg-cursos {
    background: var(--primary-color);
    color: white;
    position: relative;
}

.bg-cursos::before,
.bg-cursos::after {
    background: #1e2e2a;
}

.carousel-img {
    max-height: 500px;
    object-fit: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: 1fr;
}

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .course-banner {
        grid-column: span 2;
        aspect-ratio: 2/1;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .course-banner {
        grid-column: span 1;
        aspect-ratio: 1/1;
    }
}

.course-banner {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.course-banner:hover {
    transform: scale(1.03);
}

.banner-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.course-banner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.latest-section,
.info-box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.latest-section:hover,
.info-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.section-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.section-content {
    padding: 12px;
    flex: 1;
}

.gray-bg {
    background-color: #f4f9ec;
}

.info-item {
    margin-bottom: 14px;
    padding: 8px 6px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.info-item:hover {
    background-color: #eaf1d2;
}

.info-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--primary-color);
}

.info-item p {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.4;
}

.see-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.see-more:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

.see-all-container {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 8px;
    margin-top: auto;
}

.see-all {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.see-all:hover {
    text-decoration: underline;
}

.document-list {
    list-style: none;
}

.document-list li {
    margin-bottom: 5px;
    padding: 4px 0 4px 12px;
    border-bottom: 1px solid #ddd;
    position: relative;
    transition: background 0.2s ease;
    border-radius: 4px;
}

.document-list li:hover {
    background-color: #f1f7ec;
}

.document-list li:last-child {
    border-bottom: none;
}

.document-list a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: block;
    line-height: 1.4;
    padding-left: 10px;
    position: relative;
}

.document-list a:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.document-list a:hover {
    color: var(--accent-color);
}

.arrow-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.arrow-link:hover {
    transform: translateX(4px);
}
.evento-footer {
    background-color: #2e4c3b;
    color: white;
    padding: 8px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 0 0 5px 5px;
}

.dned-logo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dned-logo img {
    height: 24px;
    filter: brightness(0) invert(1);
}
