/* ==========================================================
   INICIO CONTENIDO
   Testimonios en slide infinito + Cotiza tu proyecto
========================================================== */

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

.inicio-contenido {
    --vino: #7d0d2f;
    --vino-2: #9b2446;
    --texto: #241d1b;
    --muted: #786d68;
    --linea: rgba(72, 49, 43, .10);
    --crema: #fbf8f5;

    background: #fff;
    color: var(--texto);
    padding: 24px 0 30px;
}

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

.ic-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.65fr) minmax(300px, .95fr);
    gap: 24px;
    align-items: stretch;
}

.ic-block {
    min-width: 0;
}

.ic-section-head {
    margin-bottom: 16px;
}

.ic-section-head--slider {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.ic-eyebrow,
.ic-cotiza__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--vino);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ic-section-head h2 {
    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;
}

/* ==========================================================
   TESTIMONIOS — 5 visibles en escritorio / 10 en total
========================================================== */
.ic-testimonios-viewport {
    width: 100%;
    overflow: hidden;
    padding: 2px 1px 4px;
}

.ic-testimonios-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.ic-testimonio {
    position: relative;
    flex: 0 0 calc((min(1380px, calc(100vw - 56px)) * .736 - 48px) / 5);
    width: calc((min(1380px, calc(100vw - 56px)) * .736 - 48px) / 5);
    min-width: 150px;
    min-height: 258px;
    padding: 22px 18px 18px;
    border: 1px solid var(--linea);
    border-radius: 13px;
    background: linear-gradient(180deg, #fff, var(--crema));
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ic-testimonio:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 13, 47, .16);
    box-shadow: 0 12px 28px rgba(46, 28, 22, .08);
}

.ic-quote {
    color: var(--vino);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: .8;
    margin-bottom: 10px;
}

.ic-testimonio p {
    margin: 0 0 18px;
    color: #5f5550;
    font-size: 14px;
    line-height: 1.62;
}

.ic-persona {
    margin-top: auto;
}

.ic-persona strong,
.ic-persona span {
    display: block;
}

.ic-persona strong {
    font-size: 13.5px;
    font-weight: 600;
}

.ic-persona span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.ic-stars {
    margin-top: 8px;
    color: #e59a24;
    font-size: 14px;
    letter-spacing: 2px;
}

.ic-slider-controls {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.ic-slider-arrow {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(125, 13, 47, .18);
    border-radius: 50%;
    background: #fff;
    color: var(--vino);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}

.ic-slider-arrow:hover {
    color: #fff;
    background: var(--vino);
    border-color: var(--vino);
    transform: translateY(-1px);
}

/* ==========================================================
   ASESORÍA PERSONALIZADA — se conserva
========================================================== */
.ic-cotiza {
    position: relative;
    min-height: 315px;
    overflow: hidden;
    border-radius: 15px;
    isolation: isolate;
    background: var(--vino);
    color: #fff;
}

.ic-cotiza__photo {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-color: #b2776b;
    background-size: cover;
    background-position: center;
}

.ic-cotiza__overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(125,13,47,.98) 0%, rgba(125,13,47,.91) 44%, rgba(125,13,47,.35) 100%),
        linear-gradient(to top, rgba(0,0,0,.15), transparent);
}

.ic-cotiza__content {
    position: relative;
    z-index: 1;
    width: 65%;
    min-height: 315px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ic-cotiza__eyebrow {
    color: rgba(255,255,255,.78);
}

.ic-cotiza h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    line-height: 1.08;
    font-weight: 400;
}

.ic-cotiza p {
    margin: 0 0 22px;
    color: rgba(255,255,255,.84);
    font-size: 13px;
    line-height: 1.55;
}

.ic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: transform .2s ease, opacity .2s ease;
}

.ic-btn:hover {
    transform: translateY(-1px);
}

.ic-btn--light {
    background: #fff;
    color: var(--vino);
    margin-bottom: 10px;
}

.ic-btn--outline {
    border: 1px solid rgba(255,255,255,.6);
    color: #fff;
    background: rgba(255,255,255,.04);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
    .ic-wrap {
        width: min(100% - 32px, 1100px);
    }

    .ic-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .ic-testimonio {
        flex-basis: calc((100vw - 380px - 36px) / 3);
        width: calc((100vw - 380px - 36px) / 3);
        min-width: 190px;
    }
}

@media (max-width: 900px) {
    .ic-grid {
        grid-template-columns: 1fr;
    }

    .ic-testimonio {
        flex-basis: calc((100vw - 80px) / 2.4);
        width: calc((100vw - 80px) / 2.4);
        min-width: 220px;
    }

    .ic-cotiza {
        min-height: 270px;
    }

    .ic-cotiza__content {
        width: 52%;
        min-height: 270px;
    }
}

@media (max-width: 560px) {
    .inicio-contenido {
        padding: 18px 0 24px;
    }

    .ic-wrap {
        width: calc(100% - 24px);
    }

    .ic-section-head h2 {
        font-size: 27px;
    }

    .ic-slider-arrow {
        width: 33px;
        height: 33px;
    }

    .ic-testimonio {
        flex-basis: calc((100vw - 48px) / 1.25);
        width: calc((100vw - 48px) / 1.25);
        min-width: 240px;
        min-height: 218px;
    }

    .ic-cotiza {
        min-height: 390px;
    }

    .ic-cotiza__content {
        width: 100%;
        min-height: 390px;
        padding: 24px 20px;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(125,13,47,.96), rgba(125,13,47,.36));
    }

    .ic-cotiza__overlay {
        background: linear-gradient(to top, rgba(125,13,47,.85), rgba(125,13,47,.08));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ic-testimonios-track,
    .ic-testimonio,
    .ic-slider-arrow {
        transition: none !important;
    }
}
