:root {
    --primary-color-ins: #064350;
    --token-teal: #007B8A;
    --token-teal-heading: #064350;
    --token-bg: #FCFCFC;
    --token-label: #4A4A4A;
    --token-value: #064350;
    --token-text: #1B1D1F;
    --token-text-muted: #4A4A4A;
    --token-summary-border: #E0E0E0;
    --token-font: 'Open Sans', sans-serif;
}

/* Container - fondo #FCFCFC, tipografía Open Sans */
.token-estimate-container {
    background-color: var(--token-bg);
    min-height: 100vh;
    padding: 24px 20px 40px;
    font-family: var(--token-font);
}

/* Header con logo */
.token-header {
    margin-bottom: 0;
}

.token-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ins-logo-img {
    width: 140px;
    height: 80px;
}

/* Parte superior: saludo y párrafo, alineados a la izquierda con buen padding */
/*.token-hero {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px 0 0;
    text-align: left;
}*/

/* Content - tarjeta centrada, espacio considerable bajo la parte superior */
.token-content {
    max-width: 562px;
    margin: 48px auto 0;
    padding-bottom: 20px;
}

/* Título "Estimado(a) Nombre" - más grande y en negrita, gris oscuro */
.token-title {
    font-family: var(--token-font);
    font-size: 1.35rem;
    font-weight: bold;
    color: var(--token-value);
    margin-bottom: 14px;
    line-height: 1.3;
}

/* Párrafo intro - Open Sans 400, 16px, line-height 125%, color #1B1D1F (Gray/85) */
.token-intro {
    font-family: var(--token-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.25;
    color: #1B1D1F;
    margin-bottom: 0;
}

/* linea de colores */
.token-decorative-line {
    height: 3px;
    background: linear-gradient(to right, #BAD431 0%,#BAD431 25%, #F49020 25%, #F49020 50%, #FFCD34 50%, #FFCD34 75%,#00AE8B 75%, #00AE8B 100%);
    margin-bottom: 24px;
    border-radius: 2px;
}

/* Card - fondo blanco, esquinas 12px, sombra sutil (Figma) */
.token-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 14px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

/* "Informe de cotización" - teal, grande, negrita, Open Sans */
.token-card-title {
    font-family: var(--token-font);
    font-size: 22px;
    font-weight: bold;
    color: var(--token-teal-heading);
    margin-bottom: 4px;
}

/* "Formulario: ..." - gris oscuro, 16px Open Sans regular */
.token-form-number {
    font-family: var(--token-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--token-label);
    margin-bottom: 28px;
}

/* lista de coberturas */
.token-cobertura-list {
    margin-bottom: 30px;
}

.token-cobertura-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E7EBED;
}

.token-cobertura-item:last-child {
    border-bottom: none;
}

.token-cobertura-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.token-checkmark {
    color: #42AE69;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.token-cobertura-letter {
    font-weight: bold;
    color: #064350;
    font-size: 16px;
}

.token-cobertura-description {
    color: #343434;
    font-size: 16px;
    line-height: 1.5;
}

.token-cobertura-details {
    margin-left: 28px;
    margin-top: 8px;
}

.token-cobertura-detail {
    font-size: 14px;
    color: #5D5D5D;
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Contenedor ancho para grids de coberturas */
.token-content-wide {
    max-width: 760px;
}

/* Grid de coberturas - exclusivo para token de incendio comprensivo */
.token-ic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.token-ic-cobertura {
    background-color: #FFFFFF;
    border: 1px solid #E7EBED;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.token-ic-cobertura:hover {
    border-color: #B8E6E0;
    box-shadow: 0 4px 10px rgba(0, 123, 138, 0.08);
}

/* Centrar la última cobertura cuando el total es impar (solo en escritorio) */
@media (min-width: 769px) {
    .token-ic-grid .token-ic-cobertura:nth-child(odd):last-child {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: calc(50% - 8px);
    }
}

.token-ic-cobertura-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.token-ic-cobertura-check {
    color: #42AE69;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.token-ic-cobertura-letter {
    font-weight: bold;
    color: #064350;
    font-size: 16px;
}

.token-ic-cobertura-details {
    margin-top: 4px;
}

.token-ic-cobertura-detail {
    font-size: 14px;
    color: #5D5D5D;
    margin-bottom: 5px;
    line-height: 1.5;
}

.token-ic-cobertura-nota {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    background-color: #E8F6F5;
    border-left: 3px solid #00AE8B;
    border-radius: 6px;
}

.token-ic-cobertura-nota-icon {
    color: #007B8A;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.token-ic-cobertura-nota-texto {
    font-size: 12px;
    color: #064350;
    line-height: 1.4;
}

/* Acordeón de deducibles - exclusivo para token de incendio comprensivo */
.token-ic-deducible-accordion {
    margin-top: 14px;
    border-radius: 8px;
    background-color: #F0F8F7;
    overflow: hidden;
}

.token-ic-deducible-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    color: #064350;
    font-weight: 600;
    user-select: none;
    transition: background-color 0.2s ease;
}

.token-ic-deducible-summary:hover {
    background-color: #E4F0EE;
}

.token-ic-deducible-summary::-webkit-details-marker {
    display: none;
}

.token-ic-deducible-title {
    flex: 1;
}

.token-ic-deducible-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background-color: #007B8A;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

.token-ic-deducible-icon {
    font-size: 13px;
    transition: transform 0.25s ease;
    color: #007B8A;
}

.token-ic-deducible-accordion[open] .token-ic-deducible-icon {
    transform: rotate(180deg);
}

.token-ic-deducible-content {
    padding: 0 14px 14px;
}

.token-ic-deducible-content .token-ic-cobertura-detail {
    position: relative;
    padding-left: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

.token-ic-deducible-content .token-ic-cobertura-detail::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #007B8A;
}

/* Premium Display */
.token-premium {
    text-align: center;
    padding: 20px 0;
    border-top: 2px solid #E7EBED;
    margin-top: 20px;
}

.token-premium-amount {
    font-size: 32px;
    font-weight: bold;
    color: black;
    margin-right: 8px;
}

.token-premium-period {
    font-size: 16px;
    color: #5D5D5D;
    font-style: italic;
}

.token-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
/*    margin-top: 25px;*/
    flex-wrap: wrap;
}

.btn-cargar-fotos {
    background-color: #FFFFFF;
    border: 2px solid #00AEBB;
    color: #00AEBB;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cargar-fotos:hover {
    background-color: #E4EDEF;
    border-color: #086378;
    color: #086378;
}

.btn-aceptar {
    background-color: #00AEBB;
    border: 2px solid #00AEBB;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-aceptar:hover {
    background-color: #086378;
    border-color: #086378;
}

.btn-cargar-fotos.hidden,
.btn-aceptar.hidden {
    display: none;
}

/* RT Component Styles - informe de cotización */
.token-rt-info {
    margin-bottom: 8px;
}

.token-rt-section {
    margin-bottom: 28px;
}

/* Títulos de sección - teal, Open Sans, bold */
.token-rt-section-title {
    font-family: var(--token-font);
    font-size: 18px;
    font-weight: bold;
    color: var(--token-teal-heading);
    margin-top: 24px;
    margin-bottom: 14px;
    padding: 0;
    background: none;
    border-radius: 0;
}

.token-rt-section-title:first-of-type {
    margin-top: 0;
}

/* Filas etiqueta-valor - Figma: etiquetas Caption1/SemiBold 12px #1B1D1F */
.token-rt-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0;
/*    border-bottom: 1px solid #f0f0f0;*/
    font-family: var(--token-font);
}

.token-rt-row:last-child {
    border-bottom: none;
}

/* Etiquetas: Open Sans 600, 12px, line-height 125%, Gray/85 #1B1D1F (Figma) */
.token-rt-label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #1B1D1F;
    flex-shrink: 0;
}

.token-rt-value {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    color: #1B1D1F;
    text-align: right;
    word-break: break-word;
}

/* Subsección Lugar de los trabajos - separación sutil sin alterar el diseño base */
.token-rt-lugar-trabajos {
    margin: 6px 0 10px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--token-teal);
}

.token-rt-lugar-trabajos-title {
    padding-top: 4px;
    padding-bottom: 2px;
}

.token-rt-lugar-trabajos-title .token-rt-label {
    color: var(--token-teal-heading);
    font-size: 13px;
    font-weight: 700;
}

.token-rt-lugar-trabajos .token-rt-row {
    padding: 6px 0;
}

/* Resumen: fondo gris claro, borde gris, tres columnas (izq | centro | der) */
.token-rt-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--token-summary-border);
    border-radius: 10px;
    background: #FCFCFC;
}

.token-rt-summary-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Columna 1: alineación izquierda */
.token-rt-summary-col:first-child {
    text-align: left;
}

/* Columna 2: centrada en su espacio, contenido alineado a la izquierda */
.token-rt-summary-col:nth-child(2) {
    text-align: left;
    justify-content: flex-start;
    align-items: center;
}

.token-rt-summary-col:nth-child(2) .token-rt-summary-label,
.token-rt-summary-col:nth-child(2) .token-rt-summary-value {
    text-align: left;
}

/* Columna 3: alineación derecha */
.token-rt-summary-col:last-child {
    text-align: right;
}

.token-rt-summary-col:last-child .token-rt-summary-label,
.token-rt-summary-col:last-child .token-rt-summary-value {
    text-align: right;
}

/* Resumen: mismo estilo Figma - 12px, etiquetas SemiBold #1B1D1F */
.token-rt-summary-label {
    font-family: var(--token-font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    color: #1B1D1F;
}

.token-rt-summary-value {
    font-family: var(--token-font);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    color: #1B1D1F;
}

.token-rt-summary-amount {
/*    font-weight: 600;*/
    color: #1B1D1F;
}

/* Botón Aceptar - teal #007B8A, texto blanco, pill-shaped */
/* Botón Aceptar - Figma: INS/Primary-50 #086378, radius 28px, padding 12px 16px */
.token-btn-aceptar {
    display: inline-block;
    margin: 28px auto 0;
    padding: 12px 16px;
    min-height: 42px;
    font-family: var(--token-font);
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    background-color: #086378;
    border: none;
    border-radius: 28px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.token-btn-aceptar:hover {
    background-color: #064350;
}

/* Tarjetas de trabajadores - RT Hogar */
.token-rt-trabajadores {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-rt-trabajador-card {
    background: #FFFFFF;
    border: 1px solid #E7EBED;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.token-rt-trabajador-details > summary {
    list-style: none;
}

.token-rt-trabajador-details > summary::-webkit-details-marker {
    display: none;
}

.token-rt-trabajador-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
}

.token-rt-trabajador-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.token-rt-trabajador-nombre {
    font-weight: 700;
    color: #064350;
    font-size: 15px;
    line-height: 1.3;
}

.token-rt-trabajador-id {
    font-size: 13px;
    color: #4A4A4A;
    font-weight: 600;
    flex-shrink: 0;
}

.token-rt-trabajador-id-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.token-rt-trabajador-id-label {
    font-size: 11px;
    font-weight: 600;
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.token-rt-trabajador-chevron {
    color: #064350;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.token-rt-trabajador-details[open] .token-rt-trabajador-chevron {
    transform: rotate(180deg);
}

.token-rt-trabajador-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 16px 16px;
}

.token-rt-trabajador-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.token-rt-trabajador-label {
    font-size: 11px;
    font-weight: 600;
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.token-rt-trabajador-valor {
    font-size: 13px;
    color: #1B1D1F;
    word-break: break-word;
    text-align: right;
}

/* Legacy table (por si se usa en otros tokens) */
.token-rt-payment-table {
    margin-top: 30px;
}

.token-rt-payment-table table {
    width: 100%;
    border-collapse: collapse;
}

.token-rt-payment-table thead th {
    background-color: #086378;
    color: #FFFFFF;
    padding: 12px;
    text-align: center;
    font-weight: bold;
}

.token-rt-payment-table tbody td {
    padding: 10px;
    text-align: center;
    border: 1px solid #E7EBED;
}

.token-rt-payment-table tbody th {
    text-align: center;
    padding: 10px;
    border: 1px solid #E7EBED;
}

.token-rt-payment-table tbody th i {
    color: #42AE69;
}

/* Responsive Design */
@media (max-width: 768px) {
    .token-estimate-container {
        padding: 15px;
    }
    
    .token-card {
        padding: 20px 24px;
    }
    
    .token-title {
        font-size: 20px;
    }
    
    .token-premium-amount {
        font-size: 28px;
    }
    
    .token-buttons {
        flex-direction: column;
    }
    
    .btn-cargar-fotos,
    .btn-aceptar {
        width: 100%;
    }
    
    .token-rt-payment-table {
        overflow-x: auto;
    }
    
    .token-rt-summary {
        flex-direction: column;
        gap: 16px;
    }
    
    .token-rt-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .token-rt-value {
        text-align: left;
    }

    .token-content-wide {
        max-width: 100%;
    }

    .token-ic-grid {
        grid-template-columns: 1fr;
    }

    .token-rt-trabajador-header {
        flex-direction: column;
        gap: 4px;
    }

    .token-rt-trabajador-id-block {
        align-items: flex-start;
    }
}


/*********************AUCOL - PLANES FAMILIARES ********************************/

.btn-wrap-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 40px;
}

.family-table-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 40px;
}

.family-table {
    width: 80%;
    border: 1px solid #dcdcdc;
    border-radius: 2px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #2b2b2b;
}

    /* fila de titulo */
    .family-table thead th {
        text-align: left;
        padding: 12px 16px;
        background: #f5f5f5;
        font-weight: 600;
        font-size: 13px;
        border-bottom: 1px solid #dcdcdc;
    }

    /* filas */
    .family-table tbody td {
        padding: 14px 16px;
        font-size: 13px;
        vertical-align: top;
        border-bottom: 1px solid #e6e6e6;
    }

    .family-table tbody tr:last-child td {
        border-bottom: none;
    }

    .family-table tbody tr:first-child td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #3a3a3a;
        margin-bottom: 4px;
    }


@media (max-width: 640px) {
    .family-table {
        width: 100%;
    }

        .family-table tbody td {
            padding: 12px 12px;
        }
}

/********************* PAQUETES ASI ********************************/

.token-asi-section {
    margin-top: 5px;
    padding-top: 8px;
}

.token-asi-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #064350;
    margin-bottom: 8px;
}

.token-asi-packages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.token-asi-package-group {
    width: 100%;
    margin-bottom: 6px;
    padding: 8px 12px;
    background-color: #F0F8F7;
    border-radius: 6px;
    border-left: 3px solid #00AE8B;
}

.token-asi-group-label {
    font-size: 13px;
    font-weight: 600;
    color: #064350;
    margin-right: 8px;
    display: inline-block;
}

.token-asi-plans-inline {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.token-asi-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 12px;
    color: #064350;
    background-color: #FFFFFF;
    border: 1px solid #B8E6E0;
    border-radius: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

    .token-asi-plan-badge i {
        color: #42AE69;
        font-size: 11px;
    }

.token-asi-package-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 13px;
    color: #343434;
    background-color: #F8F9FA;
    border: 1px solid #E0E0E0;
    border-radius: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

    .token-asi-package-badge i {
        color: #42AE69;
        font-size: 12px;
    }

@media (max-width: 768px) {
    .token-asi-packages {
        gap: 6px;
    }

    .token-asi-package-group {
        padding: 8px 10px;
    }

    .token-asi-group-label {
        display: block;
        margin-bottom: 6px;
        margin-right: 0;
    }

    .token-asi-plans-inline {
        display: flex;
    }
}


.resumen-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .resumen-table th,
    .resumen-table td {
        text-align: center;
        vertical-align: middle;
        padding: 5px;
    }