/*
 Theme Name:   Ceacop
 Theme URI:    https://wpastra.com/
 Description:  Tema hijo para el tema Astra
 Author:       Tu Nombre
 Author URI:   https://tuweb.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child
*/

/*FORMULARIO DE CONTACTO*/

input[type=email],
input[type=number],
input[type=password],
input[type=reset],
input[type=search],
input[type=tel],
input[type=text],
input[type=url],
select,
textarea {
    padding: 10px 14px !important;
    height: auto;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    background-color: #ffffff;
    text-transform: initial;
    font-weight: normal;
    font-size: 16px;
    letter-spacing: -0.05em;
    text-align: left;
    color: #1E2330;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    outline: none;
}

input[type=email]:focus,
input[type=number]:focus,
input[type=password]:focus,
input[type=reset]:focus,
input[type=search]:focus,
input[type=tel]:focus,
input[type=text]:focus,
input[type=url]:focus,
select:focus,
textarea:focus {
    border-color: #1F5AA0 !important;
    box-shadow: 0 2px 10px rgba(31, 90, 160, 0.15);
}

.wpcf7 input:not([type=submit]),
.wpcf7 select,
.wpcf7 textarea {
    max-height: 166.5px;
    color: #1E2330;
}

::placeholder {
    color: #888;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #888;
}
::-ms-input-placeholder {
    color: #888;
}

.form-contacto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
}

input[type="submit"] {
    font-weight: 600;
    border-style: solid;
    border-width: 1px;
    border-color: #06743E;
    color: #ffffff;
    background-color: #06743E;
    font-size: 15px;
    text-transform: inherit !important;
    letter-spacing: -1px;
    width: calc(100% - 4px);
    margin-top: 13px;
    margin-left: 2px;
    margin-right: 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input[type="submit"]:hover {
    background-color: #06743E;
    color: #ffffff;
    border-color: #4E869F;
    box-shadow: 0 4px 14px rgba(31, 90, 160, 0.35);
}

.wpcf7-list-item {
    margin: 0px;
}
.wpcf7 .wpcf7-form-control-wrap {
    max-width: 20px;
    display: inline;
}
.wpcf7-form label {
    text-transform: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0px;
    color: #1E2330;
    display: inline-block;
    vertical-align: middle;
}
span.wpcf7-form-control-wrap:not(:first-child) input {
    margin-top: 20px;
}
.wpcf7 input[type="checkbox"] {
    margin-right: 5px;
}
.wpcf7-form a {
    color: #1E2330 !important;
    text-decoration: underline;
}
.wpcf7-acceptance .wpcf7-list-item label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    text-transform: none;
}

.form-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.form-contacto > div {
    width: 50%;
    box-sizing: border-box;
}

.form-contacto > div:nth-child(1) {
    padding-right: 14px;
}

.form-contacto > div:nth-child(2) {
    padding-left: 14px;
}

.form-contacto > div:nth-child(3) {
    width: 100%;
    padding: 0;
}

.form-contacto input[type="text"],
.form-contacto input[type="email"],
.form-contacto input[type="tel"],
.form-contacto textarea {
    width: 100%;
    box-sizing: border-box;
}

.form-contacto textarea {
    resize: vertical;
}

@media (max-width: 767px) {
    .form-contacto > div {
        width: 100%;
        padding: 0 !important;
    }
}
@media (min-width: 1024px) {

    .ast-above-header-wrap .ast-builder-grid-row {
        border-bottom: 1px solid #fff;
    }

    #ast-desktop-header .ast-above-header-bar,
    #ast-desktop-header .site-above-header-wrap,
    #ast-desktop-header .ast-builder-grid-row {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-items: center !important;
    }

    #ast-desktop-header .site-header-above-section-left,
    #ast-desktop-header .site-header-above-section-right {
		height: 50px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-items: center !important;
    }

    #ast-desktop-header .header-widget-area,
    #ast-desktop-header .header-widget-area-inner,
    #ast-desktop-header #block-20,
    #ast-desktop-header #block-21 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #ast-desktop-header #block-20 .wp-block-uagb-container,
    #ast-desktop-header #block-20 .uagb-container-inner-blocks-wrap,
    #ast-desktop-header #block-20 .wp-block-uagb-info-box,
    #ast-desktop-header #block-20 .uagb-infobox-margin-wrapper,
    #ast-desktop-header #block-20 .uagb-ifb-content,
    #ast-desktop-header #block-20 .uagb-ifb-desc {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    #ast-desktop-header #block-20 .uagb-ifb-desc {
        margin: 0 !important;
    }

    #ast-desktop-header .site-header-above-section-right {
        min-width: 380px;
        width: auto;
        flex: 0 0 auto;
    }

    #ast-desktop-header #block-21 > .wp-block-uagb-container {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        margin: 0 !important;
        padding: 0 !important;
    }

    #ast-desktop-header .uagb-block-81303f7e,
    #ast-desktop-header .uagb-block-139fec01,
    #ast-desktop-header .uagb-block-85f29303 {
        width: auto !important;
        min-width: max-content;
    }

    #ast-desktop-header .uagb-block-81303f7e .uagb-heading-text,
    #ast-desktop-header .uagb-block-85f29303 .uagb-button__link,
    #ast-desktop-header .uagb-block-85f29303 .uagb-buttons-repeater {
        white-space: nowrap !important;
    }

    #ast-desktop-header .uagb-block-81303f7e .uagb-heading-text {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    #ast-desktop-header .uagb-block-85f29303 .uagb-buttons-repeater {
        display: flex;
        align-items: center;
    }

    #ast-desktop-header .uagb-block-14d230e4,
    #ast-desktop-header .uagb-block-139fec01 {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

}

.wp-block-uagb-icon-list .uagb-icon-list__label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
}


.wp-block-uagb-icon-list .uagb-icon-list__label strong {
    display: contents !important;
}

.wp-block-uagb-icon-list .uagb-icon-list__label s {
    flex: 0 0 auto !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #06743E !important;
    text-decoration: none !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

#block-13 {
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

#block-13 .uagb-heading-text {
    text-align: left !important;
}

#block-11,
#block-11 p,
#block-11 a {
    font-size: 16px !important;
}

/* BLOG */


html body .wp-block-uagb-post-grid .uagb-post__inner-wrap h4.uagb-post__title,
html body .wp-block-uagb-post-grid .uagb-post__inner-wrap h4.uagb-post__title a {
    font-family: "Inter", sans-serif !important;
    font-size: 20px !important;
    line-height: 24px !important;
    letter-spacing: -1px !important;
    color: #272B30 !important;
    font-weight: 700 !important;
}

html body .wp-block-uagb-post-grid .uagb-post__inner-wrap .uagb-post__excerpt,
html body .wp-block-uagb-post-grid .uagb-post__inner-wrap .uagb-post__excerpt p {
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    line-height: 20.8px !important;
    letter-spacing: 0 !important;
    color: #5A6169 !important;
    font-weight: 400 !important;
}

/* BOTONES*/
html body .uagb-ifb-button-wrapper.wp-block-button > a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *),

html body .wp-block-uagb-buttons-child .uagb-button__wrapper > a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *),

html body .wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style)
ul.wpuf-form li.wpuf-submit input[type="submit"].wpuf-submit-button,

html body input[type="submit"][name="Submit"] {

    background: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-image: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-color: transparent !important;

    color: #ffffff !important;

    border: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    border-color: transparent !important;

    border-radius: 999px !important;

    padding: 13px 16px !important;
    margin: 0 !important;

    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;

    text-decoration: none !important;
    text-transform: uppercase !important;
    text-shadow: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 0 !important;

    box-shadow: none !important;

    min-height: auto !important;
    width: auto !important;

    cursor: pointer !important;
}

html body .uagb-ifb-button-wrapper
a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *)
.uagb-inline-editing,

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *)
.uagb-button__link {

    color: #ffffff !important;

    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;

    text-decoration: none !important;
}

html body .uagb-ifb-button-wrapper
a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *)
svg {

    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
}

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *)
.uagb-button__icon {

    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *)
.uagb-button__icon svg {

    display: none !important;
}

html body .uagb-ifb-button-wrapper
a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *):hover,

html body .uagb-ifb-button-wrapper
a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *):focus,

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *):hover,

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *):focus,

html body .wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style)
ul.wpuf-form li.wpuf-submit input[type="submit"].wpuf-submit-button:hover,

html body .wpuf-form-add.wpuf-form-layout1:not(.wpuf-theme-style)
ul.wpuf-form li.wpuf-submit input[type="submit"].wpuf-submit-button:focus,

html body input[type="submit"][name="Submit"]:hover,

html body input[type="submit"][name="Submit"]:focus {

    background: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-image: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;

    color: #ffffff !important;

    opacity: 0.9 !important;

    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

html body .uagb-ifb-button-wrapper
a.uagb-infobox-cta-link.wp-block-button__link:not(.uagb-block-ed158f03 *):hover
.uagb-inline-editing,

html body .wp-block-uagb-buttons-child
a.uagb-buttons-repeater.wp-block-button__link:not(.uagb-block-ed158f03 *):hover
.uagb-button__link {

    color: #ffffff !important;
}

/* PREFIJOS*/

.homeinicio .uagb-ifb-title-prefix {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: fit-content !important;
    align-self: flex-start !important;

    align-items: center;
    justify-content: center;

    background-color: #56a278 !important;
	/*background: linear-gradient(90deg, #ffc51b 0%, #35bf73 100%) !important;
    background-image: linear-gradient(90deg, #ffc51b 0%, #35bf73 100%) !important;
    background-color: transparent !important;*/
    padding: 13px 16px !important;
    border-radius: 999px !important;

    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: 0.7px;
    text-transform: uppercase;

    white-space: nowrap;
    box-sizing: border-box;
}

html body input.wpcf7-form-control.wpcf7-submit {
    background: linear-gradient(90deg, #facd2a 0%, #2fb76e 100%) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 12px 16px !important;
    font-family: "Inter", sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    opacity: 1 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

html body input.wpcf7-form-control.wpcf7-submit:disabled,
html body input.wpcf7-form-control.wpcf7-submit[disabled] {
    background: linear-gradient(90deg, #facd2a 0%, #2fb76e 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

/* PAGINA CON CONTRASEÑA */
.post-password-required > div > form *{text-align:left;margin-bottom: 15px !important;}

/* DESCARGAS */
#et-boc .wpfd-content-default .wpfd_list .file, .wpfd-content-default .wpfd_list .file  {padding:15px !important;}
.wpfd-container .wpfd-categories{display: none !important;}
.wpfd-content-default .wpfd_list .file .file-xinfo {width:100%;}
 .wpfd-content{margin-top:0 !important;}
.wpfd-content-table .wpfd-table td {
    padding: 15px 0 15px 10px !important;
}
.filecontent > h3{ padding:0px 15px 15px 25px !important;}
.filecontent > .file-xinfo{padding:0px 15px 15px 25px !important;}
.wpfd-content-default .wpfd_list .file .file-xinfo > div > span {min-width:0 !important;}

.ast-desktop .current-menu-item. > .menu-link:before {
    width: calc(100% - 1.2em);
    background-color: currentColor;
    transform: scale(1, 1) translate(50%, 0);
}
.ast-desktop .ast-menu-hover-style-underline > .menu-item > .menu-link:before {
    bottom: 10px;
}
.uagb-post-pagination-wrap a{font-size:1em !important;}
/*.wpfd-content .downloadlink{height:26px !important;}*/
.wpfd-content-table thead{display:none !important;}
.wpfd-content-table .wpfd-table{padding:0 !important}

/* BLOG */
header.entry-header .entry-title{font-weight:700 !important;font-size:24px;line-height: 1em;letter-spacing: 0;}
#secondary h2{font-size:20px;line-height:1em;letter-spacing: 0;font-weight:700;}
#secondary a{font-size:16px;line-height:1em;}
.single .entry-content h2{font-size: 20px;
    line-height: 1.2em;letter-spacing: 0px !important;font-weight:700;}
@media (min-width: 993px) {
    .ast-right-sidebar #secondary {
        padding-left: 30px;
    }
}
.ast-separate-container.ast-right-sidebar #secondary .widget {
    background-color: #fff;
    padding: 2em;
    margin-bottom: 2em;
}
.sidebar-main .widget:not(:first-child){box-shadow:0px 4px 17px 0px rgba(0,0,0,0.24);    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;}
	
 .ast-archive-entry-banner:before{content: "";
    position: absolute;
    pointer-events: none;
    top: -0px;
    left: -0px;
    width: calc(100% + 0px + 0px);
    height: calc(100% + 0px + 0px);
    border-color: inherit;
    background: var(--ast-global-color-4);
    opacity: 0.85;
}

 .ast-archive-entry-banner h1{position:relative;z-index:1}
 .tax-mec_category #main-content > h1 {
    position: relative;
    isolation: isolate;
    left: 50%;
    width: 100vw;
    box-sizing: border-box;
    margin: 0 0 30px -50vw;
    padding: 65px max(calc((100vw - 1200px) / 2), 20px) 50px;
    background-color: #eee;
    background-repeat: repeat;
    background-position: center center;
    background-size: auto;
    color: var(--ast-global-color-0);
    font-size: 2.7777777778rem;
    font-weight: 700;
    line-height: 70px;
}
html:has(body.tax-mec_category) {
    overflow-x: clip;
}
 .tax-mec_category #main-content > h1::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--ast-global-color-4);
    opacity: 0.85;
}
 .ast-article-post .ast-article-inner{background: var(--ast-global-color-1) !important; }
 .post-content > *{padding:0 30px;background:transparent;color:#000;}
 .post-content  *{color:#5A6169 !important;font-size:16px;line-height:20px;}
.post-content .post-thumb{padding:0 !important;}
 .post-content .entry-meta *{font-size:14px !important;}
.post-content > h2 > a{font-weight:700;color:#272B30 !important;letter-spacing:-1px !important;font-size:20px;line-height:24px !important;}
.ast-article-inner{padding:0 0 30px 0;box-shadow:none !important;}

.ast-pagination .page-numbers{font-size:16px;}
.archive .ast-article-post .ast-article-inner,.archive .ast-article-post:hover .ast-article-inner{border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;}
.ast-article-post:hover .post-thumb-img-content img {
    transform: none;
}
.ast-article-post .post-thumb-img-content img{aspect-ratio:auto 391 / 260 !important;}

#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* BUSQUEDA */
#secondary .wp-block-search__button{
background: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-image: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-color: transparent !important;
    color: #ffffff !important;
border-radius: 999px !important;
}
.uagb-infobox-cta-link:has(.uagb-inline-editing) {
    transition: translate 0.3s ease !important;
}

.uagb-infobox-cta-link:has(.uagb-inline-editing):hover {
    translate: 5px 0 !important;
}


/* Ocultar imagen destacada en páginas individuales de eventos */
body.single-mec-events .mec-events-event-image {
    display: none !important;
}

/* Añadir padding superior de 50px */
body.single-mec-events #content {
    padding-top: 50px !important;
}

article.uagb-post__inner-wrap {
    border: 1px solid #06743E !important;
}

.wpfd-content-default .filecontent > div.ext.ext-pdf.wpfd-icon-set-svg,.wpfd-content-table span.ext.ext-pdf.wpfd-icon-set-svg {
    background-size: contain !important;
}
.wpfd-icon-set-svg.ext.ext-pdf {
    background-image: url("https://ceacop.desarrollobgo.com/wp-content/wp-file-download/icons/png/pdf.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
@media screen and (min-width: 768px) {
    #et-boc .wpfd-content-default .wpfd_list .file .file-right .downloadlink, .wpfd-content-default .wpfd_list .file .file-right .downloadlink {
        margin-top: 0 !important;
    }
}

html body input.wpcf7-form-control.wpcf7-submit:disabled,
html body input.wpcf7-form-control.wpcf7-submit[disabled] {
    background: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    background-image: linear-gradient(90deg, #a4a5a6 0%, #06743E 100%) !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
