/**
 * Páginas internas y componentes compartidos.
 * La mayoría del layout se apoya en utilidades de Bootstrap 5.
 */

body:not(.home) {
    background-color: #ffffff;
}

/* Nosotros: fondo continuo del diseño. */
.page-template-page-nosotros .icc-page {
    background-color: #f5f5f5;
}

.page-template-page-nosotros .icc-page > section {
    background-color: transparent;
}

/* PQRS: fondo continuo del diseño. */
.page-template-page-pqrs .icc-page {
    background-color: #f5f5f5;
}

.page-template-page-pqrs .icc-page > section {
    background-color: transparent;
}

/* Ancho de contenido alineado al diseño de las páginas internas. */
@media (min-width: 1200px) {
    .icc-page .container {
        max-width: min(1288px, calc(100% - 48px));
    }
}

/* Cabecera blanca en páginas internas */
body:not(.home) .site-main {
    padding-top: 82px;
}

body:not(.home) .site-header {
    padding: 5px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

body:not(.home) .site-header.menu-active {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body:not(.home) .logo-white {
    display: none;
}

body:not(.home) .logo-red {
    display: block;
}

body:not(.home) .site-header .navbar-brand img {
    height: 42px;
}

body:not(.home) .nav-center-links .btn-capta {
    color: var(--icc-red);
}

body:not(.home) .nav-center-links .btn-capta:hover,
body:not(.home) .nav-center-links .btn-capta:focus {
    color: #ffffff;
}

/* Nosotros: el menú va sobre el hero, como en el home. */
body.icc-hero-overlay .site-main {
    padding-top: 0;
}

body.icc-hero-overlay .site-header {
    padding: 30px 20px;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.icc-hero-overlay .site-header .navbar-brand img {
    height: 50px;
}

body.icc-hero-overlay .site-header.scrolled .navbar-brand img {
    height: 42px;
}

body.icc-hero-overlay .site-header.scrolled {
    padding: 5px 20px;
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

body.icc-hero-overlay .site-header.menu-active {
    padding: 5px 20px;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

body.icc-hero-overlay .logo-white {
    display: block;
}

body.icc-hero-overlay .logo-red {
    display: none;
}

body.icc-hero-overlay .scrolled .logo-white {
    display: none;
}

body.icc-hero-overlay .scrolled .logo-red {
    display: block;
}

body.icc-hero-overlay .site-header.menu-active .logo-white {
    display: none;
}

body.icc-hero-overlay .site-header.menu-active .logo-red {
    display: block;
}

body.icc-hero-overlay .nav-center-links .btn-capta {
    color: #ffffff;
}

body.icc-hero-overlay .scrolled .nav-center-links .btn-capta {
    color: var(--icc-red);
}

body.icc-hero-overlay .scrolled .nav-center-links .btn-capta:hover,
body.icc-hero-overlay .scrolled .nav-center-links .btn-capta:focus {
    color: #ffffff;
}

/* Hero de páginas internas: mismo tratamiento que el hero del home. */
.icc-page-hero {
    padding: 20px;
    background-color: var(--icc-bg);
}

.icc-page-hero__card {
    display: flex;
    flex-direction: column;
    height: calc(80vh - 40px);
    height: calc(80svh - 40px);
    min-height: 500px;
    border-radius: 40px;
    background-color: #e9e9e9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) and (max-height: 620px) {
    .icc-page-hero__card {
        min-height: 0;
    }
}

.icc-page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.icc-page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.05) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 45%);
}

.icc-page-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(6rem, 9vw, 8rem) clamp(1.5rem, 13.4vw, 12rem) clamp(3rem, 6vw, 5rem);
    color: #ffffff;
}

.icc-page-hero__content--center {
    align-items: center;
    padding-right: clamp(1.5rem, 6vw, 6rem);
    padding-left: clamp(1.5rem, 6vw, 6rem);
    text-align: center;
}

.icc-page-hero__kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    font-weight: 400;
}

.icc-page-hero__title {
    margin-bottom: 1.25rem;
    font-size: clamp(3rem, 7vw, 7.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.02;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.icc-page-hero__subtitle {
    max-width: 360px;
    margin: 0 0 0 auto;
    font-size: clamp(1.05rem, 1.4vw, 1.5rem);
    line-height: 1.45;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.icc-page-hero__content--center .icc-page-hero__subtitle {
    margin-right: auto;
    margin-left: auto;
}

/* Introducción y textos */
.icc-intro {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.icc-copy {
    color: #333333;
    font-size: 1.02rem;
    line-height: 1.6;
}

.icc-copy p:last-child {
    margin-bottom: 0;
}

.icc-section-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: #adabac;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 400;
}

.icc-section-title {
    color: #333333;
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.02;
}

.icc-pqrs-title {
    font-size: clamp(2.25rem, 3.6vw, 3.2rem);
}

/* Cifras */
.icc-stats {
    padding: 2rem 0;
}

.icc-stats--light {
    padding: 1rem 0 2rem;
    background-color: transparent;
}

.icc-stats--light .icc-stats__panel {
    position: relative;
    padding: 2.25rem clamp(1rem, 4vw, 3rem);
    border: 0;
    background-color: transparent;
    box-shadow: none;
}

.icc-stats--light .icc-stats__panel::before,
.icc-stats--light .icc-stats__panel::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 60px;
    content: "";
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 18%, #000000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000000 18%, #000000 82%, transparent 100%);
}

.icc-stats--light .icc-stats__panel::before {
    top: -48px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
}

.icc-stats--light .icc-stats__panel::after {
    bottom: -48px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
}

.icc-stats--light .icc-stat__value,
.icc-stats--light .icc-stat__label,
.icc-stats--light .icc-stat__sub {
    color: var(--icc-red);
}

.icc-stats--light .icc-stat__value {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
}

.icc-stats--light .icc-stat__label {
    font-size: 1.15rem;
}

.icc-stats--light .icc-stat__sub {
    font-size: 0.95rem;
}

.icc-stats--bar {
    padding: 1.5rem 0;
}

.icc-stats--bar .container {
    padding: 2.25rem 2rem;
    border-radius: 28px;
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-stats__kicker {
    display: block;
    font-size: 1.05rem;
    opacity: 0.85;
}

.icc-stats__title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 500;
}

.icc-stat__value {
    display: block;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 500;
    line-height: 1;
}

.icc-stat__label {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.icc-stat__sub {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Proceso */
.icc-process {
    background-color: #f5f5f5;
}

.icc-process__card {
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.icc-process__title {
    color: #333333;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
}

.icc-process__steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.icc-process__step {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.icc-process__number {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background-color: var(--icc-red);
    color: #ffffff;
    font-weight: 600;
}

.icc-process__text {
    flex: 1;
    margin-left: -20px;
    padding: 0.7rem 1.25rem 0.7rem 2.5rem;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #333333;
    font-size: 0.98rem;
    background-color: #ffffff;
}

.icc-process__image {
    min-height: 420px;
    object-fit: cover;
}

/* Pill de sección */
.icc-pill-title {
    display: inline-block;
    padding: 0.45rem 1.6rem;
    border-radius: 999px;
    background-color: var(--icc-red);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 500;
}

/* Proyectos construidos */
.icc-built-section {
    background-color: #f5f5f5;
}

.icc-built-carousel {
    width: 100%;
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.icc-built-carousel .carousel-item > .row {
    --bs-gutter-x: 7.75rem;
    padding-top: 8px;
}

.icc-built-card {
    padding: 8px;
    border-radius: 28px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.icc-built-info .row {
    --bs-gutter-x: 0.5rem;
}

.icc-built-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
}

.icc-built-media {
    display: block;
    height: 355px;
    border-radius: 22px;
    overflow: hidden;
    background-color: #ececec;
}

.icc-built-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icc-built-info {
    padding: 0.75rem 0.5rem 0.5rem;
}

.icc-built-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.45rem 1.1rem;
    border-radius: 0 0 16px 0;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
}

.icc-built-logo {
    max-width: 110px;
    max-height: 38px;
    object-fit: contain;
}

.icc-built-value {
    display: block;
    color: var(--icc-red);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.icc-built-label {
    display: block;
    color: #6c6c74;
    font-size: 0.72rem;
}

.icc-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e2e2e2;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--icc-red);
    font-size: 1.1rem;
    line-height: 1;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.icc-carousel-btn[data-bs-slide="prev"] {
    border-color: #d2d2d2;
    background-color: #d2d2d2;
    color: #ffffff;
}

.icc-carousel-btn[data-bs-slide="next"] {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-carousel-btn:hover,
.icc-carousel-btn:focus {
    border-color: #7d1c10;
    background-color: #7d1c10;
    color: #ffffff;
}

.icc-carousel-dot {
    position: relative;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: #8a8a8a;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.icc-carousel-dot::after {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    content: "";
}

.icc-carousel-dot:focus-visible {
    outline: 2px solid var(--icc-red);
    outline-offset: 4px;
}

.carousel-indicators .icc-carousel-dot {
    width: 9px;
    height: 9px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: #8a8a8a;
    opacity: 1;
}

.carousel-indicators .icc-carousel-dot.active {
    width: 24px;
    border-radius: 999px;
    background-color: var(--icc-red);
}

/* Historia */
.icc-history-image {
    display: block;
    width: 100%;
    height: 520px;
    min-height: 0;
    border-radius: 24px !important;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .icc-history-image {
        height: 420px;
    }
}

@media (max-width: 767.98px) {
    .icc-history-image {
        height: 360px;
    }
}

/* Propuesta de valor enmarcada */
.icc-value-proposal-section {
    padding: 2.5rem 0;
    background-color: #f5f5f5;
}

.icc-value-proposal-section > .container {
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
}

.icc-value-proposal {
    margin: 0;
    padding: clamp(1.5rem, 3vw, 3.75rem);
    background-color: #ffffff;
    border-radius: 32px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.07);
}

.icc-value-proposal__media {
    position: relative;
    height: 100%;
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
}

.icc-value-proposal__media .icc-value-proposal__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px !important;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .icc-value-proposal__media {
        height: 320px;
    }
}

/* Valores corporativos */
.icc-values-section {
    background-color: #f5f5f5;
}.icc-value-card {
    padding: 1.4rem;
    border: 0;
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.045);
}

.icc-value-card__title {
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 600;
}

.icc-value-card__text {
    color: #555555;
    font-size: 0.9rem;
    line-height: 1.5;
    -webkit-mask-image: linear-gradient(to bottom, #000000 55%, rgba(0, 0, 0, 0.05) 100%);
    mask-image: linear-gradient(to bottom, #000000 55%, rgba(0, 0, 0, 0.05) 100%);
}

.icc-value-card__more {
    color: var(--icc-red);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Sostenibilidad y calidad */
.icc-sustain-section,
.icc-quality-section {
    padding: 2.5rem 0 1rem;
}

.icc-sustain-media,
.icc-quality-media {
    position: relative;
    margin: 0 20px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #dddddd;
}

.icc-sustain-media {
    height: 440px;
}

.icc-quality-media {
    height: 520px;
}

.icc-sustain-image,
.icc-quality-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.icc-sustain-overlay,
.icc-quality-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    color: #ffffff;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.18) 65%, rgba(0, 0, 0, 0.02) 100%);
}

.icc-sustain-title,
.icc-quality-title {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 400;
    line-height: 1.05;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.icc-sustain-quote,
.icc-quality-quote {
    max-width: 560px;
    margin-top: 2rem;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.icc-sustain-copy,
.icc-quality-copy {
    margin-top: 2.5rem;
}

.icc-quality-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
}

.icc-quality-download:hover,
.icc-quality-download:focus {
    color: #7d1c10;
}

.icc-sustain-statement {
    max-width: 900px;
    margin: 3rem auto 0;
    color: var(--icc-red);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.5;
    text-align: center;
}

.icc-value-card {
    position: relative;
    padding-right: 2.8rem;
}

.icc-value-card__icon {
    position: absolute;
    top: 1.35rem;
    right: 1.2rem;
    color: var(--icc-red);
    line-height: 0;
}

@media (max-width: 767.98px) {
    .icc-sustain-media,
    .icc-quality-media {
        height: 360px;
        margin: 0 12px;
    }

    .icc-sustain-overlay,
    .icc-quality-overlay {
        padding: 1.5rem;
    }

    .icc-sustain-title,
    .icc-quality-title {
        font-size: 2rem;
    }
}

/* Reconocimientos */
.icc-recognitions-section {
    background-color: transparent;
}

.icc-recognitions__title {
    color: var(--icc-red);
}

.icc-recognitions__divider {
    display: none;
}

.icc-recognition-row {
    box-shadow: 0 18px 30px -30px rgba(0, 0, 0, 0.18), 0 -18px 30px -30px rgba(0, 0, 0, 0.18);
}

.icc-recognition-row + .icc-recognition-row {
    margin-top: 2.5rem;
}

.icc-recognition-col {
    border-left: 1px solid #e8e8e8;
}

.icc-recognition-col:first-child {
    border-left: 0;
}

.icc-recognition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.2rem 1.5rem;
    text-align: center;
}

.icc-recognition__title {
    color: var(--icc-red);
    font-size: clamp(1.6rem, 2.3vw, 2.4rem);
    font-weight: 500;
    line-height: 1.1;
}

.icc-recognition-col.col-xl-3 .icc-recognition__title {
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
}

.icc-recognition__image {
    max-width: 120px;
    max-height: 56px;
    margin-bottom: 0.75rem;
    object-fit: contain;
}

.icc-recognition__subtitle {
    display: block;
    max-width: 320px;
    margin-top: 1.1rem;
    color: #666666;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
    text-transform: uppercase;
}

.icc-recognition__year {
    display: block;
    margin-top: 0.35rem;
    color: var(--icc-red);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1.2;
}

.icc-recognitions-note {
    max-width: 1000px;
    color: var(--icc-red);
    font-size: 1.4rem;
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .icc-recognition-col {
        border-left: 0;
    }

    .icc-recognition {
        padding: 1.5rem 1rem;
    }
}

/* FAQ */
.icc-faq .accordion-item {
    margin-bottom: 1rem;
    border: 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.icc-faq .accordion-button {
    padding: 1.25rem 2rem;
    background-color: #ffffff;
    color: #333333;
    font-size: 1.15rem;
    font-weight: 400;
    box-shadow: none;
}

.icc-faq .accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: var(--icc-red);
    box-shadow: none;
}

.icc-faq .accordion-button:focus {
    box-shadow: none;
}

.icc-faq .accordion-button::after {
    filter: invert(18%) sepia(72%) saturate(1749%) hue-rotate(343deg) brightness(87%) contrast(91%);
}

.icc-faq .accordion-body {
    padding: 0 2rem 1.6rem;
    color: #555555;
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Contacto */
.icc-contact {
    background-color: #f5f5f5;
}

.icc-contact__card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.icc-contact__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.icc-contact .row {
    padding: clamp(2rem, 5vw, 4rem);
}

.icc-contact__title {
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 400;
    line-height: 1.08;
}

.icc-contact__text {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.6;
}

.icc-contact__form-panel {
    padding: 1.25rem;
    border-radius: 24px;
    background-color: rgba(20, 20, 20, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.icc-form-embed iframe {
    width: 100%;
    min-height: var(--icc-form-height, 538px);
    border: 0;
    border-radius: 0;
    background: transparent;
}

.icc-lead-form .form-control {
    padding: 0.8rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.icc-lead-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.icc-lead-form .form-control:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    color: #ffffff;
}

.icc-lead-form .form-check-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    line-height: 1.45;
}

.icc-lead-form .form-check-input {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.75);
}

.icc-form-status {
    color: #ffffff;
    font-size: 0.8rem;
}

.icc-form-status.is-error {
    color: #ffb3a7;
}

.icc-form-legal {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    line-height: 1.45;
    text-align: center;
}

/* Legales */
.icc-legal-card {
    padding-top: 0.5rem;
    border-top: 2px solid var(--icc-red);
}

.icc-legal-card__title {
    color: var(--icc-red);
    font-size: 1.02rem;
    font-weight: 600;
}

.icc-legal-card__excerpt {
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.6;
}

.icc-legal-card__more {
    color: var(--icc-red);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Asesor flotante */
.icc-advisor-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.icc-advisor-float.is-visible {
    display: flex;
}

.icc-advisor-float__panel {
    width: 320px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding: 1.25rem;
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.icc-advisor-float:hover .icc-advisor-float__panel,
.icc-advisor-float:focus-within .icc-advisor-float__panel,
.icc-advisor-float.is-open .icc-advisor-float__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-advisor-float__avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.icc-advisor-float__name {
    color: var(--icc-red);
    font-weight: 600;
}

.icc-advisor-float__role {
    color: #888888;
    font-size: 0.8rem;
}

.icc-advisor-float__text {
    color: #444444;
    font-size: 0.9rem;
    line-height: 1.55;
}

.icc-advisor-float__form .form-control {
    padding: 0.5rem 0.85rem;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background-color: #f6f6f6;
    color: #333333;
    font-size: 0.82rem;
}

.icc-advisor-float__form .form-control::placeholder {
    color: #8a8a8a;
}

.icc-advisor-float__form .form-control:focus {
    border-color: var(--icc-red);
    background-color: #ffffff;
    box-shadow: none;
}

.icc-advisor-float__form .form-check-label {
    color: #777777;
    font-size: 0.65rem;
}

.icc-advisor-float__form .icc-form-status {
    color: #444444;
    font-size: 0.72rem;
}

.icc-advisor-float__wa-link {
    color: var(--icc-red);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.icc-advisor-float__toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1rem 0.45rem 0.45rem;
    border: 0;
    border-radius: 999px;
    background-color: var(--icc-red);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.icc-advisor-float__toggle img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.icc-advisor-float__toggle span {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.icc-advisor-float__wa {
    border-color: var(--icc-red);
    color: var(--icc-red);
}

.icc-advisor-float__wa:hover,
.icc-advisor-float__wa:focus {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

/* Single de proyecto */
.icc-single {
    padding-bottom: 1rem;
}

.icc-single__top {
    padding: 1rem 0 1.25rem;
}

.icc-single__location {
    display: inline-block;
    padding: 0.55rem 1.5rem;
    border-radius: 999px;
    background-color: #111111;
    color: #ffffff;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
}

.icc-single__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 440px;
    margin-bottom: 2rem;
}

.icc-single__gallery-main,
.icc-single__gallery-side {
    position: relative;
    padding: 0;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    height: 100%;
}

.icc-single__gallery-main img,
.icc-single__gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.icc-single__gallery-main:hover img,
.icc-single__gallery-side:hover img {
    transform: scale(1.03);
}

.icc-single__gallery-plus {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--icc-red);
    font-size: 1.5rem;
    line-height: 1;
}

.icc-single__body {
    margin-bottom: 1rem;
}

.icc-single__logo {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.icc-single__name {
    color: var(--icc-red);
    font-size: 2rem;
    font-weight: 600;
}

.icc-single__data {
    padding: 1.4rem;
    border-radius: 22px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.icc-data-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eeeeee;
}

.icc-data-row:last-child {
    border-bottom: 0;
}

.icc-data-label {
    color: #888888;
    font-size: 0.82rem;
}

.icc-data-value {
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
}

.icc-advisor-card {
    padding: 1.1rem;
    border-radius: 22px;
    background-color: #f2f2f2;
    text-align: center;
}

.icc-advisor-card__image {
    width: 100%;
    height: 210px;
    margin-bottom: 0.9rem;
    border-radius: 16px;
    object-fit: cover;
    object-position: top center;
}

.icc-advisor-card__name {
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 600;
}

.icc-advisor-card__role {
    color: #888888;
    font-size: 0.8rem;
}

.icc-typology-nav .nav-link {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background-color: #ffffff;
    color: #333333;
    font-size: 1rem;
    text-align: center;
}

.icc-typology-nav .nav-link.active {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-typology-pane {
    padding: 1rem;
}

.icc-typology-plan {
    max-height: 300px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.icc-typology-value {
    display: block;
    color: var(--icc-red);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
}

.icc-typology-label {
    display: block;
    margin-top: 0.25rem;
    color: #8a8a8a;
    font-size: 0.75rem;
    line-height: 1.35;
}

.icc-gallery-modal-img {
    max-height: 80vh;
    object-fit: contain;
}

@media (max-width: 1199.98px) {
    .icc-built-carousel .carousel-item > .row {
        --bs-gutter-x: 3rem;
    }
}

@media (max-width: 991.98px) {
    .icc-page-hero {
        padding: 12px;
    }

    .icc-page-hero__card {
        height: auto;
        min-height: calc(80svh - 24px);
        max-height: none;
        border-radius: 28px;
    }

    .icc-page-hero__content {
        justify-content: flex-end;
        padding: 7.5rem clamp(1.5rem, 6vw, 3rem) 3rem;
    }

    .icc-page-hero__title {
        font-size: clamp(2.75rem, 9vw, 4.5rem);
    }

    .icc-page-hero__subtitle {
        max-width: 520px;
        margin: 0.75rem 0 0;
        font-size: 1.15rem;
    }

    .icc-built-carousel .carousel-item > .row {
        /* 24px: el container ya aporta 12px y el row no debe salir del viewport. */
        --bs-gutter-x: 1.5rem;
    }

    .icc-built-media {
        height: 300px;
    }

    .icc-single__gallery {
        grid-template-columns: 1fr 1fr;
        height: 300px;
    }

    .icc-process__image {
        min-height: 300px;
    }
}

@media (max-width: 767.98px) {
    body:not(.home) .site-main {
        padding-top: 72px;
    }

    body.icc-hero-overlay .site-main {
        padding-top: 0;
    }

    .icc-page-hero__card {
        height: auto;
        min-height: calc(80svh - 24px);
        border-radius: 24px;
    }

    .icc-page-hero__content {
        padding: 6.5rem 1.25rem 2.5rem;
    }

    .icc-page-hero__kicker {
        font-size: 1.2rem;
    }

    .icc-page-hero__title {
        margin-bottom: 0.75rem;
        font-size: clamp(2.5rem, 12vw, 3.75rem);
    }

    .icc-page-hero__subtitle {
        max-width: 100%;
        font-size: 1rem;
    }

    .icc-single__gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .icc-single__gallery-main,
    .icc-single__gallery-side {
        height: 240px;
    }

    .icc-advisor-float {
        right: 12px;
        bottom: 12px;
    }

    .icc-advisor-float__panel {
        width: calc(100vw - 24px);
    }

    .icc-stats--bar .container {
        padding: 1.5rem 1rem;
    }

    .icc-stat__label {
        font-size: 0.85rem;
    }

    .icc-stat__sub {
        font-size: 0.75rem;
    }

    .icc-contact .row {
        padding: 1.5rem;
    }

    .icc-contact__form-panel {
        padding: 0.75rem;
    }
}

/* Archivo y listado de proyectos */
.icc-projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.icc-projects-filter a {
    padding: 0.45rem 1.05rem;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #555555;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icc-projects-filter a:hover,
.icc-projects-filter a:focus {
    border-color: var(--icc-red);
    color: var(--icc-red);
}

.icc-projects-filter a.is-active {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-projects-archive__count {
    color: #6c6c74;
    font-size: 0.9rem;
}

.icc-projects-tax-header {
    padding: 4.5rem 0 1.5rem;
    background-color: #f5f5f5;
}

.icc-projects-tax-header + .icc-projects-archive {
    padding-top: 1.5rem !important;
}

.icc-projects-archive .project-img-wrapper {
    height: 360px;
}

@media (max-width: 767.98px) {
    .icc-projects-archive .project-img-wrapper {
        height: 320px;
    }
}

.icc-projects-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.icc-projects-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0.35rem 0.7rem;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #444444;
    font-size: 0.85rem;
    text-decoration: none;
}

.icc-projects-pagination .page-numbers:hover,
.icc-projects-pagination .page-numbers:focus {
    border-color: var(--icc-red);
    color: var(--icc-red);
}

.icc-projects-pagination .page-numbers.current {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

/* =========================================================
   Invierte desde el exterior — ajustes contra el diseño 1440
   ========================================================= */

.page-template-page-invierte .icc-page {
    background-color: #f5f5f5;
}

.page-template-page-invierte .icc-page > section {
    background-color: transparent;
}

/* Hero: bloque de texto a la derecha, alineado a la izquierda. */
.icc-page-hero__content--right {
    align-items: flex-start;
    width: 50%;
    margin-left: auto;
    padding: clamp(4rem, 7vw, 6rem) clamp(1.5rem, 3.7vw, 3.5rem) clamp(3rem, 6vw, 5rem) 0.5rem;
    text-align: left;
}

.icc-page-hero__content--right .icc-page-hero__kicker {
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
    font-size: clamp(1.2rem, 2.1vw, 1.9rem);
}

.icc-page-hero__content--right .icc-page-hero__title {
    font-size: clamp(3rem, 6.2vw, 5.6rem);
    line-height: 1.04;
}

.icc-page-hero__content--right .icc-page-hero__subtitle {
    max-width: 600px;
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.35;
    text-align: left;
}

/* Introducción */
.page-template-page-invierte .icc-exterior-intro {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: clamp(1.5rem, 2.5vw, 2.5rem);
}

.page-template-page-invierte .icc-intro {
    max-width: 884px;
    margin-inline: auto;
    color: #333333;
    font-size: clamp(1.08rem, 1.53vw, 1.375rem);
    line-height: 1.27;
}

/* Cifras */
.icc-stats--bar {
    padding: 0;
}

.icc-stats--bar .container {
    width: calc(100% - 40px);
    max-width: 1282px;
    padding: clamp(2rem, 3.5vw, 3.5rem) clamp(1.5rem, 5.3vw, 4.75rem);
    border-radius: 24px;
    background-color: var(--icc-red);
}

.icc-stats--bar .row {
    --bs-gutter-x: 0;
    align-items: flex-start;
}

.icc-stats--bar .col-lg-3 {
    padding-top: 1rem;
}

.icc-stats--bar .icc-stats__kicker {
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
}

.icc-stats--bar .icc-stats__title {
    font-size: clamp(2.4rem, 3.85vw, 3.6rem);
    font-weight: 400;
    line-height: 1.05;
}

.icc-stats--bar .icc-stat__value {
    font-size: clamp(3.4rem, 6.95vw, 6.4rem);
    font-weight: 400;
    line-height: 0.95;
}

.icc-stats--bar .icc-stat__label {
    margin-top: 0.5rem;
    font-size: clamp(1.1rem, 1.95vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.icc-stats--bar .icc-stat__sub {
    font-size: clamp(0.95rem, 1.32vw, 1.2rem);
    opacity: 1;
}

/* Proceso */
.page-template-page-invierte .icc-process {
    padding-top: clamp(2.5rem, 5vw, 4.5rem);
    padding-bottom: 0;
    background-color: transparent;
}

.icc-process__shell {
    width: calc(100% - 40px);
    max-width: 1404px;
    margin-inline: auto;
    padding-inline: 0;
}

.icc-process__card {
    display: flex;
    align-items: stretch;
    padding: 20px 16px 20px 60px;
    border-radius: 40px;
    background-color: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.icc-process__content {
    flex: 0 0 44.2%;
    min-width: 0;
    padding-top: 43px;
}

.icc-process__title {
    max-width: 390px;
    margin: 0;
    color: #333333;
    font-size: clamp(2.4rem, 3.9vw, 3.5rem);
    font-weight: 400;
    line-height: 1.05;
}

.icc-process__title-red {
    color: var(--icc-red);
}

.icc-process__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: clamp(2rem, 3.5vw, 3.5rem);
}

.icc-process__step {
    position: relative;
    display: block;
    padding-top: 49px;
}

.icc-process__step + .icc-process__step {
    margin-top: 22px;
}

.icc-process__number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 82px;
    font-size: 56px;
    font-weight: 400;
}

.icc-process__text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 104px;
    margin: 0;
    padding: 1.85rem 1.5rem;
    border: 0;
    border-radius: 999px;
    background-color: #f5f5f5;
    color: #333333;
    font-size: 1.75rem;
    line-height: 1.1;
    text-align: center;
}

.icc-process__media {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: clamp(2rem, 5vw, 67px);
    aspect-ratio: 680 / 1462;
    border-radius: 40px;
    overflow: hidden;
}

.icc-process__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    object-fit: cover;
}

/* Proyectos */
.page-template-page-invierte .icc-exterior-projects {
    padding-top: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: 3rem;
    background-color: transparent;
}

.icc-exterior-projects__head {
    margin-bottom: clamp(1.5rem, 2.2vw, 2rem);
}

.page-template-page-invierte .icc-exterior-projects__head .icc-section-title {
    font-size: clamp(2.75rem, 4.45vw, 4.4rem);
    line-height: 1.02;
}

.icc-exterior-projects__grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2rem clamp(2rem, 10.5vw, 152px);
}

.icc-exterior-projects__item {
    width: 100%;
    max-width: 490px;
}

.icc-exterior-projects__more {
    margin-top: clamp(2rem, 3.5vw, 2.5rem);
}

.icc-exterior-projects__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 2.05rem;
    font-size: 1.05rem;
}

.page-template-page-invierte .project-card {
    border-radius: 24px;
}

.page-template-page-invierte .project-img-wrapper {
    height: auto;
    aspect-ratio: 480 / 481;
    margin-bottom: 20px;
    border-radius: 22px;
}

.page-template-page-invierte .project-brand-row {
    min-height: 52px;
}

.page-template-page-invierte .project-location {
    font-size: 1.35rem;
    line-height: 1.2;
}

.page-template-page-invierte .project-logo {
    height: 35px;
}

.page-template-page-invierte .project-divider {
    margin: 16px 0;
}

.page-template-page-invierte .project-area-val {
    font-size: 1.9rem;
}

.page-template-page-invierte .project-area-lbl {
    font-size: 1.1rem;
    line-height: 1.2;
}

.page-template-page-invierte .project-rooms {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.05;
}

.page-template-page-invierte .project-price-lbl {
    font-size: 1.1rem;
    line-height: 1.2;
}

.page-template-page-invierte .project-price-val {
    font-size: 1.9rem;
    line-height: 1.05;
}

.page-template-page-invierte .project-card > .px-3 {
    padding-right: 23px !important;
    padding-bottom: 10px !important;
    padding-left: 23px !important;
}

.page-template-page-invierte .project-card .px-2 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.page-template-page-invierte .btn-circle-red {
    width: 67px;
    height: 47px;
    flex: 0 0 67px;
    border-radius: 23.5px;
}

/* Contacto */
.icc-contact--exterior {
    padding: 2rem 0;
    background-color: transparent;
}

.page-template-page-invierte .icc-contact--exterior .container {
    width: calc(100% - 40px);
    max-width: 1404px;
    padding-inline: 0;
}

.icc-contact--exterior .icc-contact__card {
    min-height: 565px;
    border-radius: 24px !important;
}

.icc-contact--exterior .icc-contact__overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0.5) 100%);
}

.icc-contact__exterior-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 565px;
    padding: 4rem clamp(2rem, 7.9vw, 7.2rem) 4rem clamp(2rem, 9vw, 8rem);
}

.icc-contact__exterior-copy {
    flex: 0 1 330px;
}

.icc-contact--exterior .icc-contact__title {
    max-width: 330px;
    font-size: clamp(2.2rem, 3.35vw, 3rem);
    line-height: 1.2;
}

.icc-contact__exterior-form {
    flex: 0 1 439px;
    width: 439px;
    max-width: 100%;
    margin-top: 1.5rem;
}

.icc-lead-form--exterior {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.icc-ext-field {
    width: 416px;
    max-width: 100%;
    margin-inline: auto;
}

.icc-ext-input {
    width: 100%;
    height: 73px;
    padding: 0 1.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 36px;
    background: transparent;
    color: #ffffff;
    font-size: 1.3rem;
    text-align: center;
}

.icc-ext-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.icc-ext-input:focus {
    border-color: #ffffff;
    outline: 0;
    box-shadow: none;
}

.icc-ext-row {
    display: flex;
    align-items: center;
    width: 100%;
    height: 72px;
    padding: 3px;
    border-radius: 36px;
    background-color: #ffffff;
}

.icc-ext-email {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 1.5rem 0 3.8rem;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 1.25rem;
}

.icc-ext-email::placeholder {
    color: #9a9a9a;
}

.icc-ext-email:focus {
    outline: 0;
    box-shadow: none;
}

.icc-ext-submit {
    flex: 0 0 193px;
    height: 66px;
    border: 0;
    border-radius: 33px;
    background-color: var(--icc-red);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.icc-ext-submit:hover {
    background-color: #7d1c10;
}

.icc-ext-legal {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    margin-top: 6px;
    padding-left: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
}

.icc-ext-legal input {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}

.icc-ext-legal input:checked {
    border-color: #ffffff;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23952413' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.icc-ext-legal span {
    display: block;
    max-width: 390px;
}

.icc-contact--exterior .icc-form-status {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.icc-contact--exterior .icc-form-status.is-error {
    color: #ffd0c8;
}

/* FAQ (compartido con PQRS: el diseño usa el mismo acordeón) */
.icc-faq .accordion-item {
    margin-bottom: 1.75rem;
    border: 0;
    border-radius: 52px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.icc-faq .accordion-button {
    padding: 2.2rem 5rem 2.2rem 4.4rem;
    background-color: #ffffff;
    color: var(--icc-red);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    box-shadow: none;
}

.icc-faq .accordion-button:not(.collapsed) {
    background-color: #ffffff;
    color: var(--icc-red);
    box-shadow: none;
}

.icc-faq .accordion-button:focus {
    box-shadow: none;
}

.icc-faq .accordion-button::after {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23952413' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15'/%3E%3Cpath d='M6 13l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    filter: none;
}

.icc-faq .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.icc-faq .accordion-body {
    padding: 0 5rem 3rem 4.4rem;
    color: #333333;
    font-size: 1.25rem;
    line-height: 1.5;
}

.icc-faq .accordion-body p:last-child {
    margin-bottom: 0;
}

.icc-faq-section .icc-section-title {
    font-size: clamp(2.4rem, 4.2vw, 3.9rem);
    line-height: 1.02;
}

.icc-faq-section .icc-section-kicker {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
}

.page-template-page-invierte .icc-faq-section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .icc-faq-section .row {
        --bs-gutter-x: 0;
    }

    .icc-faq-section .row > .col-lg-4 {
        flex: 0 0 29.6%;
        max-width: 29.6%;
        padding-right: 0;
    }

    .icc-faq-section .row > .col-lg-8 {
        flex: 0 0 70.4%;
        max-width: 70.4%;
        padding-left: 0;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .icc-page-hero__content--right {
        align-items: center;
        width: 100%;
        margin-left: 0;
        padding: 7.5rem 1.5rem 3rem;
        text-align: center;
    }

    .icc-page-hero__content--right .icc-page-hero__title {
        font-size: clamp(2.7rem, 9vw, 4.5rem);
    }

    .icc-page-hero__content--right .icc-page-hero__subtitle {
        margin-inline: auto;
        text-align: center;
    }

    .icc-stats--bar .container {
        padding: 2.5rem 1.5rem;
    }

    .icc-stats--bar .row {
        row-gap: 2rem;
    }

    .page-template-page-invierte .icc-process {
        padding-top: 4rem;
    }

    .icc-process__card {
        flex-direction: column;
        padding: 24px;
        border-radius: 28px;
    }

    .icc-process__content {
        flex: none;
        padding-top: 8px;
    }

    .icc-process__title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }

    .icc-process__steps {
        margin-top: 2.5rem;
    }

    .icc-process__text {
        font-size: 1.35rem;
    }

    .icc-process__media {
        flex: none;
        height: 420px;
        margin: 2rem 0 0;
        aspect-ratio: auto;
        border-radius: 24px;
    }

    .page-template-page-invierte .icc-exterior-projects {
        padding-top: 4rem;
    }

    .icc-contact--exterior {
        padding: 2.5rem 0;
    }

    .icc-contact__exterior-inner {
        flex-direction: column;
        justify-content: center;
        min-height: 0;
        padding: 3rem 1.5rem;
    }

    .icc-contact__exterior-copy {
        flex: none;
        max-width: 420px;
        text-align: center;
    }

    .icc-contact__exterior-form {
        flex: none;
        width: 100%;
        max-width: 439px;
        margin-inline: auto;
    }

    .icc-faq .accordion-button {
        padding: 1.6rem 3.5rem 1.6rem 2rem;
        font-size: 1.35rem;
    }

    .icc-faq .accordion-item {
        border-radius: 36px;
    }

    .icc-faq .accordion-body {
        padding: 0 2rem 1.75rem;
        font-size: 1.02rem;
    }
}

@media (max-width: 575.98px) {
    .icc-process__number {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    .icc-process__step {
        padding-top: 38px;
    }

    .icc-process__step + .icc-process__step {
        margin-top: 18px;
    }

    .icc-process__text {
        min-height: 84px;
        padding: 1.5rem 1rem;
        font-size: 1.05rem;
    }

    .icc-process__media {
        height: 360px;
    }

    .icc-exterior-projects__grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .icc-exterior-projects__item {
        max-width: 100%;
    }

    .icc-ext-input {
        height: 62px;
        font-size: 1rem;
    }

    .icc-ext-row {
        height: 62px;
    }

    .icc-ext-submit {
        flex-basis: 120px;
        height: 56px;
        font-size: 1rem;
    }

    .icc-ext-legal {
        font-size: 0.8rem;
    }

    .icc-faq .accordion-button {
        padding: 1.25rem 3rem 1.25rem 1.5rem;
        font-size: 1.15rem;
    }

    .icc-faq .accordion-item {
        border-radius: 28px;
        margin-bottom: 1rem;
    }

    .icc-faq .accordion-body {
        padding: 0 1.5rem 1.5rem;
        font-size: 0.98rem;
    }
}

@media (min-width: 992px) {
    .page-template-page-invierte .icc-page-hero__card {
        height: clamp(600px, 57.4vw, 826px);
    }
}

/* Ajustes de la rejilla de proyectos y tarjetas en tamaños intermedios */
.icc-exterior-projects__grid {
    flex-wrap: wrap;
}

.icc-exterior-projects__item {
    flex: 1 1 400px;
    max-width: 490px;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .icc-process__text {
        font-size: 1.45rem;
    }

    .icc-contact__exterior-inner {
        padding-right: 3rem;
        padding-left: 3rem;
    }

    .icc-contact__exterior-copy {
        flex-basis: 300px;
    }

    .icc-contact__exterior-form {
        flex-basis: 400px;
    }
}

@media (max-width: 767.98px) {
    .icc-exterior-projects__item {
        flex: 1 1 100%;
        max-width: 490px;
    }
}

@media (max-width: 575.98px) {
    .page-template-page-invierte .project-location {
        font-size: 1.1rem;
    }

    .page-template-page-invierte .project-area-val,
    .page-template-page-invierte .project-price-val {
        font-size: 1.5rem;
    }

    .page-template-page-invierte .project-rooms {
        font-size: 1.3rem;
    }

    .page-template-page-invierte .project-area-lbl,
    .page-template-page-invierte .project-price-lbl {
        font-size: 0.9rem;
    }
}

/* Ajustes finos en tablet/móvil */
@media (max-width: 1199.98px) {
    .icc-faq .accordion-button {
        font-size: 1.5rem;
        padding: 1.8rem 4rem 1.8rem 3rem;
    }

    .icc-faq .accordion-body {
        padding: 0 4rem 2rem 3rem;
    }
}

@media (max-width: 991.98px) {
    .page-template-page-invierte .icc-page-hero__image {
        object-position: 25% center;
    }
}

@media (max-width: 767.98px) {
    .icc-faq .accordion-button {
        font-size: 1.35rem;
        padding: 1.5rem 3.25rem 1.5rem 2rem;
    }

    .icc-faq .accordion-body {
        padding: 0 2rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .icc-faq .accordion-button {
        padding: 1.25rem 3rem 1.25rem 1.5rem;
        font-size: 1.15rem;
    }

    .icc-faq .accordion-body {
        padding: 0 1.5rem 1.5rem;
    }
}

.icc-faq .accordion-body p {
    margin-bottom: 1.5rem;
}

/* Precios multipmoneda */
.project-price-amount {
    display: none;
}

.project-price-amount[data-currency-price="cop"] {
    display: inline;
}

.icc-exterior-projects[data-currency="usd"] .project-price-amount[data-currency-price="cop"],
.icc-exterior-projects[data-currency="eur"] .project-price-amount[data-currency-price="cop"] {
    display: none;
}

.icc-exterior-projects[data-currency="usd"] .project-price-amount[data-currency-price="usd"],
.icc-exterior-projects[data-currency="eur"] .project-price-amount[data-currency-price="eur"] {
    display: inline;
}

/* Filtros de ciudad y tabs de moneda */
.icc-exterior-projects__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

.icc-exterior-projects__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem 1.5rem;
    padding-bottom: 0.25rem;
}

.icc-city-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.icc-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background-color: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 0.92rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.icc-city-chip:hover {
    border-color: var(--icc-red);
    color: var(--icc-red);
}

.icc-city-chip.is-active {
    border-color: var(--icc-red);
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-city-chip__count {
    font-size: 0.72rem;
    opacity: 0.65;
}

.icc-price-tabs {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    background-color: #ffffff;
}

.icc-price-tab {
    min-width: 56px;
    padding: 0.5rem 0.95rem;
    border: 0;
    border-radius: 999px;
    background-color: transparent;
    color: #333333;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.icc-price-tab:hover {
    color: var(--icc-red);
}

.icc-price-tab.is-active {
    background-color: var(--icc-red);
    color: #ffffff;
}

.icc-city-chip:focus-visible,
.icc-price-tab:focus-visible {
    outline: 2px solid var(--icc-red);
    outline-offset: 2px;
}

.icc-exterior-projects__trm {
    flex-basis: 100%;
    margin: 0;
    color: #8a8a8a;
    font-size: 0.72rem;
    line-height: 1.4;
    text-align: right;
}

.icc-exterior-projects__note {
    max-width: 920px;
    margin: 1rem auto 0;
    color: #8a8a8a;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}

.icc-exterior-projects__empty {
    width: 100%;
    margin: 0;
    color: #8a8a8a;
    text-align: center;
}

@media (max-width: 991.98px) {
    .icc-exterior-projects__head {
        align-items: flex-start;
    }

    .icc-exterior-projects__toolbar {
        justify-content: flex-start;
    }

    .icc-exterior-projects__trm {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .icc-city-filter,
    .icc-price-tabs {
        width: 100%;
    }

    .icc-price-tab {
        flex: 1;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .icc-exterior-projects__toolbar {
        justify-content: flex-start;
    }

    .icc-exterior-projects__trm {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .page-template-page-invierte .project-brand-row {
        gap: 0.75rem;
    }

    .page-template-page-invierte .project-logo {
        max-width: 40%;
        height: 28px;
    }
}

/* =========================================================
   Single de proyecto — layout del diseño 1440
   ========================================================= */

.icc-single__top {
    padding: 3.3rem 0 2rem;
}

.icc-single__location {
    display: block;
    width: 100%;
    margin: 0;
    padding: 1.1rem 1.75rem;
    border-radius: 24px;
    background-color: #111111;
    color: #ffffff;
    font-size: clamp(1.8rem, 3.3vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
}

.icc-single__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 368px;
    gap: 12px;
    align-items: start;
}

.icc-single__main-col {
    min-width: 0;
}

.icc-single__gallery-main {
    position: relative;
    height: 479px;
    border-radius: 24px;
    overflow: hidden;
    background-color: #ffffff;
}

.icc-single__hero-carousel,
.icc-single__hero-carousel .carousel-inner,
.icc-single__hero-carousel .carousel-item {
    height: 100%;
}

.icc-single__gallery-main img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icc-single__gallery-main:hover img {
    transform: none;
}

.icc-single__indicators {
    bottom: 18px;
    margin: 0;
}

.icc-single__indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.6;
}

.icc-single__indicators .active {
    opacity: 1;
}

.project-badge--hero {
    width: 230px;
    height: 130px;
    padding: 14px 0 0 31px;
    font-size: 18px;
    z-index: 3;
}

.icc-single__intro {
    max-width: 852px;
    padding-top: 3.5rem;
}

.icc-single__intro .icc-single__logo {
    display: block;
    width: auto;
    max-height: 38px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.icc-single__intro .icc-copy {
    max-width: 852px;
    font-size: 1.08rem;
    line-height: 1.65;
}

.icc-single__side-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.icc-single__specs-card {
    padding: 6px;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.icc-single__gallery-side {
    display: block;
    width: 100%;
    height: 296px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background-color: #111111;
}

.icc-single__gallery-side img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.icc-single__gallery-side:hover img {
    transform: none;
}

.icc-single__gallery-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: 93px;
    height: 93px;
    font-size: 2.6rem;
    font-weight: 300;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.icc-single__specs-card .icc-single__data {
    padding: 0.8rem 1rem 0.6rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.icc-single__specs-card .icc-data-row {
    padding: 0.55rem 0;
    gap: 0.75rem;
}

.icc-single__specs-card .icc-data-label {
    max-width: 130px;
    font-size: 0.82rem;
    line-height: 1.25;
}

.icc-single__specs-card .icc-data-value {
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
}

.icc-single__side-col .icc-advisor-card {
    display: flex;
    align-items: stretch;
    gap: 12px;
    min-height: 181px;
    padding: 6px;
    border-radius: 24px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.icc-single__side-col .icc-advisor-card__image {
    width: 120px;
    height: 169px;
    flex: 0 0 120px;
    margin: 0;
    border-radius: 18px;
    object-fit: cover;
    object-position: top center;
}

.icc-advisor-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.4rem 0.4rem 0.4rem 0;
}

.icc-single__side-col .icc-advisor-card__name {
    font-size: 1.2rem;
}

.icc-single__side-col .icc-advisor-card__role {
    font-size: 0.8rem;
}

.icc-single__side-col .icc-advisor-card .btn {
    align-self: flex-start;
    padding: 0.45rem 1.1rem;
    font-size: 0.95rem;
}

/* Tipologías */
.icc-single .icc-pill-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 289px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    font-size: 1.35rem;
    font-weight: 500;
}

.icc-single .icc-typology-nav {
    max-width: 289px;
}

.icc-single .icc-typology-nav .nav-link {
    width: 100%;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 0;
    border-bottom: 1px solid #e3e3e3;
    border-radius: 0;
    background-color: transparent;
    color: #9a9a9a;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
}

.icc-single .icc-typology-nav .nav-link:first-child {
    border-top: 1px solid #e3e3e3;
}

.icc-single .icc-typology-nav .nav-link.active {
    border-color: #e3e3e3;
    background-color: transparent;
    color: #333333;
    font-weight: 500;
}

.icc-single .icc-typology-pane {
    padding: 0;
}

.icc-single .icc-typology-plan {
    width: 100%;
    max-width: 668px;
    max-height: 288px;
    object-fit: contain;
}

.icc-single .icc-typology-value {
    font-size: 1.75rem;
    font-weight: 500;
}

.icc-single .icc-typology-label {
    font-size: 0.8rem;
}

.icc-single #tipologias {
    padding-top: 4.5rem !important;
    padding-bottom: 3rem !important;
}

.icc-single #tipologias .icc-typology-pane .row {
    margin-top: 3rem !important;
}

.icc-single #tipologias .icc-typology-pane .btn {
    min-width: 168px;
    margin-top: 2.5rem !important;
    padding: 0.9rem 1.4rem;
}

@media (min-width: 1200px) {
    .icc-single #tipologias > .container > .row {
        display: flex;
        align-items: flex-start;
        gap: 0;
        margin-right: 0;
        margin-left: 36px;
    }

    .icc-single #tipologias > .container > .row > .col-lg-3 {
        flex: 0 0 289px;
        max-width: 289px;
        padding: 0;
    }

    .icc-single #tipologias > .container > .row > .col-lg-9 {
        flex: 0 0 668px;
        max-width: 668px;
        margin-left: 224px;
        padding: 0;
    }

    .icc-single .icc-pill-title {
        margin-left: 36px;
    }
}

@media (max-width: 1199.98px) {
    .icc-single__hero {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .icc-single__gallery-main {
        height: 380px;
    }

    .icc-single__gallery-side {
        height: 250px;
    }

    .icc-single__intro {
        padding-top: 2.5rem;
    }

    .icc-single .icc-pill-title {
        width: 240px;
    }

    .icc-single .icc-typology-nav .nav-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .icc-single__top {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .icc-single__hero {
        grid-template-columns: 1fr;
    }

    .icc-single__gallery-main {
        height: 360px;
    }

    .icc-single__intro {
        padding-top: 2rem;
    }

    .icc-single__gallery-side {
        height: 300px;
    }

    .icc-single .icc-pill-title {
        width: 220px;
        height: 48px;
        font-size: 1.15rem;
    }

    .icc-single #tipologias > .container > .row {
        margin-left: 0;
    }

    .icc-single .icc-pill-title {
        margin-left: 0;
    }
}

@media (max-width: 767.98px) {
    .icc-single__location {
        padding: 0.9rem 1.2rem;
        border-radius: 18px;
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .icc-single__gallery-main {
        height: 260px;
        border-radius: 18px;
    }

    .icc-single__indicators {
        bottom: 10px;
    }

    .project-badge--hero {
        width: 170px;
        height: 96px;
        padding: 10px 0 0 23px;
        font-size: 13px;
    }

    .icc-single__intro {
        padding-top: 1.75rem;
    }

    .icc-single__intro .icc-single__logo {
        max-height: 32px;
        margin-bottom: 1rem;
    }

    .icc-single__gallery-side {
        height: 220px;
    }

    .icc-single__gallery-plus {
        width: 64px;
        height: 64px;
        font-size: 1.8rem;
    }

    .icc-single__specs-card .icc-data-value {
        font-size: 1.4rem;
    }

    .icc-single__side-col .icc-advisor-card__image {
        width: 100px;
        height: 145px;
        flex-basis: 100px;
    }

    .icc-single__side-col .icc-advisor-card {
        min-height: 157px;
    }

    .icc-single .icc-pill-title {
        width: 200px;
        height: 44px;
        font-size: 1.05rem;
    }

    .icc-single .icc-typology-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
        max-width: 100%;
    }

    .icc-single .icc-typology-nav .nav-link {
        flex: 1 1 30%;
        width: auto;
        border-top: 1px solid #e3e3e3;
        border-bottom: 0;
        font-size: 1rem;
    }

    .icc-single #tipologias .icc-typology-pane .row {
        margin-top: 2rem !important;
    }

    .icc-single #tipologias .icc-typology-pane .btn {
        margin-top: 1.5rem !important;
    }
}

/* Tarjetas de proyectos relacionados del single */
.icc-single__related-head {
    margin-bottom: 2rem;
}

.icc-single__related .icc-section-title {
    font-size: clamp(2.75rem, 4.45vw, 4.4rem);
    line-height: 1.02;
}

.icc-single__related .project-card {
    border-radius: 24px;
}

.icc-single__related .project-img-wrapper {
    height: auto;
    aspect-ratio: 480 / 481;
    margin-bottom: 20px;
    border-radius: 22px;
}

.icc-single__related .project-brand-row {
    min-height: 52px;
}

.icc-single__related .project-location {
    font-size: 1.35rem;
    line-height: 1.2;
}

.icc-single__related .project-logo {
    height: 35px;
}

.icc-single__related .project-divider {
    margin: 16px 0;
}

.icc-single__related .project-area-val {
    font-size: 1.9rem;
}

.icc-single__related .project-area-lbl {
    font-size: 1.1rem;
    line-height: 1.2;
}

.icc-single__related .project-rooms {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.05;
}

.icc-single__related .project-price-lbl {
    font-size: 1.1rem;
    line-height: 1.2;
}

.icc-single__related .project-price-val {
    font-size: 1.9rem;
    line-height: 1.05;
}

.icc-single__related .project-card > .px-3 {
    padding-right: 23px !important;
    padding-bottom: 10px !important;
    padding-left: 23px !important;
}

.icc-single__related .project-card .px-2 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.icc-single__related .btn-circle-red {
    width: 67px;
    height: 47px;
    flex: 0 0 67px;
    border-radius: 23.5px;
}

.banner-alto-prado .banner-card {
    max-width: 1170px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .icc-single > .container,
    .icc-single #tipologias > .container {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    .icc-single__related .project-location {
        font-size: 1.1rem;
    }

    .icc-single__related .project-area-val,
    .icc-single__related .project-price-val {
        font-size: 1.5rem;
    }

    .icc-single__related .project-rooms {
        font-size: 1.3rem;
    }

    .icc-single__related .project-area-lbl,
    .icc-single__related .project-price-lbl {
        font-size: 0.9rem;
    }

    .icc-single__related .project-logo {
        max-width: 40%;
        height: 28px;
    }

    .icc-single__related .project-brand-row {
        gap: 0.75rem;
    }
}

/* Single: fondo continuo y galería */
body.single-proyecto,
.single-proyecto .site-main,
.single-proyecto .icc-page {
    background-color: #f5f5f5;
}

.single-proyecto .icc-page > section,
.single-proyecto .blogs-section,
.single-proyecto .banner-alto-prado,
.single-proyecto #tipologias,
.single-proyecto .py-4,
.single-proyecto .py-5,
.single-proyecto .icc-single__related,
.single-proyecto .icc-contact--exterior {
    background-color: transparent;
}

.icc-single__hero-link {
    display: block;
    width: 100%;
    height: 100%;
}

.icc-single__arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.32);
    opacity: 1;
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
}

.icc-single__arrow:hover {
    background-color: rgba(0, 0, 0, 0.55);
}

.icc-single__arrow.carousel-control-prev {
    left: 16px;
}

.icc-single__arrow.carousel-control-next {
    right: 16px;
}

.icc-single__arrow .carousel-control-prev-icon,
.icc-single__arrow .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.icc-single__gallery-plus {
    width: auto;
    height: auto;
    border-radius: 0;
    background-color: transparent;
    color: #ffffff;
    font-size: 3.4rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: none;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

@media (max-width: 767.98px) {
    .icc-single__arrow {
        width: 40px;
        height: 40px;
    }

    .icc-single__arrow.carousel-control-prev {
        left: 8px;
    }

    .icc-single__arrow.carousel-control-next {
        right: 8px;
    }

    .icc-single__gallery-plus {
        font-size: 2.4rem;
    }
}

.icc-typology-specs {
    margin-top: 0.75rem;
    color: #8a8a8a;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .icc-single .icc-typology-nav {
        max-height: 560px;
        overflow-y: auto;
        padding-right: 0.25rem;
    }
}

/* Planos de tipologías: marco uniforme + Fancybox */
.icc-typology-plan-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 668px;
    height: auto;
    aspect-ratio: 2560 / 1792;
    margin: 0 auto;
    border-radius: 14px;
    background-color: #ffffff;
    overflow: hidden;
    cursor: zoom-in;
}

.icc-typology-plan {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .icc-typology-plan-link {
        height: auto;
    }
}

/* Pulido de tipologías */
.icc-single .icc-typology-nav .nav-link:first-child {
    border-top: 0;
}

.icc-single .icc-typology-nav .nav-link:last-child {
    border-bottom: 0;
}

.icc-single .icc-typology-nav .nav-link.active {
    font-weight: 600;
}

.icc-single .icc-typology-metric {
    text-align: left;
}

.icc-single .icc-typology-value {
    color: #333333;
}

.icc-single .icc-typology-metric.is-primary .icc-typology-value {
    color: var(--icc-red);
}

.icc-single .icc-typology-label {
    color: #9a9a9a;
}

.icc-single .icc-typology-metric.is-primary .icc-typology-label {
    color: #333333;
    font-weight: 600;
}

@media (min-width: 768px) {
    .icc-single .icc-typology-metric {
        border-right: 1px solid #e3e3e3;
    }

    .icc-single .icc-typology-metric:last-child {
        border-right: 0;
    }
}

/* Pulido del legal del single */
.single-proyecto .icc-legal-card {
    border-top: 0;
    padding-top: 0;
    text-align: center;
    align-items: center;
}

.single-proyecto .icc-legal-card__excerpt {
    color: #555555;
}

.single-proyecto .icc-legal-card__more {
    color: var(--icc-red);
    font-size: 0.85rem;
    letter-spacing: 0;
    text-transform: none;
}

/* Fondo continuo en archivos y categorías de proyectos */
body.taxonomy-categoria_proyecto,
body.page-template-page-todos-los-proyectos,
body.post-type-archive-proyecto,
.taxonomy-categoria_proyecto .icc-page,
.page-template-page-todos-los-proyectos .icc-page,
.post-type-archive-proyecto .icc-page {
    background-color: #f5f5f5;
}

.taxonomy-categoria_proyecto .icc-page > section,
.page-template-page-todos-los-proyectos .icc-page > section,
.post-type-archive-proyecto .icc-page > section,
.taxonomy-categoria_proyecto .icc-projects-tax-header,
.taxonomy-categoria_proyecto .icc-projects-archive,
.page-template-page-todos-los-proyectos .icc-projects-archive,
.post-type-archive-proyecto .icc-projects-archive {
    background-color: transparent;
}

/* Último ítem del nav de tipologías sin línea */
.icc-single .icc-typology-nav .nav-link:last-child {
    border-bottom: 0 !important;
}

/* Fondo de la página de categoría/archivo de proyectos */
body.archive,
body.tax-categoria_proyecto,
body.archive .icc-page,
body.tax-categoria_proyecto .icc-page {
    background-color: #f5f5f5;
}

body.archive .icc-page > section,
body.archive .icc-projects-tax-header,
body.archive .icc-projects-archive,
body.tax-categoria_proyecto .icc-page > section,
body.tax-categoria_proyecto .icc-projects-tax-header,
body.tax-categoria_proyecto .icc-projects-archive {
    background-color: transparent;
}

/* ===============================================================
   404
   =============================================================== */
.icc-404 {
    padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background-color: #f5f5f5;
}

.icc-404__card {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    min-height: 520px;
    overflow: hidden;
    border-radius: 40px;
    background-color: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.icc-404__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(145deg, #7e1b0e 0%, #a72a16 48%, #4a0f07 100%);
}

.icc-404__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

.icc-404__code {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.16);
    font-size: clamp(7rem, 16vw, 14rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.08em;
}

.icc-404__caption {
    position: absolute;
    bottom: clamp(1.5rem, 4vw, 3rem);
    left: clamp(1.5rem, 4vw, 3rem);
    z-index: 2;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.72;
}

.icc-404__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.icc-404__kicker {
    margin-bottom: 1rem;
    color: var(--icc-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.icc-404__title {
    margin: 0 0 1.25rem;
    color: var(--icc-dark);
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.icc-404__text {
    max-width: 480px;
    margin: 0 0 1.75rem;
    color: var(--icc-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.icc-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.icc-404__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-outline-icc {
    border: 2px solid var(--icc-red);
    background-color: transparent;
    color: var(--icc-red) !important;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-outline-icc:hover,
.btn-outline-icc:focus {
    background-color: var(--icc-red);
    color: #ffffff !important;
}

.icc-404__search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    max-width: 520px;
    padding: 0.35rem 0.35rem 0.35rem 1.15rem;
    border: 1px solid #dedee3;
    border-radius: 999px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.icc-404__search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0;
    border: 0;
    outline: 0;
    background-color: transparent;
    color: var(--icc-dark);
    font-size: 0.98rem;
}

.icc-404__search input::placeholder {
    color: #9a9aa2;
}

.icc-404__search .btn {
    flex: 0 0 auto;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 700;
}

.icc-404__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #ececf0;
}

.icc-404__links a {
    color: var(--icc-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.icc-404__links a:hover,
.icc-404__links a:focus {
    color: var(--icc-red);
}

@media (max-width: 991.98px) {
    .icc-404__card {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 30px;
    }

    .icc-404__visual {
        min-height: 260px;
    }

    .icc-404__code {
        font-size: clamp(6rem, 28vw, 10rem);
    }

    .icc-404__content {
        padding: clamp(1.75rem, 6vw, 3rem);
    }
}

@media (max-width: 575.98px) {
    .icc-404 {
        padding: 1rem 0 2.5rem;
    }

    .icc-404__visual {
        min-height: 210px;
    }

    .icc-404__title {
        font-size: clamp(2rem, 11vw, 2.8rem);
    }

    .icc-404__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .icc-404__actions .btn {
        width: 100%;
    }

    .icc-404__search {
        flex-wrap: wrap;
        border-radius: 24px;
        padding: 0.5rem;
    }

    .icc-404__search input[type="search"] {
        flex-basis: 100%;
        padding: 0.6rem 0.75rem;
    }

    .icc-404__search .btn {
        width: 100%;
    }
}
