/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* --- HEADER Y NAVEGACIÓN --- */
header {
    background-color: #0d1b2a;
    color: #fff;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 130px;
    width: auto;
    border-radius: 5px;
    object-fit: contain;
    background-color: #0d1b2a;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #00b4d8;
    border-bottom: 2px solid #00b4d8;
}

/* --- SECCIONES PRINCIPALES --- */
main {
    padding: 2rem 0;
    min-height: 80vh;
}

.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.85), rgba(13, 27, 42, 0.85)), url('../img/hero-iot.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 5rem 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #00b4d8;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- GRID DE CONTENIDO --- */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

article {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border-left: 5px solid #00b4d8;
}

article h2 {
    color: #0d1b2a;
    margin-bottom: 1rem;
}

article img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
}

aside {
    background: #e0e1dd;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

aside h3 {
    color: #0d1b2a;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0d1b2a;
    padding-bottom: 0.5rem;
}

aside ul {
    list-style: none;
}

aside ul li {
    margin-bottom: 0.8rem;
}

aside ul li a {
    color: #0077b6;
    text-decoration: none;
}

aside ul li a:hover {
    text-decoration: underline;
}

/* --- BOTONES --- */
.btn {
    display: inline-block;
    background: #00b4d8;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 1rem;
}

.btn:hover {
    background: #0077b6;
}

/* --- FORMULARIO --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #0d1b2a;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    height: 150px;
}

/* --- FOOTER --- */
footer {
    background-color: #0d1b2a;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #00b4d8;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.social-links a:hover {
    color: #fff;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .logo img {
        height: 80px;
    }
}