/* =========================================
   INICIO SOLUCIONES
   ¿Qué necesitas? + Ambientes + Soluciones
========================================= */

.inicio-soluciones,
.inicio-soluciones * {
    box-sizing: border-box;
}

.inicio-soluciones {
    --vino: #7d0d2f;
    --vino-2: #9b2446;
    --texto: #261f1d;
    --muted: #6f6560;
    --linea: rgba(78, 53, 44, 0.12);
    --crema: #fbf8f5;
    --crema-2: #f2ece7;
    color: var(--texto);
    background: #fff;
    padding: 14px 0 10px;
}

.is-wrap {
    width: min(1380px, calc(100% - 56px));
    margin: 0 auto;
}



/* =========================================
   TITULOS DE SECCION — MISMA JERARQUIA
   VISUAL QUE INICIO DESTACADOS
========================================= */

.is-center-head,
.is-section-head {
    margin: 34px 0 18px;
    text-align: left;
}

.is-center-head {
    margin-top: 0;
}

.is-center-head::before {
    content: "SOLUCIONES PARA TU ESPACIO";
    display: block;
    margin-bottom: 6px;
    color: var(--vino);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.is-center-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 2.2vw, 36px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.015em;
    color: var(--texto);
}

.is-section-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.015em;
    color: var(--texto);
}

.is-section-head:nth-of-type(2)::before {
    content: "INSPIRACION PARA CADA ESPACIO";
    display: block;
    margin-bottom: 6px;
    color: var(--vino);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.is-section-head:nth-of-type(3)::before {
    content: "DISEÑADAS PARA TI";
    display: block;
    margin-bottom: 6px;
    color: var(--vino);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* necesidades */
.is-needs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    background: transparent;
}

.is-need-card {
    min-height: 150px;
    padding: 24px 24px;
    display: grid;
    grid-template-columns: 88px 1px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    border: 1px solid rgba(78, 53, 44, 0.14);
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfaf8 100%);
    box-shadow: 0 10px 28px rgba(52, 32, 24, 0.035);
}

.is-need-card::before {
    content: "";
    width: 1px;
    height: 76px;
    background: rgba(78, 53, 44, 0.14);
    grid-column: 2;
    grid-row: 1;
}

.is-need-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 1px solid rgba(125, 13, 47, 0.13);
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #fff 0%, #fbf1f4 100%);
}

.is-need-icon i {
    font-size: 38px;
    color: var(--vino);
    line-height: 1;
}

.is-need-copy {
    min-width: 0;
    position: relative;
    padding: 2px 0 20px;
}

.is-need-copy::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--vino);
}

.is-need-copy h4 {
    margin: 0 0 8px;
    color: var(--texto);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 1.45vw, 27px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.015em;
}

.is-need-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* fotos base */
.is-photo {
    position: absolute;
    inset: 0;
    background-color: #e8ded6;
    background-size: cover;
    background-position: center;
    transition: transform .55s ease;
}

/* ambientes */
.is-ambientes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.is-amb-card {
    position: relative;
    height: 186px;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    background: var(--crema-2);
}

.is-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 13, 12, .72), rgba(17, 13, 12, .22));
}

.is-amb-body {
    position: absolute;
    inset: auto 0 0;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.is-amb-icon i,
.is-sol-icon i {
    font-size: 27px;
}

.is-amb-icon i {
    font-size: 29px;
}

.is-amb-title {
    font-size: 22px;
    font-weight: 500;
}

.is-amb-card:hover .is-photo,
.is-sol-card:hover .is-photo {
    transform: scale(1.04);
}

/* soluciones */
.is-soluciones {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.is-sol-card {
    position: relative;
    display: block;
    height: 98px;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 12px;
    text-decoration: none;
    color: #2a2320;
    background: var(--crema);
    isolation: isolate;
}

.is-sol-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.88), rgba(255,255,255,.36));
}

.is-sol-body {
    position: absolute;
    inset: 0;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.is-sol-icon i {
    color: var(--texto);
    opacity: .88;
    font-size: 22px;
}

.is-sol-title {
    display: block;
    max-width: 110px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 1180px) {
    .is-wrap { width: min(100% - 32px, 1100px); }
    .is-needs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .is-ambientes { grid-template-columns: repeat(2, 1fr); }
    .is-soluciones { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .is-center-head h2 { font-size: 27px; }
    .is-section-head h3 { font-size: 25px; }
    .is-center-head,
    .is-section-head { margin: 26px 0 14px; }

    .inicio-soluciones { padding: 8px 0 4px; }
    .is-wrap { width: calc(100% - 24px); }
    .is-center-head h2 { font-size: 21px; }
    .is-section-head h3 { font-size: 19px; }
    .is-needs { grid-template-columns: 1fr; gap: 12px; }
    .is-need-card {
        grid-template-columns: 68px 1px minmax(0, 1fr);
        min-height: 118px;
        padding: 18px;
        gap: 16px;
    }
    .is-need-card::before { height: 58px; }
    .is-need-icon {
        width: 68px;
        height: 68px;
    }
    .is-need-icon i { font-size: 30px; }
    .is-need-copy { padding-bottom: 16px; }
    .is-need-copy h4 { font-size: 21px; margin-bottom: 5px; }
    .is-need-copy p { font-size: 12.5px; }
    .is-ambientes { grid-template-columns: 1fr; gap: 12px; }
    .is-amb-card { height: 152px; }
    .is-amb-title { font-size: 18px; }
    .is-soluciones { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .is-sol-card { height: 96px; }
}

/* =========================================
   SMART HOME / AUTOMATIZACIÓN — 3 TARJETAS
========================================= */
.is-smart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.is-smart-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid var(--linea);
    border-radius: 14px;
    background: linear-gradient(135deg, #fbf8f5 0%, #f2ebe5 100%);
    isolation: isolate;
}

.is-smart-content {
    position: relative;
    z-index: 2;
    width: 58%;
    min-height: 300px;
    padding: 22px 16px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.is-smart-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(251,248,245,.99) 0%, rgba(251,248,245,.96) 44%, rgba(251,248,245,.70) 57%, rgba(251,248,245,.08) 100%);
}

.is-smart-label {
    display: block;
    margin-bottom: 13px;
    color: #403633;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.is-smart-content h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    color: #2a211e;
    font-size: 22px;
    line-height: 1.08;
    font-weight: 400;
}

.is-smart-content p {
    margin: 0 0 13px;
    color: #504643;
    font-size: 12px;
    line-height: 1.45;
}

.is-smart-content ul {
    list-style: none;
    margin: 0 0 17px;
    padding: 0;
}

.is-smart-content li {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 6px 0;
    color: #5d514d;
    font-size: 11px;
}

.is-smart-content li span {
    color: var(--vino);
    font-size: 10px;
}

.is-smart-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 6px;
    background: var(--vino);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
}

.is-smart-btn:hover {
    background: var(--vino-2);
    transform: translateY(-1px);
}

.is-smart-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-color: #e8ded6;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
}

.is-smart-card:hover .is-smart-photo {
    transform: scale(1.025);
}

@media (max-width: 1180px) {
    .is-smart-grid {
        grid-template-columns: 1fr;
    }
    .is-smart-card,
    .is-smart-content {
        min-height: 280px;
    }
    .is-smart-content {
        width: 52%;
    }
}

@media (max-width: 720px) {
    .is-center-head h2 { font-size: 27px; }
    .is-section-head h3 { font-size: 25px; }
    .is-center-head,
    .is-section-head { margin: 26px 0 14px; }

    .is-smart-grid {
        margin-top: 22px;
        gap: 12px;
    }
    .is-smart-card {
        min-height: 360px;
    }
    .is-smart-content {
        width: 100%;
        min-height: 360px;
        padding: 20px;
        justify-content: flex-end;
    }
    .is-smart-card::after {
        background: linear-gradient(to top, rgba(251,248,245,.99) 0%, rgba(251,248,245,.94) 52%, rgba(251,248,245,.18) 100%);
    }
    .is-smart-photo {
        background-position: center top;
    }
    .is-smart-label { margin-top: 120px; }
}

/* =====================================================
   CORTINAS PARA DEPARTAMENTOS — CATEGORÍAS + SLIDE
===================================================== */
.is-apartment-section {
    margin-top: 38px;
}

.is-apartment-head {
    margin: 0 0 20px;
    text-align: left;
}

.is-apartment-head > span {
    display: block;
    margin-bottom: 7px;
    color: var(--vino);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.is-apartment-head h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 2.4vw, 40px);
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -.02em;
}

.is-apartment-head p {
    max-width: 820px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

/* Mini tarjetas relacionadas al slide */
.is-apartment-section .is-soluciones {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.is-apartment-section .is-sol-card {
    appearance: none;
    width: 100%;
    height: 186px;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.is-apartment-section .is-sol-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color .25s ease;
}

.is-apartment-section .is-sol-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(42, 31, 26, .09);
}

.is-apartment-section .is-sol-card.is-active::after {
    border-color: rgba(125, 13, 47, .72);
}

.is-apartment-section .is-sol-card.is-active {
    box-shadow: 0 8px 22px rgba(125, 13, 47, .11);
}

.is-apartment-section .is-sol-overlay {
    z-index: 1;
    background: linear-gradient(to top, rgba(255,255,255,.95) 0%, rgba(255,255,255,.58) 45%, rgba(255,255,255,.08) 100%);
}

.is-apartment-section .is-sol-body {
    z-index: 2;
    padding: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    align-items: center;
}

.is-apartment-section .is-sol-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(71, 54, 47, .12);
    backdrop-filter: blur(4px);
}

.is-apartment-section .is-sol-icon i {
    font-size: 18px;
}

.is-apartment-section .is-sol-title {
    max-width: none;
    width: calc(100% - 28px);
    align-self: flex-end;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;
}

.is-sol-go {
    width: 28px;
    align-self: flex-end;
    color: var(--vino);
    font-size: 17px;
    text-align: right;
}

/* Slider grande */
.is-apartment-slider-shell {
    position: relative;
    margin-top: 24px;
}

.is-apartment-viewport {
    overflow: hidden;
    border-radius: 16px;
    touch-action: pan-y;
}

.is-smart-track {
    display: flex;
    width: 100%;
    will-change: transform;
}

.is-smart-track .is-smart-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    min-height: 360px;
    border-radius: 16px;
}

.is-smart-track .is-smart-content {
    width: 48%;
    min-height: 360px;
    padding: 34px 32px 30px;
}

.is-smart-track .is-smart-card::after {
    background: linear-gradient(90deg, rgba(251,248,245,.995) 0%, rgba(251,248,245,.98) 39%, rgba(251,248,245,.80) 52%, rgba(251,248,245,.14) 72%, rgba(251,248,245,.02) 100%);
}

.is-smart-track .is-smart-label {
    color: var(--vino);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
}

.is-smart-track .is-smart-content h3 {
    max-width: 420px;
    font-size: clamp(27px, 2.1vw, 36px);
    letter-spacing: -.015em;
}

.is-smart-track .is-smart-content p {
    max-width: 470px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.55;
}

.is-smart-track .is-smart-content li {
    margin: 8px 0;
    font-size: 12px;
}

.is-smart-track .is-smart-btn {
    min-height: 40px;
    gap: 10px;
    padding: 0 20px;
}

.is-apartment-arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(62, 44, 38, .14);
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    color: #2b2320;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(34, 25, 21, .12);
    backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.is-apartment-arrow:hover {
    transform: scale(1.06);
    background: var(--vino);
    color: #fff;
}

.is-apartment-prev { left: -22px; }
.is-apartment-next { right: -22px; }

@media (max-width: 1180px) {
    .is-apartment-section .is-soluciones {
        grid-template-columns: repeat(3, 1fr);
    }
    .is-smart-track .is-smart-content {
        width: 56%;
    }
    .is-apartment-prev { left: 10px; }
    .is-apartment-next { right: 10px; }
}

@media (max-width: 720px) {
    .is-apartment-section { margin-top: 28px; }
    .is-apartment-head h3 { font-size: 28px; }
    .is-apartment-head p { font-size: 12px; }

    .is-apartment-section .is-soluciones {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .is-apartment-section .is-soluciones::-webkit-scrollbar { display: none; }
    .is-apartment-section .is-sol-card {
        flex: 0 0 46%;
        height: 116px;
        scroll-snap-align: start;
    }

    .is-smart-track .is-smart-card,
    .is-smart-track .is-smart-content {
        min-height: 470px;
    }
    .is-smart-track .is-smart-content {
        width: 100%;
        padding: 185px 22px 24px;
        justify-content: flex-end;
    }
    .is-smart-track .is-smart-card::after {
        background: linear-gradient(to top, rgba(251,248,245,.995) 0%, rgba(251,248,245,.96) 55%, rgba(251,248,245,.25) 82%, rgba(251,248,245,.04) 100%);
    }
    .is-smart-track .is-smart-content h3 { font-size: 27px; }
    .is-smart-track .is-smart-label { margin-top: 0; }
    .is-apartment-arrow {
        width: 38px;
        height: 38px;
        margin-top: -19px;
    }
    .is-apartment-prev { left: 8px; }
    .is-apartment-next { right: 8px; }
}


/* =====================================================
   AJUSTE: MINI TARJETAS INFORMATIVAS + 3 GRANDES VISIBLES
===================================================== */
.is-apartment-section .is-sol-card {
    cursor: default;
    transition: box-shadow .25s ease, transform .25s ease;
}

.is-apartment-section .is-sol-card::after,
.is-apartment-section .is-sol-card.is-active::after {
    display: none;
}

.is-apartment-section .is-sol-card.is-active {
    box-shadow: none;
}

.is-smart-track {
    gap: 18px;
}

.is-smart-track .is-smart-card {
    flex: 0 0 calc((100% - 36px) / 3);
    width: calc((100% - 36px) / 3);
    min-width: calc((100% - 36px) / 3);
    min-height: 300px;
}

.is-smart-track .is-smart-content {
    width: 58%;
    min-height: 300px;
    padding: 22px 16px 20px 20px;
}

.is-smart-track .is-smart-content h3 {
    font-size: 22px;
}

.is-smart-track .is-smart-content p {
    font-size: 12px;
}

.is-smart-track .is-smart-content li {
    font-size: 11px;
    margin: 6px 0;
}

@media (max-width: 1180px) {
    .is-smart-track .is-smart-card {
        flex-basis: calc((100% - 18px) / 2);
        width: calc((100% - 18px) / 2);
        min-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 720px) {
    .is-smart-track { gap: 12px; }
    .is-smart-track .is-smart-card {
        flex-basis: 100%;
        width: 100%;
        min-width: 100%;
        min-height: 430px;
    }
    .is-smart-track .is-smart-content {
        width: 100%;
        min-height: 430px;
        padding: 180px 20px 22px;
    }
}




/* =========================================
   AJUSTE FINAL — TARJETAS SUPERIORES ESTIRADAS
   MISMA PRESENCIA VISUAL QUE LAS DE ABAJO
========================================= */
.is-apartment-section .is-soluciones {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.is-apartment-section .is-sol-card {
    height: 300px;
    border-radius: 16px;
}

.is-apartment-section .is-sol-overlay {
    background: linear-gradient(to top, rgba(255,255,255,.60) 0%, rgba(255,255,255,.20) 38%, rgba(255,255,255,.04) 72%, rgba(255,255,255,0) 100%);
}

.is-apartment-section .is-sol-body {
    padding: 16px 16px 14px;
}

.is-apartment-section .is-sol-icon {
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 10px rgba(42, 31, 26, .08);
}

.is-apartment-section .is-sol-icon i {
    font-size: 19px;
}

.is-apartment-section .is-sol-title {
    font-size: 18px;
    line-height: 1.12;
    width: calc(100% - 32px);
}

.is-sol-go {
    width: 32px;
    font-size: 20px;
}

@media (max-width: 1180px) {
    .is-apartment-section .is-soluciones {
        grid-template-columns: repeat(3, 1fr);
    }

    .is-apartment-section .is-sol-card {
        height: 250px;
    }
}

@media (max-width: 720px) {
    .is-apartment-section .is-sol-card {
        flex: 0 0 68%;
        height: 180px;
    }

    .is-apartment-section .is-sol-title {
        font-size: 16px;
    }
}


/* =========================================================
   AJUSTE LAPTOP — MÁS ANCHO ÚTIL, MENOS AIRE LATERAL
   Mantiene desktop grande y móvil sin cambios.
   ========================================================= */
@media (min-width: 1060px) and (max-width: 1440px) {
    .is-wrap {
        width: calc(100% - 24px);
        max-width: none;
    }

    .is-needs {
        gap: 14px;
    }

    .is-ambientes {
        gap: 14px;
    }

    .is-soluciones,
    .is-apartment-section .is-soluciones {
        gap: 12px;
    }

    .is-need-card {
        padding: 20px;
        grid-template-columns: 78px 1px minmax(0, 1fr);
        gap: 17px;
    }

    .is-need-icon {
        width: 78px;
        height: 78px;
    }

    .is-need-icon i {
        font-size: 34px;
    }

    .is-smart-grid,
    .is-smart-track {
        gap: 14px;
    }

    .is-smart-track .is-smart-card {
        flex-basis: calc((100% - 28px) / 3);
        width: calc((100% - 28px) / 3);
        min-width: calc((100% - 28px) / 3);
    }
}

/* AJUSTE PROPORCIONAL LAPTOP / TABLET — 2026-09-16 */
@media (min-width: 981px) and (max-width: 1440px) {
    .is-wrap {
        width: calc(100% - 24px);
        max-width: none;
    }
}

@media (min-width: 761px) and (max-width: 980px) {
    .is-wrap {
        width: calc(100% - 20px);
        max-width: none;
    }
}
