﻿/* Reset / base */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas,
details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-family: 'Century Gothic', serif;
    vertical-align: baseline;
    outline: none;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    box-sizing: border-box;
}

/* Box-sizing global */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Estilo para pantallas grandes */
.img {
    width: 300px;
    height: 138px;
}

/* HTML / Body */
html {
    height: 100%;
    font-size: 16pt;
    color: #282828;
    background-color: #fff;
}

body {
    font-family: Century Gothic, serif;
    background: #fff;
    font-size: 14px;
    color: #333;
    position: relative;
    min-height: 100%;
    top: -35px;
    line-height: 1.5;
}

.wrap {
    width: auto;
    min-height: 100%;
    height: auto;
    margin-left: 3%;
}

/* Navegación / header (se mantiene comportamiento del listado del logo y nav) */
.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 0px;
    border: 1px solid transparent;
}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color: #e7e7e7;
}

.navbar-collapse {
    padding-right: 15px;
    padding-left: 0px;
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid transparent;
    -webkit-box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%);
}

/* Mantener el listado (ul) tal como está para no alterar su estructura */
.navbar-nav {
    float: none;
    margin: 0 auto;
    display: flex;
    font-size: 1rem;
    font-family: 'Century Gothic', serif;
    font-size: 15pt;
    color: #000;
    background-color: #fff;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    align-items: center;
}

.navbar-default {
    background-color: #fff;
    border: none;
    margin-top: 20px;
    margin-bottom: 0px;
}

.navbar-brand {
    float: left;
    height: 50px;
    padding: 15px 15px;
    font-size: 18px;
    line-height: 1.5;
}

/*.navbar li {
    padding: 2px 20px;
}*/

.nav > li {
    position: relative;
    display: block;
}

/* Encabezados / h1..h6 (tipografía original restaurada) */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: Century Gothic, serif;
    font-weight: 500;
    line-height: 1.5;
    color: inherit;
}

.h1, .h2, .h3, h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Media queries (conservadas) */
@media (max-width: 767px) {

    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
        margin-top: 5%;
    }

    .navbar-collapse {
        width: auto;
        border-top: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .navbar-default {
        margin-bottom: 20px;
    }

    .navbar-header {
        float: left;
    }

    a.navbar-brand {
        display: inline-block;
        padding: 0 0 0 15px;
    }

    .navbar-nav {
        float: left;
        margin-top: 5%;
    }

    .navbar-nav > li {
        float: left;
    }

    .container {
        width: auto;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-6 {
        width: 33.33%;
    }
}

/* Desktop / tablet */
@media (min-width: 992px) {
    .container { width: 970px; }

    .row {
        margin-right: -20px;
        margin-left: -20px;
    }

    .mobile-container { display: block; }
}

@media (min-width: 768px) {
    .container { width: 100%; }
    .mobile-container { display: block; }

    .navbar-nav { display: flex; flex-direction: row; width: 100%; }

    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }

    img#logo-patrimonio {
        width: 100%;
        height: auto;
    }
}

/* Fallback logo sizing */
img#logo-patrimonio {
    width: 300px;
    height: 138px;
}

/* Formularios y estructura (NO modificar: div#register-user div.user-register-part) */
form { display: block; margin-top: 0em; }

.container {
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
}

/* IMPORTANTE: NO cambiar este bloque: mantiene comportamiento existente en tu formulario */
div#register-user div.user-register-part {
    margin-bottom: 20px;
    /*    border-left: 5px solid #ccc;*/
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

/* Legend / títulos de sección */
legend {
    font-size: 1.4em !important;
    margin-left: 45px !important;
    margin-bottom: 20px !important;
}

/* Clearfix consolidado */
.btn-group-vertical > .btn-group:after, .btn-toolbar:after, .clearfix:after, .container-fluid:after, .container:after,
.dl-horizontal dd:after, .form-horizontal .form-group:after, .modal-footer:after, .modal-header:after, .nav:after,
.navbar-collapse:after, .navbar-header:after, .navbar:after, .pager:after, .panel-body:after, .row:after {
    clear: both;
    display: table;
    content: " ";
}

/* Columnas base */
.col-xs-1, .col-xs-10, .col-xs-11, .col-xs-12, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9 {
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 22px;
    padding-left: 22px;
}

.col-xs-12 { width: 100%; }

@media (min-width: 768px) {
    .col-sm-6 { width: 33.33%; }
    .colu-por-33 { width: 33.33%; }
    .colu-por-85 { width: 85%; }
    .colu-por-80 { width: 80%; }
    .colu-por-75 { width: 75%; }
    .colu-por-70 { width: 70%; }
    .colu-por-65 { width: 65%; }
    .colu-por-60 { width: 60%; }
    .colu-por-55 { width: 55%; }
    .colu-por-50 { width: 50%; }
    .colu-por-45 { width: 45%; }
    .colu-por-40 { width: 40%; }
    .colu-por-35 { width: 35%; }
    .colu-por-30 { width: 30%; }
    .colu-por-25 { width: 25%; }
    .colu-por-20 { width: 20%; }
    .colu-por-15 { width: 15%; }
    .colu-por-10 { width: 10%; }
}

/* Labels y textos de formulario */
div.form-group label, div.checkbox label {
    font-size: .70rem;
    display: block;
    white-space: normal;
    word-wrap: break-word;
}

label {
    display: block;
    max-width: 100%;
    margin-bottom: 5px;
    font-family: Century Gothic, serif;
    text-align: left;
}

/* Inputs */
.form-control {
    display: block;
    width: 100%;
    height: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: #495057;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    background-color: #ececec !important;
    border-style: solid !important;
    border-color: #993300 !important;
    font-family: Century Gothic, serif;
    font-size: 16px !important;
    border-radius: 3px !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Placeholders */
:-moz-placeholder { color: #555; }
::-moz-placeholder { color: #555 !important; opacity: 1; }
:-ms-input-placeholder { color: #555; }

/* Parrafos y enlaces */
p {
    text-align: left;
    font-size: .65rem;
    margin: 0 0 10px;
    line-height: 1.5;
}

a.tickets:hover, input.tickets:hover, button.tickets:hover {
    background-color: #a78e53;
    color: #fff;
    text-decoration: none;
}

/* Botones */
button, input[type=button], input[type=reset], input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
}

.botonEnviar {
    color: #fff;
    background-color: #b41400;
    border-color: #b41400;
    font-size: .75rem;
    letter-spacing: 2.4px;
    padding: 10px;
    font-family: Century Gothic, serif;
    width: 265px;
    border-radius: 0;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 0px;
}

.btn-primary {
    color: #fff;
    background-color: #b41400;
    border-color: #b41400;
}

/* Reemplazado filter: alpha(...) inválido por opacity moderno */
.btn.disabled, .btn[disabled], fieldset[disabled] .btn {
    cursor: not-allowed;
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

/* Links y strong */
a {
    color: #282828;
    text-decoration: underline;
    background-color: transparent;
}

b, strong {
    font-weight: 700;
}

/* Pie */
#textoPie {
    margin-top: 1em;
    padding: 0 5px;
    background-color: #ffffff;
    color: #000000;
    font-family: Century Gothic, serif;
}

#textoPie a { text-decoration: underline; background-color: transparent; }

#textoPie div.texto {
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    font-size: 2px;
}

/* Utilidades */
.row {
    margin-left: 0px;
    margin-right: 0px;
}

/* fileUpload: sustituido filter por opacity (corrección de validación) */
.fileUpload {
    position: relative;
    overflow: hidden;
}

.fileUpload input.upload {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
}

/* Otros elementos */
.btn--browse {
    border: 1px solid gray;
    border-left: 0;
    border-radius: 0 2px 2px 0;
    background-color: #ccc;
    color: black;
    height: 42px;
    padding: 10px 14px;
}

.f-input {
    height: 42px;
    background-color: white;
    border: 1px solid #ccc;
    width: 90%;
    padding: 0 14px;
}

/* Footer (conservado) */
#footer {
    background: #282828;
    padding: 13px 50px 50px;
    display: block;
    font-family: Century Gothic, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: white;
    text-align: left;
    margin-top: 60px;
}

#footer .row {
    display: flex;
    flex-wrap: wrap;
}

#footer .col-menu {
    margin-bottom: 47px;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    #footer .col-md {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
}

#footer .col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

#footer .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

#footer .col-menu h2 {
    text-align: left;
    line-height: 2rem;
    letter-spacing: .5px;
    font-size: 20px;
    font-weight: 300;
    text-transform: uppercase;
    color: #fff;
}

#footer .row .col ul li a {
    color: #fff;
    text-decoration: none;
    font-family: Century Gothic, serif;
    font-size: .775rem;
}

#footer ul li a {
    width: 100%;
    display: block;
}


#footer .menu-item {
    margin: 0;
    padding-top: 0.2em;
    padding: 12px 0;
}

#footer .col-menu ul li, #footer .col-menu ul li a {
    width: 100%;
    display: block;
}


#footer .visually-hidden {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    width: 1px;
    height: 1px;
    word-wrap: normal;
}

#footer .col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 768px) {
    #footer .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
}


#footer .row .col ul {
    list-style: none;
    margin: 0;
    margin-bottom: 0px;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#footer .row .col.col-accesos ul li {
    border-right: 1px solid #fff;
    line-height: 1;
}

    #footer .row .col.col-accesos ul li a {
        font-family: Century Gothic, serif;
        font-size: 14px;
        font-weight: 300;
        line-height: 17px;
        padding: 0 5px;
    }

#footer #block-bannerfooter .field--name-field-image img {
    max-width: 300px;
}

#footer img, svg {
    vertical-align: middle;
}


#footer img {
    border: 0;
    border-top-style: none;
    border-right-style: none;
    border-bottom-style: none;
    border-left-style: none;
    max-width: 100%;
    border-style: none;
    height: auto;
    margin-top: 30px
}

#footer .row .col.col-social {
    text-align: right;
}

@media (min-width: 768px) {
    #footer .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

#footer .row .col.col-social ul {
    justify-content: flex-end;
}

    #footer .row .col.col-social ul li a {
        display: block;
        width: 40px;
        height: 40px;
        background: #fff;
        border-radius: 50%;
        position: relative;
        margin-top: 10px;
        margin-right: 10px
    }

        #footer .row .col.col-social ul li a img {
            width: 25px;
            height: 25px;
            margin-right: 8px;
            margin-top: 7px;
        }


#footer .row .col.col-social p {
    font-family: Century Gothic, serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 17px;
    color: #fff;
    margin-bottom: 25px;
}

#footer .row .col ul li a {
    color: #fff;
    text-decoration: none;
    font-family: Century Gothic, serif;
    font-size: .655rem;
}

.separacionFilasFormulario {
    margin-bottom: 25px
}

.seccionTitulo {
    float: left;
    clear: both;
    width: 30%;
    color: #993300 !important;
}

.seccionTitulo-grande {
    float: left;
    clear: both;
    width: 60%;
    color: #993300 !important;
}

.seccionRaya {
    float: left;
    width: 65%;
    margin-top: 15px;
    clear: none !important;
}

.seccionRaya-corta {
    float: left;
    width: 35%;
    margin-top: 15px;
    clear: none !important;
}

.checksAprob input { transform: scale(1.1); }

.labelFirmar {
    font-weight: bold;
    margin-top: 3px;
    font-size: 18px;
    margin-left: 5px;
    margin-top: -4px;
}

.divFirmar { display: flex; margin-left: 40px; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.dispone-imagen { font-size: .60rem; }
