
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", serif;
    background-color: #000000;
    color: #3A3A3A;
    line-height: 1.7;
}

.navbar {
    background-color: #000000;
    padding: 25px 0;
    display: flex;
    justify-content: center;
    border-bottom: 4px solid #B36A32;
}

.logo img {
    max-width: 260px;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 20px;
    background-color: #1E2A36;
}

.tabs button {
    background-color: transparent;
    border: 2px solid #B36A32;
    color: #FAF8F5;
    padding: 10px 18px;
    font-size: 15px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs button:hover {
    background-color: #B36A32;
    color: #FAF8F5;
}

.tabs button.activo {
    background-color: #B36A32;
    color: #FAF8F5;
}

.tab {
    display: none;
    max-width: 1100px;
    margin: 50px auto;
    padding: 40px;
    background-color: #eae7e2;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.tab.activa {
    display: block;
}

h2 {
    font-size: 32px;
    color: #1E2A36;
    margin-bottom: 20px;
    border-left: 6px solid #B36A32;
    padding-left: 14px;
}

h3 {
    color: #1E2A36;
    margin-bottom: 10px;
}

p {
    margin-bottom: 18px;
    font-size: 17px;
}

#articulos > p:first-of-type {
    background-color: #1E2A36;
    color: #FAF8F5;
    padding: 25px;
    border-radius: 14px;
    font-size: 18px;
    margin-bottom: 40px;
    border-left: 6px solid #B36A32;
}

article {
    background-color: #FAF8F5;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-left: 6px solid #B36A32;
}

article img {
    width: 35%;
}

article small {
    display: block;
    margin-top: 10px;
    color: #6A6A6A;
}

.pdf-item {
    background-color: #FAF8F5;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 14px;
    border-left: 6px solid #B36A32;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.pdf-item a {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #1E2A36;
    color: #FAF8F5;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s ease;
}

.pdf-item a:hover {
    background-color: #B36A32;
}

.card {
    background-color: #FAF8F5;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-top: 6px solid #B36A32;
}

.card img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.card small {
    color: #6A6A6A;
}

a {
    color: #B36A32;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tab {
        padding: 25px;
        margin: 30px 15px;
    }

    h2 {
        font-size: 26px;
    }

    .tabs {
        gap: 8px;
    }
}

.convocatoria-dropdown {
    width: 320px;
    position: relative;
    font-family: Arial, sans-serif;
}

.dropdown-btn {
    width: 100%;
    background-color: #3b3b3b;
    color: #ffffff;
    padding: 15px;
    border: none;
    font-size: 16px;
    text-align: left;
    cursor: pointer;
}

.dropdown-btn::after {
    content: "▼";
    float: right;
    font-size: 12px;
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #f2f2f2;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: 12px 15px;
    color: #333333;
    text-decoration: none;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #e0e0e0;
}

.convocatoria-dropdown:hover .dropdown-content {
    display: block;
}


.carousel {
    position: relative;
    max-width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    margin: 20px auto;
}

.carousel-images img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: none;
}

.carousel-images img.active {
    display: block;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}

.carousel .prev { left: 15px; }
.carousel .next { right: 15px; }

.redes-sociales {
    position: fixed;       
    right: 15px;
    top: 40%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.btn-red {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    line-height: 45px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.btn-red:hover {
    transform: scale(1.1);
}

.facebook {
    background-color: #1877F2;
}

.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
}

.x-twitter {
    background-color: #000000;
}