/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Tema hijo para web de Delta Constructora
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* alto completo en imágenes */
.slider {
    position: relative;
    width: 90%;
    /*height: 500px;*/
    margin: 0 auto;
    overflow: hidden;
}

/*
@media (min-width: 768px) {
    .slider {
        height: 100vh;
    }
}
*/

.slides-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    align-items: center;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.slide img {
    width: 100%; /* max-width */
    height: auto;
    border-radius: 8px;
}
/* versión con alto fijo */
/*@media (max-width: 768px) {
    .slider {
        height: 190px;
    }
}*/

.controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls button,
.controls button:active {
    background-color: var(--e-global-color-secondary);
    color: var(--e-global-color-primary);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.controls button:hover {
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-secondary);
}
@media (min-width: 993px) {
.ast-separate-container #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary {
    margin-top: 2em;
}
}

/* index y archive de posts */
.site-content>.ast-container {
    max-width: 100%;
    padding: 0;
}

.site-content #primary {
    padding: 0;
    margin: 0;
}

/*section {
    padding: 2em 1em 2em 1em;
}*/

.elementor-section .elementor-container {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    flex-wrap: wrap
}
.delta-post {
    margin-bottom: 2em;
}
.post-image, .proyecto-image {
    position: relative;
    overflow: hidden;
}

.post-image img, .proyecto-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-image, .proyecto-image {
    position: relative;
    width: 100%;
    min-height: 215px;
    overflow: hidden;
    background-color: #F5F5F5;
    background-image: url(/wp-content/uploads/2023/05/favicon-150x150.png);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
}
.proyecto-image {
    width: 100%;
    min-height: 215px;
    max-height: 450px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
@media (min-width: 767px) {
    .proyecto-image {
        min-height: 310px;
    }
    .post-image {
        height: 265px;
    }
    .proyectos-list:nth-child(even) .proyecto-col-imagen {
        order: 1;
    }
    .proyectos-list:nth-child(odd) .proyecto-col-data {
        order: 1;
    }
}

.proyectos-detail {
    background-color: var(--e-global-color-69ed6f1 );
    margin: 10px 10px 10px 10px;
    padding: 2em 2em 2em 2em;
    border-radius: 8px;
}

#site-posts h3 {
    margin: 2em 0;
    font-size: 1.1em;
    height: 64px;
}
.cat-container {
    width: 100%;
}
.postdate {
    /*margin-top: 0.9em;*/
    margin-left: 2em;
    font-size: 0.8em;
}
.postcategory {
    font-size: 0.7em;
    font-weight: 700;
}
.ast-pagination {
    display: block;
    margin: 0 auto 5em;
}
.ast-pagination .nav-links .page-numbers {
    font-size: 0.8em;
    padding: 1em;
    border-radius: 8px;
    background-color: var(--e-global-color-69ed6f1);
    width: 4em;
    height: 4em;
    margin: 0.5em;
}
.ast-pagination .nav-links .current {
    background-color: var(--e-global-color-secondary);
}
.ast-pagination .next.page-numbers {
    float: none;
    background-color: transparent;
    padding-left: 5em;
}
.ast-pagination .prev.page-numbers {
    float: none;
    background-color: transparent;
    padding-right: 5em;
}
.ast-left-arrow, .ast-right-arrow {
    font-size: 2.5em;
}
@media (max-width: 767px) {
    .ast-pagination .nav-links .page-numbers {
        padding: 0.5em;
        width: 3em;
        height: 3em;
        margin: 0.5em;
    }
    .ast-pagination .next.page-numbers {
        padding-left: 0;
    }
    .ast-pagination .prev.page-numbers {
        padding-right: 0;
    }
}

/* archive proyectos */
.proyecto-list {
    padding: 0 2em;
}
.proyecto-list h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
}
.proyecto-subtitle {
    font-size: 0.8em;
    margin-bottom: 2em;
}
section.proyectos-container {
    margin-bottom: 2em;
}

/* single post */
.singlepost section {
    padding: 0em 5em;
}
@media (max-width: 767px) {
    .singlepost section {
        padding: 0em;
    }
}
.singlepost .elementor-widget-heading .elementor-heading-title {
    font-weight: 200;
    text-align: center;
    margin-bottom: 3rem;
}
.singlepost .elementor-widget-heading h1.elementor-heading-title {
    font-size: 2.5em;
}
.singlepost .elementor-widget-heading h2.elementor-heading-title {
    font-size: 1.5em;
}
.singlepost-content {
    margin-top: 2rem;
}
.singlepost-tag {
    font-size: 0.9em;
}
.singlepost-tag-bold {
    font-size: 0.9em;
    font-weight: 700;
}
.singlepost-content table, .singlepost-content table td, .singlepost-content table th {
    border-color: var(--e-global-color-primary);
    width: auto;
    font-size: 0.9em;
}
.singlepost table.post-details td {
    text-align: center;
    line-height: 1em;
}
.singlepost table.post-details td.bold {
    background-color: var(--e-global-color-primary);
    color: #fff;
}
.singlepost .go-back {
    font-size: 0.8em;
}


/*  single proyecto */
.singleproyecto section {
    padding: 0em 5em;
}
@media (max-width: 767px) {
    .singleproyecto section {
        padding: 0em;
    }
}
.singleproyecto .elementor-widget-heading .elementor-heading-title {
    font-weight: 200;
    margin-bottom: 3rem;
}
.singleproyecto .elementor-widget-heading h1.elementor-heading-title {
    font-size: 1.5em;
}
.singleproyecto .elementor-widget-heading h2.elementor-heading-title {
    font-size: 1.1em;
}
.singleproyecto .slider, .singlepost .slider {
    margin-top: 2rem;
    margin-bottom: 4rem;
    border-radius: 8px;
}
.singleproyecto-content {
    margin-top: 2rem;
}
.singleproyecto-tag {
    font-size: 0.9em;
}
.singleproyecto-tag-bold {
    font-size: 0.9em;
    font-weight: 700;
}
.singleproyecto table, .singleproyecto table td, .singleproyecto table th, table.proyecto-details, table.proyecto-details td, table.proyecto-details th {
    border-color: var(--e-global-color-primary);
    width: auto;
    font-size: 0.9em;
}
.singleproyecto table.post-details td, table.proyecto-details td {
    text-align: center;
    line-height: 1em;
}
.singleproyecto table.post-details td.bold, table.proyecto-details td.bold {
    background-color: var(--e-global-color-primary);
    color: #fff;
}
.singleproyecto .go-back {
    font-size: 0.8em;
}
.default-image {
    position: relative;
    width: 60%;
    height: 400px;
    overflow: hidden;
    background-color: #F5F5F5;
    background-image: url(/wp-content/uploads/2023/05/favicon-150x150.png);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    margin: auto;
}
.cat-detail, .post-detail {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    margin: 2em 0;
}
.cat-detail div, .post-detail a {
    padding: 0 1em;
    border-right: 1px solid var(--e-global-color-secondary);
}
.cat-detail div:first-child {
    padding-right: 0;
}
.cat-detail div:first-child, .cat-detail div:last-child {
    border-right: 0;
}
.cat-cat {
    text-transform: uppercase;
    font-size: 0.8em;
    font-weight: bold;
}
.detail-promotor {
    font-size: 0.8em;
}


/* formulario */
.form-item {
    border-radius: 8px;
    border: 1px solid var(--e-global-color-69ed6f1 );
    padding: 10px;
    margin: 0.1em;
    font-family: "Noto Sans", Sans-serif;
    color: var(--e-global-color-text );
}
.form-item p {
    margin-bottom: 0;
}
.form-item label {
    text-transform: uppercase;
    font-weight: bold;
}
.form-item input, .form-item textarea {
    border: 0;
    background-color: transparent;
}

/* botón */
.ast-single-post .elementor-button-wrapper .elementor-button, input[type="submit"] {
    fill: var(--e-global-color-text );
    color: var(--e-global-color-text );
    background-color: var(--e-global-color-secondary );
    text-decoration: none;
    transition: background .3s,border .3s,border-radius .3s,box-shadow .3s,transform var(--e-transform-transition-duration,.4s);
    padding: 12px 24px;
    border-radius: 3px;
}
.ast-single-post .elementor-button-wrapper .elementor-button:hover, input[type="submit"]:hover {
    color: var(--e-global-color-secondary );
    background-color: var(--e-global-color-primary );
}
/* Estilo base del checkbox */
.wpcf7 input[type="checkbox"] {
    display: none; /* Oculta el checkbox */
  }
  
  /* Estilo del marcador */
  .wpcf7 input[type="checkbox"] + .wpcf7-list-item-label::before {
    content: ""; /* Símbolo de verificación Unicode */
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid green; /* Color del borde en verde */
    border-radius: 3px;
    margin-right: 5px;
    text-align: center; /* Centra el símbolo de verificación */
    line-height: 16px; /* Alineación vertical del símbolo de verificación */
    font-size: 12px; /* Tamaño de fuente del símbolo de verificación */
    color: green; /* Color del símbolo de verificación en verde */
  }
  
  /* Estilo del marcador cuando el checkbox está seleccionado */
  .wpcf7 input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
    content: "\2714"; /* Símbolo de verificación Unicode */
    background-color: green; /* Color de fondo en verde */
    color: white; /* Color del símbolo de verificación en blanco */
  }
  