body {
    font-size: 100%;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #fff;
}

.container {
    width: 80%;
    margin: 0 auto;
    border: 3px solid rgb(0, 43, 75);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    margin: 0;
    padding: 0.5em;
    font-family: "Merriweather", serif;
    background-color: rgb(0, 43, 75);
    text-align: center;
    color: white;
}

h2:target {
    background-color: #ececec;
}

h2 {
    border-bottom: 3px dotted #003366;
    color: #003366;
    font-family: 'Spicy Rice', sans-serif;
    text-align: left;
}

h3 {
    text-decoration: underline wavy #7aefb4;
    color: #006633;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: justify;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1px;
}

nav li {
    background-color: rgb(2, 38, 61);
    text-align: center;
    padding: 8px 0;
    color: white;
    font-family: 'Merriweather', serif;
    flex: 1 1 auto;
    min-width: 100px;
}

nav li:hover {
    background-color: rgba(13, 66, 107, 0.85);
    border-bottom: 7px solid rgb(15, 115, 217);
}

nav a {
    color: white;
    text-decoration: none;
    display: block;
}

main {
    flex-grow: 1;
    padding: 20px 10px;
}

article {
    padding: 20px;
    margin: 0 10px;
}

p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
    font-family: "Playfair Display", serif;
}

footer {
    background-color: rgb(0, 43, 75);
    padding: 20px;
    color: white;
    position: relative;
}

ol.footer {
    list-style: none;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

li.footer {
    background-color: rgb(0, 43, 75);
    width: 25%;
    margin: 0.5em;
    text-align: justify;
    border-radius: 50px;
    padding: 10px;
    border: 2px solid rgb(0, 43, 75);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

li.footer:hover {
    background-color: rgba(15, 115, 217, 0.9);
    border-color: white;
}

li.footer a {
    color: white;
    text-decoration: none;
    font-family: 'Merriweather', serif;
    font-size: 1em;
}

li.footer a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.social-label {
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Merriweather', serif;
    font-size: 1em;
}

footer address {
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: white;
    font-style: normal;
    font-size: 0.9em;
}

img, .img2, .img3 {
    float: left;
    width: 35%;
    margin-right: 10px;
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.img2, .img3 {
    float: right;
    margin-left: 10px;
}

img:hover, video:hover {
    transform: scale(1.02);
}

video {
    width: 50%;
    height: 300px;
    display: block;
    margin: 1em auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

[role="button"], .volver a {
    cursor: pointer;
    border: none;
    background-color: rgb(0, 68, 117);
    color: white;
    padding: 0.5em 1em;
    font-size: 1em;
    font-family: 'Merriweather', serif;
    text-decoration: none;
    border-radius: 4px;
}

[role="button"]:hover, .volver a:hover {
    background-color: rgb(48, 153, 236);
}

p.volver {
    background-color: rgb(48, 153, 236);
    text-align: right;
    padding: 5px 10px;
    font-family: 'Spicy Rice', sans-serif;
    display: inline-block;
    color: white;
    clear: both;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #004080;
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
    font-family: 'Merriweather', serif;
    border-radius: 4px;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 10px;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    img, .img2, .img3, video {
        float: none;
        width: 100%;
        margin: 1em 0;
    }

    nav ul {
        flex-direction: column;
    }

    li.footer {
        width: 100%;
    }
}

.bandera {
  text-align: left;
}
[role="button"], .volver a {
  cursor: pointer;
  border: none;
  background-color: rgb(0, 68, 117);
  color: white;
  padding: 0.5em 1em;
  font-size: 1em;
  font-family: 'Merriweather', serif;
  text-decoration: none;
  border-radius: 4px;
}

[role="button"]:hover, .volver a:hover {
  background-color: rgb(48, 153, 236);
}
