/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    background-color: #f2f2f2;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* CONTENEDOR CENTRAL (pilares blancos) */
.wrapper {
    background: #fff;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* CONTENEDOR INTERNO */
.container {
    width: 90%;
    margin: 0 auto;
}

/* HEADER */
#header {
    padding: 25px 0;
    border-bottom: 1px solid #eee; 

}

#header .container {
    display: flex; 
    justify-content: space-between;
    align-items: center;

}

/* LOGO */
.logo a {
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
    color: #000;
}

/* NAV CONTENEDOR */
#navigation {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* 🔥 permite salto de línea */
    gap: 10px;
    justify-content: flex-end; /* o center si prefieres */
    max-width: 100%;
}

/* ITEMS */
#navigation li {
    display: inline-block;
}

/* LINKS */
#navigation li a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    white-space: nowrap; /* evita que el texto se parta */
}

/* HOVER */
#navigation li a:hover {
    background: #000;
    color: #fff;
}

/* ACTIVO */
#navigation .active a {
    background: #f99600;
    color: #000;
}

/* HERO */
#adbox {
    padding: 100px 0;
    text-align: center;
}

#adbox h1 {
    font-size: 48px;
    font-weight: 300;
}

#adbox h2 {
    font-size: 24px;
    color: #777;
    margin-bottom: 20px;
}

#adbox p {
    margin-bottom: 30px;
}

/* BOTÓN */
.btn {
    background: #000;
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn:hover {
    background: #f99600;
    color: #000;
}

/* CONTENIDO */
#contents {
    padding: 80px 40px;
}

#contents h1 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

/* COLUMNAS */
.columns {
    display: flex;
    gap: 40px;
}

.columns div {
    flex: 1;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* FOOTER */
#footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .columns {
        flex-direction: column;
    }

    #navigation {
        flex-wrap: wrap;
        justify-content: center;
    }
}