/* ============================================
   ESTILOS EXCLUSIVOS PARA MENU.PHP
   Todos los estilos en este archivo están diseñados 
   específicamente para el archivo class/menu.php
   ============================================ */

/* Main Header */
#main-header {
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-bottom: groove;
}

header {
    position: relative;
    width: 100%;
    background: black;
    margin-top: 1rem;
}

/* Menus */
.menus nav {
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    width: 100%;
    margin: 0 auto;
}

.menus,
.menus ul,
.menus ul li,
.menus ul li a,
.menus #head-mobile {
    border: 0;
    list-style: none;
    line-height: 1;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.menus ul{
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.menus:after,
.menus>ul:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0
}

.menus {   
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
}


.menus>ul>li {
    float: left
}

.menus>ul>li>a {
    padding: 1rem;
    font-size: 2rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: white;
    font-weight: 700;
}

.menus>ul>li:hover>a,
.menus ul li.active a {
    color: #282220;
}

.menus>ul>li:hover,
.menus ul ul li:hover>a,
.menus ul li.active:hover,
.menus ul li.active,
.menus ul li.has-sub.active:hover {
    background: #447182 !important;
    -webkit-transition: background .3s ease;
    -ms-transition: background .3s ease;
    transition: background .3s ease;
    color:black;
}

.menus>ul>li.has-sub>a {
    padding-right: 30px
}

.menus>ul>li.has-sub>a:after {
    position: absolute;
    top: 22px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: ''
}

.menus>ul>li.has-sub>a:before {
    position: absolute;
    top: 19px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: '';
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    transition: all .25s ease
}

.menus>ul>li.has-sub:hover>a:before {
    top: 23px;
    height: 0
}

.menus ul ul {
    position: absolute;
    left: -9999px
}

.menus ul ul li {
    height: 0;
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    background: #333;
    transition: all .25s ease
}

.menus li:hover>ul {
    left: auto
}

.menus li:hover>ul>li {
    height: 35px
}

.menus ul ul ul {
    margin-left: 100%;
    top: 0
}

.menus ul ul li a {
    border-bottom: 1px solid rgba(150, 150, 150, 0.15);
    padding: 11px 15px;
    width: 170px;
    font-size: 12px;
    text-decoration: none;
    color: #ddd;
    font-weight: 400;
}

.menus ul ul li:last-child>a,
.menus ul ul li.last-item>a {
    border-bottom: 0;
    line-height: normal;
}

.menus ul ul li:hover>a,
.menus ul ul li a:hover {
    color: #fff
}

.menus ul ul li.has-sub>a:after {
    position: absolute;
    top: 16px;
    right: 11px;
    width: 8px;
    height: 2px;
    display: block;
    background: #ddd;
    content: ''
}

.menus ul ul li.has-sub>a:before {
    position: absolute;
    top: 13px;
    right: 14px;
    display: block;
    width: 2px;
    height: 8px;
    background: #ddd;
    content: '';
    -webkit-transition: all .25s ease;
    -ms-transition: all .25s ease;
    transition: all .25s ease
}

.menus ul ul>li.has-sub:hover>a:before {
    top: 17px;
    height: 0
}

.menus ul ul li.has-sub:hover,
.menus ul li.has-sub ul li.has-sub ul li:hover {
    background: #ddd;
}

.menus ul ul ul li.active a {
    border-left: 1px solid #ddd
}

.menus>ul>li.has-sub>ul>li.active>a,
.menus>ul ul>li.has-sub>ul>li.active>a {
    border-top: 1px solid #ddd
}

.menus .logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 46px;
    text-align: center;
    padding: 10px 0 0 0;
    float: none
}

.menus nav {
    display: none;
}

.menus {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    place-content: flex-end;
}

/* Menu Principal */
.menu {
    display: flex;
    flex-direction: row;
    border-bottom: none;
}

.menu-der{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-end;
    width: 33.33%;
}

.menu-der img {
    height: 5rem;
    margin: 2rem 0rem 0rem 1.5rem;
}

.menu-izq{
    display: flex;
    gap: 10px;
    padding: 10px 30px;
}

.logo-desktop{
    display: flex;
    align-items: center; 
    justify-content: center;
}

.logo-mobile{
    display: none;
    align-items: center; 
    justify-content: center;
}

.menu-izq img {
    height: 5rem;
    width: 5rem;
    margin: 0;
    background: black;
}

.logo-desktop img{
    height: 100%;
}

.menuLogoNombre{
    display: block;
    text-align: center;
    font-size: 18px;
}

.menu-cen{
    width: 33.33%;
    display: block;
    text-align: center;
}

.menu-cen img{
    height: 20rem;
}

hr.hrMenuNombre{
    opacity: 1;
    width: 90%;
    margin: 0 auto;
}

#botmenu, #botmenu2 {
    background-color: black;
    border: none;
    cursor: pointer;
    padding: 0 1rem 0 0;
}

/* Iconos */
.centrar{
    text-align: center;
    justify-content: center;
}

.menu-mobile{
    display: none;
}

.icono-izq{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icono-izq span {
    text-align: center;
    position: absolute;
    color: white;
    background: darkturquoise;
    border-radius: 1rem;
    height: 2.1rem;
    width: 2.1rem;
    font-size: 2rem;
    padding: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 15%;
    right: 40%;
}

.menu-items{
    display: flex !important;
    align-items: center;
}

.icono-der{
    height: 5rem;
}

.menu-items img {
    height: 4rem;
    margin: 0 2rem 0 43.5%;
}

#txtBusqueda {
    font-size: 3rem;
    height: 100%;
    border: none;
}

.menu-sub{
    border-bottom: none !important;
}

.menu-sub li a{
    background: black !important;
    font-size: 2rem !important;
}

@media (max-width:600px){
    .menu-sub li a{
        font-size: 1.8rem !important;
    }
}

.busqueda-info {
    flex-direction: row;
    flex-wrap: wrap;
    display: inline-flex;
    margin: 2rem 0;
}

#menubuscar{
    border-bottom:groove;
}

.nomostrar{
    display:none;
}

.btn {
    width: auto;
    height: 40px;
    margin: 1px;
    padding: 5px 20px;
    font:  18px/14px 'BentonSans-Regular','BentonSans-Bold';
    text-decoration: none;
    color: #FFF;
    border: 1px solid #447182;
    background: #447182;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    border-radius: 0;
}

.boton-menu {
    background: transparent;
    color: white;
    height: auto;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'BentonSans-Regular','BentonSans-Bold';
    height: 4.4rem;
    padding: 0 0 0 1rem;
    width: 100%;
    text-align: left;
}

/* Menu flotante */
.menu-flotante{
    position: fixed;
    left: 0px;
    bottom: 0px;
    width: 100%;
    background: black;
    align-content: center;
    z-index: 9999;
}

.menu-flotante .div-principal{
    margin: 0 1.4rem;
    border-style: groove;
    display: flex;
    justify-content: center;
}

@media (max-width: 600px){
    .menu-flotante .div-principal{
        margin: 0;
    }
}

/* Responsive */
@media (max-width:1025px) {
    .btnMenu{
        display: none;
    }
    .logo-desktop{
        display: none;
    }
    .logo-mobile{
        display: flex;
    }
    .menu-items img {
        height: 4rem;
        margin: 0 2rem 0 38.5%;
    }
}

/* Estilos para el menú desktop #cssmenu2 */
#cssmenu2 {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 9998;
    transition: top 0.3s ease-in-out;
    overflow: visible;
    border-bottom: 2px solid #447182;
}

#cssmenu2.show {
    top: 100%;
    position: relative;
}

/* Estilos del menú móvil (clases nuevas sin estilos previos) */
.divMenu {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 20px;
    justify-content: space-between;
    background: #000;
    width: 100%;
}

.divMenu > div {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    background: #111;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.divMenu > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(68, 113, 130, 0.5);
}

.divMenu img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}

.menuTitulo {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    border-bottom: 2px solid #447182;
    padding-bottom: 5px;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menuTitulo:hover {
    color: #447182;
}

.divMenu > div > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.menuSubtitulo {
    font-size: 1rem;
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 4px 6px;
    transition: all 0.3s;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menuSubtitulo:hover {
    color: #fff;
    background: #447182;
    padding-left: 12px;
}

.divMenuMobile {
    padding: 20px;
    background: black;
}

.contBuscadorMobile {
    padding: 15px;
    background: #111;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contMenuCategorias {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #447182;
}

.grid-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.cat-card {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: background 0.3s;
}

.cat-card:hover {
    background: #333;
}

.cat-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.cat-card div {
    color: white;
    font-size: 1.2rem;
}

.contBotnesEstilos {
    margin-bottom: 30px;
}

.btns-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btns-row .btn {
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.contantiguedades,
.contNegocios {
    margin-bottom: 30px;
}

.list-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.list-rows a {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #222;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    transition: background 0.3s;
}

.list-rows a:hover {
    background: #333;
}

.list-rows img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.busqueda-contenedor {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 5px;

}

.busqueda-contenedor button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.busqueda-contenedor input {
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1.4rem;
}

.menu-fixed {
    background: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.full-logo {
    max-width: 200px;
    height: auto;
}

.small-logo {
    max-width: 60px;
    height: auto;
}

/* Login/Register Popup Styles */
.login-popup{
    display:none;
    background: #333;
    padding: 10px; 	
    border: 2px solid #ddd;
    float: left;
    font-size: 1.2em;
    position: fixed;
    top: 50%; left: 50%;
    z-index: 99999;
    box-shadow: 0px 0px 20px #999;
    -moz-box-shadow: 0px 0px 20px #999;
    -webkit-box-shadow: 0px 0px 20px #999;
    border-radius:3px 3px 3px 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

img.btn_close {
    float: right; 
    margin: -28px -28px 0 0;
}

fieldset { 
    border:none; 
}

form.signin .textbox label { 
    display: block;
    width: 25rem;
}

form.signin .textbox span { 
    display:block;
    font-size: 2rem;
}

form.signin p, form.signin span { 
    font-size: 15px;
    line-height: 18px;
    margin: 1rem 0 0 0;
    color: white;
}

form.signin .textbox input { 
    background:#666666; 
    border-bottom:1px solid #333;
    border-left:1px solid #000;
    border-right:1px solid #333;
    border-top:1px solid #000;
    color:#fff; 
    border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    font:15px Arial, Helvetica, sans-serif;
    padding:6px 6px 4px;
    width:234px;
}

form.signin input:-moz-placeholder { 
    color:#bbb; 
    text-shadow:0 0 2px #000; 
}

form.signin input::-webkit-input-placeholder { 
    color:#bbb; 
    text-shadow:0 0 2px #000;  
}

.buttonlog { 
    font-size: 2rem;
    background: -moz-linear-gradient(center top, #f3f3f3, #dddddd);
    background: -webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#dddddd));
    background:  -o-linear-gradient(top, #f3f3f3, #dddddd);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f3f3f3', EndColorStr='#dddddd');
    border-color:#000; 
    border-width:1px;
    border-radius:4px 4px 4px 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    color:#333;
    cursor:pointer;
    display:inline-block;
    padding:6px 6px 4px;
    margin-top:10px;
}

.buttonlog:hover { 
    background:#ddd; 
}

.flex-horizontal{
    display:flex;
    flex-direction:row;
}

#txtpassword{
    width:200px;
}

.mensaje-error{
    font-size: 1.8rem;
    text-align: center;
    line-height: 3rem;
    cursor: default;
}

.recupera-mensaje{
    width: 100%;
    color: orange;
    margin: 1rem 0;
    text-align: center;
    font-size: 1.7rem;
}

        @media (max-width: 765px) {
            .full-logo {
                display: none !important;
            }

            .logo-desktop {
                display: none !important;
            }
        }

        .busqueda-contenedor {
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background-color: transparent;
            width: 100%;

            /* padding: 10px; */
            /* background-color: #fff; */
            color: #fff;
            border: #fff 1px solid;
            background-color: #fff;
            border-radius: 4px;
        }

        .busqueda-info {
            width: 100%;
            max-width: 700px;
            margin: 0rem;
            padding: 1rem;
        }

        .busqueda-contenedor input {
            width: 100%;
            padding: 10px;
            font-size: 16px;
            border: none;
            outline: none;
            background: none;
            box-shadow: none;
            -webkit-appearance: none;
            appearance: none;
            background-color: transparent;
            color: #111;
        }

        .busqueda-contenedor button {
            padding: 0px 10px;
        }

/* === Estilos específicos para menu.php === */
/* Header principal */
#main-header.menu-header-bg {
    background-color: #000;
}

/* Logo desktop link */
.logo-desktop.menu-logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.logo-desktop.menu-logo-link .full-logo {
    width: 200px;
    max-width: 200px;
    padding: 0rem;
}

/* Logo mobile container */
.logo-mobile.menu-logo-mobile-container {
    align-items: center;
    justify-content: space-between;
}

.logo-mobile.menu-logo-mobile-container .menu-mobile-left,
.logo-mobile.menu-logo-mobile-container .menu-mobile-right {
    width: 30%;
}

.logo-mobile.menu-logo-mobile-container .menu-mobile-center {
    display: flex;
    align-items: center;
}

.logo-mobile.menu-logo-mobile-container .menu-mobile-center img {
    width: 150px;
}

/* Menu fixed */
.menu-fixed.menu-fixed-position {
    position: fixed;
    left: 0;
    width: 100vw;
    top: -100%;
    z-index: 9999;
}

/* Estilos para que el logo.png en nomostrar no se vea */
.nomostrar img {
    width: 90px !important;
}

/* Logo text in fixed menu */
.menu-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-logo-text-top,
.menu-logo-text-bottom {
    color: #fff;
    font-size: 14px;
    word-wrap: normal;
    white-space: nowrap;
    transition: none;
}

.menu-logo-text-divider {
    color: #fff;
    margin: .1rem 0rem;
    width: 100%;
    height: 2px;
    background-color: #fff;
}

.menu-small-logo {
    width: 60px;
    padding: 0rem;
}

/* Buscador formulario */
.menu-busqueda-form {
    max-width: 700px;
    margin: 10px auto;
}

.menu-busqueda-width-full {
    width: 100%;
}

/* Menu idiomas */
.menu-idiomas-fixed {
    position: fixed;
    background-color: #000;
    width: 100vw;
    z-index: 10000;
    height: 100vh;
    top: 0;
    overflow-y: scroll;
}

.menu-idiomas-list {
    padding-left: 0;
}

.menu-idioma-flag {
    aspect-ratio: 1;
    object-fit: cover;
}

/* Menu login items */
.menu-login-item {
    background: #447182;
}

/* Estilo de textos en items de menú móvil */
.menu-mobile-item-title {
    font-weight: 600;
}

.menu-mobile-item-desc {
    font-size: 12px;
    color: #666;
}