header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem
}

.logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center
}

.logo img {
    height: 40px;
    width: 40px;
    margin-right: .5rem
}

nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin: 0 1rem;
    transition: color .3s ease;
    font-weight: 500;
    position: relative
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    transition: width .3s ease
}

nav a:hover::after,
nav a.active::after {
    width: 100%
}

nav a.active {
    color: var(--primary-color)
}

section {
    padding: 6rem 0
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 800px;
    margin: 0 auto 4rem
}

footer {
    background: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0
}

/* Logo con dos líneas */
.logo {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .6rem;
    /* espacio entre imagen y texto */
    font-size: 1rem;
    /* evita heredar 1.5rem y sobredimensionar */
}

.logo img {
    width: 48px;
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo .brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.logo .brand-desc {
    margin-top: 2px;
    font-size: .82rem;
    color: var(--secondary-color);
}

/* En móvil puedes ocultar la línea descriptiva para compactar el header */
@media (max-width: 576px) {
    .logo .brand-desc {
        display: none;
    }
}