/* ============================================================
   Invest Destacadas v2 — frontend
   Paleta:
     #0F1B30  marino    (CTAs, títulos)
     #5D7895  azul gris (acento)
     #15803d  verde     (entrega inmediata)
     #ea580c  naranja   (promo)
     #1f2937  texto
     #475569  texto suave
     #e5e7eb  bordes
     #f8fafc  fondo
   ============================================================ */

:root {
    --ig-marino: #0F1B30;
    --ig-azul: #5D7895;
    --ig-verde: #15803d;
    --ig-verde-bg: #dcfce7;
    --ig-naranja: #ea580c;
    --ig-naranja-bg: #ffedd5;
    --ig-azul-bg: #dbeafe;
    --ig-amarillo: #ca8a04;
    --ig-amarillo-bg: #fef3c7;
    --ig-text: #1f2937;
    --ig-text-soft: #475569;
    --ig-border: #e5e7eb;
    --ig-bg: #f8fafc;
    --ig-shadow-sm: 0 1px 2px rgba(15, 27, 48, 0.04), 0 1px 3px rgba(15, 27, 48, 0.06);
    --ig-shadow-md: 0 4px 12px rgba(15, 27, 48, 0.06), 0 2px 4px rgba(15, 27, 48, 0.04);
    --ig-shadow-lg: 0 16px 40px rgba(15, 27, 48, 0.12), 0 4px 12px rgba(15, 27, 48, 0.06);
    --ig-radius: 14px;
    --ig-radius-sm: 8px;
    --ig-radius-lg: 20px;
    --ig-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Sección destacada (home) ===== */
.ig-destacadas-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--ig-bg) 0%, #ffffff 100%);
    overflow: hidden;
}
.ig-destacadas-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 20px;
}
.ig-destacadas-section-head h2 {
    font-family: var(--ig-font);
    font-size: clamp(28px, 4vw, 42px);
    color: var(--ig-marino);
    margin: 0 0 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.ig-destacadas-section-head p {
    font-size: 17px;
    color: var(--ig-text-soft);
    margin: 0;
    line-height: 1.55;
}

/* ===== Cards container ===== */
.ig-cards {
    --ig-card-w: 340px;
    box-sizing: border-box;
}

/* Layout grid: responsivo */
.ig-cards--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (min-width: 700px) {
    .ig-cards--grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media (min-width: 1080px) {
    .ig-cards--grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Layout centered: 1-2 cards, queda al medio */
.ig-cards--centered {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}
.ig-cards--centered .ig-card {
    flex: 0 1 380px;
    max-width: 420px;
}

/* Layout carrusel: scroll horizontal en mobile, grid en desktop */
.ig-cards--carrusel {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 27, 48, 0.18) transparent;
}
.ig-cards--carrusel::-webkit-scrollbar { height: 8px; }
.ig-cards--carrusel::-webkit-scrollbar-thumb { background: rgba(15, 27, 48, 0.2); border-radius: 999px; }
.ig-cards--carrusel .ig-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
}
@media (min-width: 1080px) {
    .ig-cards--carrusel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        max-width: 1280px;
        margin: 0 auto;
        overflow: visible;
        padding: 4px 20px;
    }
    .ig-cards--carrusel .ig-card { flex: initial; }
}

/* ===== Card ===== */
.ig-card {
    background: #ffffff;
    border-radius: var(--ig-radius-lg);
    overflow: hidden;
    box-shadow: var(--ig-shadow-md);
    border: 1px solid var(--ig-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: var(--ig-font);
    color: var(--ig-text);
}
.ig-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ig-shadow-lg);
}

/* ----- Media: galería ----- */
.ig-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f1f5f9;
    overflow: hidden;
}
.ig-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}
.ig-gallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.ig-gallery__img.is-active {
    opacity: 1;
}
.ig-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 0;
    color: var(--ig-marino);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ig-shadow-sm);
    z-index: 2;
}
.ig-card:hover .ig-gallery__nav { opacity: 1; }
.ig-gallery__nav:hover { background: #ffffff; }
.ig-gallery__nav--prev { left: 10px; }
.ig-gallery__nav--next { right: 10px; }
@media (hover: none) {
    .ig-gallery__nav { opacity: 1; background: rgba(255, 255, 255, 0.7); width: 32px; height: 32px; font-size: 20px; }
}

.ig-gallery__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.ig-gallery__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.ig-gallery__dot.is-active {
    background: #ffffff;
    transform: scale(1.4);
}

/* ----- Badges sobre la foto ----- */
.ig-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 3;
}
.ig-badge {
    font-family: var(--ig-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 6px;
    color: #ffffff;
    background: rgba(15, 27, 48, 0.85);
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.ig-badge--entrega_inmediata { background: var(--ig-verde); }
.ig-badge--en_blanco { background: #1e40af; }
.ig-badge--en_verde { background: var(--ig-amarillo); }
.ig-badge--promo { background: var(--ig-naranja); }

/* ----- Body ----- */
.ig-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}
.ig-card__head { margin: 0; }
.ig-card__title {
    font-family: var(--ig-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--ig-marino);
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.ig-card__loc {
    margin: 0;
    font-size: 13.5px;
    color: var(--ig-text-soft);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.35;
}
.ig-card__loc .ig-icon { flex-shrink: 0; color: var(--ig-azul); }

/* ----- Specs ----- */
.ig-card__specs {
    list-style: none;
    padding: 14px 0;
    margin: 0;
    border-top: 1px solid var(--ig-border);
    border-bottom: 1px solid var(--ig-border);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.ig-card__specs li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: var(--ig-text);
    font-weight: 500;
}
.ig-card__specs .ig-icon { color: var(--ig-azul); }

/* ----- Price ----- */
.ig-card__price { margin: 0; }
.ig-price__label {
    display: block;
    font-size: 12px;
    color: var(--ig-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}
.ig-price__main {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: var(--ig-marino);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.ig-price__aprox {
    display: block;
    font-size: 13px;
    color: var(--ig-text-soft);
    margin-top: 4px;
}

/* ----- Descripción colapsable ----- */
.ig-card__desc {
    position: relative;
}
.ig-card__desc-text {
    font-size: 14px;
    color: var(--ig-text-soft);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.ig-card__desc.is-expanded .ig-card__desc-text {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.ig-card__desc-toggle {
    background: transparent;
    border: 0;
    padding: 4px 0;
    font-size: 13px;
    color: var(--ig-marino);
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
    font-family: var(--ig-font);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ig-card__desc-toggle:hover { text-decoration: underline; }
.ig-card__desc-toggle::after {
    content: '▾';
    transition: transform 0.2s;
    font-size: 11px;
}
.ig-card__desc.is-expanded .ig-card__desc-toggle::after { transform: rotate(180deg); }
.ig-card__desc .ig-toggle-less { display: none; }
.ig-card__desc.is-expanded .ig-toggle-more { display: none; }
.ig-card__desc.is-expanded .ig-toggle-less { display: inline; }

/* ----- Actions ----- */
.ig-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}
.ig-btn {
    font-family: var(--ig-font);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: var(--ig-radius-sm);
    border: 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ig-btn:active { transform: translateY(1px); }
.ig-btn--primary {
    background: var(--ig-marino);
    color: #ffffff;
}
.ig-btn--primary:hover { background: #1a2a45; }
.ig-btn--secondary {
    background: #ffffff;
    color: var(--ig-marino);
    border: 1.5px solid var(--ig-marino);
}
.ig-btn--secondary:hover { background: var(--ig-marino); color: #ffffff; }
.ig-btn--whatsapp {
    background: #25D366;
    color: #ffffff;
}
.ig-btn--whatsapp:hover { background: #20bd5a; }

/* ===== Vacío ===== */
.ig-vacio {
    text-align: center;
    padding: 60px 20px;
    color: var(--ig-text-soft);
    font-style: italic;
}

/* ============================================================
   Catálogo (/propiedades) con filtros
   ============================================================ */
.ig-catalogo {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
}
.ig-catalogo__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px 22px;
    background: #ffffff;
    border-radius: var(--ig-radius);
    border: 1px solid var(--ig-border);
    box-shadow: var(--ig-shadow-sm);
    flex-wrap: wrap;
}
.ig-catalogo__count {
    font-family: var(--ig-font);
    font-size: 14px;
    color: var(--ig-text-soft);
    margin: 0;
    font-weight: 500;
}
.ig-catalogo__count #ig-cat-count {
    color: var(--ig-marino);
    font-weight: 700;
    font-size: 16px;
}
.ig-filters {
    display: flex !important;
    flex-flow: row wrap;
    gap: 10px;
    align-items: center;
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.ig-filter {
    font-family: var(--ig-font);
    font-size: 13.5px;
    padding: 9px 32px 9px 14px;
    border: 1px solid var(--ig-border);
    border-radius: var(--ig-radius-sm);
    background: #ffffff;
    color: var(--ig-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F1B30' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s, box-shadow 0.15s;
    /* Defensa contra temas (Astra/Elementor) que fuerzan width:100% en selects */
    width: auto !important;
    max-width: 200px !important;
    flex: 0 0 auto;
    height: auto;
    line-height: 1.4;
    box-sizing: border-box;
}
.ig-filter:hover { border-color: var(--ig-azul); }
.ig-filter:focus { outline: none; border-color: var(--ig-marino); box-shadow: 0 0 0 3px rgba(15, 27, 48, 0.08); }
.ig-filter-reset {
    font-family: var(--ig-font);
    font-size: 13px;
    padding: 9px 14px;
    background: transparent;
    color: var(--ig-text-soft);
    border: 1px solid transparent;
    border-radius: var(--ig-radius-sm);
    cursor: pointer;
    font-weight: 500;
}
.ig-filter-reset:hover { color: var(--ig-marino); border-color: var(--ig-border); }

.ig-cat-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ig-text-soft);
    background: #ffffff;
    border-radius: var(--ig-radius);
    border: 1px dashed var(--ig-border);
}
.ig-cat-empty p { font-size: 16px; margin: 0 0 16px; }

/* ============================================================
   Drawer detalle
   ============================================================ */
.ig-drawer {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.ig-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 48, 0.55);
    backdrop-filter: blur(4px);
    animation: igFadeIn 0.25s ease;
}
.ig-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    background: #ffffff;
    border-radius: var(--ig-radius-lg);
    box-shadow: 0 30px 80px rgba(15, 27, 48, 0.28);
    overflow-y: auto;
    animation: igSlideUp 0.28s ease;
}
.ig-drawer__panel .ig-detail__hero-img { border-radius: var(--ig-radius-lg) var(--ig-radius-lg) 0 0; }
.ig-drawer__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 26px;
    color: var(--ig-marino);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.ig-drawer__close:hover { background: #ffffff; }

.ig-drawer__content { padding-bottom: 40px; font-family: var(--ig-font); color: var(--ig-text); }

.ig-detail__hero { position: relative; }
.ig-detail__hero-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: #f1f5f9;
    display: block;
}
.ig-detail__thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    overflow-x: auto;
    background: var(--ig-bg);
}
.ig-detail__thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s;
    border: 2px solid transparent;
}
.ig-detail__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-detail__thumb.is-active { opacity: 1; border-color: var(--ig-marino); }
.ig-detail__thumb:hover { opacity: 1; }

.ig-detail__main { padding: 28px 28px 0; }
.ig-detail__title {
    font-family: var(--ig-font);
    font-size: 28px;
    font-weight: 700;
    color: var(--ig-marino);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.ig-detail__loc {
    margin: 0 0 22px;
    font-size: 15px;
    color: var(--ig-text-soft);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ig-detail__price {
    background: var(--ig-bg);
    border-radius: var(--ig-radius);
    padding: 18px 22px;
    margin: 0 0 28px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}
.ig-detail__price .ig-price__main { font-size: 32px; }
.ig-detail__price .ig-price__aprox { font-size: 15px; }

.ig-detail__section { margin: 0 0 24px; }
.ig-detail__section-title {
    font-family: var(--ig-font);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ig-azul);
    font-weight: 600;
    margin: 0 0 12px;
}
.ig-detail__specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}
@media (min-width: 520px) {
    .ig-detail__specs-grid { grid-template-columns: repeat(3, 1fr); }
}
.ig-detail__specs-grid li {
    background: var(--ig-bg);
    padding: 14px;
    border-radius: var(--ig-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ig-detail__spec-label {
    font-size: 11.5px;
    color: var(--ig-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.ig-detail__spec-value {
    font-size: 16px;
    color: var(--ig-marino);
    font-weight: 600;
}
.ig-detail__descripcion {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ig-text);
    margin: 0;
    white-space: pre-line;
}
.ig-detail__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 520px) { .ig-detail__bullets { grid-template-columns: 1fr 1fr; } }
.ig-detail__bullets li {
    padding: 12px 14px 12px 38px;
    background: var(--ig-bg);
    border-radius: var(--ig-radius-sm);
    font-size: 14px;
    color: var(--ig-text);
    position: relative;
}
.ig-detail__bullets li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ig-verde);
    font-weight: 700;
    font-size: 16px;
}

.ig-detail__cta {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #ffffff 30%);
    padding: 20px 28px 24px;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ig-detail__cta .ig-btn { padding: 14px; font-size: 15px; }

@media (max-width: 600px) {
    .ig-drawer { padding: 0; align-items: stretch; }
    .ig-drawer__panel { max-width: 100%; max-height: 100%; border-radius: 0; }
    .ig-drawer__panel .ig-detail__hero-img { border-radius: 0; }
    .ig-detail__main { padding: 22px 20px 0; }
    .ig-detail__price { padding: 16px; }
    .ig-detail__cta { padding: 16px 20px 18px; }
}

/* ============================================================
   Modal del form "Agendar"
   ============================================================ */
.ig-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 27, 48, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: igFadeIn 0.2s ease;
}
.ig-modal {
    background: #ffffff;
    border-radius: var(--ig-radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 32px;
    position: relative;
    box-shadow: var(--ig-shadow-lg);
    animation: igSlideUp 0.25s ease;
    max-height: 95vh;
    overflow-y: auto;
    font-family: var(--ig-font);
}
.ig-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: 0;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #94A3B8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ig-modal-close:hover { background: #f1f5f9; color: var(--ig-marino); }
.ig-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ig-marino);
    margin: 0 0 8px;
    font-family: var(--ig-font);
}
.ig-modal-sub {
    font-size: 14px;
    color: var(--ig-text-soft);
    margin: 0 0 22px;
}
.ig-modal-sub strong { color: var(--ig-marino); }
.ig-form-label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-marino);
}
.ig-form-label input,
.ig-form-label textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 400;
    font-family: inherit;
    background: #fff;
    color: #0f172a;
    transition: border 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.ig-form-label input:focus,
.ig-form-label textarea:focus {
    outline: none;
    border-color: var(--ig-marino);
    box-shadow: 0 0 0 3px rgba(15, 27, 48, 0.08);
}
.ig-form-label textarea { resize: vertical; min-height: 70px; }
.ig-opcional { color: #94a3b8; font-weight: 400; }
.ig-form-submit {
    width: 100%;
    background: var(--ig-marino);
    color: #fff;
    border: 0;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.ig-form-submit:hover:not(:disabled) { background: #1a2a45; }
.ig-form-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.ig-form-status {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
    min-height: 18px;
}

/* Grupos de opciones (radio en formato pastilla) */
.ig-form-group { margin-bottom: 16px; }
.ig-form-group__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ig-marino);
    margin-bottom: 8px;
}
.ig-form-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ig-radio-pill { position: relative; flex: 1 1 auto; min-width: 110px; cursor: pointer; margin: 0; }
.ig-radio-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.ig-radio-pill span {
    display: block;
    text-align: center;
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ig-text);
    background: #fff;
    transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.ig-radio-pill:hover span { border-color: var(--ig-marino); }
.ig-radio-pill input:checked + span {
    border-color: var(--ig-marino);
    background: var(--ig-marino);
    color: #fff;
    font-weight: 600;
}
.ig-radio-pill input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(15, 27, 48, 0.12);
}

@keyframes igFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes igSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile */
@media (max-width: 520px) {
    .ig-destacadas-section { padding: 50px 0; }
    .ig-card__body { padding: 18px 18px 18px; gap: 14px; }
    .ig-card__title { font-size: 20px; }
    .ig-price__main { font-size: 22px; }
    .ig-catalogo__bar { flex-direction: column; align-items: stretch; }
    .ig-filters { justify-content: stretch; gap: 8px; }
    /* 2 filtros por fila, con ancho suficiente para mostrar la etiqueta completa
       (antes se aplastaban a una fila y solo se veía la primera letra). */
    .ig-filter { flex: 1 1 calc(50% - 4px); min-width: 0; max-width: none !important; }
    .ig-filter-reset { flex: 1 1 100%; text-align: center; border: 1px solid var(--ig-border); margin-top: 2px; }
    .ig-modal { padding: 28px 22px 22px; }
}

/* ============================================================
   Sprint 5 — Mayor contraste entre secciones del home
   Hace que el "gris" entre bandas se note más respecto al blanco.
   ============================================================ */
.ig-destacadas-section {
    background: #e9eef5 !important;
    border-top: 1px solid #d4dbe6;
    border-bottom: 1px solid #d4dbe6;
}
.ig-section--alt {
    background: #e9eef5;
    border-top: 1px solid #d4dbe6;
    border-bottom: 1px solid #d4dbe6;
}
/* Línea separadora cuando dos secciones consecutivas son blancas, para no perder ritmo visual */
.ig-section + .ig-section {
    border-top: 1px solid #e2e8f0;
}

/* ============================================================
   Quiénes Somos — Fotos de las socias
   Mantiene el look minimalista del sitio: foto rectangular con
   border-radius suave y un poco de aire arriba de los textos.
   ============================================================ */
.ig-socias { gap: 40px; align-items: start; }
.ig-bio--card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ig-bio__photo {
    margin: 0 0 4px 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: #f1f5f9;
}
.ig-bio__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 720px) {
    .ig-socias { gap: 28px; }
    .ig-bio__photo { max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* ============================================================
   Calculadora de capacidad de compra [calculadora_compra]
   ============================================================ */
.ig-calc {
    max-width: 1100px;
    margin: 0 auto;
    font-family: inherit;
    color: #0f172a;
}
.ig-calc__head { text-align: center; margin-bottom: 36px; }
.ig-calc__eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e3a8a;
    margin: 0 0 8px;
}
.ig-calc__title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; margin: 0 0 14px; line-height: 1.15; }
.ig-calc__lead { font-size: 16px; color: #475569; max-width: 680px; margin: 0 auto; line-height: 1.6; }

.ig-calc__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.ig-calc__form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ig-calc__field { display: flex; flex-direction: column; gap: 6px; }
.ig-calc__field label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}
.ig-calc__field label span {
    font-weight: 400;
    color: #64748b;
    margin-left: 4px;
    font-size: 13px;
}
.ig-calc__input-wrap {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s, background 0.15s;
}
.ig-calc__input-wrap:focus-within {
    border-color: #1e3a8a;
    background: #ffffff;
}
.ig-calc__input-wrap input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
    min-width: 0;
}
.ig-calc__input-wrap input::-webkit-outer-spin-button,
.ig-calc__input-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ig-calc__prefix, .ig-calc__suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    background: rgba(15, 23, 42, 0.04);
}
.ig-calc__hint { font-size: 12px; color: #94a3b8; margin: 2px 0 0; line-height: 1.4; }

.ig-calc__result {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a2a5e 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.ig-calc__result-eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0;
    font-weight: 600;
}
.ig-calc__result-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ig-calc__result-label { font-size: 14px; color: #cbd5e1; }
.ig-calc__result-uf {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.ig-calc__result-clp { font-size: 17px; color: #93c5fd; font-weight: 500; }

.ig-calc__result-breakdown {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 18px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.ig-calc__result-breakdown > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.ig-calc__result-breakdown dt { font-size: 14px; color: #cbd5e1; margin: 0; }
.ig-calc__result-breakdown dd { font-size: 15px; font-weight: 600; color: #ffffff; margin: 0; }

.ig-calc__disclaimer {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
    margin: 0;
}

.ig-calc__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #1e3a8a;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
}
.ig-calc__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    color: #1e3a8a;
}

@media (max-width: 820px) {
    .ig-calc__grid { grid-template-columns: 1fr; gap: 22px; }
    .ig-calc__form { padding: 22px; }
    .ig-calc__result { padding: 26px 22px; }
}

/* ============================================================
   Hero del Home con foto de fondo (skyline de Santiago)
   Aplica SOLO al hero del inicio (clase extra .ig-hero--home), no
   al resto de heros del sitio. Se usa doble clase + !important para
   ganarle al CSS base del tema sin depender del orden de carga.
   ============================================================ */
.ig-hero.ig-hero--home {
    background:
        linear-gradient(180deg, rgba(15,27,48,0.60) 0%, rgba(15,27,48,0.74) 100%),
        url('https://investmentgroup.cl/wp-content/uploads/2026/05/santiago_skyline_1920.jpg') center 40% / cover no-repeat !important;
}
.ig-hero.ig-hero--home::before { display: none !important; }
.ig-hero.ig-hero--home .ig-hero__eyebrow {
    background: rgba(255,255,255,0.94);
    color: #0F1B30;
    border-color: rgba(255,255,255,0.45);
}
.ig-hero.ig-hero--home h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.40);
}
.ig-hero.ig-hero--home .ig-hero__sub {
    color: #e8eef6 !important;
    text-shadow: 0 1px 10px rgba(0,0,0,0.30);
}
