/*
 * M22 TC
 * Styles
 */

@font-face {
    font-family: opensans;
    src: url("../fonts/OpenSans/OpenSans-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: opensans;
    src: url("../fonts/OpenSans/OpenSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: opensans;
    src: url("../fonts/OpenSans/OpenSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: opensans;
    src: url("../fonts/OpenSans/OpenSans-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

p:not(.wp-block-cover__inner-container p) {
    color: black;
}

.wp-block-cover__inner-container p {
    color: inherit;
}

body.page-node-type-page p,
body.page-node-type-page h3,
body.page-node-type-manual p,
body.page-node-type-manual h1,
body.page-node-type-manual h2,
body.page-node-type-manual h3,
body.page-node-type-manual h4,
body.page-node-type-manual h5,
body.page-node-type-manual h6,
body.page-node-type-manual a,
body.page-node-type-manual td,
body.page-node-type-manual th,
body.page-node-type-manual li,
body.page-node-type-manual-personas-morales p,
body.page-node-type-manual-personas-morales h1,
body.page-node-type-manual-personas-morales h2,
body.page-node-type-manual-personas-morales h3,
body.page-node-type-manual-personas-morales h4,
body.page-node-type-manual-personas-morales h5,
body.page-node-type-manual-personas-morales h6,
body.page-node-type-manual-personas-morales a,
body.page-node-type-manual-personas-morales td,
body.page-node-type-manual-personas-morales th,
body.page-node-type-manual-personas-morales li {
    font-family: 'OpenSans', sans-serif !important;
}

body.page-node-type-page strong,
body.page-node-type-manual strong,
body.page-node-type-manual-personas-morales strong {
    font-family: 'OpenSans', sans-serif !important;
}

.usa-card__container,
.usa-card__heading {
    font-family: 'OpenSans', sans-serif !important;
}

body.page-node-type-page p,
body.page-node-type-page li,
body.page-node-type-manual p,
body.page-node-type-manual li,
body.page-node-type-manual-personas-morales p,
body.page-node-type-manual-personas-morales li {
    font-size: 16px !important;
    line-height: 28px !important;
}

body.page-node-type-manual p.has-small-font-size,
body.page-node-type-manual-personas-morales p.has-small-font-size {
    font-size: 14px !important;
    line-height: 24px !important;
}

body.page-node-type-manual p.has-normal-font-size,
body.page-node-type-manual-personas-morales p.has-normal-font-size {
    font-size: 16px !important;
    line-height: 28px !important;
}

body.page-node-type-manual p.has-medium-font-size,
body.page-node-type-manual-personas-morales p.has-medium-font-size {
    font-size: 20px !important;
}

body.page-node-type-manual p.has-large-font-size,
body.page-node-type-manual-personas-morales p.has-large-font-size {
    font-size: 24px !important;
}


/* Estilos para tipo de contenido 'manual' */
body.page-node-type-manual table:not(.node-revision-table),
body.page-node-type-manual table:not(.node-revision-table) th,
body.page-node-type-manual table:not(.node-revision-table) td,
body.page-node-type-manual-personas-morales table:not(.node-revision-table),
body.page-node-type-manual-personas-morales table:not(.node-revision-table) th,
body.page-node-type-manual-personas-morales table:not(.node-revision-table) td {
    border: 2px solid #337CF6;
}

body.page-node-type-manual th,
body.page-node-type-manual td,
body.page-node-type-manual-personas-morales th,
body.page-node-type-manual-personas-morales td {
    padding-left: 18px !important;
    vertical-align: middle !important;
}

body.page-node-type-manual img,
body.page-node-type-manual-personas-morales img {
    border-radius: 10px !important;
    /*box-shadow: 0px 18px 36px -18px rgba(0, 0, 0, 0.1), 0px 30px 45px -30px rgba(50, 50, 93, 0.25);*/
}

body.page-node-type-manual h3,
body.page-node-type-manual-personas-morales h3 {
    font-size: 36px !important;
}

body.page-node-type-manual h4,
body.page-node-type-manual h5,
body.page-node-type-manual-personas-morales h4,
body.page-node-type-manual-personas-morales h5 {
    font-size: 24px !important;
}

/* Estilos para tablas regulares */
body.page-node-type-manual figure,
body.page-node-type-manual-personas-morales figure {
    background-color: white;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: #EAF2FF !important;
}

.wp-block-table.is-style-stripes tbody tr:first-child {
    background-color: #337CF6 !important;
    color: white;
    font-weight: 600;
}

body.page-node-type-manual figure,
body.page-node-type-manual table:not(.node-revision-table) th,
body.page-node-type-manual-personas-morales figure,
body.page-node-type-manual-personas-morales table:not(.node-revision-table) th {
    text-align: center !important;
    color: white !important;
    font-size: 16px !important;

}

body.page-node-type-manual thead,
body.page-node-type-manual-personas-morales thead {
    background-color: #337CF6;
    text-transform: uppercase !important;
}

/* Adicionales */
.borderm22 {
    border: 5px solid red;
    padding: 50px;
}

ul,
ol {
    text-align: justify;
}

.has-background {
    border-radius: 10px !important;
}

h1.has-background,
h2.has-background,
h3.has-background,
h4.has-background,
h5.has-background,
h6.has-background {
    padding: 1em 2.375em !important;
}

/* Estilos para el ditor */
.editor-styles-wrapper {
    font-family: 'OpenSans', sans-serif !important;
}

/* Color de texto dinamico en tablas irregulares */
.wp-block-custom-irregular-table td p.block-editor-rich-text__editable {
    color: inherit !important; 
    background-color: inherit !important; 
}

.brc_header_current_logo {
    max-width: 300px;
}