/* Contenedor Principal */
.cotizador-container {
    max-width: 1170px;
    /*margin: 2rem auto;*/
    margin-bottom: 2rem !important;
    padding: 2rem;
    background: #ffffff;
    /*border-radius: 12px 12px 0 0;*/
    border-radius: 12px;
    /*box-shadow: 0 10px 25px rgba(0,0,0,0.05);*/
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Botones selectores */

/* Ocultar la lista cuando no esté activa */
.iti__country-list.iti__hide {
    display: none !important;
}

/* Controlar la altura máxima, scroll y superposición */
.iti__country-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.iti.iti--allow-dropdown.iti--separate-dial-code.iti--show-flags {
    width: 100%;
}

.grid-tipos-seguro>button.btn-select-type {
    border-radius: 20px !important;
    width: 24%;
    padding: 14% 0 !important; 
    background-position: center center;
    background-size: cover;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
}
.bg-select-ingre{
background-image: url(https://juanf37.sg-host.com/wp-content/uploads/2026/08/seguro-viaje-cunapro.jpg) !important;
}

.bg-select-patr{
background-image: url(https://juanf37.sg-host.com/wp-content/uploads/2026/08/seguro-patrimonial-cunapro.jpg) !important;
}

.bg-select-life{
background-image: url(https://juanf37.sg-host.com/wp-content/uploads/2026/08/seguro-vida-cunapro2.jpg) !important;
}

.bg-select-health{
background-image: url(https://juanf37.sg-host.com/wp-content/uploads/2026/08/seguro-salud-cunapro.jpg) !important;
}

.bg-select-travel{
background-image: url(https://juanf37.sg-host.com/wp-content/uploads/2026/08/seguro-viaje-cunapro.jpg) !important;
}
/* Títulos */
.cotizador-step>h2{
    color: #0A2864;
    text-align: center;
    margin-bottom: 30px;
}

.cotizador-container h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
}

div#contenedor-planes-resultados {
    text-align: left;
}

h3#tipo-seguro-titulo {
    font-size: 30px;
}

/* Grid de Selección de Seguros */

.grid-tipos-seguro {
    display: flex;
    justify-content: space-between;
    /* justify-content: center; */
    align-items: center;
}

.cotizador-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-select-type {
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #444;
}

.btn-select-type:hover {
    border-color: #43b5ff;
    background: #f0f7ff;
    color: #43b5ff !important;
    /*transform: translateY(-2px);*/
    border-width: 2px;
}

/* Formularios */
#cotizador-form-final label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    /*color: #333;*/
}

#cotizador-form-final input, 
#cotizador-form-final textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s;
}

#cotizador-form-final input:focus {
    border-color: #007cba;
    outline: none;
}

.form-group>input {
    border-radius: 50px !important;
}

/* Botones */
button#btn-back {
    background-color: #43b5ff;
    border: 0;
    padding: 10px 30px;
    margin: 10px 0 30px 0;
}

.cotizador-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.button-primary {
    background-color: #007cba !important;
    border: none !important;
    padding: 12px 24px !important;
    height: auto !important;
    border-radius: 6px !important;
}

/* Tabla de Mis Cotizaciones */
.cotizador-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
}

.cotizador-table th, .cotizador-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cotizador-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #e1e1e1;
}
.badge-pendiente { background: #fff8e1; color: #856404; }

/* Agregado para el contexto venezolano */
.cotizador-container h4 {
    border-left: 4px solid #43b5ff;
    padding-left: 10px;
    margin: 25px 0 15px 0;
    color: #43b5ff;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 5px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.form-row input {
    flex: 1;
}

/* Ajuste para checkbox */
input[type="checkbox"] {
    display: inline-block !important;
    margin-right: 10px !important;
}

.cotizador-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cotizador-section:last-child {
    border-bottom: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-help {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* Mejora visual para los selectores */
select {
    background-color: #fff;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 10px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px; /* Asegura que en móviles se apilen */
}

.checkbox-group {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.checkbox-group label {
    font-weight: normal !important;
    cursor: pointer;
}

.form-help {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: block;
}

/* Contenedor principal del control segmentado */
.segmented-control {
    display: flex;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    background-color: #fff;
    min-height: 50px;
    align-items: center;
}

/* Ocultar el radio button real */
.segmented-control input[type="radio"] {
    display: none;
}

/* Estilo de las etiquetas (los botones) */
.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 7px 20px;
    cursor: pointer;
    margin-bottom: 0 !important; /* Reset de margenes previos */
    transition: all 0.3s ease;
    color: #495057;
    font-weight: 500;
    border: none !important;
}

/* Estilo cuando el radio está seleccionado */
.segmented-control input[type="radio"]:checked + label {
    background-color: #00b4d8; /* El color cian de tu imagen */
    color: #fff;
    padding: 14px;
}

/* Efecto hover suave para la opción no seleccionada */
.segmented-control label:hover {
    background-color: #f8f9fa;
    padding: 14px;
}

/* Ajuste para el control de Nacionalidad (más compacto) */
.small-control {
    max-width: 150px; /* Opcional: para que V/E no sea gigante */
}

/* Mejora para controles con muchas opciones (Frecuencia de Pago) */
.segmented-control label {
    font-size: 0.85rem; /* Un poco más pequeña para que quepan las 4 opciones en móviles */
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Asegura que los campos de texto mantengan el estilo sobrio */
#cotizador-form-final input[type="text"],
#cotizador-form-final input[type="number"],
#cotizador-form-final input[type="date"] {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease-in-out;
}

#cotizador-form-final input:focus {
    background-color: #fff;
    border-color: #00b4d8;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

/* Espaciado para que el segmented control de nacionalidad 
   quede alineado con el input de cédula */
.small-control {
    margin-top: 0;
    height: 45px; /* Altura igual a los inputs estándar */
}

/* Estilo para los selectores estándar (País) */
#cotizador-form-final select {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border-radius: 50px; /* Consistencia con los controles segmentados */
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
    color: #495057;
    font-size: 0.95rem;
    appearance: none; /* Quita el estilo por defecto del sistema */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    cursor: pointer;
}

#cotizador-form-final select:focus {
    border-color: #00b4d8;
    outline: none;
    background-color: #fff;
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
	.segmented-control {
        border-radius: 15px; /* Menos redondeado si se vuelven muy altos */
    }
    .segmented-control label {
        padding: 10px 5px;
        font-size: 0.75rem;
    }
	
}
.beneficiario-block {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.beneficiario-block h5 {
    margin: 0 0 10px 0;
    color: #444;
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.beneficiario-block .form-row {
    margin-bottom: 10px;
}

.beneficiario-block input {
    font-size: 0.9rem !important;
    padding: 8px !important;
}


/*ESTILOS FORMULARIO DE SALUD*/
/* Contenedor Principal */
.cotizador-form-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background: #fff;
    padding: 20px;
}

/* Secciones y Títulos con Barra Azul */
.form-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00a8cc; /* Azul Cyan de la imagen */
    border-left: 4px solid #00a8cc;
    padding-left: 10px;
    margin-bottom: 20px;
}

.section-divider {
    border: 0;
    border-top: 1px dashed #e0e0e0;
    margin: 25px 0;
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.form_content_3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 20px;
}

/* Campos de entrada e Inputs */
.cotizador-form-container input[type="text"],
.cotizador-form-container input[type="email"],
.cotizador-form-container input[type="number"],
.cotizador-form-container input[type="date"],
.cotizador-form-container select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    background-color: #fafafa;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cotizador-form-container input:focus,
.cotizador-form-container select:focus {
    border-color: #00a8cc;
    background-color: #fff;
}

/* Botones Alternables (Toggle Buttons / Segmented Controls) */
.btn-group-toggle {
    display: flex;
    border: 1px solid #dcdcdc;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    width: 100%;
    min-height: 50px;
}

.toggle-btn {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
    margin: 0;
}

.toggle-btn input[type="radio"] {
    display: none;
}

.toggle-btn.active {
    background-color: #43b5ff;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0 !important;
    padding: 14px !important;
}

/* Checkboxes Patologías */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #fdfdfd;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.checkbox-item {
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Tarjeta de Beneficiario */
.beneficiario-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    background-color: #fafafa;
    margin-bottom: 15px;
}

.beneficiario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.beneficiario-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #666;
}

.btn-remove-beneficiario {
    background: transparent;
    border: none;
    color: #e53e3e;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.btn-remove-beneficiario:hover {
    text-decoration: underline;
}

/* Botón Ovalado Agregar Otro Beneficiario */
.btn-outline-pill {
    background: #fff;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-pill:hover {
    background: #f0f0f0;
}

/* Botón Principal Submit */
.form-actions {
    margin-top: 30px;
    text-align: right;
}

.btn-submit-cotizacion {
    background-color: #00a8cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit-cotizacion:hover {
    background-color: #008cae;
}

/* Estilos para el conector dual del Range Slider */
.range-slider-container input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider-container input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2271b1;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: pointer;
}

.cunapro-banner-asesor {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.cunapro-banner-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cunapro-banner-texto h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.cunapro-banner-texto p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-cunapro-asesor {
    background-color: #25d366;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.btn-cunapro-asesor:hover {
    background-color: #128c7e;
    color: #ffffff;
}

@media (max-width: 768px) {
    .cunapro-banner-contenido {
        flex-direction: column;
        text-align: center;
    }
	
	.grid-tipos-seguro{
		flex-wrap: wrap;
	}
	
	.grid-tipos-seguro>button{
		width: 33% !important;
	}
}

/* Adaptación a Pantallas Móviles */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .checkbox-grid {
        grid-template-columns: 1fr 1fr;
    }
	
	
}

@media (max-width: 480px) {
	
	.grid-tipos-seguro>button{
		width: 49% !important;
	}
	
}

@media (max-width: 400px) {
	
	.grid-tipos-seguro>button{
		width: 100% !important;
	}
	
}

/*ESTILOS FORMULARIO DE SALUD*/
