/* Cotizadores FEC (salud / vida CHUBB) */
.fec-cot {
    --fec-cot-primary: #14395e;
    --fec-cot-primary-soft: #eaf1f8;
    --fec-cot-accent: #0f7b8a;
    --fec-cot-border: #dfe6ee;
    --fec-cot-muted: #6b7a8c;
}

.fec-cot-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border: 1px solid var(--fec-cot-border);
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fafd 0%, #eef4fa 100%);
}

#divFecCotizadorAccion {
    margin-bottom: 1.25rem;
}

.fec-cot-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--fec-cot-primary);
    color: #fff;
    font-size: 1.05rem;
    flex: 0 0 auto;
}

.fec-cot-cta__title {
    font-weight: 600;
    color: #1d2b3a;
    line-height: 1.2;
}

.fec-cot-cta__text {
    color: var(--fec-cot-muted);
    font-size: .85rem;
}

/* Resumen de la cotización seleccionada */
.fec-cot-resumen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
    padding: .85rem 1.1rem;
    border: 1px solid #cfe3d6;
    border-left: 4px solid #2f9e68;
    border-radius: 12px;
    background: #f4fbf7;
}

.fec-cot-resumen__data {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.fec-cot-resumen__label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fec-cot-muted);
}

.fec-cot-resumen__value {
    font-weight: 600;
    color: #1d2b3a;
}

.fec-cot-resumen__price {
    font-weight: 700;
    color: #1f7a52;
    white-space: nowrap;
}

/* Modal */
.modal.fec-cot-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(16, 38, 63, .22);
}

.modal.fec-cot-modal .modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    background: linear-gradient(120deg, #1b5183 0%, #2a74af 100%);
    border-bottom: 0;
    color: #fff;
}

.modal.fec-cot-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin: 0;
    color: #fff;
}

.modal.fec-cot-modal .fec-cot-modal__subtitle {
    display: block;
    margin-top: .15rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .88);
}

.modal.fec-cot-modal .modal-header .btn-close {
    opacity: .9;
    filter: brightness(0) invert(1);
}

.fec-cot-modal .modal-body {
    padding: 1.35rem 1.4rem;
    background: #fbfcfe;
}

.fec-cot-modal .modal-footer {
    gap: .5rem;
    padding: .9rem 1.4rem;
    background: #fff;
    border-top: 1px solid var(--fec-cot-border);
}

.fec-cot-seccion__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--fec-cot-muted);
    margin-bottom: .85rem;
}

.fec-cot-seccion__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--fec-cot-border);
}

.fec-cot-modal .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: #33465c;
    margin-bottom: .3rem;
}

.fec-cot-modal .form-control,
.fec-cot-modal .form-select {
    border-radius: 10px;
    border-color: #d8e0ea;
    padding: .55rem .8rem;
}

.fec-cot-modal .form-control:focus,
.fec-cot-modal .form-select:focus {
    border-color: var(--fec-cot-primary);
    box-shadow: 0 0 0 .2rem rgba(20, 57, 94, .12);
}

.fec-cot-opcionales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: .5rem;
}

.fec-cot-opcionales__hint {
    margin: 0;
    font-size: .82rem;
    color: var(--fec-cot-muted);
}

.fec-cot-opcionales.is-disabled {
    opacity: .55;
    pointer-events: none;
}

.fec-cot-opcional {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    padding: .65rem .85rem;
    border: 1.5px solid var(--fec-cot-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: .9rem;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.fec-cot-opcional:hover {
    border-color: #a9c2da;
    box-shadow: 0 4px 12px rgba(20, 57, 94, .07);
}

.fec-cot-opcional__check {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #c3cedb;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.fec-cot-opcional__check::after {
    content: "";
    width: 6px;
    height: 11px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .12s ease;
}

.fec-cot-opcional__check:checked {
    background: var(--fec-cot-primary);
    border-color: var(--fec-cot-primary);
}

.fec-cot-opcional__check:checked::after {
    transform: rotate(45deg) scale(1);
}

.fec-cot-opcional__check:focus-visible {
    outline: 2px solid rgba(20, 57, 94, .35);
    outline-offset: 2px;
}

.fec-cot-opcional__check:disabled {
    background: #eef2f6;
    border-color: #dbe3ec;
    cursor: not-allowed;
}

.fec-cot-opcional__check:checked + span {
    color: var(--fec-cot-primary);
    font-weight: 600;
}

.fec-cot-opcional:has(.fec-cot-opcional__check:checked) {
    border-color: var(--fec-cot-primary);
    background: var(--fec-cot-primary-soft);
}

/* Cabecera de resultados */
.fec-cot-precio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--fec-cot-primary) 0%, var(--fec-cot-accent) 100%);
    box-shadow: 0 10px 24px rgba(20, 57, 94, .18);
}

.fec-cot-precio__main {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.fec-cot-precio__label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .78);
}

.fec-cot-precio__monto {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
}

.fec-cot-precio__monto small {
    font-size: .85rem;
    font-weight: 500;
    opacity: .8;
}

.fec-cot-precio__nota {
    font-size: .78rem;
    color: rgba(255, 255, 255, .78);
}

.fec-cot-precio__extra {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
}

.fec-cot-precio__extra i {
    font-size: 1.1rem;
    opacity: .9;
}

.fec-cot-precio__extra-label {
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255, 255, 255, .8);
}

.fec-cot-precio__extra-valor {
    font-size: 1rem;
    font-weight: 700;
}

/* Tarjetas de planes (salud) */
.fec-plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Cada tarjeta toma el alto de su contenido para que abrir una cobertura no deje huecos. */
    align-items: start;
    gap: 1rem;
}

@media (min-width: 768px) {
    .fec-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .fec-plan-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fec-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--fec-cot-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.fec-plan-card:hover {
    border-color: #a9c2da;
    box-shadow: 0 8px 20px rgba(20, 57, 94, .09);
}

/* El radio queda accesible por teclado pero la selección se comunica con el check de la esquina. */
.fec-plan-card .rdoFecCotSaludPlan {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.fec-plan-card:focus-within {
    border-color: var(--fec-cot-primary);
    box-shadow: 0 0 0 .2rem rgba(20, 57, 94, .15);
}

.fec-plan-card.is-selected {
    border-color: var(--fec-cot-primary);
    box-shadow: 0 10px 24px rgba(20, 57, 94, .16);
}

.fec-plan-card.is-selected::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    position: absolute;
    top: .75rem;
    right: .85rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--fec-cot-primary);
    color: #fff;
    font-size: .7rem;
}

.fec-plan-card__head {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding-right: 1.75rem;
}

.fec-plan-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #1d2b3a;
    margin: 0;
    line-height: 1.25;
}

.fec-plan-card__type {
    display: block;
    font-size: .78rem;
    color: var(--fec-cot-muted);
}

.fec-plan-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem;
}

.fec-plan-card__old {
    font-size: .85rem;
    color: #97a4b3;
    text-decoration: line-through;
}

.fec-plan-card__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--fec-cot-primary);
    line-height: 1;
}

.fec-plan-card__period {
    font-size: .8rem;
    color: var(--fec-cot-muted);
}

.fec-plan-card__badge {
    align-self: flex-start;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #e6f6ed;
    color: #1f7a52;
    font-size: .74rem;
    font-weight: 600;
}

.fec-plan-card__toggle {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fec-cot-accent);
    font-size: .84rem;
    font-weight: 600;
    text-decoration: underline;
}

.fec-plan-card__detalle {
    font-size: .82rem;
    color: #47586b;
    border-top: 1px dashed var(--fec-cot-border);
    padding-top: .6rem;
}

.fec-plan-card__detalle ul {
    margin: .2rem 0 .6rem;
    padding-left: 1.05rem;
}

.fec-plan-card__detalle-grupo {
    font-weight: 600;
    color: #33465c;
}

/* Tabs de coberturas (vida) */
.fec-cot-tabs {
    gap: .4rem;
    border-bottom: 1px solid var(--fec-cot-border);
    padding-bottom: .6rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.fec-cot-tabs .nav-link {
    border-radius: 999px;
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: #47586b;
    background: #eef2f7;
}

.fec-cot-tabs .nav-link.active {
    background: var(--fec-cot-primary);
    color: #fff;
}

.fec-cot-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fec-cot-lista__item {
    padding: .8rem 1rem;
    border: 1px solid var(--fec-cot-border);
    border-radius: 12px;
    background: #fff;
    font-size: .86rem;
    color: #47586b;
}

.fec-cot-lista__title {
    display: block;
    font-weight: 700;
    color: #1d2b3a;
    margin-bottom: .2rem;
}

.fec-cot-lista__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .5rem;
}

.fec-cot-lista__chip {
    padding: .15rem .55rem;
    border-radius: 999px;
    background: var(--fec-cot-primary-soft);
    color: var(--fec-cot-primary);
    font-size: .74rem;
    font-weight: 600;
}

.fec-cot-lista__item ul {
    margin: .35rem 0 0;
    padding-left: 1.05rem;
}

.fec-cot-vacio {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--fec-cot-muted);
    font-size: .9rem;
    border: 1px dashed var(--fec-cot-border);
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 575.98px) {
    .fec-cot-modal .modal-body,
    .fec-cot-modal .modal-header,
    .fec-cot-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .fec-cot-modal .modal-footer > .btn {
        width: 100%;
    }

    .fec-cot-precio {
        align-items: flex-start;
        gap: .85rem;
    }

    .fec-cot-precio__extra {
        width: 100%;
    }
}
