/* Novedades 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;
}

/* Imagen section (top banner) */
.imagen {
    width: 100%;
    background-color: var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.imagen img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Bottom sections container */
.bottom-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Noticias section */
.noticias {
    background-color: var(--bg-lighter);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
}

.noticias h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.noticias h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--accent-color);
}

.noticia {
    margin-bottom: 20px;
}

.noticia img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    margin: 10px 0;
}

.noticia a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.noticia a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 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);
}

/* Styling for noticia-item containers */
.noticia-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.noticia-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.noticia-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
}

.noticia-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.noticia-item img {
    min-width: 200px;
    height: auto;
}

/* Styling for enlace-item containers */
.enlace-item {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enlace-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.enlace-item a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
}

.enlace-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.enlace-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 8px;
}

/* Remove the chincheta from list items */
.enlaces-container ul {
    list-style-type: none;
}

.enlaces-container li {
    margin-bottom: 15px;
    padding-left: 0; /* Remove the padding that was for the chincheta */
}

/* Remove the chincheta pseudo-element */
.enlaces-container li::before {
    display: none; /* Hide the chincheta image */
}

/* Regular list items that aren't enlace-items */
.enlaces-container li:not(.enlace-item) {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.enlaces-container li:not(.enlace-item):hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.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;
}

.enlaces-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    margin: 10px 0;
}

/* Medium screens */
@media screen and (min-width: 768px) {
    
    .noticia-item img {
        min-width: 250px;
    }
    .contenido {
        padding: 30px;
    }
    
    .imagen, .noticias, .enlaces {
        padding: 25px;
    }
}

/* Large screens */
@media screen and (min-width: 992px) {
    .contenido {
        flex-direction: column;
        padding: 40px;
    }
    
    .imagen {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .bottom-sections {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .noticias, .enlaces {
        width: 48%;
        margin: 0;
    }
}

/* Extra large screens */
@media screen and (min-width: 1200px) {
    .imagen {
        padding: 30px;
    }
    
    .noticias {
        width: 60%;
    }
    
    .enlaces {
        width: 38%;
    }
}
