:root {
    /* Footer */
    --footer-bg: #121212;
    --footer-text: #c5cbd0;
    --footer-link-hover: #ffffff;
    --footer-heading: #f5f5f5;
    --footer-contact-mail: #ff9442;
    --footer-social-border: #8a8f91;
    --footer-bottom-border: rgba(255, 255, 255, 0.106);
    --footer-bottom-text: #a6aaad;

    /* Menú energía */
    --menu-text-main: #f5f5f5;
    --menu-bg-main: #2f3334;
    --menu-bg-root: #353535;
    --menu-text-secondary: #d0d4d6;
    --menu-sub-border: rgba(255, 255, 255, 0.08);
    --menu-bullet: #da7f24;
    --menu-hover-bg: #6d3d0d;
    --menu-hover-text: #ffffff;
}

/* FOOTER */

.site-footer {
    background-color: var(--footer-bg);
    /* gris oscuro del footer */
    color: var(--footer-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--footer-link-hover);
}

/* Parte superior del footer */
.footer-top {
    padding: 60px 8% 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
}

.footer-col {
    flex: 1 1 210px;
    min-width: 210px;
}

@media (max-width: 720px) {
    .footer-col {
        flex: 1;
        min-width: none;
    }
}

.footer-col h4 {
    color: var(--footer-heading);

    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;

}

.footer-about p {
    line-height: 1.6;
}

/* Listas */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 6px;
    color: var(--footer-text);
}

.footer-contact .contact-mail {
    color: var(--footer-contact-mail);
    /* color del email */
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--footer-social-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Logo inferior izquierda */
.footer-logo {
    margin-top: 40px;
}

.footer-logo img {
    max-width: 230px;
    height: auto;
}

/* Franja inferior */
.footer-bottom {
    border-top: 1px solid var(--footer-bottom-border);
    padding: 18px 8% 25px;
    text-align: center;
    font-size: 13px;
    color: var(--footer-bottom-text);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-logo img {
        max-width: 180px;
    }
}


/* MENÚ ENERGÍA */

/* Contenedor general del menú */
.menu-energia {
    max-width: 320px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 18px;
    border-top: 1px solid var(--footer-bottom-border);
}

/* Reset listas */
.menu-energia ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Items */
.menu-energia li {
    margin: 2px 0;
}

/* Enlaces */
.menu-energia a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: var(--menu-text-main);
    /*background-color: var(--menu-bg-main);*/
    position: relative;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Nivel raíz (Fotovoltaica, Hidrógeno, Biogás) */
.menu-energia>ul>li>a {
    font-weight: 600;
    /*background-color: var(--menu-bg-root);*/
}

/* Segundo nivel */
.menu-energia ul ul>li>a {
    font-size: 0.95em;
    background-color: transparent;
    color: var(--menu-text-secondary);
    padding-left: 1.4rem;
}

/* Tercer nivel (Autoconsumo compartido, etc.) */
.menu-energia ul ul ul>li>a {
    font-size: 0.9em;
    padding-left: 2rem;
}

/* Línea guía para los subniveles */
.menu-energia ul ul {
    border-left: 1px solid var(--menu-sub-border);
    margin-left: 12px;
    padding-left: 8px;
}

/* Bullet estético en subniveles */
.menu-energia ul ul>li>a::before {
    content: "•";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: var(--menu-bullet);
    /* color acento */
}

/* Hover / focus */
.menu-energia a:hover,
.menu-energia a:focus {
    background-color: var(--menu-hover-bg);
    color: var(--menu-hover-text);
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.menu-energia span{
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}