:root {
    --primary: #003366;
    --secondary: #00509e;
    --accent: #d32f2f;
    --bg-color: #f4f6f8;
    --text: #333;
    --white: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: 60px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 40px 0;
    text-align: center;
    color: white;
}
header h1 { font-family: 'Montserrat', sans-serif; margin-bottom: 5px; }
header h3 { font-weight: 300; opacity: 0.9; }

nav {
    background: #002244;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0; padding: 0;
}
nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
}
nav ul li a:hover, nav ul li a.active { background: var(--accent); }

.container { max-width: 1000px; margin: 30px auto; padding: 0 20px; }

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

h2 {
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.media-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

img, video, iframe, canvas {
    max-width: 100%;
    border-radius: 6px;
    display: block;
}

.caption {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

input, select { width: 100%; padding: 10px; margin: 5px 0 15px 0; border: 1px solid #ccc; border-radius: 5px; }
button { background: var(--accent); color: white; border: none; padding: 12px; border-radius: 5px; cursor: pointer; font-weight: bold; width: 100%; }
button:hover { background: #b71c1c; }
.resultado { background: #e8f5e9; padding: 15px; border-left: 5px solid #2e7d32; font-family: monospace; margin-top:10px;}
.complex-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; background: #e3f2fd; padding: 20px; border-radius: 8px; }

footer { text-align: center; color: #888; font-size: 0.9rem; margin-top: 40px; border-top: 1px solid #ddd; padding-top