/* Estilos generales */
body {
    width: 90%;
    min-height: 600px;
    height: auto;
    background-repeat: no-repeat;
    background-position: right bottom;
    background: #05234F url(/assets/images/web/backmar.jpg);
    color: #333333;
    margin: 0px auto;
    margin-top: 5px;
    overflow-x: scroll;
    font-family: 'titillium_webregular', Arial, Helvetica, sans-serif;
}

/* Header */
header {
    background: -webkit-linear-gradient(top, #443409 0%, #ECE0C3 100%);
    color: white;
    font-size: 0.9em;
    border: 1px black solid;
    border-radius: 5px;
    box-shadow: 0px 0px 5px;
    margin-bottom: 2PX;
    margin-top: 5px;
}

.logo-container {
    display: flex;
    align-items: normal;
}

.logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
    margin-left: 10px;
}

.company-info {
    display: flex;
    flex-direction: column;
}


.company-name {
    margin: 0px;
    font-size: 1.2rem;
    text-align: left;
    text-transform: uppercase;
    color: #DFA81B;
    font-family: "arial", "serif";
    text-shadow: black 0.1em 0.1em 0.2em;
}

.company-address {
    text-transform: uppercase;
    color: white;
    font-family: "arial", "serif";
    text-shadow: 0.1em 0.1em 0.2em #000;
    filter: dropshadow(color=gray, offx=0.1em, offy=0.1em);
    font-size: 0.8rem;
    margin: 5px;
}

.company-client {
    display: flex;
    flex-direction: column;
}

.company-client p {
    font-size: 0.6rem;

}

.info-bar {
   
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.infocelda {
    text-align: center;
    font-size: 10px;
    min-width: 70px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #002b49;
    white-space: nowrap;
	background: #DFA81B;
}

.infocelda:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.infocelda span, .infocelda a span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 5px;
    text-transform: none;
}

.infocelda a {
    text-decoration: none;
}

.infocelda a:hover span {
    text-decoration: underline;
    color: #ffffff;
}

/* Contador de sesion */
#counter {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

/* Selector de estilo */
/* Selector de estilo - fondo personalizado para opciones */
.infocelda select {
    margin-top: 5px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 12px;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    cursor: pointer;
    font-weight: 500;
}

/* Fondo de las opciones desplegables */
.infocelda select option {
    background: #DFA81B;
    color: #ffffff;
}

.infocelda select option:hover {
    background: #c49010 !important;
    color: #ffffff !important;
}

.infocelda select:hover {
    border-color: rgba(255,255,255,0.6);
}

/* Boton pechar - mismo estilo que los demas */
.infocelda:last-child a span {
    font-weight: 600;
    color: #ffffff;
}

.infocelda:last-child a:hover span {
    text-decoration: underline;
    color: #ffffff;
}

.infocelda a i {
    color: #ffffff;
}

.infocelda a:hover i {
    color: #ffffff;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

main {
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 5px;
    min-height: 500PX;
    border: 1px solid #DFA81B;
}

main p {
    font-size: 1rem;
    line-height: 1.5em;
    color: rgb(0, 0, 0);
    text-align: justify;
    padding: 0 1em 1em 1em;
    font-family: 'titillium_webregular', Arial, Helvetica, sans-serif;
    overflow: hidden;
    vertical-align: top;
}

main p:first-letter {
    font-weight: normal;
    text-shadow: 0 0 5px #000;
    text-transform: capitalize;
    line-height: 1.2em;
}

main a {
    font-weight: normal;
    text-shadow: 0 0 5px gray;
    padding: 0px 5px;
    color: black;
    border-radius: 5px;
    text-decoration: none;
}

main a:hover {
    text-shadow: 1px 1px 2px black;
    color: #DFA81B;
}

main h1 {
    margin: 0px;
    font-size: 1.4rem;
    text-align: left;
    text-transform: uppercase;
    color: #DFA81B;
    font-family: "arial", "serif";
    text-shadow: black 0.1em 0.1em 0.2em;
}

.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
    border-radius: 8px;
}

.contenedor h1 {
    text-align: center;
    margin: 0px;
    font-size: 1.4rem;
    text-align: left;
    text-transform: uppercase;
    color: #DFA81B;
    font-family: "arial", "serif";
    text-shadow: black 0.1em 0.1em 0.2em;
}

.contenedor p {
    font-size: 1rem;
    line-height: 1.5em;
    color: rgb(0, 0, 0);
    text-align: justify;
    padding: 0 1em 1em 1em;
    font-family: 'titillium_webregular', Arial, Helvetica, sans-serif;
    overflow: hidden;
    vertical-align: top;
}

.contenedor p:first-letter {
    font-weight: normal;
    text-shadow: 0 0 5px #000;
    text-transform: capitalize;
    line-height: 1.2em;
}

.contenedor-img {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contenedor-img a {
    display: block;
    margin: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenedor-img a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contenedor-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.contenedor-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contenedor ul {
    font-size: 1rem;
    line-height: 1.5em;
    color: rgb(0, 0, 0);
    text-align: justify;
    padding: 0 1em 1em 1em;
    font-family: 'titillium_webregular', Arial, Helvetica, sans-serif;
    margin-left: 25px;
}

/* Menú principal */
nav {
    background: -webkit-linear-gradient(top, #443409 0%, #ECE0C3 100%);
    border-radius: 10px;
    position: relative;
    z-index: 1000;
}

.menu {
    border: 1px solid white;
    border-radius: 10px;
    list-style: none;
    padding: 1px;
    margin: 0;
    display: flex;
    justify-content: left;
    background-color: #443409;
    font-size: 0.8em;
}

.menu li {
    position: relative;
    background-color: #443409;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.menu a:hover {
    background: #DFA81B;
}

.submenu {
    border-radius: 5px;
}

/* Submenús */
.submenu-items {
    display: none;
    position: absolute;
    background: #443409;
    list-style: none;
    padding: 0;
    margin: 0;
    top: 100%;
    left: 0;
    min-width: 150px;
    border-radius: 5px;
    border: 1px solid white;
    z-index: 1000;
}

.submenu-items li {
    width: 100%;
}

.submenu:hover>.submenu-items {
    display: block;
}

.submenu-items a {
    padding: 10px;
    display: block;
}

.submenu-items a:hover {
    background: #DFA81B;
}

/* Submenús anidados */
.submenu-items .submenu-items {
    top: 0;
    left: 100%;
}

/* Menú responsive */
.menu-toggle {
    display: none;
    background: #DFA81B;
    border-radius: 5px;
    color: white;
    padding: 10px;
    border: none;
    font-size: 1em;
    width: 100%;
    text-align: left;
}

/* Botones Sociales */
.social-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn img {
    width: 25px;
    height: 25px;
}

.social-btn:hover {
    transform: scale(1.1);
    border-color: #aaa;
}

/* Colores específicos */
#like:hover {
    background: #DFA81B;
}

#dislike:hover {
    background: #DFA81B;
}

#facebook:hover {
    background: #DFA81B;
}

#twitter:hover {
    background: #DFA81B;
}

.table-controls {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    list-style: none;
    padding: 0;
    margin: 0px;
}

.buttons-container {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: white;
    padding-bottom: 4px;
    min-width: max-content;
    width: 100%;
}

.buttons-container li {
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #05234F;
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.buttons-container li a {
    font-weight: normal;
    text-shadow: 0 0 5px #000;
    padding: 0px 5px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.buttons-container li:hover {
    background-color: #DFA81B;
    box-shadow: 3px 4px 4px 1px rgba(0, 0, 0, 0.5);
}

.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    font-size: 0.9em;
    border-collapse: collapse;
}

table caption {
    font-size: 1.2em;
    text-align: center;
    padding: 5px;
    background-color: #231F4F;
    color: white;
    margin: 0;
    text-transform: uppercase;
    border: 1px solid #000;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    box-shadow: 0px 0px 5px;
}

table th {
    background: #DFA81B;
    text-align: center;
    padding: 6px 2px 6px 2px;
    white-space: nowrap;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0px 0px 5px;
}

table td {
    padding: 6px 2px 6px 2px;
    text-align: left;
    font-weight: normal;
    color: black;
    border: 1px solid #DFA81B;
    border-radius: 10px;
    padding-left: 10px;
}

table td#numero {
    text-align: right;
    font-weight: normal;
    padding-right: 10px;
}

table td#total {
    text-align: right;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1em;
    padding-right: 10px;
}

table th#medio,
td#medio {
    text-align: center;
    font-weight: normal;
}

table tr:hover {
    background-color: #f1f1f1;
}

.table-container button {
    flex: 1;
    cursor: pointer;
    max-width: 100px;
}

.table-container button:hover {
    background-color: #DFA81B;
}

/* Formulario de login */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.login-form {
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    border: 1px dotted black;
}

.login-form h2 {
    font-size: 1rem;
    margin: 0px auto;
    margin-bottom: 10px;
    color: white;
    text-align: center;
    padding: 5px;
    background-color: #05234F;
    border-radius: 5px;
}

.login-form label {
    display: block;
    font-weight: bold;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #05234F;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 10px;
}

.login-form input[type="submit"]:hover {
    background-color: #DFA81B;
    box-shadow: 3px 4px 4px 1px rgba(0, 0, 0, 0.5);
}

.login-form span {
    width: 90%;
    clear: both;
    display: block;
    margin: 0px auto;
    padding: 5px;
    text-align: right;
    font-weight: bold;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background-color: #05234F;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #DFA81B;
    box-shadow: 3px 4px 4px 1px rgba(0, 0, 0, 0.5);
}

.recover-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.recover-password label {
    margin: 0;
    font-weight: normal;
}

.recover-password button {
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.recover-password a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.recover-password a:hover {
    text-decoration: underline;
}

.publicidad {
    margin-top: 20px;
    text-align: center;
    position: relative;
}

.logotipos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.logotipos img {
    max-height: 30px;
    height: auto;
    border: 1px solid #DFA81B;
    background: white;
    border-radius: 5px;
    padding: 10px;
}

.logotipos-texto {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    background-color: #DFA81B;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Estilos para los logotipos de W3C */
.w3c-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.w3c-logos img {
    max-width: 80px;
    height: auto;
}

/* Footer */
footer {
    background: -webkit-linear-gradient(top, #ECE0C3 0%, #443409 100%);
    color: white;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8rem;
}

footer p {
    font-size: 0.8rem;
    line-height: normal;
    padding: 0;
    margin: 0;
}

footer span {
    text-align: center;
    vertical-align: middle;
}

footer img {
    height: 16px;
    width: auto;
}

/* Frame Oculto y botones ocultos */
iframe {
    width: 100%;
    height: 100vh;
    border: 0;
}

#framepdf {
    height: 480px;
    border: 0;
    border: 3px solid black;
    box-shadow: 3px 3px 3px gray;
    border-radius: 10px;
}

.foculto {
    display: none;
    clear: both;
    width: 95%;
    height: 80%;
    margin: 0 auto 0 auto;
}

.boculto {
    visibility: hidden;
}

/* Cookie Stuff */
#cookie {
    position: fixed;
    top: 0px;
    left: 0px;
    margin: 0 auto 0 auto;
    width: 100%;
    z-index: 999999;
    display: block;
    border: 1px solid #B7B7B7;
    background-color: #000000;
}

#cookie:hover {
    background: #7E7474;
}

#cookie p.cookie_law_txt {
    color: #C4C4C4;
    float: left;
    font-size: 1rem;
    line-height: 1.5em;
    height: auto;
    margin: 0px;
    padding: 0px;
    display: block;
    padding: 15px 40px 12px 20px;
}

#cookie p.cookie_law_txt a {
    color: #C7B3C7;
}

#cookie p.cookie_law_txt a:hover {
    color: #FFFFFF;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

#cookie p.cookie_law_ok {
    float: right;
    width: 90px;
    display: block;
    text-align: right;
    margin: 15px 20px 10px 0;
    padding: 0px;
}

#cookie p.cookie_law_ok a {
    font: 1.0em/0.8em "Alegreya Sans SC", Arial, Helvetica, sans-serif;
    text-transform: lowercase;
    background: #A181A2;
    padding: 1px 6px;
    color: #FAFAFA;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: 0 0 3px 0 #16181B;
    box-shadow: 0 0 3px 0 #16181B;
}

#cookie p.cookie_law_ok a:hover {
    color: #FFFFFF;
    background: #AD93AE;
    -webkit-transition: all 300ms ease-in-out;
    -moz-transition: all 300ms ease-in-out;
    -ms-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

#cookie p.cookie_law_ok a:active {
    color: #C4C4C4;
    background: #624E62;
    -webkit-box-shadow: 0 0 1px 0 #16181B;
    box-shadow: 0 0 1px 0 #16181B;
    -webkit-transition: all 100ms ease-in-out;
    -moz-transition: all 100ms ease-in-out;
    -ms-transition: all 100ms ease-in-out;
    -o-transition: all 100ms ease-in-out;
    transition: all 100ms ease-in-out;
}

.error {
    visibility: hidden;
    font-size: 1.4rem;
    font-weight: bold;
    border: 2px dotted red;
    clear: both;
    width: 80%;
    display: block;
    text-align: center;
    margin: 0px auto;
    text-decoration: blink;
}

.aviso {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    font-size: 1.4rem;
    font-weight: bold;
    border: 2px solid red;
    clear: both;
    display: block;
    text-align: center;
    padding: 2px;
    background: whitesmoke;
    visibility: hidden;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.grid-container table {
    width: 100%;
    border-collapse: collapse;
}

.grid-container table caption {
    text-align: center;
    padding: 5px;
    background-color: #05234F;
    border-radius: 5px;
    color: white;
}

.grid-container th,
td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.grid-container th {
    background-color: #f4f4f4;
}

/* Estilos generales del contenedor */
.contenedortexto {
    position: relative;
    max-width: 600px;
    width: 50%;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Estilos del título */
.contenedortexto h2 {
    position: absolute;
    top: -30px;
    left: 1px;
    padding: 0 5px;
    font-size: 1rem;
    font-weight: bold;
    background-color: white;
}

/* Estilos del párrafo de contenido */
.contenedortexto p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Estilos de los enlaces */
.contenedortexto a {
    display: block;
    font-weight: normal;
    text-shadow: 0 0 5px #000;
    padding: 0px 5px;
    color: black;
    border-radius: 5px;
    text-decoration: none;
}

.contenedortexto a:hover {
    text-shadow: 1px 1px 2px black;
}

#visit-count {
    font-weight: bold;
    color: #ffcc00;
}

.social-container {
    display: block;
    margin: 5px auto;
}

/*// Estilos po Xornal */
#xornal {
    display: flex;
}

#izquierda {
    flex: 2;
    float: left;
    width: 45%;
    height: auto;
    background-color: #FFFFFF;
    border: 1px solid black;
    padding: 10px;
    margin-right: 10px;
}

#derecha {
    flex: 2;
    float: right;
    width: 45%;
    height: auto;
    background-color: #FFFFff;
    border: 1px solid black;
    padding: 10px;
}

.noticia {
    margin: 0px auto;
    height: auto;
    padding: 10px;
    margin: 10px auto;
    BORDER-RAdius: 5px;
    text-align: justify;
}

.noticia img {
    width: 90%;
    height: auto;
    border-radius: 5px;
    margin: auto;
    display: block;
    filter: drop-shadow(2px 2px 2px gray);
}

.noticia h1 {
    text-align: Left;
    font-size: 1rem;
    text-transform: uppercase;
    color: red;
    display: block;
    clear: both;
}

.noticia h2 {
    padding: 5px;
    text-align: left;
    text-transform: uppercase;
    color: #DFA81B;
    text-shadow: black 0.1em 0.1em 0.2em;
    clear: both;
    text-decoration: none;
    font-size: 1.4rem;
}

.noticia a {
    font-weight: normal;
    padding: 0px 5px;
    color: #DFA81B;
    border-radius: 5px;
    text-decoration: none;
}

.noticia a:hover {
    text-shadow: 1px 1px 2px black;
}

.noticia h3 {
    text-align: Left;
    padding-left: 10px;
    font-size: 0.8rem;
    font-family: 'Gotham-Book', Arial;
    display: block;
    clear: both;
}

.noticia p {
    display: inline;
    text-align: justify;
    font-size: 1rem;
    padding: 5px;
    margin: 5px;
    line-height: 1.4em;
    font-weight: normal;
    font-family: 'titillium_webregular', Arial, Helvetica, sans-serif;
}

.noticia form {
    text-align: justify;
    font-size: 1rem;
}

.noticia fieldset {
    width: 80%;
    padding: 1em;
    margin: auto;
    margin-top: 10px;
    border: 1px solid #DFA81B;
    font-size: 1rem;
    box-shadow: 5px 5px 5px #999;
    background: white;
    display: block;
    clear: both;
}

.noticia legend {
    color: black;
    text-align: justify;
    text-shadow: black 0.1em 0.1em 0.2em;
}

.noticia input[type="radio"] {
    float: left;
    clear: left;
    width: 50px;
    margin: 5px;
}

.noticia label {
    float: left;
    vertical-align: middle;
    color: rgb(50, 95, 160);
    margin: 5px;
    font-weight: normal;
}

.noticia input[type="submit"] {
    clear: both;
    text-align: right;
    float: right;
}

.noticia img#bandera {
    width: 30px;
    height: auto;
    float: left;
    padding-right: 5px;
}

.noticia ul {
    font-size: 0.8rem;
    color: rgb(0, 0, 0);
    margin: 0;
}

.noticia li {
    display: list-item;
    text-align: justify;
    margin-left: 1rem;
    padding-right: 5px;
}

#sbox-content {
    clear: both;
    overflow: auto;
    background-color: white;
    height: 100%;
    width: 100%;
}

#sbox-content a.btnclose {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: 0px;
    background: url("/assets/images/web/closebox.png") no-repeat scroll center center transparent;
    border: none;
}

#sbox-content h1 {
    text-align: center;
    border: 1px solid black;
    padding: 5px;
    background-color: #DFA81B;
    border-radius: 10px;
    margin: 10px;
}

#sbox-content h2 {
    border: 1px dotted black;
    padding: 5px;
    border-radius: 10px;
    margin: 10px;
    background-color: #DFA81B;
}

.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    display: block;
    justify-content: center;
    align-items: center;
    margin: 20px auto 20px;
}

/* Estilos para las pestañas */
.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    GAP: 5PX;
}

.tab-button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #f1f1f1 !important;
    cursor: pointer;
    text-align: center;
    font-size: 16px;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.3s;
}

.tab-button.active {
    background-color: #05234F !important;
    color: #fff;
}

.tab-button:hover {
    background-color: #4b545f;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-container h2 {
    margin-bottom: 20px;
    font-size: 1.2em;
    text-align: center;
    padding: 5px;
    background-color: #05234F;
    color: white;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    border: 1px solid #000;
    text-shadow: 1px 1px 1px #000;
    border-radius: 5px;
    box-shadow: 0px 0px 5px;
}

/* Estilos para los campos del formulario */
.form-group {
    margin-bottom: 15px;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group select {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.input-group input[type="text"] {
    flex: 3;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container input[type="text"],
input[type="date"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}

.form-container button {
    padding: 10px;
    background-color: #05234F;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
}

.form-container button:hover {
    background-color: #DFA81B;
}

.form-container button {
  padding: 10px;
  background-color: #7DA5E0;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  margin-right: 10px;
}

.form-container button:hover {
  background-color: #4b545f;
}

.filtro-periodo {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 15px;
    display: inline-block;
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.filtro-periodo .label-buscador {
position: absolute;
    top: -12px;
    left: 10px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
}

.filtro-periodo form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.filtro-periodo span {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filtro-periodo select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
	width: auto;
}

.filtro-periodo button {
    padding: 6px 14px;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.filtro-periodo button:hover {
    background-color: #87b7e3;
}

.filtro-periodo .field-group {
    position: relative;
    display: inline-block;
}

.filtro-periodo .field-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: white;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    z-index: 1;
}

.filtro-periodo select,
.filtro-periodo input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.form-table-container {
background-color: #fff;
    padding: 5px;
    border-radius: 8px;
    display: block;
    justify-content: center;
    align-items: center;

}

.form-table-container h2 {
  margin-bottom: 20px;
  font-size: 1.2em;
  text-align: center;
  padding: 5px;
  background-color: #002B49;
  color: white;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  border: 1px solid #000;
  text-shadow: 1px 1px 1px #000;
  border-radius: 5px;
  box-shadow: 0px 0px 5px;
}

.form-table-container label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-table-container input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}



.form-table-container textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
  /* Permite redimensionar verticalmente */
  min-height: 100px;
  /* Altura mínima */
}

.form-table-container button {
	padding: 6px 14px;
    border: 1px solid black;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.form-table-container button:hover {
  background-color:  #87b7e3;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

/* Estilos para el formulario en línea */
.buscador-inline {
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.buscador-inline select,
.buscador-inline input,
.buscador-inline button {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.buscador-inline select {
    flex: 1;
    max-width: 100px;
}

.buscador-inline input {
    flex: 2;
}

.buscador-inline button {
    flex: 1;
    cursor: pointer;
    max-width: 100px;
}

.buscador-inline button:hover {
    background-color: #DFA81B;
}

.factura {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Encabezado de la factura */
.facturaheader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.facturalogo {
    float: left;
}

.facturalogo img {
    width: 100px;
    height: auto;
}

.factura p {
    font-size: 1rem;
    line-height: 1.0;
    padding: 5px;
    margin: 0;
}

.facturaempresa,
.facturacliente {
    width: 45%;
    border: 1px solid black;
    margin: 5px;
    border-radius: 5px;
    font-size: 0.8em;
    padding: 5px;
    box-shadow: 1px 1px 1px 1px gray;
    background: white;
}

.facturaempresa h2,
.facturacliente h2 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1rem;
    color: #DFA81B;
    text-shadow: black 0.1em 0.1em 0.2em;
}

/* Estitulo Titulo */
.facturacliente h3 {
    position: relative;
    top: -20px;
    padding: 0 5px;
    font-size: 0.6rem;
    background-color: white;
    display: ruby;
}

.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

/* Tooltip text */
.tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    position: absolute;
    z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
}

@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .menu.active {
        display: flex;
    }

    .submenu-items {
        position: static;
        background: none;
    }
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contenedor-img {
        flex-direction: column;
        align-items: center;
    }

    .contenedor-img a {
        margin: 10px 0;
    }

    .logotipos {
        flex-direction: column;
        gap: 10px;
    }

    .logotipos img {
        max-height: 30px;
    }

    .logotipos-texto {
        top: -15px;
        font-size: 1rem;
    }

    .w3c-logos {
        flex-direction: column;
        gap: 10px;
    }

    .w3c-logos img {
        max-width: 60px;
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .contenedortexto {
        width: 80%;
        margin: 20px auto;
    }

    .contenedortexto h2 {
        font-size: 12px;
    }

    .contenedortexto p {
        font-size: 12px;
    }

    .info-bar {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .contenedortexto {
        width: 90%;
        padding: 15px;
    }

    .contenedortexto h2 {
        font-size: 11px;
        top: -8px;
    }

    .contenedortexto p {
        font-size: 11px;
    }

    .info-bar {
        font-size: 0.7rem;
    }
}