/* =========================================================
   Páginas internas: About / Services / Blog
   Mismo lenguaje visual que el home (naranja #f7882f,
   gris azulado #6b7c8e, beige #efe5d6, tarjetas 12px).
   ========================================================= */

.cd-top {
    padding-top: 110px !important;
    padding-bottom: 40px !important;
}

/* Mismo ancho de contenedor en las tres páginas */
.cd-top .container {
    max-width: 1080px !important;
}

/* Las columnas de Bulma no deben sangrar el contenido */
.cd-top .columns {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cd-top .column {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ancho de lectura idéntico en About / Services / Blog */
.cd-copy,
.cd-blog-grid,
.cd-services,
.cd-top .column.is-12 > p {
    max-width: 940px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Encabezado de página */
.cd-head {
    flex: 0 0 100% !important;
    max-width: none;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.cd-kicker {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 14px;
    background-color: #fff;
    border: 1px solid #d8cbb8;
    border-radius: 20px;
    color: #6b7c8e;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cd-title {
    color: #f7882f !important;
    font-size: 1.7rem !important;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 .75rem !important;
}

.cd-lead {
    max-width: 940px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.8;
    color: #3c4858;
}

/* Párrafos de contenido */
.cd-copy p,
.cd-top .column.is-12 > p {
    color: #3c4858;
    line-height: 1.8;
    text-align: left !important;
    margin: 0 0 1.1rem;
}

.cd-top br {
    display: none;
}

/* ---------- About: equipo ---------- */
.cd-team-col {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 2.2rem;
}

.cd-team-col > .column {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
    text-align: center;
}

.cd-team-col > .column img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.cd-team-col > .column h3 {
    margin: 0 !important;
    padding: 14px 10px;
    border-top: 3px solid #f7882f;
    color: #3c4858;
    font-size: .95rem;
    font-weight: 700;
}

/* About: texto en una sola columna, igual que Services y Blog */
.cd-copy {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 940px;
}

.cd-copy > .column {
    padding: 0 !important;
    margin: 0 !important;
}

/* ---------- Services: lista con checks ---------- */
.cd-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 18px;
    list-style: none !important;
    max-width: 940px;
    margin: 0 auto 2rem !important;
    padding: 0 !important;
}

.cd-services li {
    position: relative;
    padding: 14px 16px 14px 46px !important;
    background-color: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    list-style: none !important;
    color: #3c4858;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
}

.cd-services li::before {
    content: "\2713";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f7882f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

/* ---------- Blog ---------- */
.cd-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.cd-blog-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.cd-blog-card:hover,
.cd-blog-card:focus {
    transform: translateY(-4px);
    border-color: #f7882f;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .14);
    text-decoration: none;
}

.cd-blog-media {
    height: 180px;
    background-color: #efe5d6;
    overflow: hidden;
}

.cd-blog-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.cd-blog-card:hover .cd-blog-media img {
    transform: scale(1.05);
}

.cd-blog-title {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 16px;
    border-top: 3px solid #f7882f;
    color: #3c4858;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.4;
}

.cd-blog-card:hover .cd-blog-title {
    color: #f7882f;
}

.cd-pagination {
    margin-top: 2rem;
    text-align: center;
}

/* ---------- CTA ---------- */
.cd-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 940px;
    margin: 40px auto 60px;
    padding: 28px 32px;
    background-color: #efe5d6;
    border-top: 5px solid #6b7c8e;
    border-bottom: 5px solid #6b7c8e;
}

.cd-cta h3 {
    margin: 0 0 4px !important;
    color: #6b7c8e !important;
    font-size: 1.35rem !important;
    font-weight: 700;
}

.cd-cta p {
    margin: 0;
    color: #3c4858;
    font-size: .95rem;
}

.cd-btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #f7882f;
    border: 1px solid #f7882f;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    transition: background-color .2s ease, transform .2s ease;
}

.cd-btn:hover {
    background-color: #e0731c;
    border-color: #e0731c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ---------- Portfolio ---------- */
.cd-portfolio .row {
    margin-bottom: 34px;
}

.cd-portfolio .slide-contenedor {
    position: relative;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto;
    background-color: #efe5d6;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
}

.cd-portfolio .fade-slider {
    width: 100%;
}

.cd-portfolio .fade-slider img {
    display: block;
    width: 100%;
    height: 540px;
    object-fit: cover;
}

/* Flechas: siempre visibles y circulares */
.cd-portfolio .direcciones {
    display: flex !important;
    pointer-events: none;
}

.cd-portfolio .direcciones a {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 18px;
    padding: 0 !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .92);
    color: #3c4858 !important;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    transition: background-color .2s ease, color .2s ease;
}

.cd-portfolio .direcciones a:hover,
.cd-portfolio .direcciones a:focus {
    background-color: #f7882f;
    color: #fff !important;
}

/* Puntos en lugar de barras */
.cd-portfolio .barras {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 88%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 8px 12px;
    background-color: rgba(28, 36, 45, .45);
    border-radius: 20px;
}

.cd-portfolio .barra,
.cd-portfolio .barrap,
.cd-portfolio .barraba {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.cd-portfolio .barra.active,
.cd-portfolio .barrap.active,
.cd-portfolio .barraba.active {
    background-color: #f7882f;
    transform: scale(1.35);
}

/* ---------- Contacto ---------- */
.cd-form {
    max-width: 940px;
    min-height: 703px;
    margin: 0 auto;
    padding: 14px;
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.cd-form iframe {
    display: block;
    width: 100% !important;
    min-height: 700px;
    border: 0;
    border-radius: 10px;
}

/* ---------- Blog: artículo ---------- */
.cd-article-page {
    padding: 130px 0 50px;
    background-color: #f2ece3;
    background-image: linear-gradient(rgba(242, 236, 227, .93), rgba(242, 236, 227, .93)), url("../img/concrete-stamp-house.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.cd-article-shell {
    max-width: 1080px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.cd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 940px;
    margin: 0 auto 18px;
    color: #6b7c8e;
    font-size: .8rem;
    line-height: 1.4;
}

.cd-breadcrumb a {
    color: #6b7c8e;
    text-decoration: none;
}

.cd-breadcrumb a:hover,
.cd-breadcrumb a:focus {
    color: #f7882f;
    text-decoration: underline;
}

.cd-breadcrumb [aria-current="page"] {
    overflow: hidden;
    max-width: 70%;
    color: #3c4858;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cd-article {
    max-width: 940px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
    overflow: hidden;
}

.cd-article-head {
    padding: 34px 34px 22px;
    text-align: center;
}

.cd-article-head .cd-kicker {
    color: #6b7c8e;
    text-decoration: none;
}

.cd-article-head .cd-kicker:hover,
.cd-article-head .cd-kicker:focus {
    color: #f7882f;
    border-color: #f7882f;
}

.cd-article-title {
    margin: 16px 0 18px !important;
    color: #3c4858 !important;
    font-size: 2rem !important;
    font-weight: 700;
    line-height: 1.3;
}

.cd-article-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.cd-article-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 2px solid #efe5d6;
    border-radius: 50%;
    object-fit: cover;
}

.cd-article-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6b7c8e;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.cd-article-meta-text {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}

.cd-article-author {
    color: #3c4858;
    font-size: .92rem;
}

.cd-article-lic {
    color: #6b7c8e;
    font-size: .78rem;
}

.cd-article-note {
    color: #6b7c8e;
    font-size: .78rem;
    font-style: italic;
}

.cd-article-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    color: #6b7c8e;
    font-size: .8rem;
}

.cd-article-hero {
    margin: 0;
    background-color: #efe5d6;
}

.cd-article-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cd-article-body {
    padding: 30px 34px 6px;
    color: #3c4858;
    font-size: 1.02rem;
    line-height: 1.8;
}

.cd-article-body > *:first-child {
    margin-top: 0 !important;
}

.cd-article-body p {
    margin: 0 0 1.15rem;
}

.cd-article-body h2 {
    margin: 2rem 0 .85rem !important;
    padding: 0 !important;
    color: #6b7c8e !important;
    font-size: 1.45rem !important;
    font-weight: 700;
    line-height: 1.35;
}

.cd-article-body h3 {
    margin: 1.6rem 0 .7rem !important;
    padding: 0 !important;
    color: #3c4858 !important;
    font-size: 1.2rem !important;
    font-weight: 700;
    line-height: 1.4;
}

.cd-article-body h4,
.cd-article-body h5,
.cd-article-body h6 {
    margin: 1.4rem 0 .6rem !important;
    padding: 0 !important;
    color: #3c4858 !important;
    font-size: 1.05rem !important;
    font-weight: 700;
}

.cd-article-body ul,
.cd-article-body ol {
    margin: 0 0 1.15rem 1.35rem;
    padding: 0;
}

.cd-article-body ul {
    list-style: disc;
}

.cd-article-body ol {
    list-style: decimal;
}

.cd-article-body li {
    margin-bottom: .45rem;
}

.cd-article-body a {
    color: #c96a15;
    text-decoration: underline;
}

.cd-article-body a:hover,
.cd-article-body a:focus {
    color: #f7882f;
}

.cd-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.2rem auto;
    border-radius: 8px;
}

.cd-article-body blockquote {
    margin: 1.4rem 0;
    padding: 14px 20px;
    background-color: #f7f3ec;
    border-left: 4px solid #f7882f;
    border-radius: 0 8px 8px 0;
    color: #3c4858;
}

.cd-article-body table {
    display: block;
    width: 100%;
    margin: 1.2rem 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: .95rem;
}

.cd-article-body th,
.cd-article-body td {
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    text-align: left;
}

.cd-article-body iframe {
    max-width: 100%;
}

.cd-article-body strong {
    color: #2f3a46;
}

.cd-article-gallery {
    padding: 14px 34px 0;
}

.cd-article-h2 {
    margin: 0 0 14px !important;
    color: #6b7c8e !important;
    font-size: 1.2rem !important;
    font-weight: 700;
}

.cd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cd-gallery-item {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #efe5d6;
    border-radius: 8px;
}

.cd-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.cd-gallery-item:hover img,
.cd-gallery-item:focus img {
    transform: scale(1.06);
}

.cd-article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 26px 34px 30px;
}

.cd-share {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-share-label {
    margin-right: 2px;
    color: #6b7c8e;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.cd-share a,
.cd-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background-color: #f7f3ec;
    border: 1px solid #e2d9cc;
    border-radius: 50%;
    color: #6b7c8e;
    font-size: .9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.cd-share a:hover,
.cd-share a:focus,
.cd-share button:hover,
.cd-share button:focus {
    background-color: #f7882f;
    border-color: #f7882f;
    color: #fff;
    text-decoration: none;
}

.cd-share .is-copied {
    background-color: #2f9e5a;
    border-color: #2f9e5a;
    color: #fff;
}

.cd-article-related {
    max-width: 940px;
    margin: 40px auto 0;
}

.cd-article-related .cd-blog-grid {
    margin-top: 0;
}

.cd-article-back {
    max-width: 940px;
    margin: 26px auto 0;
}

.cd-link-more {
    color: #6b7c8e;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.cd-link-more:hover,
.cd-link-more:focus {
    color: #f7882f;
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 900px) {
    .cd-top {
        padding-top: 120px !important;
    }
    .cd-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cd-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cd-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 640px) {
    .cd-article-page {
        padding-top: 120px;
        background-attachment: scroll;
    }
    .cd-breadcrumb {
        margin-bottom: 14px;
        font-size: .72rem;
    }
    .cd-article-head {
        padding: 24px 18px 18px;
    }
    .cd-article-title {
        margin: 12px 0 14px !important;
        font-size: 1.45rem !important;
    }
    .cd-article-body {
        padding: 22px 18px 4px;
        font-size: .98rem;
        line-height: 1.75;
    }
    .cd-article-gallery {
        padding: 12px 18px 0;
    }
    .cd-gallery-grid {
        gap: 8px;
    }
    .cd-article-foot {
        padding: 20px 18px 24px;
    }
    .cd-share {
        flex-wrap: wrap;
    }
    .cd-article-related {
        margin-top: 28px;
    }
    .cd-services,
    .cd-blog-grid {
        grid-template-columns: 1fr;
    }
    .cd-portfolio .fade-slider img {
        height: 320px;
    }
    .cd-portfolio .direcciones a {
        width: 38px;
        height: 38px;
        margin: 0 10px;
        font-size: 16px;
    }
    .cd-portfolio .barras {
        bottom: 12px;
        gap: 5px;
        padding: 6px 10px;
    }
    .cd-portfolio .barra,
    .cd-portfolio .barrap,
    .cd-portfolio .barraba {
        width: 6px;
        height: 6px;
    }
    .cd-team-col {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    .cd-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
    .cd-btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
