/* Estilos del menú principal */
.menu {
    height: 80px;
    margin-right: 60px;
}

.menu nav {
    height: 100%;
}

.menu nav ul {
    height: 100%;
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}



.menu nav ul li {
    height: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu-selected:before {
    content: '';
    width: 100%;
    height: 4px;
    background: #46a2fd;
    position: absolute;
    top: 0;
    left: 0;
}

.menu nav ul li a {
    color: #777777;
    font-size: 18px;
    transition: color 300ms;
    text-decoration: none;
    display: flex;
    align-items: center;
    height: 100%;
}

.menu nav ul li a:hover {
    color: #46a2fd;
}

.menu .text-menu-selected {
    color: #46a2fd;
}

.menu nav ul li a i {
    display: none;
}

#icon-menu {
    width: 50px;
    height: 50px;
    position: absolute;
    right: 20px;
    top: 16px;
    padding: 10px;
    font-size: 20px;
    background: #eeeeeefa;
    border-radius: 100%;
    color: #787878;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#icon-menu:hover {
    opacity: 0.8;
}

/* Estilos específicos del menú Finanzas */
.menu-finanzas {
    position: relative;
    height: 100%;
}

.menu-finanzas > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #777777;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.menu-finanzas > a:hover {
    color: #46a2fd;
}

.menu-finanzas .flecha {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}

.submenu-finanzas {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #1a73e8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.submenu-finanzas li {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.submenu-finanzas li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #555;
    font-size: 15px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    box-sizing: border-box;
}

.submenu-finanzas li:last-child a {
    border-bottom: none;
}

.submenu-finanzas li a:hover {
    background: #f5f8fa;
    color: #46a2fd;
    padding-left: 25px;
}

.menu-finanzas.active .submenu-finanzas {
    display: flex;
}

.menu-finanzas.active .flecha {
    transform: rotate(180deg);
}







/* Estilos específicos del menú Ventas */
.menu-Ventas {
    position: relative;
    height: 100%;
}

.menu-Ventas > a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    color: #777777;
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.menu-Ventas > a:hover {
    color: #46a2fd;
}

.menu-Ventas .flecha {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s;
}






.menu-Ventas.active .flecha {
    transform: rotate(180deg);
}




/* Responsive del menú */
@media screen and (max-width: 800px) {
    .menu {
        position: fixed;
        top: 80px;
        left: -80%;
        width: 80%;
        height: calc(100vh - 80px);
        background: #fff;
        transition: all 0.3s ease;
        z-index: 100;
        margin-right: 0;
    }

    .menu.active {
        left: 0;
    }

    .menu nav ul {
        flex-direction: column;
        padding: 20px;
        height: auto;
    }

    .menu nav ul li {
        height: auto;
        margin: 10px 0;
        justify-content: flex-start;
        width: 100%;
    }

    .menu-selected:before {
        width: 0;
    }

    .menu nav ul li a {
        color: #555;
        font-size: 16px;
        height: auto;
        padding: 12px 0;
    }

    .menu nav ul li a i {
        display: inline-block;
        margin-right: 10px;
        color: #46a2fd;
    }

    #icon-menu {
        display: flex;
    }

    #cover-ctn-search.active {
        display: block;
    }

    /* Estilos móvil para menú Finanzas */
    .menu-finanzas {
        height: auto;
        flex-direction: column;
    }
    
    .menu-finanzas > a {
        height: auto;
        padding: 12px 0;
        justify-content: space-between;
        background: transparent;
        border-radius: 0;
        margin: 0;
        width: 100%;
    }
    
    .submenu-finanzas {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 5px;
        padding-left: 20px;
    }
    
    .submenu-finanzas li a {
        padding-left: 30px;
    }
    
    
     /* Estilos móvil para menú Ventas */
    .menu-Ventas {
        height: auto;
        flex-direction: column;
    }
    
    .menu-Ventas > a {
        height: auto;
        padding: 12px 0;
        justify-content: space-between;
        background: transparent;
        border-radius: 0;
        margin: 0;
        width: 100%;
    }
    
    .submenu-Ventas {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 5px;
        padding-left: 20px;
    }
    
    .submenu-Ventas li a {
        padding-left: 30px;
    }
}

/* Estilos para posts y categorías */
.container-category {
    width: 100%;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
   
    justify-content: center;
}

.container-category label {
    padding: 6px 40px;
    margin: 10px;
    font-size: 20px;
    background: #e2e2e2;
    border-radius: 5px;
    cursor: pointer;
    width: 40%;
    text-align: center;
    box-sizing: border-box;
}

.container-category label:hover {
    opacity: 0.8;
}

.container-post {
    max-width: 1200px;
    margin: auto;
    justify-items: center;
}

.posts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 20px;
    padding: 20px;
}

.posts .post {
    background: #fff;
    box-shadow: 0 0 20px -20px black;
    border-radius: 6px;
    overflow: hidden;
    padding-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post .ctn-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.post .ctn-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post:hover .ctn-img img {
    transform: scale(1.05);
}

.post h2 {
    font-size: 18px;
    margin-top: 20px;
    padding: 0 20px;
    color: #333;
}

.post span {
    display: block;
    margin-top: 10px;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
}

.ctn-tag {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    margin-left: 16px;
    margin-top: 10px;
}

.ctn-tag li {
    list-style: none;
    font-size: 14px;
    margin: 4px;
    padding: 6px 10px;
    background: #e8e8e8;
    cursor: default;
    border-radius: 3px;
}

.post button {
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 50px;
    font-size: 16px;
    background: #46a2fd;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.post button:hover {
    background: #3a8de4;
}


/* Ocultar inputs radio pero mantener funcionalidad */
input[type="radio"][name="categories"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Sistema de filtrado */
[value="TODOS"]:checked ~ .posts .post[data-category] {
    display: block;
    animation: fadeIn 0.5s ease;
}

[value="DOMINIO"]:checked ~ .posts .post:not([data-category~="DOMINIO"]),
[value="HOSTING"]:checked ~ .posts .post:not([data-category~="HOSTING"]),
[value="CORREO"]:checked ~ .posts .post:not([data-category~="CORREO"]),
[value="WEB"]:checked ~ .posts .post:not([data-category~="WEB"]),
[value="APLICATIVO"]:checked ~ .posts .post:not([data-category~="APLICATIVO"]) {
    display: none;
}

[value="TODOS"]:checked ~ .container-category [for="TODOS"],
[value="DOMINIO"]:checked ~ .container-category [for="DOMINIO"],
[value="HOSTING"]:checked ~ .container-category [for="HOSTING"],
[value="CORREO"]:checked ~ .container-category [for="CORREO"],
[value="WEB"]:checked ~ .container-category [for="WEB"],
[value="APLICATIVO"]:checked ~ .container-category [for="APLICATIVO"] {
    background: #46a2fd;
    color: #fff;
     border-color: #46a2fd;
    box-shadow: 0 4px 8px rgba(70, 162, 253, 0.3);
}


/* Animación para los posts */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adicional */
@media screen and (max-width: 1200px) {
    .posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .posts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container-category label {
        width: 80%;
    }
}

@media screen and (max-width: 580px) {
    .posts {
        grid-template-columns: 1fr;
    }
    
    .container-category label {
        width: 90%;
        font-size: 16px;
    }
}


.containersito {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.btn-float .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-float .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    background: #20b85c;
}

.btn-float .btn img {
    width: 35px;
    height: 35px;
}