/*!
Theme Name: icc
Description: Tema clásico para IC Constructora.
Version: 1.0.0
Text Domain: icc
*/

/* ===============================================================
   1. Tipografía — Futura PT (archivos locales)
   =============================================================== */
@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicLight.ttf?v=2') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicBook.ttf?v=2') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicMedium.ttf?v=2') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicDemi.ttf?v=2') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicBold.ttf?v=2') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicExtraBold.ttf?v=2') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'futura-pt';
    src: url('assets/fonts/futura-pt/FuturaCyrillicHeavy.ttf?v=2') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===============================================================
   2. Tokens y base
   =============================================================== */
:root {
    --icc-red: #952413;
    --icc-red-dark: #6d0000;
    --icc-dark: #1b1b1f;
    --icc-muted: #6c6c74;
    --icc-bg: #f5f5f5;
    --icc-bg-alt: #f8f9fa;
    --icc-line: #e2e2e6;
    --icc-gold: #cda873;
    --icc-gold-soft: #d8c39b;
    --icc-radius-card: 1.25rem;
    --icc-shadow-card: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.07);
    /* Altura de la barra de administración de WordPress (0 si no hay sesión). */
    --icc-admin-offset: 0px;
}

body.admin-bar {
    --icc-admin-offset: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --icc-admin-offset: 46px;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    /* Compensa la cabecera fija al saltar a una sección. */
    scroll-padding-top: 90px;
}

/* Solo en dispositivos con puntero fino (mouse/trackpad); en táctil no reserva gutter. */
@media (pointer: fine) {
    html {
        scrollbar-gutter: stable;
    }
}

/* Con la barra de administración visible la cabecera baja 32px. */
html:has(body.admin-bar) {
    scroll-padding-top: 122px;
}

@media screen and (max-width: 782px) {
    html:has(body.admin-bar) {
        scroll-padding-top: 136px;
    }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'futura-pt', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    color: var(--icc-dark);
    background-color: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enlace de salto accesible: oculto hasta recibir foco. */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    z-index: 10000;
    padding: 8px 14px;
    background-color: #ffffff;
    color: var(--icc-red);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.skip-link:focus {
    top: 8px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'futura-pt', 'Helvetica Neue', Arial, sans-serif;
}

.text-icc-red {
    color: var(--icc-red) !important;
}

/* Fondo de imagen reutilizable */
.no-tile {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}

/* ===============================================================
   3. Botones
   =============================================================== */
.btn-icc {
    display: inline-block;
    background-color: var(--icc-red);
    border: 2px solid transparent;
    color: #ffffff !important;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-icc:hover,
.btn-icc:focus {
    background-color: var(--icc-red-dark);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Flecha diagonal con movimiento al hacer hover */
.btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
    font-weight: bold;
}

.btn-icc:hover .btn-arrow,
.btn-icc:focus .btn-arrow,
.btn-hero:hover .btn-arrow,
.btn-hero:focus .btn-arrow {
    transform: translate(3px, -3px);
}

.btn-hero {
    background-color: var(--icc-red);
    color: #ffffff !important;
}

.btn-hero:hover {
    background-color: var(--icc-red-dark);
    color: #ffffff !important;
}

/* Botón "Capta IC": transparente por defecto, rojo en hover */
.btn-capta {
    background-color: transparent;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

/* CTA destacada del menú (Capta IC), como en el diseño. */
.nav-center-links .btn-capta.is-cta {
    padding: 0.6rem 1.5rem !important;
    background-color: var(--icc-red) !important;
    color: #ffffff !important;
}

.nav-center-links .btn-capta.is-cta:hover,
.nav-center-links .btn-capta.is-cta:focus {
    background-color: #7d1c10 !important;
    color: #ffffff !important;
}

.btn-circle-red {
    width: 64px;
    height: 45px;
    flex: 0 0 64px;
    border-radius: 22px;
    background-color: var(--icc-red);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-circle-red:hover {
    background-color: #600000;
    color: #ffffff;
}

.btn-circle-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    margin-left: 15px;
    border-radius: 22px;
    background-color: #ffffff;
    color: #333333;
    text-decoration: none;
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.btn-circle-white:hover {
    transform: scale(1.1);
    color: #8B0000;
}

/* ===============================================================
   3.1 Cabecera fija y menú tipo panel de cristal
   =============================================================== */
.site-header {
    position: fixed;
    top: var(--icc-admin-offset);
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Estado scrolled: glassmorfismo más blanco y cabecera compacta */
.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);
}

/* Estado menú abierto: el cristal lo aporta el propio panel del menú. */
.site-header.menu-active {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.site-header .navbar-brand {
    position: relative;
    z-index: 1002;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.site-header .navbar-brand img {
    width: auto;
    height: 50px;
    transition: height 0.3s ease;
}

.scrolled .navbar-brand img {
    height: 42px;
}

/* Intercambio de logos */
.logo-white {
    display: block;
    filter: brightness(0) invert(1);
}

.logo-red {
    display: none;
}

.scrolled .logo-white,
.menu-active .logo-white {
    display: none;
}

.scrolled .logo-red,
.menu-active .logo-red {
    display: block;
}

/* Enlaces centrales: se mantienen visibles al hacer scroll. */
.nav-center-links {
    margin: 0;
    padding: 0;
    list-style: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-center-links li {
    margin: 0;
}

.nav-center-links .btn-capta {
    white-space: nowrap;
}

.menu-active .nav-center-links {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

/* Sobre el fondo blanco del sticky los enlaces pasan a rojo. */
.scrolled .nav-center-links .btn-capta {
    color: var(--icc-red);
}

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

/* Botón hamburguesa animado */
.btn-menu-toggle {
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.scrolled .btn-menu-toggle {
    background-color: #f4f4f4;
    box-shadow: none;
}

.btn-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #000000;
    transition: all 0.3s ease;
}

.menu-active .btn-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-active .btn-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-active .btn-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Menú tipo panel de cristal con onda expansiva */
.fullscreen-menu {
    position: fixed;
    top: var(--icc-admin-offset);
    left: 0;
    z-index: 999;
    display: flex;
    align-items: flex-start;
    width: 100vw;
    /* Ocupa el 85% del alto de la pantalla, nunca toda. */
    height: 85vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-radius: 0 0 40px 40px;
    clip-path: circle(0px at calc(100% - 45px) 55px);
    visibility: hidden;
    transition: clip-path 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0s linear 0.7s;
}

.fullscreen-menu.is-open {
    clip-path: circle(150% at calc(100% - 45px) 55px);
    visibility: visible;
    transition: clip-path 0.7s cubic-bezier(0.645, 0.045, 0.355, 1), visibility 0s;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    body.menu-open {
        position: fixed;
        inset: 0;
        width: 100%;
        overflow: hidden;
    }
}

/* Diseño interno del menú */
.menu-grid {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: clamp(76px, 11vh, 100px) 20px 32px;
}

.menu-label {
    display: block;
    margin-bottom: 1rem;
    color: #666666;
    font-size: 0.85rem;
}

.main-nav-list,
.sec-nav-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-nav-list li {
    margin-bottom: 0.8rem;
}

.main-nav-list a {
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    font-weight: 300;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav-list a.active,
.main-nav-list a:hover {
    color: #8B0000;
}

.sec-nav-list li {
    margin-bottom: 0.6rem;
}

.sec-nav-list a {
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(1.05rem, 1.7vw, 1.5rem);
    font-weight: 300;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sec-nav-list a:hover {
    color: #8B0000;
}

/* Imágenes del menú */
.menu-images-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.menu-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 70%;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-img-2 {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    height: 50%;
    border: 5px solid #ffffff;
    border-radius: 30px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #111111;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #8B0000;
}

/* En móvil el menú ocupa toda la pantalla y entra con un fade simple. */
@media (max-width: 991.98px) {
    /* El row g-5 usa 24px de gutter; el container necesita 24px para no desbordar. */
    .section-soluciones > .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .fullscreen-menu {
        height: calc(100vh - var(--icc-admin-offset));
        height: calc(100dvh - var(--icc-admin-offset));
        max-height: calc(100dvh - var(--icc-admin-offset));
        border-radius: 0;
        clip-path: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        background-color: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        -webkit-overflow-scrolling: touch;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
    }

    .fullscreen-menu.is-open {
        clip-path: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
    }

    .menu-grid {
        padding: calc(92px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom));
    }

    .main-nav-list li {
        margin-bottom: 0.85rem;
    }

    .sec-nav-list li {
        margin-bottom: 0.65rem;
    }

    .menu-grid .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .social-icons {
        margin-top: 1.25rem;
    }
}

/* Pantallas muy estrechas: el menú completo cabe sin scroll. */
@media (max-width: 360px) {
    .menu-grid {
        padding: calc(82px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    }

    .main-nav-list a {
        font-size: 1.45rem;
    }

    .main-nav-list li {
        margin-bottom: 0.55rem;
    }

    .sec-nav-list a {
        font-size: 0.98rem;
    }

    .sec-nav-list li {
        margin-bottom: 0.4rem;
    }

    .menu-grid .mb-5 {
        margin-bottom: 1rem !important;
    }

    .social-icons {
        margin-top: 1rem;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }
}

/* Portátiles de 992 a 1199 px: enlaces centrales más compactos. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .nav-center-links {
        gap: 0.4rem !important;
    }

    .nav-center-links .btn-capta {
        padding-left: 0.7rem !important;
        padding-right: 0.7rem !important;
        font-size: 0.8rem;
    }

    .nosotros-content .stat-number {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    }

    .nosotros-content .stat-label-top {
        font-size: 1.3rem;
    }

    .nosotros-content .stat-label-bottom {
        font-size: 1rem;
    }
}

/* Portátiles con poca altura: menos tipografía y menos aire para evitar scroll. */
@media (min-width: 992px) and (max-height: 850px) {    .menu-grid {
        padding: 72px 20px 24px;
    }

    .main-nav-list a {
        font-size: clamp(1.5rem, 3vh, 2.15rem);
    }

    .main-nav-list li {
        margin-bottom: 0.55rem;
    }

    .sec-nav-list a {
        font-size: clamp(1rem, 1.9vh, 1.3rem);
    }

    .sec-nav-list li {
        margin-bottom: 0.4rem;
    }

    .menu-label {
        margin-bottom: 0.65rem;
        font-size: 0.78rem;
    }

    .menu-images-wrapper {
        min-height: 0;
        height: 52vh;
    }

    .menu-img-1 {
        width: 58%;
        height: 68%;
    }

    .menu-img-2 {
        width: 48%;
        height: 48%;
    }

    .menu-grid .mb-5 {
        margin-bottom: 1.25rem !important;
    }

    .social-icons {
        margin-top: 1rem;
    }
}

@media (min-width: 992px) and (max-height: 650px) {
    .menu-grid {
        padding: 56px 20px 12px;
    }

    .main-nav-list a {
        font-size: clamp(1.3rem, 2.8vh, 1.7rem);
    }

    .sec-nav-list a {
        font-size: clamp(0.9rem, 1.7vh, 1.1rem);
    }

    .menu-images-wrapper {
        height: 44vh;
    }
}

/* ===============================================================
   4. Hero
   =============================================================== */
.hero-wrapper {
    padding: 20px;
    background-color: var(--icc-bg);
}

.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: 40px;
    height: calc(100vh - 40px);
    height: calc(100svh - 40px);
    min-height: 500px;
    max-height: 900px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Slider de imágenes del hero */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    touch-action: pan-y pinch-zoom;
}

.hero-main {
    touch-action: pan-y pinch-zoom;
}

.hero-slide-link,
.hero-slide-img {
    touch-action: pan-y pinch-zoom;
    -webkit-user-drag: none;
    user-select: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}

.hero-slide.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity 1.1s ease, visibility 0s;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slider-controls {
    position: absolute;
    bottom: 22px;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.hero-slider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.hero-slider-btn:hover,
.hero-slider-btn:focus-visible {
    background-color: #ffffff;
    color: var(--icc-red);
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-slider-dot.is-active {
    width: 24px;
    background-color: #ffffff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

/* Contenido central */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-title-main {
    display: block;
    font-size: clamp(3.5rem, 10vw, 8rem);
    line-height: 1;
    font-weight: 700;
}

.hero-kicker {
    color: #ffffff;
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
    font-weight: 400;
    white-space: nowrap;
}

.hero-kicker-strong {
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 700;
}

/* Líneas decorativas: 1px, opacidad 0.4, desde los extremos */
.hero-line-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-line-container.is-top {
    margin-bottom: 0.75rem;
}

.hero-line-container.is-bottom {
    margin-top: 0.75rem;
}

.hero-line {
    flex: 1 1 auto;
    height: 3px;
    background-color: #ffffff;
}

.hero-line.left {
    margin-right: 2rem;
}

.hero-line.right {
    margin-left: 2rem;
}

.hero-line-spacer {
    flex: 2 1 0;
    max-width: 50%;
}

/* ===============================================================
   5. Animaciones de entrada (CSS puro, sin GSAP)
   =============================================================== */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-anim-left {
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
}

.hero-anim-right {
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
}

.hero-anim-up {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    .hero-anim-left,
    .hero-anim-right,
    .hero-anim-up {
        opacity: 1;
        animation: none;
    }
}

/* ===============================================================
   6. Banner Alto Prado
   =============================================================== */
.banner-alto-prado {
    padding: 1.25rem 0 0.5rem;
    background-color: var(--icc-bg);
}

.banner-card {
    border-radius: 20px;
    min-height: 260px;
    overflow: hidden;
}

.banner-card img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* ===============================================================
   7. Secciones y títulos
   =============================================================== */
.section {
    padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.section-proyectos {
    padding-top: 1.5rem;
    background-color: var(--icc-bg);
}

.eyebrow {
    display: block;
    color: var(--icc-muted);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.section-title {
    color: var(--icc-dark);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 0;
}

.section-title.accent {
    color: var(--icc-red);
}

.section-title--xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.section-title--lg {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-title--md {
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
}

.section-lead {
    color: var(--icc-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- ENCABEZADO SECCIÓN PROYECTOS --- */
.proyectos-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.proyectos-overtitle {
    display: block;
    margin-bottom: 0.2rem;
    color: #adabac;
    font-size: 1.5rem;
    font-weight: 400;
}

.proyectos-title {
    margin-bottom: 0;
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
}

.proyectos-title .highlight-red {
    color: var(--icc-red);
    font-family: 'futura-pt', sans-serif;
}

.proyectos-description {
    max-width: 90%;
    margin-bottom: 0;
    color: #333333;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.6;
}

/* ===============================================================
   8. Tarjetas de proyectos
   =============================================================== */
.card-project {
    height: 100%;
    border: 0;
    border-radius: var(--icc-radius-card);
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: var(--icc-shadow-card);
}

.card-project-media {
    position: relative;
}

.card-project-img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.badge-status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    background-color: #f4c430;
    color: #2b2b2b;
    font-size: 0.72rem;
    font-weight: 600;
}

.project-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-location {
    color: var(--icc-muted);
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
}

.project-name {
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Marca/logotipo pequeño a la derecha del título */
.project-brand {
    flex: 0 0 auto;
    max-width: 45%;
    color: var(--icc-red);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
}

.project-brand-img {
    flex: 0 0 auto;
    height: 26px;
    width: auto;
    object-fit: contain;
}

.project-area {
    color: var(--icc-red);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.project-label {
    display: block;
    color: var(--icc-muted);
    font-size: 0.7rem;
}

.project-feature {
    margin-bottom: 0.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--icc-dark);
}

.project-price {
    color: var(--icc-red);
    font-size: 1.15rem;
    font-weight: 700;
}

/* --- TARJETAS DE PROYECTOS (formato vertical) --- */
.project-card {
    height: 100%;
    padding: 8px;
    border-radius: 35px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Enmarcado de la imagen */
.project-img-wrapper {
    position: relative;
    height: 450px;
    margin-bottom: 20px;
    border-radius: 30px;
    overflow: hidden;
    container-type: inline-size;
}

.project-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badge tipo cinta, calcado del arte original de la landing.
   Las medidas están expresadas en cqw para que la cinta escale con la
   tarjeta manteniendo la misma proporción que la imagen de referencia
   (223 x 129 px sobre una imagen de 481 px de ancho). */
.project-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
    width: 46.36cqw;
    height: 26.82cqw;
    padding: 2.99cqw 6cqw 0 6.88cqw;
    color: #ffffff;
    font-size: 3.74cqw;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
    background-color: #ff9700;
    -webkit-mask-image: url('assets/img/projects/badge-shape.svg?v=2');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: 0 0;
    -webkit-mask-size: 100% 100%;
    mask-image: url('assets/img/projects/badge-shape.svg?v=2');
    mask-repeat: no-repeat;
    mask-position: 0 0;
    mask-size: 100% 100%;
}

.badge-orange { background-color: #ff9700; }
.badge-green { background-color: #00dc51; }
.badge-red { background-color: #ff3300; }

/* Tipografía y estructura de texto */
.project-location {
    margin-bottom: 0;
    color: #333333;
    font-weight: 500;
}

/* Fila de ubicación + logo: reserva la altura de los lockups cuadrados
   para que todas las tarjetas conserven el mismo ritmo vertical. */
.project-brand-row {
    min-height: 88px;
}

.project-logo {
    height: 48px;
    width: auto;
    max-width: 45%;
    flex: 0 0 auto;
    object-fit: contain;
}

/* Los logos de La Hacienda y Praia son lockups cuadrados: necesitan más
   altura para que el nombre del proyecto se lea en la tarjeta. */
.project-logo--stacked {
    height: 88px;
}

.project-logo-text {
    color: var(--icc-red);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.1;
    text-align: right;
    text-transform: uppercase;
}

.project-divider {
    margin: 15px 0;
    border-top: 1px solid #eeeeee;
}

/* Área y habitaciones */
.project-area-val {
    margin-bottom: 0;
    color: var(--icc-red);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.project-area-lbl {
    margin-bottom: 0;
    color: #adabac;
    font-size: 0.75rem;
}

.project-rooms {
    margin-bottom: 0;
    color: var(--icc-red);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

.project-rooms span {
    display: block;
}

/* Precio */
.project-price-lbl {
    margin-bottom: 2px;
    color: #adabac;
    font-size: 0.8rem;
}

.project-price-val {
    margin-bottom: 0;
    color: var(--icc-red);
    font-size: 1.7rem;
    font-weight: 500;
}

/* Nota legal de precios de referencia al cierre de la sección. */
.projects-legal-note {
    max-width: 900px;
    margin: 1.75rem auto 0;
    color: #8a8a8a;
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: center;
}

/* ===============================================================
   9. Nosotros + estadísticas
   =============================================================== */
.nosotros-wrapper {
    padding: 0 20px;
    margin-bottom: 3rem;
}

.nosotros-container {
    position: relative;
    min-height: 500px;
    border-radius: 30px;
    overflow: hidden;
    background-image: url('assets/img/home/07.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.nosotros-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.nosotros-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}

/* Encabezado Nosotros */
.nosotros-overtitle {
    margin-bottom: 0.5rem;
    color: #adabac;
    font-size: 1.6rem;
    font-weight: 500;
}

.nosotros-title {
    margin-bottom: 0;
    color: #ffffff;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.nosotros-description {
    max-width: 400px;
    margin-left: auto;
    margin-bottom: 0;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: right;
}

/* Estadísticas */
.stat-number {
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 500;
    line-height: 1;
}

.stat-label-top {
    margin-bottom: 0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stat-label-bottom {
    margin-bottom: 0;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 400;
}

/* ===============================================================
   10. Proyectos construidos
   =============================================================== */
.section-construidos {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background-color: #f5f5f5;
}

.proyectos-construidos-header {
    margin-bottom: 2rem;
}

.proyectos-construidos-overtitle {
    display: block;
    margin-bottom: 0.2rem;
    color: #999999;
    font-size: 1.1rem;
    font-weight: 300;
}

.proyectos-construidos-title {
    margin-bottom: 0;
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1;
}

.proyectos-construidos-title .highlight-red {
    color: #8B0000;
}

/* Tarjetas verticales con imagen enmarcada */
.card-construido-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-construido-link:hover,
.card-construido-link:focus {
    color: inherit;
    text-decoration: none;
}

.card-construido-link:focus-visible {
    outline: 2px solid var(--icc-red);
    outline-offset: 4px;
    border-radius: 28px;
}

.card-construido {
    height: 100%;
    padding: 8px;
    border-radius: 25px;
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-construido:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-construido-img-wrapper {
    position: relative;
    height: 450px;
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
}

.card-construido-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-construido-info {
    padding: 2px 10px 14px;
    text-align: center;
}

.card-construido-name {
    margin-bottom: 0;
    color: var(--icc-red);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.15;
}

/* ===============================================================
   11. Soluciones
   =============================================================== */
.section-soluciones {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background-color: #f4f4f4;
}

.soluciones-overtitle {
    display: block;
    margin-bottom: 0.2rem;
    color: #adabac;
    font-size: 1.5rem;
    font-weight: 500;
}

.soluciones-title {
    margin-bottom: 1.5rem;
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
}

.soluciones-title .highlight-red {
    color: #8B0000;
}

.soluciones-description {
    color: #333333;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Tarjetas de Soluciones */
.card-solucion {
    position: relative;
    display: block;
    height: 280px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.card-solucion:hover {
    transform: translateY(-5px);
}

.card-solucion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.solucion-bg-1 { background-image: url('assets/img/home/09.png'); }
.solucion-bg-2 { background-image: url('assets/img/home/10.png'); }
.solucion-bg-3 { background-image: url('assets/img/home/11.png'); }
.solucion-bg-4 { background-image: url('assets/img/home/12.png'); }

/* Overlay que se oscurece hacia la derecha */
.card-solucion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Contenido: texto y botón */
.card-solucion-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    padding: 30px;
}

.card-solucion-title {
    max-width: 70%;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.2;
}

.btn-solucion-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 40px;
    border-radius: 22px;
    background-color: #952313;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.card-solucion:hover .btn-solucion-arrow {
    background-color: #600000;
}

/* ===============================================================
   12. Blogs
   =============================================================== */
.blogs-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background-color: #f5f5f5;
}

.blogs-overtitle {
    display: block;
    margin-bottom: 0.2rem;
    color: #adabac;
    font-size: 1. 5rem;
    font-weight: 500;
}

.blogs-title {
    color: #333333;
    font-family: 'futura-pt', sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
}

.blogs-title .highlight-red {
    color: #8B0000;
}

/* Acordeón dinámico */
.accordion-item {
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
}

.accordion-icon {
    color: #8B0000;
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Estado: cerrado (píldora) */
.accordion-item.closed {
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.accordion-item.closed:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.accordion-item.closed .accordion-body {
    display: none;
}

.accordion-item.closed .accordion-title {
    margin-bottom: 0;
    color: #888888;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Estado: abierto (tarjeta grande) */
.accordion-item.open {
    padding: 30px 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.accordion-item.open .accordion-body {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.accordion-item.open .accordion-title {
    margin-bottom: 0;
    color: #333333;
    font-size: 1.5rem;
    font-weight: 400;
}

.accordion-text {
    max-width: 90%;
    margin-top: 15px;
    margin-bottom: 20px;
    color: #888888;
    font-size: 1rem;
    line-height: 1.6;
}

.accordion-link-read {
    color: #8B0000;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.accordion-link-read:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================================================
   13. Pre-footer y footer
   =============================================================== */
.pre-footer {
    padding: 2rem 0;
    background-color: #f5f5f5;
    border-top: 1px solid #e8e8e8;
}

.pre-footer-link {
    margin: 0 1.5rem;
    color: #333333;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
}

.pre-footer-link:hover {
    color: var(--icc-red);
}

.pre-footer-link.highlight {
    color: var(--icc-red);
    font-weight: 600;
}

.site-footer {
    padding-top: 4rem;
    padding-bottom: 2rem;
    background-color: #1c262d;
    color: #ffffff;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-title {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-text {
    margin-bottom: 1.5rem;
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact-list {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 0.85rem;
}

.footer-contact-icon {
    flex-shrink: 0;
    margin-top: 3px;
    margin-right: 10px;
    color: #ffffff;
}

.footer-contact-list a {
    color: #e0e0e0;
    overflow-wrap: anywhere;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.8rem;
    text-align: center;
}

/* ===============================================================
   14. Animaciones scroll reveal e interacciones
   =============================================================== */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Direcciones de entrada */
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.95); }

/* Retrasos para efecto cascada (stagger) en tarjetas */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Interacciones hover mejoradas */
.project-card,
.card-construido,
.card-solucion {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover,
.card-construido:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-solucion:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-solucion .card-solucion-bg {
    transition: transform 0.5s ease;
}

.card-solucion:hover .card-solucion-bg {
    transform: scale(1.05);
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-up,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .project-card,
    .card-construido,
    .card-solucion,
    .card-solucion .card-solucion-bg {
        transition: none;
    }
}

/* ===============================================================
   15. Responsive
   =============================================================== */
@media (max-width: 991.98px) {
    .hero-main {
        height: auto;
        min-height: 85vh;
        padding: 7rem 0 4rem;
    }

    .hero-content {
        min-height: 70vh;
    }
}

@media (max-width: 767.98px) {
    .hero-wrapper {
        padding: 12px;
    }

    .hero-main {
        border-radius: 28px;
        height: auto;
        min-height: 80vh;
    }

    .hero-line,
    .hero-line-spacer {
        display: none;
    }

    .hero-kicker {
        white-space: normal;
        font-size: 1.05rem;
    }

    .hero-kicker-strong {
        font-size: 1.25rem;
    }

    .hero-title-main {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .section {
        padding: 3rem 0;
    }

    .banner-prado {
        letter-spacing: 0.18em;
    }

    .banner-soon {
        letter-spacing: 0.35em;
    }

    .project-brand {
        max-width: 50%;
        font-size: 0.6rem;
    }

    .card-project-img,
    .card-built-img {
        height: 210px;
    }

    .solution-card {
        height: 200px;
    }
}

/* Hero del home: solo imagen, con enlace opcional y botón opcional */
.hero-slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.hero-cta {
    position: absolute;
    bottom: 70px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    .hero-cta {
        bottom: 58px;
    }

    .hero-slider-controls {
        bottom: 14px;
        gap: 12px;
        padding: 8px 12px;
    }

    .hero-slider-btn {
        width: 42px;
        height: 42px;
    }

    .hero-slider-dot {
        width: 9px;
        height: 9px;
    }

    .hero-slider-dot.is-active {
        width: 26px;
    }

    .hero-slide {
        transition: opacity 0.55s ease, visibility 0s linear 0.55s;
    }

    .hero-slide.is-active {
        transition: opacity 0.55s ease, visibility 0s;
    }
}
