@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cambioColorTitulo {
    0% { color: #D6D58E; }
    50% { color: #9FC131; }
    100% { color: #D6D58E; }
}

@keyframes aparecerSuave {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes latido {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes zoomMenu {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes brilloTabla {
    0% { box-shadow: 0 0 0px #9FC131; }
    50% { box-shadow: 0 0 12px #9FC131; }
    100% { box-shadow: 0 0 0px #9FC131; }
}

@keyframes entrarIzq {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}

body {
    background-color: #044038;
    padding: 0 40px;
}

footer {
    align-items: center;
    background-color: #005C53;
    border-top: 2px solid white;
    color: white;
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    padding: 50px;
    text-align: center;
}

html {
    color: white;
    font-family: Arial;
    font-size: 20px;
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
}

nav {
    background-color: #042940;
    padding: 14px 0;
    top: 0;
    z-index: 10;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #9FC131;
    color: #042940;
    animation: zoomMenu 0.2s forwards;
}

nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0 80px;
}

p {
    margin: 50px;
    text-align: justify;
}

.barraNav {
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #042940;
}

.divClv,
.divDef,
.divHist,
.divInt,
.divObj {
    font-size: 1rem;
    line-height: 1.5;
    animation: aparecerSuave 1.2s ease;
}

.divEncabezado {
    color: #9FC131;
    margin-bottom: 50px;
    position: relative;
    text-align: center;
    animation: entrarIzq 1.5s ease-out;
}

.divVideo {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.footer-cent,
.footer-der,
.footer-izq {
    flex: 1;
}

.footer-cent img {
    height: 75px;
}

.h1Clv,
.h1Def,
.h1Hist,
.h1Int,
.h1Obj {
    color: #D6D58E;
    margin: 50px;
    text-align: center;
    animation: cambioColorTitulo 4s infinite;
}

        .tablas {
            margin: 0 auto 75px auto;
            border-collapse: collapse;
            width: 75%;
            table-layout: fixed;
        }

.h1Titulo {
    animation: fadeIn 1.5s ease;
    color: white;
    display: inline-block;
    position: relative;
}

.h1Titulo::after {
    background-color: #9FC131;
    bottom: -10px;
    content: "";
    height: 3px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: calc(100% + 20px);
}

.imagenes {
    margin: 50px;
    text-align: center;
}

.imagenes img {
    transition: transform 0.25s ease;
}

.imagenes img:hover {
    transform: scale(1.05);
    animation: latido 0.6s infinite;
}

.ulDef li:first-child {
    color: #D6D58E;
}

#subir {
    background: #005C53;
    border-radius: 6px;
    bottom: 20px;
    color: white;
    font-size: 32px;
    opacity: 0.7;
    padding: 8px 12px;
    position: fixed;
    right: 20px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    animation: flotar 2s infinite ease-in-out;
}

#subir:hover {
    opacity: 1;
}

table {
    animation: brilloTabla 3s infinite;
}

#introduccion::before {
    color: #9FC131;
    content: "› ";
    font-size: 1.2em;
}
