* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neuton', serif;
    color: #006ac0;
    padding-top: 60px;
    background-color: #f4f4f4;
}

.navbar {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

h1 {
    margin: 0;
    color: #006ac0;
}

.menu {
    list-style: none;
    display: flex;
    margin-left: auto;
}

.menu li {
    margin: 0 15px;
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #006ac0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.menu a:hover {
    background-color: #006ac0;
    color: #fff;
}

.menu .active > a {
    background-color: #006ac0;
    color: #fff;
    font-weight: bold;
}

.dropdown.active > a {
    background-color: #006ac0;
    color: #fff;
    font-weight: bold;
}

.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    list-style: none;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
}

.menu li:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 5px 0;
}

.dropdown-menu a {
    padding: 5px 10px;
    color: #006ac0;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #006ac0;
    color: #fff;
}

main {
    padding: 20px;
    background-color: white;
}

.contenido {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.contenido h1 {
    margin-bottom: 30px;
    text-align: center;
}

.articulos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tarjeta {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.img-container {
    height: 200px;
    overflow: hidden;
}

.img-cuadrada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-cuadrada:hover {
    transform: scale(1.1);
}

.texto {
    padding: 20px;
    text-align: center;
}

h2 {
    color: #006ac0;
    margin-bottom: 10px;
    font-size: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #000000;
}

.social-icons {
    position: relative;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icons a {
    color: #000;
    font-size: 24px;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2) rotate(10deg);
}

.social-icons a:nth-child(1) {
    color: #25D366;
}

.social-icons a:nth-child(2) {
    color: #3b5998;
}

.social-icons a:nth-child(3) {
    color: #e1306c;
}

.social-icons a:nth-child(4) {
    color: #000000;
}

.social-icons a:nth-child(5) {
    color: #f87408;
}

footer {
    text-align: center;
    padding: 20px;
    background: #006ac0;
    color: #ffffff;
    box-shadow: 0 -2px 5px rgba(255, 254, 254, 0.1);
}

.centered-title {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
    color: #fbfdff;
}

@media (max-width: 767px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu {
        flex-direction: column;
        width: 100%;
    }

    .menu li {
        margin: 10px 0;
        width: 100%;
    }
}