/*
Theme Name: Pyxis Child
Theme URI: https://pyxis.es
Author: Aitor Arina
Author URI: https://aitorarina.com/
Description: Tema hijo de pyxis.
Version: 1.0
Template: pyxis
Text Domain: pyxis-child
*/

a {
    color: #333;
}


/* Layout básico */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-navigation {
    display: flex;
}

.main-menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
}

.main-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* HAMBURGUESA */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span:before,
.nav-toggle-label span:after {
    content: '';
    background: #333;
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: .3s;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span:before {
    top: -8px;
}

.nav-toggle-label span:after {
    top: 8px;
}

/* Modo responsive */
@media (max-width: 768px) {

    .nav-toggle-label {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px;
        border-top: 1px solid #eee;
    }

    .main-menu {
        flex-direction: column;
        gap: 15px;
    }

    /* Mostrar menú al activar checkbox */
    .nav-toggle:checked ~ .main-navigation {
        display: block;
    }

    /* Animación hamburguesa a X */
    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked + .nav-toggle-label span:before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:after {
        transform: rotate(-45deg);
        top: 0;
    }
}