#cssmenu {
    position: relative;
    margin-right: auto;
    margin-left: auto;
    background-image: url(../images/woodmenu.jpg);
    background-position: center top;
}

#textos {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    width: auto;
    float: left;
    padding: 10px;
}

#cssmenu ul {
    list-style: none;
    padding: 0;
    line-height: 1;
}

#cssmenu #menu-button {
    text-align: center;
}

#cssmenu > ul {
    text-align: center;
    position: relative;
    display: block;
    height: 64px;
    z-index: 500;
    margin-top: 0px;
    margin-right: auto;
    margin-bottom: 0px;
    margin-left: auto;
    list-style-type: none;
    width: 1115px;
    background-image: url(../images/woodmenu.jpg);
    background-position: center top;
}

#cssmenu > ul > li {
    display: inline-block;
    position: relative;
    vertical-align: top;
    float: none;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#cssmenu > ul > #menu-button {
    display: none;
}

#cssmenu ul li a {
    display: block;
    font-family: 'Roboto Condensed', sans-serif;
    text-decoration: none;
    font-weight: 900;
}

#cssmenu > ul > li > a {
    font-size: 30px;
    color: #e8c084;
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 21px;
    padding-bottom: 21px;
    -webkit-transition: all .9s ease;
    -moz-transition: all .9s ease;
    -ms-transition: all .9s ease;
    -o-transition: all .9s ease;
    transition: all .9s ease;
    text-shadow: 2px 2px 0 #000, 3px 3px 0 #000;
}

#cssmenu > ul > li.has-sub > a {
    padding-right: 28px;
}

#cssmenu > ul > li:hover > a {
    color: #FF0000;
}

#cssmenu li.has-sub::after {
    display: block;
    content: '';
    position: absolute;
    width: 0;
    height: 0;
}

#cssmenu > ul > li.has-sub::after {
    right: 10px;
    top: 20px;
    border: 5px solid transparent;
    border-top-color: #fff;
}

#cssmenu > ul > li:hover::after {
    border-top-color: #fff;
}

#indicatorContainer {
    position: absolute;
    height: 12px;
    width: 100%;
    bottom: 0px;
    overflow: hidden;
    z-index: -1;
}

#pIndicator {
    position: absolute;
    height: 0;
    width: 100%;
    border: 12px solid transparent;
    border-top-color: #2b2f3a;
    z-index: -2;
    -webkit-transition: left .25s ease;
    -moz-transition: left .25s ease;
    -ms-transition: left .25s ease;
    -o-transition: left .25s ease;
    transition: left .25s ease;
}

#cIndicator {
    position: absolute;
    height: 0;
    width: 100%;
    border: 12px solid transparent;
    border-top-color: #2b2f3a;
    top: -12px;
    right: 100%;
    z-index: -2;
}

/* --- CORRECCIÓN FINAL DE SUBMENÚS CENTRADOS --- */
#cssmenu ul ul {
    position: absolute;
    left: 50%;              
    margin-left: -95px;    /* Mitad del submenu (105px) + compensación padding asimétrico (+4px) */
    top: 80px;              
    opacity: 0;
    z-index: 1000;
    
    -webkit-transition: opacity .3s ease, top .25s ease;
    -moz-transition: opacity .3s ease, top .25s ease;
    -ms-transition: opacity .3s ease, top .25s ease;
    -o-transition: opacity .3s ease, top .25s ease;
    transition: opacity .3s ease, top .25s ease;
}

#cssmenu > ul > li:hover > ul {
    left: 50%;              
    margin-left: -95px;    
    top: 65px;              
    opacity: 1;
}

#cssmenu ul ul ul {
    top: 0;
    left: 100%;             
    margin-left: 0;         
    padding-left: 5px;
}

#cssmenu ul ul li:hover > ul {
    left: 160px;            
    top: 0;
    opacity: 1;
    margin-left: 0;         
}
/* ----------------------------------------- */
/* ----------------------------------------- */

#cssmenu ul ul li a {
    width: 190px;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    color: #333333;
    background: #fff;
    -webkit-transition: all .35s ease;
    -moz-transition: all .35s ease;
    -ms-transition: all .35s ease;
    -o-transition: all .35s ease;
    transition: all .35s ease;
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-size: 15px;
}

#cssmenu ul ul li:hover > a {
    background: #f6f6f6;
    color: #8c9195;
    text-shadow: none;
}

#cssmenu ul ul li:last-child > a, 
#cssmenu ul ul li.last > a {
    border-bottom: 0;
}

.submenuArrow {
    border: 6px solid transparent;
    width: 0;
    height: 0;
    border-bottom-color: #fff;
    position: absolute;
    top: -12px;
}

#cssmenu ul ul li.has-sub::after {
    border: 4px solid transparent;
    border-left-color: #9ea2a5;
    right: 10px;
    top: 16px;
}

a.readmorer {
    font-size: 18px;
    border-radius: 15px;
    font-family: 'Oswald', sans-serif;
    background-color: #cf1719;
    color: #FFFFFF;
    text-decoration: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    padding-top: 0px;
    padding-right: 10px;
    padding-bottom: 0px;
    padding-left: 10px;
    line-height: 45px;
    display: block;
    text-align: center;
    font-weight: 400;
    margin: 10px;
}

a.readmorer:hover {
    background-color: #FFFFFF;
    color: #000;
    border-radius: 1px;
}

@media all and (max-width: 1024px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    #cssmenu {
        width: auto;
    }
    #cssmenu ul {
        width: auto;
        margin: 0;
    }
    #cssmenu .submenuArrow, #cssmenu #indicatorContainer {
        display: none;
    }
    #cssmenu > ul {
        height: auto;
        display: block;
    }
    #cssmenu > ul > li {
        float: none;
    }
    #cssmenu li, #cssmenu > ul > li {
        display: none;
    }
    #cssmenu ul ul, #cssmenu ul ul ul, #cssmenu ul > li:hover > ul, #cssmenu ul ul > li:hover > ul {
        position: relative;
        left: auto;
        top: auto;
        opacity: 1;
        padding-left: 0;
        margin-left: 0; 
    }
    #cssmenu ul .has-sub::after {
        display: none;
    }
    #cssmenu ul li a {
        padding: 12px 20px;
    }
    #cssmenu ul ul li a {
        border: 0;
        background: none;
        width: auto;
        padding: 8px 35px;
        color: #e8c084;
    }
    #cssmenu ul ul li:hover > a {
        background: #d05555;
        color: #ccc;
    }
    #cssmenu ul ul ul a {
        padding: 8px 50px;
    }
    #cssmenu ul ul ul ul a {
        padding: 8px 65px;
    }
    #cssmenu ul ul ul ul ul a {
        padding: 8px 80px;
    }
    #cssmenu ul ul ul ul ul ul a {
        padding: 8px 95px;
    }
    #cssmenu > ul > #menu-button {
        display: block;
        cursor: pointer;
        width: 100%;           /* Asegura que ocupe todo el ancho */
        text-align: left;      /* FUERZA la alineación a la izquierda */
    }

    #cssmenu #menu-button > a {
        padding: 22px clamp(15px, 4vw, 60px);
        text-align: left;      /* Refuerzo para el enlace interno */
        display: block;        /* Asegura que el enlace sea un bloque */
    }
    #cssmenu ul.open li, #cssmenu > ul.open > li {
        display: block;
    }
    #cssmenu > ul.open > li#menu-button > a {
        color: #fff;
    }
    #cssmenu #menu-button::after {
        display: block;
        content: '';
        position: absolute;
        height: 6px;
        width: 22px;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        right: clamp(15px, 4vw, 60px);
        top: 26px;
        text-shadow: 0 0 5px #000000;
    }
    #cssmenu #menu-button::before {
        display: block;
        content: '';
        position: absolute;
        height: 6px;
        width: 22px;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        right: clamp(15px, 4vw, 60px);
        top: 34px;
        text-shadow: 0 0 5px #000000;
    }
    #cssmenu ul.open #menu-button::after, #cssmenu ul.open #menu-button::before {
        border-color: #e5e5e5;
    }
}

#textos2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    width: auto;
    margin-left: 10%;
    float: right;
    position: relative;
}

#wrapper5 .contenido p br {
    line-height: 35px;
}

.slidebox .div {
    padding-bottom: 15px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #e5e5e5;
    padding-top: 15px;
}

.vinvulo {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FF6600;
    text-decoration: none;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.vinvulo:hover {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFCC00;
    text-decoration: none;
}

@media all and (max-width: 900px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 900px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 900px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 900px), only screen and (min-device-pixel-ratio: 2) and (max-width: 900px), only screen and (min-resolution: 192dpi) and (max-width: 900px), only screen and (min-resolution: 2dppx) and (max-width: 900px) {
    #cssmenu ul ul li a {
        font-size: 15px;
    }
    #cssmenu > ul > li > a {
        font-size: 20px;
    }
}