
* {
    margin: 5px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 5px;
}

html, body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    display: block;
    line-height: 1.6;
}

h1,h2, {
    margin-bottom: 0.5em; /* espacio entre h y p */
    color: #ffffff;
}

 h3, h4, h5, h6 {
    margin-bottom: 0.5em; 
    color: #000000;
}

p, ul, ol {
    margin-bottom: 1em;
}


header {
    background-color: #0F1A2B;
    color: #fff;
    padding: 0,5em;
    position: sticky;
    top: 0;
    z-index: 100;
}


nav {
    background-color: #0A2617;
    padding: 10px;
    width: 100;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
    border-radius: 5px;
}

nav ul li a:hover,
nav ul li a:focus {
    background-color: #ec6053;
    transform: translateY(-2px);
    outline: none;
}

nav ul li ul.menu-sub {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0A2617;
    display: none;
    flex-direction: column;
    min-width: 200px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 50;
}

nav ul li:hover ul.menu-sub,
nav ul li:focus-within ul.menu-sub {
    display: flex;
}

nav ul li ul.menu-sub li {
    width: 100%;
}

nav ul li ul.menu-sub li a {
    padding: 10px;
}

/* Main y aside */
main {
    width: 70%;
    padding: 1em 2em;
    float: left;
}

aside {
    width: 25%;
    float: right;
    padding: 1em;
    background-color: #e0f7fa;
    border: 2px solid #333;
    border-radius: 10px;
    margin: 1em 2%;
}

/* Footer */
footer {
    clear: both;
    background-color: #0F1A2B;
    color: white;
    text-align: center;
    padding: 1em 0;
    font-size: 16px;
}

/* Skip-link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 10px;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 16px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.15);
}

table th {
    background: #4CAF50;
    color: white;
    padding: 12px;
    text-align: center;
}

table td {
    padding: 12px;
    border: 1px solid #ddd;
    vertical-align: top;
}

table tr:nth-child(even) td {
    background: #f9f9f9;
}

/* Animaciones suaves */
a, button {
    transition: all 0.3s ease;
}

.genially-iframe {
    width: 100%;
    max-width: 600px;
    height: 55vh;
    border: none;
    margin: 15px 0;
}
