body {
    font-family: "Baloo Thambi 2", cursive;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.logo__titulo {
    width: 14vw;
    display: block;
    margin: 0 auto;
}

.titulo__cotizador {
    margin: 0 auto;
    color: white;
    padding-top: 10px;
    text-align: center;
    width: 100%;

    /* Fondo con gradiente */
    background: linear-gradient(90deg, #713BE8, #02C8DF, #713BE8);
    background-size: 200% 200%;
    animation: moverGradiente 3s linear infinite;

    border-radius: 8px;
    padding-bottom: 10px;

}

/* Animación */
@keyframes moverGradiente {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.form-section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: grid;
}

.form-group {
    margin-bottom: 15px;
}
.form-group.checkboxes {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.form-group1 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding-top: 15px;
}

.form-group2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.custom-checkbox {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
    width: 50%;
    height: 37%;
    z-index: 9000;
}

.custom-checkbox.checked {
    background: #8C60EB;
    z-index: 1000;
}

/* Ocultar el checkbox original */
.custom-checkbox input[type="checkbox"] {
    display: none;
    z-index: 1000;
}

.checkbox-label {
    font-size: 0.9rem;
}

.container-checkboxes {
    display: flex;
    gap: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #444;
}
select, input {
    width: 100%;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: "Baloo Thambi 2", cursive;
}
select:focus, input:focus {
    outline: none;
    border-color: #713BE8;
    box-shadow: 0 0 5px rgba(76,175,80,0.2);
}
select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}
.btn__cotizar {
    background-color: #713BE8;
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 4px;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
    font-family: "Baloo Thambi 2", cursive;
}
.btn__cotizar:hover {
    background-color: #713BE8;
}
#resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.cobertura {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.cobertura:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.cobertura-titulo {
    font-weight: bold;
    color: #713BE8;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid #713BE8;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para las etiquetas de categoría */
.categoria-basica,
.categoria-intermedia,
.categoria-intermedia-plus,
.categoria-amplia,
.categoria-premium {
    background-color: #000;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.66em;
    font-weight: normal;
    margin-left: 0;
    display: inline-block;
    font-family: "Baloo Thambi 2", cursive;
}

.categoria-premium {
    background-color: #000;
    color: #fff;
    font-weight: normal;
}

.info-adicional {
    font-size: 0.8em;
    color: #666;
}

/* Modal de confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.modal-content {
    background: white;
    margin: 20px;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: calc(100% - 40px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-text {
    font-size: 1.1em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-button {
    background: linear-gradient(135deg, #713BE8 0%, #02C8DF 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cobertura p {
    margin: 8px 0;
    color: #444;
}

/* Estilos para los iconos de cobertura */
.iconos-cobertura {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: flex-start;
}

.icono-cobertura {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Estilo para grupos de iconos */
.group {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Estilo para tooltips */
.tooltip-text {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    z-index: 1000;
    margin-bottom: 5px;
    pointer-events: none;
}

/* Mostrar tooltip al hacer hover sobre el grupo */
.group:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}
.cobertura strong {
    color: #333;
}
.cobertura ul {
    margin: 8px 0;
    padding-left: 20px;
}
.cobertura li {
    margin: 4px 0;
    color: #666;
}
.error {
    color: red;
    margin-top: 5px;
    font-size: 14px;
}
.aseguradora-resultado {
    text-align: center;
    margin-bottom: 10px;
}

.aseguradora-resultado h3 {
    color: #713BE8;
    margin: 0;
    padding: 10px;
}
.aseguradora-error {
    border: 2px solid #f44336;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #ffebee;
}
.loading {
    display: none;
    text-align: center;
    padding: 20px;
}

/* Minimalista y Elegante */
.space-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 20px auto;
    max-width: 350px;
    position: relative;
}

.rocket-container {
    position: relative;
    margin-bottom: 24px;
}

.rocket-icon {
    width: 80px;
    height: 80px;
    position: relative;
    animation: rocketBounce 1.5s ease-in-out infinite;
}

.rocket-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rocket-icon svg {
    width: 100%;
    height: 100%;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #713BE8;
    text-align: center;
    animation: textFade 2s ease-in-out infinite;
}

.dots {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #713BE8;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes rocketBounce {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
    }
    25% { 
        transform: translateY(-15px) scale(1.05); 
    }
    50% { 
        transform: translateY(-25px) scale(1.1); 
    }
    75% { 
        transform: translateY(-15px) scale(1.05); 
    }
}

@keyframes textFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

.resultados-container {
    margin-top: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.coberturas-lista {
    background: white;
}

.precio-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.precio-slot {
    min-width: 150px;
    display: flex;
    justify-content: center;
}

.precios-container {
    width: 100%;
}

.precio-aseguradora {
    background: white;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.aseguradora-logo {
    width: 120px;
    height: auto;
    margin-bottom: 4px;
    object-fit: contain;
}

.mercantil-logo {
    width: 180px;
    object-fit: contain;
    height: auto;
    width: 120px;
}

.btn-elegir {
    background-color: #713BE8;
    color: white;
    border: none;
    padding: 8px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.3s;
}

.btn-elegir:hover {
    background-color: #8C60EB;
}

.btn-elegir:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.cobertura-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    padding: 17px;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 35px;
    border-radius: 8px;
    background-color: #eff6ff;
}

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

.cobertura-info {
    padding-right: 20px;
    max-width: 500px;
}