/* Secretaria Styles - Mobile First Approach */

:root {
    --primary-color: #225581;
    --primary-dark: #14435e;
    --accent-color: #81dd36;
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --bg-light: #F7F7F7;
    --bg-lighter: #FFFFFF;
    --border-light: #E0E0E0;
    --link-color: #2496ca;
}

/* Base styles for mobile */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.contenido {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Principal section */
.principal {
    background-color: var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
}

.principal-noticias img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.principal-noticias h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.principal-noticias p {
    margin-bottom: 10px;
}

.principal-noticias a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.principal-noticias a:hover {
    text-decoration: underline;
}

/* Secundario section */
.secundario {
    background-color: var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
}

.secundario-noticias h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.enlace-noticia {
    display: block;
    color: var(--link-color);
    text-decoration: none;
    padding: 10px;
    margin-bottom: 5px;
    background-color: rgba(129, 221, 54, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.enlace-noticia:hover {
    background-color: rgba(129, 221, 54, 0.2);
    transform: translateY(-2px);
}

/* Enlaces section */
.enlaces {
    background-color: var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
}

.enlaces h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.enlaces-container ul {
    list-style-type: none;
}

.enlaces-container li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.enlaces-container li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url(../imagenes/chincheta.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.enlaces-container a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.enlaces-container a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.secundario {
   margin-bottom: 15px; 
}

/* Medium screens */
@media screen and (min-width: 768px) {
    .contenido {
        padding: 30px;
    }
    
    .principal, .secundario {
        padding: 25px;
    }
}

/* Large screens */
@media screen and (min-width: 992px) {
    .contenido {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 40px;
    }
    
    .principal {
        width: 60%;
        margin-right: 2%;
    }
    
    .secundario {
        width: 38%;
    }
    
    .enlaces {
        width: 100%;
        margin-top: 30px;
    }
    
    .bottom-sections {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%;
    }

    /* Update these media queries */
    @media screen and (min-width: 768px) {
        .contenido {
            padding: 30px;
        }
        
        .principal, .secundario, .enlaces {
            padding: 25px;
        }
    }

    @media screen and (min-width: 992px) {
        .contenido {
            flex-direction: column;
            padding: 40px;
        }
        
        .principal {
            width: 100%;
            margin-bottom: 30px;
        }
        
        .bottom-sections {
            flex-direction: row;
            justify-content: space-between;
        }
        
        .secundario, .enlaces {
            width: 48%;
            margin: 0;
        }
    }
    
    /* Remove or modify the extra large screens media query as it's no longer needed */
}
