body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: #1f3a5f;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 40px;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

h1, h2 {
    color: #1f3a5f;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #1f3a5f;
    color: white;
}

/* NEWS CARDS */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: white;
    transition: transform 0.2s;
}

.news-card a {
    text-decoration: none;   /* saca el subrayado */
    color: inherit;          /* usa el color normal */
    display: block;          /* hace clickeable toda la tarjeta */
}

.news-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1f3a5f;
}

footer {
    background-color: #1f3a5f;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.map-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.map-container iframe {
    width: 80%;
    max-width: 600px;
    height: 300px;
    border: 0;
    border-radius: 10px;
}

.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.2s, opacity 0.2s;
}

.social-icons img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}


/* SLIDER JS */

.slider {
    position: relative;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    position: relative;
    width: 100%;
    height: 350px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #eee;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* BOTONES */

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    width: 40px;
    height: 40px;
    
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    border-radius: 50%;
    
    font-size: 20px;
    line-height: 1;

    z-index: 10;
    
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.6);
}
