<style>
/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 10px;
}

/* Header */
header {
    background: #0a0a0a;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: red;
}

/* Menú sin viñetas */
nav ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
    display: flex;
    gap: 2rem;
}

nav ul li {
    list-style: none;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

nav a:hover {
    color: red;
    text-decoration: underline;
}

/* Responsive menú */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: 10px;
        border-top: 1px solid #444;
        display: none;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        margin: 10px 0;
        padding: 8px 0;
        border-bottom: 1px solid #444;
    }
    nav a {
        font-size: 1.1rem;
    }
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        align-self: flex-end;
        margin-top: 5px;
    }
}

/* Hero */
.hero {
    background: url('multimedia/fondo_circuito.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Main y secciones */
main {
    max-width: 1000px;
    margin: auto;
    padding: 20px 15px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 40px;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

section h2 {
    color: #bb0000;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

section h3 {
    margin-top: 20px;
    color: #34495e;
}

p, ul {
    margin-bottom: 15px;
}

ul li {
    margin-left: 20px;
    list-style-type: disc;
}

section img, iframe, embed {
    margin-top: 1rem;
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
}

/* Videos responsivos */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin: 20px 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Código */
pre {
    background: #f0f0f0;
    padding: 15px;
    overflow-x: auto;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 16px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #2c3e50;
}

/* Footer */
footer {
    background: #35424a;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    border-radius: 8px;
}