﻿/* --- CONFIGURACIÓN DE COLORES --- */
:root {
    --c-r40: #E8B461;
    --c-luz: #F6AD55;
    --c-agua: #63B3ED;
    --c-lotes: #68D391;
    --c-accesos: #FC8181;
}

/* --- SECCIÓN BASE --- */
.nicolas-full-gray {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 0;
    background: #F4F4F4;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.clean-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- LADO LOGO 25% --- */
.clean-brand-side {
    flex: 0 0 25%;
    max-width: 25%;
    min-height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-right: 20px;
}

.brand-inner {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.clean-logo {
    width: 140%;
    max-width: none;
    height: auto;
    display: block;
    margin-left: -80px;
    transform: none;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.08));
}

    .clean-logo:hover {
        transform: scale(1.02);
    }

.brand-divider {
    width: 50px;
    height: 1px;
    background: #E8B461;
    margin: 30px 0 25px -20px;
    opacity: 0.8;
}

.brand-loc {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #888;
    line-height: 1.6;
    font-weight: 500;
    margin-left: -80px;
}

/* --- LADO CONTENIDO 75% --- */
.clean-text-side {
    flex: 0 0 75%;
    max-width: 75%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 60px;
}

/* --- CABECERA --- */
.clean-header {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 28px;
}

.kicker-3d-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.kicker-3d-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    perspective: 1000px;
    flex-wrap: wrap;
}

/* Desktop: una sola línea */
.kicker-3d-row--single {
    flex-wrap: nowrap;
    align-items: center;
}

/* Desktop: kicker-space es espacio visual */
.kicker-space {
    width: 16px;
    min-width: 16px;
    height: 1px;
    display: inline-block;
    flex: 0 0 16px;
}

/* --- CAJAS ASIMÉTRICAS CON DEGRADADO OCRE --- */
.kicker-3d-row span:not(.kicker-space) {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    width: 42px;
    height: 50px;
    font-size: 1.4rem;
    font-weight: 900;
    color: #1B2632;
    text-shadow: none;
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 12px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
    background: linear-gradient(145deg, #faf3e8, #f0e4cc);
}

.d1 {
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    background: #ffffff !important;
}

.d2 {
    clip-path: polygon(0% 0%, 100% 5%, 95% 100%, 5% 95%);
    background: #f5f5f5 !important;
}

.d3 {
    clip-path: polygon(5% 0%, 95% 5%, 100% 100%, 0% 90%);
    background: #ffffff !important;
}

.d4 {
    clip-path: polygon(0% 5%, 90% 0%, 100% 95%, 10% 100%);
    background: #f5f5f5 !important;
}

.d5 {
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    background: #ffffff !important;
}

.d6 {
    clip-path: polygon(0% 0%, 95% 8%, 100% 100%, 5% 92%);
    background: #f5f5f5 !important;
}

.d7 {
    clip-path: polygon(5% 5%, 100% 0%, 95% 95%, 0% 100%);
    background: #ffffff !important;
}

.d8 {
    clip-path: polygon(0% 8%, 92% 0%, 100% 92%, 8% 100%);
    background: #f5f5f5 !important;
}

.d9 {
    clip-path: polygon(10% 0%, 100% 5%, 90% 100%, 0% 95%);
    background: #ffffff !important;
}

.d10 {
    clip-path: polygon(0% 0%, 100% 8%, 100% 100%, 0% 92%);
    background: #f5f5f5 !important;
}

.d11 {
    clip-path: polygon(5% 0%, 95% 5%, 100% 100%, 0% 95%);
    background: #ffffff !important;
}

.d12 {
    clip-path: polygon(0% 5%, 100% 0%, 95% 100%, 5% 100%);
    background: #f5f5f5 !important;
}
.kicker-3d-row span:not(.kicker-space):hover {
    transform: translateY(-4px) scale(1.12);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    color: #C4954D;
}

/* --- SUBTÍTULO --- */
.clean-description {
    margin-bottom: 42px;
    width: 100%;
}

.clean-description-wide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    text-align: center;
}

.desc-main {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1B2632;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.desc-sub {
    display: block;
    font-size: 0.88rem;
    color: #999;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.6;
}

/* --- ABANICO 3D (DESKTOP) --- */
.cards-fan-container {
    display: flex;
    gap: 18px;
    perspective: 1200px;
    height: 255px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.cards-fan-track {
    display: contents;
}

.fan-card {
    background: #ffffff;
    flex: 1;
    min-width: 145px;
    max-width: 170px;
    height: 195px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    /* Oculta duplicadas en desktop */
    .fan-card[aria-hidden="true"] {
        display: none;
    }

.card-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.card-icon-box {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    background-color: transparent !important;
}

.color-r40 .card-border-top, .color-r40 .card-icon-box {
    color: var(--c-r40);
    background-color: var(--c-r40);
}

.color-luz .card-border-top, .color-luz .card-icon-box {
    color: var(--c-luz);
    background-color: var(--c-luz);
}

.color-agua .card-border-top, .color-agua .card-icon-box {
    color: var(--c-agua);
    background-color: var(--c-agua);
}

.color-lotes .card-border-top, .color-lotes .card-icon-box {
    color: var(--c-lotes);
    background-color: var(--c-lotes);
}

.color-accesos .card-border-top, .color-accesos .card-icon-box {
    color: var(--c-accesos);
    background-color: var(--c-accesos);
}

.card-icon-box {
    background-color: transparent !important;
}

.card-val {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1B2632;
    line-height: 1;
}

.card-lab {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 10px;
    font-weight: 700;
    line-height: 1.25;
    max-width: 110px;
}

.card-1 {
    transform: rotate(-6deg);
}

.card-2 {
    transform: rotate(-3deg);
}

.card-3 {
    transform: rotate(0deg);
    z-index: 2;
}

.card-4 {
    transform: rotate(3deg);
}

.card-5 {
    transform: rotate(6deg);
}

.fan-card:hover {
    transform: translateY(-25px) rotate(0deg) scale(1.08) !important;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.1);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(inherit);
    }

    50% {
        transform: translateY(-10px) rotate(inherit);
    }

    100% {
        transform: translateY(0px) rotate(inherit);
    }
}

/* =============================================
   RESPONSIVE — 1200px
   ============================================= */
@media (max-width: 1200px) {
    .clean-wrapper {
        gap: 48px;
        padding: 0 28px;
    }

    .clean-brand-side {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .clean-text-side {
        flex: 0 0 70%;
        max-width: 70%;
        padding-left: 30px;
    }

    .clean-logo {
        max-width: 360px;
    }

    .kicker-3d-row span:not(.kicker-space) {
        width: 36px;
        height: 44px;
        font-size: 1.1rem;
    }

    .cards-fan-container {
        gap: 14px;
    }

    .fan-card {
        min-width: 132px;
        max-width: 152px;
        height: 180px;
    }
}

/* =============================================
   RESPONSIVE — TABLET 1024px
   ============================================= */
@media (max-width: 1024px) {
    .clean-wrapper {
        flex-direction: column;
        gap: 32px;
        padding: 0 32px;
        text-align: center;
    }

    .clean-brand-side {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: auto;
        padding: 0;
        justify-content: center;
    }

    .brand-inner {
        align-items: center;
    }

    .clean-logo {
        width: 280px;
        margin-left: 0;
    }

    .brand-divider {
        margin: 20px auto 16px;
    }

    .brand-loc {
        margin-left: 0;
    }

    .clean-text-side {
        flex: 1 1 auto;
        max-width: 100%;
        padding-left: 0;
        align-items: center;
    }

    .clean-header {
        justify-content: center;
    }

    .kicker-3d-wrapper {
        align-items: center;
    }

    .kicker-3d-row,
    .kicker-3d-row--single {
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

        .kicker-3d-row span:not(.kicker-space) {
            width: 36px;
            height: 44px;
            font-size: 0.9rem;
        }

    .clean-description-wide {
        max-width: 600px;
        text-align: center;
    }

    .cards-fan-container {
        flex-wrap: nowrap;
        height: 220px;
        justify-content: center;
        gap: 12px;
        perspective: 800px;
    }

    .fan-card {
        min-width: 110px;
        max-width: 130px;
        height: 170px;
    }
}

/* =============================================
   MOBILE — 768px
   ÚNICO bloque, sin duplicados
   ============================================= */

@keyframes cards-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    /* --- Sección --- */
    .nicolas-full-gray {
        padding: 50px 0 60px;
    }

    .clean-wrapper {
        gap: 28px;
        padding: 0 20px;
    }

    /* --- Logo --- */
    .clean-brand-side {
        flex: 1 1 auto;
        max-width: 100%;
        min-height: auto;
        padding: 0;
        justify-content: center;
    }

    .brand-inner {
        align-items: center;
    }

    .clean-logo {
        width: 220px;
        margin: 0 auto;
    }

    .brand-divider {
        margin: 16px auto 12px;
        width: 40px;
    }

    .brand-loc {
        font-size: 0.72rem;
        letter-spacing: 3px;
        margin-left: 0;
    }

    /* --- Lado texto --- */
    .clean-text-side {
        flex: 1 1 auto;
        max-width: 100%;
        padding-left: 0;
        align-items: center;
    }

    .clean-header {
        justify-content: center;
    }

    /* --- TÍTULO: URBANIZACIÓN en línea 1, PRIVADA en línea 2 ---
       El kicker-space con width:100% actúa como <br>            */
    .kicker-3d-wrapper {
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .kicker-3d-row--single {
        flex-wrap: wrap; /* permite romper en 2 filas */
        justify-content: center;
        align-items: center;
        gap: 4px;
        row-gap: 8px;
        width: 100%;
    }

    /* kicker-space = salto de línea forzado */
    .kicker-space {
        display: block;
        width: 100%;
        min-width: 100%;
        flex: 1 0 100%;
        height: 0;
    }

    /* Letras más chicas para que URBANIZACIÓN entre en 1 fila */
    .kicker-3d-row span:not(.kicker-space) {
        width: 26px;
        height: 32px;
        font-size: 0.68rem;
    }

    /* --- Subtítulo --- */
    .clean-description {
        margin-bottom: 24px;
    }

    .desc-main {
        font-size: 1.1rem;
        line-height: 1.35;
    }

    .desc-sub {
        font-size: 0.7rem;
        letter-spacing: 0.8px;
        line-height: 1.7;
    }

    /* --- Cards: carrusel automático --- */
    .cards-fan-container {
        overflow: hidden;
        height: 155px;
        gap: 0;
        perspective: none;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        position: relative;
    }

    .cards-fan-track {
        display: flex;
        gap: 12px;
        animation: cards-scroll 14s linear infinite;
        width: max-content;
        align-items: center;
    }

        .cards-fan-track:hover,
        .cards-fan-track:active {
            animation-play-state: paused;
        }

    /* Muestra duplicadas en mobile */
    .fan-card[aria-hidden="true"] {
        display: flex;
    }

    .fan-card {
        flex: 0 0 105px;
        min-width: 105px;
        max-width: 105px;
        height: 140px;
        border-radius: 10px;
    }

    .card-1, .card-2, .card-3, .card-4, .card-5 {
        transform: none !important;
        animation: none !important;
    }

    .fan-card:hover {
        transform: translateY(-8px) scale(1.04) !important;
        box-shadow: 0 16px 30px rgba(0,0,0,0.1);
    }

    .card-val {
        font-size: 1.35rem;
    }

    .card-lab {
        font-size: 0.62rem;
        letter-spacing: 0.5px;
    }

    .card-icon-box {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }
}

/* =============================================
   MOBILE PEQUEÑO — 420px
   ============================================= */
@media (max-width: 420px) {
    .nicolas-full-gray {
        padding: 40px 0 50px;
    }

    .clean-wrapper {
        padding: 0 16px;
        gap: 22px;
    }

    .clean-logo {
        width: 190px;
    }

    .kicker-3d-row span:not(.kicker-space) {
        width: 23px;
        height: 28px;
        font-size: 0.62rem;
    }

    .desc-main {
        font-size: 1rem;
    }

    .desc-sub {
        font-size: 0.65rem;
    }

    .cards-fan-container {
        height: 140px;
    }

    .fan-card {
        flex: 0 0 95px;
        min-width: 95px;
        max-width: 95px;
        height: 128px;
    }

    .card-val {
        font-size: 1.2rem;
    }
}
