/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global fixed theme: white/black/grey */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5; /* very light grey */
    color: #222;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #222;
    border-bottom: 2px solid #ffcc99; /* subrayado fino BTC */
    display: inline-block;
    padding-bottom: 0.3rem;
}

/* Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropbtn {
    background-color: #fff;
    color: #222;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 1px solid #ffcc99; /* borde BTC naranja pastel */
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropbtn:hover {
    background-color: #fff5e6; /* fondo naranja suave al hover */
}

/* Dropdown content */
.dropdown-content {
    display: none;
    background-color: #fff8f0; /* naranja pastel muy suave */
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.08);
    border-radius: 5px;
    z-index: 1;
    margin-top: 0.5rem;
    border: 1px solid #ffcc99;
}

.dropdown-content a {
    color: #222;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #ffd9b3;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #ffe6cc; /* más vivo al hover */
}

/* Show */
.dropdown-content.show {
    display: block;
}

/* Footer */
.footer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #555;
    opacity: 0.9;
    border-top: 1px solid #ffcc99; /* fina línea BTC */
    padding-top: 1rem;
}

/* Responsive: menu always visible */
@media (max-width: 600px) {
    .menu {
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

    .dropbtn {
        width: 100%;
    }

    .dropdown-content {
        width: 100%;
    }
}

/* Submenus dentro de dropdown-content */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-content {
    top: 0;
    left: 100%;
    position: absolute;
    display: none;
    margin-top: 0;
    min-width: 200px;
}

.dropdown-submenu:hover > .dropdown-content {
    display: block;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #ffd9b3;
    background-color: #fff8f0;
}

.dropdown-submenu > a:hover {
    background-color: #ffe6cc;
}

/* Icon + / - */
.dropbtn .icon {
    margin-left: auto;
    font-weight: bold;
    transition: transform 0.2s;
}

        /* Icon ▸ / ▾ */
        .dropbtn .icon {
            margin-left: auto;
            font-weight: bold;
            transition: transform 0.2s;
        }

        /* Indentación para subniveles */
        .dropdown .dropdown .dropbtn {
            padding-left: 2rem;
            font-size: 0.95rem;
        }

        .dropdown .dropdown .dropdown-content a {
            padding-left: 2.5rem;
            font-size: 0.95rem;
        }

        /* Hover elegante en botones */
        .dropbtn:hover {
            background-color: #ffe6cc;
            color: #000;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    color: #333;
}

.footer .article-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ffa94d;
    border-radius: 6px;
    color: #d35400;
    background-color: #fff5e6;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s;
}

.footer .article-link:hover {
    background-color: #ffe0b3;
    color: #000;
    border-color: #ff9900;
}

